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;}
6081 CPPPFLAGS=$OLDCPPFLAGS
6086 CPPFLAGS=$OLDCPPFLAGS
6092 if test -z "$SED"; then
6093 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6096 # The cast to long int works around a bug in the HP C Compiler
6097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6099 # This bug is HP SR number 8606223364.
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6101 $as_echo_n "checking size of long... " >&6; }
6102 if ${ac_cv_sizeof_long+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6108 if test "$ac_cv_type_long" = yes; then
6109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6111 as_fn_error 77 "cannot compute sizeof (long)
6112 See \`config.log' for more details" "$LINENO" 5; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6120 $as_echo "$ac_cv_sizeof_long" >&6; }
6124 cat >>confdefs.h <<_ACEOF
6125 #define SIZEOF_LONG $ac_cv_sizeof_long
6129 # The cast to long int works around a bug in the HP C Compiler
6130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6132 # This bug is HP SR number 8606223364.
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6134 $as_echo_n "checking size of void*... " >&6; }
6135 if ${ac_cv_sizeof_voidp+:} false; then :
6136 $as_echo_n "(cached) " >&6
6138 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6141 if test "$ac_cv_type_voidp" = yes; then
6142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6144 as_fn_error 77 "cannot compute sizeof (void*)
6145 See \`config.log' for more details" "$LINENO" 5; }
6147 ac_cv_sizeof_voidp=0
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6153 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6157 cat >>confdefs.h <<_ACEOF
6158 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6163 if test -z "$ac_cv_sizeof_long" ||
6164 test "$ac_cv_sizeof_long" -eq "0"; then
6165 as_fn_error $? "cannot find out size of long." "$LINENO" 5
6167 if test -z "$ac_cv_sizeof_voidp" ||
6168 test "$ac_cv_sizeof_voidp" -eq "0"; then
6169 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6175 if test "$ac_cv_sizeof_long" -eq "8" &&
6176 test "$ac_cv_sizeof_voidp" -ge "8"; then
6178 elif test "$ac_cv_sizeof_long" -eq "4" &&
6179 test "$ac_cv_sizeof_voidp" -ge "4"; then
6184 curl_typeof_curl_off_t="unknown"
6185 curl_sizeof_curl_off_t="unknown"
6186 curl_format_curl_off_t="unknown"
6187 curl_format_curl_off_tu="unknown"
6189 if test "$curl_typeof_curl_off_t" = "unknown"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6191 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6200 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6204 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6206 tmp_includes="$curl_includes_inttypes"
6207 tmp_source="char f[] = PRId64;"
6211 tmp_includes="$curl_includes_inttypes"
6212 tmp_source="char f[] = PRId32;"
6216 tmp_includes="$curl_includes_inttypes"
6217 tmp_source="char f[] = PRId16;"
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6226 typedef $t8 curl_off_t;
6227 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6240 if ac_fn_c_try_compile "$LINENO"; then :
6242 if test -z "$tmp_fmt"; then
6243 curl_typeof_curl_off_t="$t8"
6244 curl_sizeof_curl_off_t="8"
6247 OLDCPPFLAGS=$CPPFLAGS
6248 # CPPPFLAGS comes from CURL_CPP_P
6249 CPPFLAGS="$CPPPFLAGS"
6250 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6251 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6252 if test -z "$SED"; then
6253 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6255 if test -z "$GREP"; then
6256 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6263 $curl_includes_inttypes
6265 CURL_DEF_TOKEN $tmp_fmt
6270 if ac_fn_c_try_cpp "$LINENO"; then :
6272 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6273 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6274 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6275 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6276 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6281 rm -f conftest.err conftest.i conftest.$ac_ext
6282 if test -z "$tmp_exp"; then
6283 eval "$as_ac_HaveDef=no"
6286 eval "$as_ac_HaveDef=yes"
6287 eval "$as_ac_Def=\$tmp_exp"
6290 CPPFLAGS=$OLDCPPFLAGS
6292 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6293 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6294 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6295 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6296 curl_typeof_curl_off_t="$t8"
6297 curl_sizeof_curl_off_t="8"
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6307 $as_echo "$curl_typeof_curl_off_t" >&6; }
6309 if test "$curl_typeof_curl_off_t" = "unknown"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6311 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6318 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6322 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6324 tmp_includes="$curl_includes_inttypes"
6325 tmp_source="char f[] = PRId64;"
6329 tmp_includes="$curl_includes_inttypes"
6330 tmp_source="char f[] = PRId32;"
6334 tmp_includes="$curl_includes_inttypes"
6335 tmp_source="char f[] = PRId16;"
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6344 typedef $t4 curl_off_t;
6345 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6358 if ac_fn_c_try_compile "$LINENO"; then :
6360 if test -z "$tmp_fmt"; then
6361 curl_typeof_curl_off_t="$t4"
6362 curl_sizeof_curl_off_t="4"
6365 OLDCPPFLAGS=$CPPFLAGS
6366 # CPPPFLAGS comes from CURL_CPP_P
6367 CPPFLAGS="$CPPPFLAGS"
6368 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6369 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6370 if test -z "$SED"; then
6371 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6373 if test -z "$GREP"; then
6374 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6381 $curl_includes_inttypes
6383 CURL_DEF_TOKEN $tmp_fmt
6388 if ac_fn_c_try_cpp "$LINENO"; then :
6390 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6391 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6392 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6393 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6394 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6399 rm -f conftest.err conftest.i conftest.$ac_ext
6400 if test -z "$tmp_exp"; then
6401 eval "$as_ac_HaveDef=no"
6404 eval "$as_ac_HaveDef=yes"
6405 eval "$as_ac_Def=\$tmp_exp"
6408 CPPFLAGS=$OLDCPPFLAGS
6410 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6411 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6412 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6413 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6414 curl_typeof_curl_off_t="$t4"
6415 curl_sizeof_curl_off_t="4"
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6425 $as_echo "$curl_typeof_curl_off_t" >&6; }
6427 if test "$curl_typeof_curl_off_t" = "unknown"; then
6428 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6432 $as_echo_n "checking size of curl_off_t... " >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6434 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6437 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6438 if test "$curl_format_curl_off_t" != "unknown"; then
6439 x_pull_headers="yes"
6440 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6441 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6442 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6443 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6446 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6447 long_long | __longlong | __longlong_t)
6448 curl_format_curl_off_t="lld"
6449 curl_format_curl_off_tu="llu"
6452 curl_format_curl_off_t="ld"
6453 curl_format_curl_off_tu="lu"
6456 curl_format_curl_off_t="d"
6457 curl_format_curl_off_tu="u"
6460 curl_format_curl_off_t="I64d"
6461 curl_format_curl_off_tu="I64u"
6464 curl_format_curl_off_t="I32d"
6465 curl_format_curl_off_tu="I32u"
6468 curl_format_curl_off_t="I16d"
6469 curl_format_curl_off_tu="I16u"
6472 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6477 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6480 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6482 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6486 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6488 curl_suffix_curl_off_t="unknown"
6489 curl_suffix_curl_off_tu="unknown"
6491 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6492 long_long | __longlong | __longlong_t)
6502 tst_suffixes="LL:i64::"
6505 tst_suffixes="L:i32::"
6508 tst_suffixes="L:i16::"
6511 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6515 old_IFS=$IFS; IFS=':'
6516 for tmp_ssuf in $tst_suffixes ; do
6518 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6521 tmp_usuf="u$tmp_ssuf"
6524 tmp_usuf="U$tmp_ssuf"
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6534 $curl_includes_inttypes
6535 typedef $curl_typeof_curl_off_t new_t;
6552 if ac_fn_c_try_compile "$LINENO"; then :
6554 curl_suffix_curl_off_t="$tmp_ssuf"
6555 curl_suffix_curl_off_tu="$tmp_usuf"
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6564 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6567 $as_echo "$curl_suffix_curl_off_t" >&6; }
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6569 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6571 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6576 if test "$x_pull_headers" = "yes"; then
6577 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6579 cat >>confdefs.h <<_EOF
6580 #define CURL_PULL_SYS_TYPES_H 1
6584 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6586 cat >>confdefs.h <<_EOF
6587 #define CURL_PULL_STDINT_H 1
6591 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6593 cat >>confdefs.h <<_EOF
6594 #define CURL_PULL_INTTYPES_H 1
6601 cat >>confdefs.h <<_EOF
6602 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6606 cat >>confdefs.h <<_EOF
6607 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6611 cat >>confdefs.h <<_EOF
6612 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6616 cat >>confdefs.h <<_EOF
6617 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6621 cat >>confdefs.h <<_EOF
6622 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6626 cat >>confdefs.h <<_EOF
6627 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6631 cat >>confdefs.h <<_EOF
6632 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6641 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6654 $as_echo "yes" >&6; }
6655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6671 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6683 force compilation error
6691 if ac_fn_c_try_compile "$LINENO"; then :
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6694 $as_echo "yes" >&6; }
6695 tmp_thread_safe_initially_defined="yes"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 tmp_thread_safe_initially_defined="no"
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 if test "$tmp_thread_safe_initially_defined" = "no"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6708 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6711 aix[123].* | aix4.[012].*)
6712 tmp_need_thread_safe="no"
6715 tmp_need_thread_safe="yes"
6718 tmp_need_thread_safe="no"
6722 if test "$tmp_need_thread_safe" = "yes"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6724 $as_echo "yes" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6732 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6733 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6734 test "$tmp_need_thread_safe" = "yes"; then
6737 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6739 cat >>confdefs.h <<_EOF
6740 #ifndef _THREAD_SAFE
6741 # define _THREAD_SAFE
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6746 $as_echo "yes" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6756 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6768 force compilation error
6776 if ac_fn_c_try_compile "$LINENO"; then :
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6779 $as_echo "yes" >&6; }
6780 tmp_reentrant_initially_defined="yes"
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 tmp_reentrant_initially_defined="no"
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 if test "$tmp_reentrant_initially_defined" = "no"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6793 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6797 tmp_need_reentrant="yes"
6800 tmp_need_reentrant="no"
6804 if test "$tmp_need_reentrant" = "no"; then
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6823 if ac_fn_c_try_compile "$LINENO"; then :
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 if test "$tmp_errno" = "yes"; then
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6846 force compilation error
6854 if ac_fn_c_try_compile "$LINENO"; then :
6856 tmp_errno="errno_macro_defined"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6873 force compilation error
6881 if ac_fn_c_try_compile "$LINENO"; then :
6883 tmp_errno="errno_macro_needs_reentrant"
6884 tmp_need_reentrant="yes"
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 if test "$tmp_need_reentrant" = "no"; then
6896 if test "$tmp_need_reentrant" = "no"; then
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6902 #define gmtime_r innocuous_gmtime_r
6904 # include <limits.h>
6906 # include <assert.h>
6913 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6925 if ac_fn_c_try_link "$LINENO"; then :
6934 rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936 if test "$tmp_gmtime_r" = "yes"; then
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 #include <sys/types.h>
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6947 tmp_gmtime_r="proto_declared"
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6955 #include <sys/types.h>
6959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6960 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6962 tmp_gmtime_r="proto_needs_reentrant"
6963 tmp_need_reentrant="yes"
6975 if test "$tmp_need_reentrant" = "no"; then
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6981 #define localtime_r innocuous_localtime_r
6983 # include <limits.h>
6985 # include <assert.h>
6991 char localtime_r ();
6992 #if defined __stub_localtime_r || defined __stub___localtime_r
6998 return localtime_r ();
7004 if ac_fn_c_try_link "$LINENO"; then :
7006 tmp_localtime_r="yes"
7010 tmp_localtime_r="no"
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7015 if test "$tmp_localtime_r" = "yes"; then
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7019 #include <sys/types.h>
7023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7024 $EGREP "localtime_r" >/dev/null 2>&1; then :
7026 tmp_localtime_r="proto_declared"
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7034 #include <sys/types.h>
7038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "localtime_r" >/dev/null 2>&1; then :
7041 tmp_localtime_r="proto_needs_reentrant"
7042 tmp_need_reentrant="yes"
7054 if test "$tmp_need_reentrant" = "no"; then
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7060 #define strerror_r innocuous_strerror_r
7062 # include <limits.h>
7064 # include <assert.h>
7071 #if defined __stub_strerror_r || defined __stub___strerror_r
7077 return strerror_r ();
7083 if ac_fn_c_try_link "$LINENO"; then :
7085 tmp_strerror_r="yes"
7092 rm -f core conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7094 if test "$tmp_strerror_r" = "yes"; then
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7098 #include <sys/types.h>
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103 $EGREP "strerror_r" >/dev/null 2>&1; then :
7105 tmp_strerror_r="proto_declared"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7113 #include <sys/types.h>
7117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7118 $EGREP "strerror_r" >/dev/null 2>&1; then :
7120 tmp_strerror_r="proto_needs_reentrant"
7121 tmp_need_reentrant="yes"
7133 if test "$tmp_need_reentrant" = "no"; then
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7139 #define strtok_r innocuous_strtok_r
7141 # include <limits.h>
7143 # include <assert.h>
7150 #if defined __stub_strtok_r || defined __stub___strtok_r
7162 if ac_fn_c_try_link "$LINENO"; then :
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7173 if test "$tmp_strtok_r" = "yes"; then
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7177 #include <sys/types.h>
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 $EGREP "strtok_r" >/dev/null 2>&1; then :
7184 tmp_strtok_r="proto_declared"
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7192 #include <sys/types.h>
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "strtok_r" >/dev/null 2>&1; then :
7199 tmp_strtok_r="proto_needs_reentrant"
7200 tmp_need_reentrant="yes"
7212 if test "$tmp_need_reentrant" = "no"; then
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7218 #define inet_ntoa_r innocuous_inet_ntoa_r
7220 # include <limits.h>
7222 # include <assert.h>
7228 char inet_ntoa_r ();
7229 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7235 return inet_ntoa_r ();
7241 if ac_fn_c_try_link "$LINENO"; then :
7243 tmp_inet_ntoa_r="yes"
7247 tmp_inet_ntoa_r="no"
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 if test "$tmp_inet_ntoa_r" = "yes"; then
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7256 #include <sys/types.h>
7257 #include <sys/socket.h>
7258 #include <netinet/in.h>
7259 #include <arpa/inet.h>
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7265 tmp_inet_ntoa_r="proto_declared"
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7273 #include <sys/types.h>
7274 #include <sys/socket.h>
7275 #include <netinet/in.h>
7276 #include <arpa/inet.h>
7279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7280 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7282 tmp_inet_ntoa_r="proto_needs_reentrant"
7283 tmp_need_reentrant="yes"
7295 if test "$tmp_need_reentrant" = "no"; then
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7301 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7303 # include <limits.h>
7305 # include <assert.h>
7307 #undef gethostbyaddr_r
7311 char gethostbyaddr_r ();
7312 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7318 return gethostbyaddr_r ();
7324 if ac_fn_c_try_link "$LINENO"; then :
7326 tmp_gethostbyaddr_r="yes"
7330 tmp_gethostbyaddr_r="no"
7333 rm -f core conftest.err conftest.$ac_objext \
7334 conftest$ac_exeext conftest.$ac_ext
7335 if test "$tmp_gethostbyaddr_r" = "yes"; then
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7339 #include <sys/types.h>
7343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7344 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7346 tmp_gethostbyaddr_r="proto_declared"
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7354 #include <sys/types.h>
7358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7359 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7361 tmp_gethostbyaddr_r="proto_needs_reentrant"
7362 tmp_need_reentrant="yes"
7374 if test "$tmp_need_reentrant" = "no"; then
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7380 #define gethostbyname_r innocuous_gethostbyname_r
7382 # include <limits.h>
7384 # include <assert.h>
7386 #undef gethostbyname_r
7390 char gethostbyname_r ();
7391 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7397 return gethostbyname_r ();
7403 if ac_fn_c_try_link "$LINENO"; then :
7405 tmp_gethostbyname_r="yes"
7409 tmp_gethostbyname_r="no"
7412 rm -f core conftest.err conftest.$ac_objext \
7413 conftest$ac_exeext conftest.$ac_ext
7414 if test "$tmp_gethostbyname_r" = "yes"; then
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7418 #include <sys/types.h>
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7425 tmp_gethostbyname_r="proto_declared"
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7433 #include <sys/types.h>
7437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7438 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7440 tmp_gethostbyname_r="proto_needs_reentrant"
7441 tmp_need_reentrant="yes"
7453 if test "$tmp_need_reentrant" = "no"; then
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7459 #define getprotobyname_r innocuous_getprotobyname_r
7461 # include <limits.h>
7463 # include <assert.h>
7465 #undef getprotobyname_r
7469 char getprotobyname_r ();
7470 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7476 return getprotobyname_r ();
7482 if ac_fn_c_try_link "$LINENO"; then :
7484 tmp_getprotobyname_r="yes"
7488 tmp_getprotobyname_r="no"
7491 rm -f core conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493 if test "$tmp_getprotobyname_r" = "yes"; then
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7497 #include <sys/types.h>
7501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7502 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7504 tmp_getprotobyname_r="proto_declared"
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7512 #include <sys/types.h>
7516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7517 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7519 tmp_getprotobyname_r="proto_needs_reentrant"
7520 tmp_need_reentrant="yes"
7532 if test "$tmp_need_reentrant" = "no"; then
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7538 #define getservbyport_r innocuous_getservbyport_r
7540 # include <limits.h>
7542 # include <assert.h>
7544 #undef getservbyport_r
7548 char getservbyport_r ();
7549 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7555 return getservbyport_r ();
7561 if ac_fn_c_try_link "$LINENO"; then :
7563 tmp_getservbyport_r="yes"
7567 tmp_getservbyport_r="no"
7570 rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572 if test "$tmp_getservbyport_r" = "yes"; then
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7576 #include <sys/types.h>
7580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7581 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7583 tmp_getservbyport_r="proto_declared"
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7591 #include <sys/types.h>
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7598 tmp_getservbyport_r="proto_needs_reentrant"
7599 tmp_need_reentrant="yes"
7613 if test "$tmp_need_reentrant" = "yes"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7615 $as_echo "yes" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7623 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7624 if test "$tmp_reentrant_initially_defined" = "yes" ||
7625 test "$tmp_need_reentrant" = "yes"; then
7628 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7630 cat >>confdefs.h <<_EOF
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7637 $as_echo "yes" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7645 # Check whether --enable-largefile was given.
7646 if test "${enable_largefile+set}" = set; then :
7647 enableval=$enable_largefile;
7650 if test "$enable_largefile" != no; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7653 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7654 if ${ac_cv_sys_largefile_CC+:} false; then :
7655 $as_echo_n "(cached) " >&6
7657 ac_cv_sys_largefile_CC=no
7658 if test "$GCC" != yes; then
7661 # IRIX 6.2 and later do not support large files by default,
7662 # so use the C compiler's -n32 option if that helps.
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 #include <sys/types.h>
7666 /* Check that off_t can represent 2**63 - 1 correctly.
7667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7668 since some C++ compilers masquerading as C compilers
7669 incorrectly reject 9223372036854775807. */
7670 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7672 && LARGE_OFF_T % 2147483647 == 1)
7681 if ac_fn_c_try_compile "$LINENO"; then :
7684 rm -f core conftest.err conftest.$ac_objext
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687 ac_cv_sys_largefile_CC=' -n32'; break
7689 rm -f core conftest.err conftest.$ac_objext
7693 rm -f conftest.$ac_ext
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7697 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7698 if test "$ac_cv_sys_largefile_CC" != no; then
7699 CC=$CC$ac_cv_sys_largefile_CC
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7703 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7704 if ${ac_cv_sys_file_offset_bits+:} false; then :
7705 $as_echo_n "(cached) " >&6
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 #include <sys/types.h>
7711 /* Check that off_t can represent 2**63 - 1 correctly.
7712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7713 since some C++ compilers masquerading as C compilers
7714 incorrectly reject 9223372036854775807. */
7715 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7717 && LARGE_OFF_T % 2147483647 == 1)
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 ac_cv_sys_file_offset_bits=no; break
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 #define _FILE_OFFSET_BITS 64
7733 #include <sys/types.h>
7734 /* Check that off_t can represent 2**63 - 1 correctly.
7735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7736 since some C++ compilers masquerading as C compilers
7737 incorrectly reject 9223372036854775807. */
7738 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7740 && LARGE_OFF_T % 2147483647 == 1)
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750 ac_cv_sys_file_offset_bits=64; break
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 ac_cv_sys_file_offset_bits=unknown
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7758 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7759 case $ac_cv_sys_file_offset_bits in #(
7762 cat >>confdefs.h <<_ACEOF
7763 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7768 if test $ac_cv_sys_file_offset_bits = unknown; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7770 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7771 if ${ac_cv_sys_large_files+:} false; then :
7772 $as_echo_n "(cached) " >&6
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 #include <sys/types.h>
7778 /* Check that off_t can represent 2**63 - 1 correctly.
7779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7780 since some C++ compilers masquerading as C compilers
7781 incorrectly reject 9223372036854775807. */
7782 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7784 && LARGE_OFF_T % 2147483647 == 1)
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 ac_cv_sys_large_files=no; break
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 #define _LARGE_FILES 1
7800 #include <sys/types.h>
7801 /* Check that off_t can represent 2**63 - 1 correctly.
7802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7803 since some C++ compilers masquerading as C compilers
7804 incorrectly reject 9223372036854775807. */
7805 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7807 && LARGE_OFF_T % 2147483647 == 1)
7816 if ac_fn_c_try_compile "$LINENO"; then :
7817 ac_cv_sys_large_files=1; break
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 ac_cv_sys_large_files=unknown
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7825 $as_echo "$ac_cv_sys_large_files" >&6; }
7826 case $ac_cv_sys_large_files in #(
7829 cat >>confdefs.h <<_ACEOF
7830 #define _LARGE_FILES $ac_cv_sys_large_files
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7844 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7849 macro_version='2.4.6'
7850 macro_revision='2.4.6'
7864 ltmain=$ac_aux_dir/ltmain.sh
7866 # Backslashify metacharacters that are still active within
7867 # double-quoted strings.
7868 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7870 # Same as above, but do not quote variable references.
7871 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7873 # Sed substitution to delay expansion of an escaped shell variable in a
7874 # double_quote_subst'ed string.
7875 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7877 # Sed substitution to delay expansion of an escaped single quote.
7878 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7880 # Sed substitution to avoid accidental globbing in evaled expressions
7881 no_glob_subst='s/\*/\\\*/g'
7883 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7884 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7888 $as_echo_n "checking how to print strings... " >&6; }
7889 # Test print first, because it will be a builtin if present.
7890 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7891 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7893 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7896 # Use this function as a fallback that always works.
7897 func_fallback_echo ()
7899 eval 'cat <<_LTECHO_EOF
7903 ECHO='func_fallback_echo'
7906 # func_echo_all arg...
7907 # Invoke $ECHO with all args, space-separated.
7914 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7915 $as_echo "printf" >&6; } ;;
7916 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7917 $as_echo "print -r" >&6; } ;;
7918 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7919 $as_echo "cat" >&6; } ;;
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7936 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7937 if ${ac_cv_path_SED+:} false; then :
7938 $as_echo_n "(cached) " >&6
7940 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7941 for ac_i in 1 2 3 4 5 6 7; do
7942 ac_script="$ac_script$as_nl$ac_script"
7944 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7945 { ac_script=; unset ac_script;}
7946 if test -z "$SED"; then
7947 ac_path_SED_found=false
7948 # Loop through the user's path and test for each of PROGNAME-LIST
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_prog in sed gsed; do
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7957 as_fn_executable_p "$ac_path_SED" || continue
7958 # Check for GNU ac_path_SED and select it if it is found.
7959 # Check for GNU $ac_path_SED
7960 case `"$ac_path_SED" --version 2>&1` in
7962 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7965 $as_echo_n 0123456789 >"conftest.in"
7968 cat "conftest.in" "conftest.in" >"conftest.tmp"
7969 mv "conftest.tmp" "conftest.in"
7970 cp "conftest.in" "conftest.nl"
7971 $as_echo '' >> "conftest.nl"
7972 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7974 as_fn_arith $ac_count + 1 && ac_count=$as_val
7975 if test $ac_count -gt ${ac_path_SED_max-0}; then
7976 # Best one so far, save it but keep looking for a better one
7977 ac_cv_path_SED="$ac_path_SED"
7978 ac_path_SED_max=$ac_count
7980 # 10*(2^10) chars as input seems more than enough
7981 test $ac_count -gt 10 && break
7983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7986 $ac_path_SED_found && break 3
7991 if test -z "$ac_cv_path_SED"; then
7992 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8000 $as_echo "$ac_cv_path_SED" >&6; }
8001 SED="$ac_cv_path_SED"
8004 test -z "$SED" && SED=sed
8005 Xsed="$SED -e 1s/^X//"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8018 $as_echo_n "checking for fgrep... " >&6; }
8019 if ${ac_cv_path_FGREP+:} false; then :
8020 $as_echo_n "(cached) " >&6
8022 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8023 then ac_cv_path_FGREP="$GREP -F"
8025 if test -z "$FGREP"; then
8026 ac_path_FGREP_found=false
8027 # Loop through the user's path and test for each of PROGNAME-LIST
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8032 test -z "$as_dir" && as_dir=.
8033 for ac_prog in fgrep; do
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8036 as_fn_executable_p "$ac_path_FGREP" || continue
8037 # Check for GNU ac_path_FGREP and select it if it is found.
8038 # Check for GNU $ac_path_FGREP
8039 case `"$ac_path_FGREP" --version 2>&1` in
8041 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8044 $as_echo_n 0123456789 >"conftest.in"
8047 cat "conftest.in" "conftest.in" >"conftest.tmp"
8048 mv "conftest.tmp" "conftest.in"
8049 cp "conftest.in" "conftest.nl"
8050 $as_echo 'FGREP' >> "conftest.nl"
8051 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8053 as_fn_arith $ac_count + 1 && ac_count=$as_val
8054 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8055 # Best one so far, save it but keep looking for a better one
8056 ac_cv_path_FGREP="$ac_path_FGREP"
8057 ac_path_FGREP_max=$ac_count
8059 # 10*(2^10) chars as input seems more than enough
8060 test $ac_count -gt 10 && break
8062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8065 $ac_path_FGREP_found && break 3
8070 if test -z "$ac_cv_path_FGREP"; then
8071 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8074 ac_cv_path_FGREP=$FGREP
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8080 $as_echo "$ac_cv_path_FGREP" >&6; }
8081 FGREP="$ac_cv_path_FGREP"
8084 test -z "$GREP" && GREP=grep
8104 # Check whether --with-gnu-ld was given.
8105 if test "${with_gnu_ld+set}" = set; then :
8106 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8112 if test yes = "$GCC"; then
8113 # Check if gcc -print-prog-name=ld gives a path.
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8115 $as_echo_n "checking for ld used by $CC... " >&6; }
8118 # gcc leaves a trailing carriage return, which upsets mingw
8119 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8121 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8124 # Accept absolute paths.
8126 re_direlt='/[^/][^/]*/\.\./'
8127 # Canonicalize the pathname of ld
8128 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8129 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8130 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8132 test -z "$LD" && LD=$ac_prog
8135 # If it fails, then pretend we aren't using GCC.
8139 # If it is relative, then search for the first ld in PATH.
8143 elif test yes = "$with_gnu_ld"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8145 $as_echo_n "checking for GNU ld... " >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8148 $as_echo_n "checking for non-GNU ld... " >&6; }
8150 if ${lt_cv_path_LD+:} false; then :
8151 $as_echo_n "(cached) " >&6
8153 if test -z "$LD"; then
8154 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8155 for ac_dir in $PATH; do
8157 test -z "$ac_dir" && ac_dir=.
8158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8159 lt_cv_path_LD=$ac_dir/$ac_prog
8160 # Check to see if the program is GNU ld. I'd rather use --version,
8161 # but apparently some variants of GNU ld only accept -v.
8162 # Break only if it was the GNU/non-GNU ld that we prefer.
8163 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8164 *GNU* | *'with BFD'*)
8165 test no != "$with_gnu_ld" && break
8168 test yes != "$with_gnu_ld" && break
8175 lt_cv_path_LD=$LD # Let the user override the test with a path.
8180 if test -n "$LD"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8182 $as_echo "$LD" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8187 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8189 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8190 if ${lt_cv_prog_gnu_ld+:} false; then :
8191 $as_echo_n "(cached) " >&6
8193 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8194 case `$LD -v 2>&1 </dev/null` in
8195 *GNU* | *'with BFD'*)
8196 lt_cv_prog_gnu_ld=yes
8199 lt_cv_prog_gnu_ld=no
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8204 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8205 with_gnu_ld=$lt_cv_prog_gnu_ld
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8216 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8217 if ${lt_cv_path_NM+:} false; then :
8218 $as_echo_n "(cached) " >&6
8220 if test -n "$NM"; then
8221 # Let the user override the test.
8224 lt_nm_to_check=${ac_tool_prefix}nm
8225 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8226 lt_nm_to_check="$lt_nm_to_check nm"
8228 for lt_tmp_nm in $lt_nm_to_check; do
8229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8230 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8232 test -z "$ac_dir" && ac_dir=.
8233 tmp_nm=$ac_dir/$lt_tmp_nm
8234 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8235 # Check to see if the nm accepts a BSD-compat flag.
8236 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8237 # nm: unknown option "B" ignored
8238 # Tru64's nm complains that /dev/null is an invalid object file
8239 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8241 mingw*) lt_bad_file=conftest.nm/nofile ;;
8242 *) lt_bad_file=/dev/null ;;
8244 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8245 *$lt_bad_file* | *'Invalid file or object type'*)
8246 lt_cv_path_NM="$tmp_nm -B"
8250 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8252 lt_cv_path_NM="$tmp_nm -p"
8256 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8257 continue # so that we can try to find one that supports BSD flags
8266 : ${lt_cv_path_NM=no}
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8270 $as_echo "$lt_cv_path_NM" >&6; }
8271 if test no != "$lt_cv_path_NM"; then
8274 # Didn't find any BSD compatible name lister, look for dumpbin.
8275 if test -n "$DUMPBIN"; then :
8276 # Let the user override the test.
8278 if test -n "$ac_tool_prefix"; then
8279 for ac_prog in dumpbin "link -dump"
8281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_DUMPBIN+:} false; then :
8286 $as_echo_n "(cached) " >&6
8288 if test -n "$DUMPBIN"; then
8289 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 DUMPBIN=$ac_cv_prog_DUMPBIN
8309 if test -n "$DUMPBIN"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8311 $as_echo "$DUMPBIN" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8318 test -n "$DUMPBIN" && break
8321 if test -z "$DUMPBIN"; then
8322 ac_ct_DUMPBIN=$DUMPBIN
8323 for ac_prog in dumpbin "link -dump"
8325 # Extract the first word of "$ac_prog", so it can be a program name with args.
8326 set dummy $ac_prog; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8330 $as_echo_n "(cached) " >&6
8332 if test -n "$ac_ct_DUMPBIN"; then
8333 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8353 if test -n "$ac_ct_DUMPBIN"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8355 $as_echo "$ac_ct_DUMPBIN" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8362 test -n "$ac_ct_DUMPBIN" && break
8365 if test "x$ac_ct_DUMPBIN" = x; then
8368 case $cross_compiling:$ac_tool_warned in
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8372 ac_tool_warned=yes ;;
8374 DUMPBIN=$ac_ct_DUMPBIN
8378 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8380 DUMPBIN="$DUMPBIN -symbols -headers"
8388 if test : != "$DUMPBIN"; then
8392 test -z "$NM" && NM=nm
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8400 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8401 if ${lt_cv_nm_interface+:} false; then :
8402 $as_echo_n "(cached) " >&6
8404 lt_cv_nm_interface="BSD nm"
8405 echo "int some_variable = 0;" > conftest.$ac_ext
8406 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8407 (eval "$ac_compile" 2>conftest.err)
8408 cat conftest.err >&5
8409 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8410 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8411 cat conftest.err >&5
8412 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8413 cat conftest.out >&5
8414 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8415 lt_cv_nm_interface="MS dumpbin"
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8420 $as_echo "$lt_cv_nm_interface" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8423 $as_echo_n "checking whether ln -s works... " >&6; }
8425 if test "$LN_S" = "ln -s"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8427 $as_echo "yes" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8430 $as_echo "no, using $LN_S" >&6; }
8433 # find the maximum length of command line arguments
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8435 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8436 if ${lt_cv_sys_max_cmd_len+:} false; then :
8437 $as_echo_n "(cached) " >&6
8444 # On DJGPP, this test can blow up pretty badly due to problems in libc
8445 # (any single argument exceeding 2000 bytes causes a buffer overrun
8446 # during glob expansion). Even if it were fixed, the result of this
8447 # check would be larger than it should be.
8448 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8452 # Under GNU Hurd, this test is not required because there is
8453 # no limit to the length of command line arguments.
8454 # Libtool will interpret -1 as no limit whatsoever
8455 lt_cv_sys_max_cmd_len=-1;
8458 cygwin* | mingw* | cegcc*)
8459 # On Win9x/ME, this test blows up -- it succeeds, but takes
8460 # about 5 minutes as the teststring grows exponentially.
8461 # Worse, since 9x/ME are not pre-emptively multitasking,
8462 # you end up with a "frozen" computer, even though with patience
8463 # the test eventually succeeds (with a max line length of 256k).
8464 # Instead, let's just punt: use the minimum linelength reported by
8465 # all of the supported platforms: 8192 (on NT/2K/XP).
8466 lt_cv_sys_max_cmd_len=8192;
8470 # On MiNT this can take a long time and run out of memory.
8471 lt_cv_sys_max_cmd_len=8192;
8475 # On AmigaOS with pdksh, this test takes hours, literally.
8476 # So we just punt and use a minimum line length of 8192.
8477 lt_cv_sys_max_cmd_len=8192;
8480 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8481 # This has been around since 386BSD, at least. Likely further.
8482 if test -x /sbin/sysctl; then
8483 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8484 elif test -x /usr/sbin/sysctl; then
8485 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8487 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8489 # And add a safety zone
8490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8495 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8496 lt_cv_sys_max_cmd_len=196608
8500 # The test takes a long time on OS/2.
8501 lt_cv_sys_max_cmd_len=8192
8505 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8506 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8507 # nice to cause kernel panics so lets avoid the loop below.
8508 # First set a reasonable default.
8509 lt_cv_sys_max_cmd_len=16384
8511 if test -x /sbin/sysconfig; then
8512 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8513 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8518 lt_cv_sys_max_cmd_len=102400
8520 sysv5* | sco5v6* | sysv4.2uw2*)
8521 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8522 if test -n "$kargmax"; then
8523 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8525 lt_cv_sys_max_cmd_len=32768
8529 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8530 if test -n "$lt_cv_sys_max_cmd_len" && \
8531 test undefined != "$lt_cv_sys_max_cmd_len"; then
8532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8535 # Make teststring a little bigger before we do anything with it.
8536 # a 1K string should be a reasonable start.
8537 for i in 1 2 3 4 5 6 7 8; do
8538 teststring=$teststring$teststring
8540 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8541 # If test is not a shell built-in, we'll probably end up computing a
8542 # maximum length that is only half of the actual maximum length, but
8544 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8545 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8546 test 17 != "$i" # 1/2 MB should be enough
8549 teststring=$teststring$teststring
8551 # Only check the string length outside the loop.
8552 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8554 # Add a significant safety factor because C++ compilers can tack on
8555 # massive amounts of additional arguments before passing them to the
8556 # linker. It appears as though 1/2 is a usable value.
8557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8564 if test -n "$lt_cv_sys_max_cmd_len"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8566 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8569 $as_echo "none" >&6; }
8571 max_cmd_len=$lt_cv_sys_max_cmd_len
8582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8592 # test EBCDIC or ASCII
8593 case `echo X|tr X '\101'` in
8594 A) # ASCII based system
8595 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8596 lt_SP2NL='tr \040 \012'
8597 lt_NL2SP='tr \015\012 \040\040'
8599 *) # EBCDIC based system
8600 lt_SP2NL='tr \100 \n'
8601 lt_NL2SP='tr \r\n \100\100'
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8614 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8615 if ${lt_cv_to_host_file_cmd+:} false; then :
8616 $as_echo_n "(cached) " >&6
8621 *-*-mingw* ) # actually msys
8622 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8625 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8627 * ) # otherwise, assume *nix
8628 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8634 *-*-mingw* ) # actually msys
8635 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8638 lt_cv_to_host_file_cmd=func_convert_file_noop
8640 * ) # otherwise, assume *nix
8641 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8645 * ) # unhandled hosts (and "normal" native builds)
8646 lt_cv_to_host_file_cmd=func_convert_file_noop
8652 to_host_file_cmd=$lt_cv_to_host_file_cmd
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8654 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8661 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8662 if ${lt_cv_to_tool_file_cmd+:} false; then :
8663 $as_echo_n "(cached) " >&6
8665 #assume ordinary cross tools, or native build.
8666 lt_cv_to_tool_file_cmd=func_convert_file_noop
8670 *-*-mingw* ) # actually msys
8671 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8679 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8681 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8688 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8689 if ${lt_cv_ld_reload_flag+:} false; then :
8690 $as_echo_n "(cached) " >&6
8692 lt_cv_ld_reload_flag='-r'
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8695 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8696 reload_flag=$lt_cv_ld_reload_flag
8697 case $reload_flag in
8699 *) reload_flag=" $reload_flag" ;;
8701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8703 cygwin* | mingw* | pw32* | cegcc*)
8704 if test yes != "$GCC"; then
8709 if test yes = "$GCC"; then
8710 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8725 if test -n "$ac_tool_prefix"; then
8726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_OBJDUMP+:} false; then :
8731 $as_echo_n "(cached) " >&6
8733 if test -n "$OBJDUMP"; then
8734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 OBJDUMP=$ac_cv_prog_OBJDUMP
8754 if test -n "$OBJDUMP"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8756 $as_echo "$OBJDUMP" >&6; }
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8764 if test -z "$ac_cv_prog_OBJDUMP"; then
8765 ac_ct_OBJDUMP=$OBJDUMP
8766 # Extract the first word of "objdump", so it can be a program name with args.
8767 set dummy objdump; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8771 $as_echo_n "(cached) " >&6
8773 if test -n "$ac_ct_OBJDUMP"; then
8774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8794 if test -n "$ac_ct_OBJDUMP"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8796 $as_echo "$ac_ct_OBJDUMP" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8802 if test "x$ac_ct_OBJDUMP" = x; then
8805 case $cross_compiling:$ac_tool_warned in
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8809 ac_tool_warned=yes ;;
8811 OBJDUMP=$ac_ct_OBJDUMP
8814 OBJDUMP="$ac_cv_prog_OBJDUMP"
8817 test -z "$OBJDUMP" && OBJDUMP=objdump
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8825 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8826 if ${lt_cv_deplibs_check_method+:} false; then :
8827 $as_echo_n "(cached) " >&6
8829 lt_cv_file_magic_cmd='$MAGIC_CMD'
8830 lt_cv_file_magic_test_file=
8831 lt_cv_deplibs_check_method='unknown'
8832 # Need to set the preceding variable on all platforms that support
8833 # interlibrary dependencies.
8834 # 'none' -- dependencies not supported.
8835 # 'unknown' -- same as none, but documents that we really don't know.
8836 # 'pass_all' -- all dependencies passed with no checks.
8837 # 'test_compile' -- check by making test program.
8838 # 'file_magic [[regex]]' -- check by looking for files in library path
8839 # that responds to the $file_magic_cmd with a given extended regex.
8840 # If you have 'file' or equivalent on your system and you're not sure
8841 # whether 'pass_all' will *always* work, you probably want this one.
8845 lt_cv_deplibs_check_method=pass_all
8849 lt_cv_deplibs_check_method=pass_all
8853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8854 lt_cv_file_magic_cmd='/usr/bin/file -L'
8855 lt_cv_file_magic_test_file=/shlib/libc.so
8859 # func_win32_libid is a shell function defined in ltmain.sh
8860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8861 lt_cv_file_magic_cmd='func_win32_libid'
8865 # Base MSYS/MinGW do not provide the 'file' command needed by
8866 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8867 # unless we find 'file', for example because we are cross-compiling.
8868 if ( file / ) >/dev/null 2>&1; then
8869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8870 lt_cv_file_magic_cmd='func_win32_libid'
8872 # Keep this pattern in sync with the one in func_win32_libid.
8873 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8874 lt_cv_file_magic_cmd='$OBJDUMP -f'
8879 # use the weaker test based on 'objdump'. See mingw*.
8880 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8881 lt_cv_file_magic_cmd='$OBJDUMP -f'
8884 darwin* | rhapsody*)
8885 lt_cv_deplibs_check_method=pass_all
8888 freebsd* | dragonfly*)
8889 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8892 # Not sure whether the presence of OpenBSD here was a mistake.
8893 # Let's accept both of them until this is cleared up.
8894 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8895 lt_cv_file_magic_cmd=/usr/bin/file
8896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8900 lt_cv_deplibs_check_method=pass_all
8905 lt_cv_deplibs_check_method=pass_all
8908 hpux10.20* | hpux11*)
8909 lt_cv_file_magic_cmd=/usr/bin/file
8912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8913 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8916 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]'
8917 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8921 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8927 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8931 irix5* | irix6* | nonstopux*)
8933 *-32|*"-32 ") libmagic=32-bit;;
8934 *-n32|*"-n32 ") libmagic=N32;;
8935 *-64|*"-64 ") libmagic=64-bit;;
8936 *) libmagic=never-match;;
8938 lt_cv_deplibs_check_method=pass_all
8941 # This must be glibc/ELF.
8942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8943 lt_cv_deplibs_check_method=pass_all
8946 netbsd* | netbsdelf*-gnu)
8947 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8956 lt_cv_file_magic_cmd=/usr/bin/file
8957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8961 lt_cv_deplibs_check_method=pass_all
8965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8972 osf3* | osf4* | osf5*)
8973 lt_cv_deplibs_check_method=pass_all
8977 lt_cv_deplibs_check_method=pass_all
8981 lt_cv_deplibs_check_method=pass_all
8984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8985 lt_cv_deplibs_check_method=pass_all
8989 case $host_vendor in
8991 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]'
8992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8995 lt_cv_deplibs_check_method=pass_all
8998 lt_cv_file_magic_cmd='/bin/file'
8999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9002 lt_cv_file_magic_cmd='/bin/file'
9003 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9004 lt_cv_file_magic_test_file=/lib/libc.so
9007 lt_cv_deplibs_check_method=pass_all
9010 lt_cv_deplibs_check_method=pass_all
9016 lt_cv_deplibs_check_method=pass_all
9019 lt_cv_deplibs_check_method=pass_all
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9025 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9029 if test "$build" = "$host"; then
9032 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9035 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9041 file_magic_cmd=$lt_cv_file_magic_cmd
9042 deplibs_check_method=$lt_cv_deplibs_check_method
9043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_DLLTOOL+:} false; then :
9072 $as_echo_n "(cached) " >&6
9074 if test -n "$DLLTOOL"; then
9075 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 DLLTOOL=$ac_cv_prog_DLLTOOL
9095 if test -n "$DLLTOOL"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9097 $as_echo "$DLLTOOL" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9105 if test -z "$ac_cv_prog_DLLTOOL"; then
9106 ac_ct_DLLTOOL=$DLLTOOL
9107 # Extract the first word of "dlltool", so it can be a program name with args.
9108 set dummy dlltool; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9112 $as_echo_n "(cached) " >&6
9114 if test -n "$ac_ct_DLLTOOL"; then
9115 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9135 if test -n "$ac_ct_DLLTOOL"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9137 $as_echo "$ac_ct_DLLTOOL" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9143 if test "x$ac_ct_DLLTOOL" = x; then
9146 case $cross_compiling:$ac_tool_warned in
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9152 DLLTOOL=$ac_ct_DLLTOOL
9155 DLLTOOL="$ac_cv_prog_DLLTOOL"
9158 test -z "$DLLTOOL" && DLLTOOL=dlltool
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9167 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9168 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9169 $as_echo_n "(cached) " >&6
9171 lt_cv_sharedlib_from_linklib_cmd='unknown'
9174 cygwin* | mingw* | pw32* | cegcc*)
9175 # two different shell functions defined in ltmain.sh;
9176 # decide which one to use based on capabilities of $DLLTOOL
9177 case `$DLLTOOL --help 2>&1` in
9178 *--identify-strict*)
9179 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9182 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9187 # fallback: assume linklib IS sharedlib
9188 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9194 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9195 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9196 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9204 if test -n "$ac_tool_prefix"; then
9207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if ${ac_cv_prog_AR+:} false; then :
9212 $as_echo_n "(cached) " >&6
9214 if test -n "$AR"; then
9215 ac_cv_prog_AR="$AR" # Let the user override the test.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 if test -n "$AR"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9237 $as_echo "$AR" >&6; }
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9244 test -n "$AR" && break
9247 if test -z "$AR"; then
9251 # Extract the first word of "$ac_prog", so it can be a program name with args.
9252 set dummy $ac_prog; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9256 $as_echo_n "(cached) " >&6
9258 if test -n "$ac_ct_AR"; then
9259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268 ac_cv_prog_ac_ct_AR="$ac_prog"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9279 if test -n "$ac_ct_AR"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9281 $as_echo "$ac_ct_AR" >&6; }
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9288 test -n "$ac_ct_AR" && break
9291 if test "x$ac_ct_AR" = x; then
9294 case $cross_compiling:$ac_tool_warned in
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9298 ac_tool_warned=yes ;;
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9318 $as_echo_n "checking for archiver @FILE support... " >&6; }
9319 if ${lt_cv_ar_at_file+:} false; then :
9320 $as_echo_n "(cached) " >&6
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9333 if ac_fn_c_try_compile "$LINENO"; then :
9334 echo conftest.$ac_objext > conftest.lst
9335 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9337 (eval $lt_ar_try) 2>&5
9339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9340 test $ac_status = 0; }
9341 if test 0 -eq "$ac_status"; then
9342 # Ensure the archiver fails upon bogus file names.
9343 rm -f conftest.$ac_objext libconftest.a
9344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9345 (eval $lt_ar_try) 2>&5
9347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9348 test $ac_status = 0; }
9349 if test 0 -ne "$ac_status"; then
9353 rm -f conftest.* libconftest.a
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9360 $as_echo "$lt_cv_ar_at_file" >&6; }
9362 if test no = "$lt_cv_ar_at_file"; then
9365 archiver_list_spec=$lt_cv_ar_at_file
9374 if test -n "$ac_tool_prefix"; then
9375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9376 set dummy ${ac_tool_prefix}strip; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if ${ac_cv_prog_STRIP+:} false; then :
9380 $as_echo_n "(cached) " >&6
9382 if test -n "$STRIP"; then
9383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 STRIP=$ac_cv_prog_STRIP
9403 if test -n "$STRIP"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9405 $as_echo "$STRIP" >&6; }
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9413 if test -z "$ac_cv_prog_STRIP"; then
9415 # Extract the first word of "strip", so it can be a program name with args.
9416 set dummy strip; ac_word=$2
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418 $as_echo_n "checking for $ac_word... " >&6; }
9419 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9420 $as_echo_n "(cached) " >&6
9422 if test -n "$ac_ct_STRIP"; then
9423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 test -z "$as_dir" && as_dir=.
9430 for ac_exec_ext in '' $ac_executable_extensions; do
9431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9432 ac_cv_prog_ac_ct_STRIP="strip"
9433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9443 if test -n "$ac_ct_STRIP"; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9445 $as_echo "$ac_ct_STRIP" >&6; }
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448 $as_echo "no" >&6; }
9451 if test "x$ac_ct_STRIP" = x; then
9454 case $cross_compiling:$ac_tool_warned in
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9458 ac_tool_warned=yes ;;
9463 STRIP="$ac_cv_prog_STRIP"
9466 test -z "$STRIP" && STRIP=:
9473 if test -n "$ac_tool_prefix"; then
9474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if ${ac_cv_prog_RANLIB+:} false; then :
9479 $as_echo_n "(cached) " >&6
9481 if test -n "$RANLIB"; then
9482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 RANLIB=$ac_cv_prog_RANLIB
9502 if test -n "$RANLIB"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9504 $as_echo "$RANLIB" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9512 if test -z "$ac_cv_prog_RANLIB"; then
9513 ac_ct_RANLIB=$RANLIB
9514 # Extract the first word of "ranlib", so it can be a program name with args.
9515 set dummy ranlib; ac_word=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9519 $as_echo_n "(cached) " >&6
9521 if test -n "$ac_ct_RANLIB"; then
9522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531 ac_cv_prog_ac_ct_RANLIB="ranlib"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9542 if test -n "$ac_ct_RANLIB"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9544 $as_echo "$ac_ct_RANLIB" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9550 if test "x$ac_ct_RANLIB" = x; then
9553 case $cross_compiling:$ac_tool_warned in
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9557 ac_tool_warned=yes ;;
9559 RANLIB=$ac_ct_RANLIB
9562 RANLIB="$ac_cv_prog_RANLIB"
9565 test -z "$RANLIB" && RANLIB=:
9572 # Determine commands to create old-style static archives.
9573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9574 old_postinstall_cmds='chmod 644 $oldlib'
9575 old_postuninstall_cmds=
9577 if test -n "$RANLIB"; then
9580 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9591 lock_old_archive_extraction=yes ;;
9593 lock_old_archive_extraction=no ;;
9634 # If no C compiler was specified, use CC.
9637 # If no C compiler flags were specified, use CFLAGS.
9638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9640 # Allow CC to be a program name with arguments.
9644 # Check for command to grab the raw symbol name followed by C symbol from nm.
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9646 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9647 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9648 $as_echo_n "(cached) " >&6
9651 # These are sane defaults that work on at least a few old systems.
9652 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9654 # Character class describing NM global symbol codes.
9655 symcode='[BCDEGRST]'
9657 # Regexp to match symbols that can be accessed directly from C.
9658 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9660 # Define system-specific variables.
9665 cygwin* | mingw* | pw32* | cegcc*)
9666 symcode='[ABCDGISTW]'
9669 if test ia64 = "$host_cpu"; then
9670 symcode='[ABCDEGRST]'
9674 symcode='[BCDEGRST]'
9677 symcode='[BCDEGQRST]'
9688 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9696 # If we're using GNU nm, then use its standard symbol codes.
9697 case `$NM -V 2>&1` in
9698 *GNU* | *'with BFD'*)
9699 symcode='[ABCDGIRSTW]' ;;
9702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9703 # Gets list of data symbols to import.
9704 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9705 # Adjust the below global symbol transforms to fixup imported variables.
9706 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9707 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9708 lt_c_name_lib_hook="\
9709 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9710 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9712 # Disable hooks by default.
9713 lt_cv_sys_global_symbol_to_import=
9719 # Transform an extracted symbol line into a proper C declaration.
9720 # Some systems (esp. on ia64) link data and code symbols differently,
9721 # so use this general approach.
9722 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9724 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9725 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9727 # Transform an extracted symbol line into symbol name and symbol address
9728 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9730 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9731 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9733 # Transform an extracted symbol line into symbol name with lib prefix and
9735 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9736 $lt_c_name_lib_hook\
9737 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9738 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9739 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9741 # Handle CRLF in mingw tool chain
9745 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9749 # Try without a prefix underscore, then with it.
9750 for ac_symprfx in "" "_"; do
9752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9753 symxfrm="\\1 $ac_symprfx\\2 \\2"
9755 # Write the raw and C identifiers.
9756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9757 # Fake it for dumpbin and say T for any non-static function,
9758 # D for any global variable and I for any imported variable.
9759 # Also find C++ and __fastcall symbols from MSVC++,
9760 # which start with @ or ?.
9761 lt_cv_sys_global_symbol_pipe="$AWK '"\
9762 " {last_section=section; section=\$ 3};"\
9763 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9764 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9765 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9766 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9767 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9768 " \$ 0!~/External *\|/{next};"\
9769 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9770 " {if(hide[section]) next};"\
9771 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9772 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9773 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9774 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9775 " ' prfx=^$ac_symprfx"
9777 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9779 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9781 # Check to see that the pipe works correctly.
9785 cat > conftest.$ac_ext <<_LT_EOF
9790 void nm_test_func(void);
9791 void nm_test_func(void){}
9795 int main(){nm_test_var='a';nm_test_func();return(0);}
9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9799 (eval $ac_compile) 2>&5
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; }; then
9803 # Now try to grab the symbols.
9805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9806 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9809 test $ac_status = 0; } && test -s "$nlist"; then
9810 # Try sorting and uniquifying the output.
9811 if sort "$nlist" | uniq > "$nlist"T; then
9812 mv -f "$nlist"T "$nlist"
9817 # Make sure that we snagged all the symbols we need.
9818 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9819 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9820 cat <<_LT_EOF > conftest.$ac_ext
9821 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9822 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9823 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9824 relocations are performed -- see ld's documentation on pseudo-relocs. */
9825 # define LT_DLSYM_CONST
9826 #elif defined __osf__
9827 /* This system does not cope well with relocations in const data. */
9828 # define LT_DLSYM_CONST
9830 # define LT_DLSYM_CONST const
9838 # Now generate the symbol file.
9839 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9841 cat <<_LT_EOF >> conftest.$ac_ext
9843 /* The mapping between symbol names and symbols. */
9844 LT_DLSYM_CONST struct {
9848 lt__PROGRAM__LTX_preloaded_symbols[] =
9850 { "@PROGRAM@", (void *) 0 },
9852 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9853 cat <<\_LT_EOF >> conftest.$ac_ext
9857 /* This works around a problem in FreeBSD linker */
9858 #ifdef FREEBSD_WORKAROUND
9859 static const void *lt_preloaded_setup() {
9860 return lt__PROGRAM__LTX_preloaded_symbols;
9868 # Now try linking the two files.
9869 mv -f conftest.$ac_objext conftstm.$ac_objext
9870 lt_globsym_save_LIBS=$LIBS
9871 lt_globsym_save_CFLAGS=$CFLAGS
9872 LIBS=conftstm.$ac_objext
9873 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9875 (eval $ac_link) 2>&5
9877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9878 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9881 LIBS=$lt_globsym_save_LIBS
9882 CFLAGS=$lt_globsym_save_CFLAGS
9884 echo "cannot find nm_test_func in $nlist" >&5
9887 echo "cannot find nm_test_var in $nlist" >&5
9890 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9893 echo "$progname: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9896 rm -rf conftest* conftst*
9898 # Do not use the global_symbol_pipe unless it works.
9899 if test yes = "$pipe_works"; then
9902 lt_cv_sys_global_symbol_pipe=
9908 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9909 lt_cv_sys_global_symbol_to_cdecl=
9911 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9913 $as_echo "failed" >&6; }
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9916 $as_echo "ok" >&6; }
9919 # Response file support.
9920 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9921 nm_file_list_spec='@'
9922 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9923 nm_file_list_spec='@'
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9963 $as_echo_n "checking for sysroot... " >&6; }
9965 # Check whether --with-sysroot was given.
9966 if test "${with_sysroot+set}" = set; then :
9967 withval=$with_sysroot;
9974 case $with_sysroot in #(
9976 if test yes = "$GCC"; then
9977 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9981 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9987 $as_echo "$with_sysroot" >&6; }
9988 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9993 $as_echo "${lt_sysroot:-no}" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10000 $as_echo_n "checking for a working dd... " >&6; }
10001 if ${ac_cv_path_lt_DD+:} false; then :
10002 $as_echo_n "(cached) " >&6
10004 printf 0123456789abcdef0123456789abcdef >conftest.i
10005 cat conftest.i conftest.i >conftest2.i
10007 if test -z "$lt_DD"; then
10008 ac_path_lt_DD_found=false
10009 # Loop through the user's path and test for each of PROGNAME-LIST
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10014 test -z "$as_dir" && as_dir=.
10015 for ac_prog in dd; do
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10018 as_fn_executable_p "$ac_path_lt_DD" || continue
10019 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10020 cmp -s conftest.i conftest.out \
10021 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10023 $ac_path_lt_DD_found && break 3
10028 if test -z "$ac_cv_path_lt_DD"; then
10032 ac_cv_path_lt_DD=$lt_DD
10035 rm -f conftest.i conftest2.i conftest.out
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10038 $as_echo "$ac_cv_path_lt_DD" >&6; }
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10042 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10043 if ${lt_cv_truncate_bin+:} false; then :
10044 $as_echo_n "(cached) " >&6
10046 printf 0123456789abcdef0123456789abcdef >conftest.i
10047 cat conftest.i conftest.i >conftest2.i
10048 lt_cv_truncate_bin=
10049 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10050 cmp -s conftest.i conftest.out \
10051 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10053 rm -f conftest.i conftest2.i conftest.out
10054 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10057 $as_echo "$lt_cv_truncate_bin" >&6; }
10065 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10066 func_cc_basename ()
10068 for cc_temp in $*""; do
10070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10076 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10079 # Check whether --enable-libtool-lock was given.
10080 if test "${enable_libtool_lock+set}" = set; then :
10081 enableval=$enable_libtool_lock;
10084 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10086 # Some flags need to be propagated to the compiler or linker for good
10090 # Find out what ABI is being produced by ac_compile, and set mode
10091 # options accordingly.
10092 echo 'int i;' > conftest.$ac_ext
10093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10094 (eval $ac_compile) 2>&5
10096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097 test $ac_status = 0; }; then
10098 case `/usr/bin/file conftest.$ac_objext` in
10110 # Find out what ABI is being produced by ac_compile, and set linker
10111 # options accordingly.
10112 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10114 (eval $ac_compile) 2>&5
10116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117 test $ac_status = 0; }; then
10118 if test yes = "$lt_cv_prog_gnu_ld"; then
10119 case `/usr/bin/file conftest.$ac_objext` in
10121 LD="${LD-ld} -melf32bsmip"
10124 LD="${LD-ld} -melf32bmipn32"
10127 LD="${LD-ld} -melf64bmip"
10131 case `/usr/bin/file conftest.$ac_objext` in
10148 # Find out what ABI is being produced by ac_compile, and set linker
10149 # options accordingly.
10150 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10152 (eval $ac_compile) 2>&5
10154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155 test $ac_status = 0; }; then
10157 case `/usr/bin/file conftest.$ac_objext` in
10165 case `/usr/bin/file conftest.$ac_objext` in
10167 emul="${emul}btsmip"
10170 emul="${emul}ltsmip"
10173 case `/usr/bin/file conftest.$ac_objext` in
10178 LD="${LD-ld} -m $emul"
10183 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10184 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10185 # Find out what ABI is being produced by ac_compile, and set linker
10186 # options accordingly. Note that the listed cases only cover the
10187 # situations where additional linker options are needed (such as when
10188 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10189 # vice versa); the common cases where no linker options are needed do
10190 # not appear in the list.
10191 echo 'int i;' > conftest.$ac_ext
10192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10193 (eval $ac_compile) 2>&5
10195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10196 test $ac_status = 0; }; then
10197 case `/usr/bin/file conftest.o` in
10200 x86_64-*kfreebsd*-gnu)
10201 LD="${LD-ld} -m elf_i386_fbsd"
10204 case `/usr/bin/file conftest.o` in
10206 LD="${LD-ld} -m elf32_x86_64"
10209 LD="${LD-ld} -m elf_i386"
10213 powerpc64le-*linux*)
10214 LD="${LD-ld} -m elf32lppclinux"
10217 LD="${LD-ld} -m elf32ppclinux"
10220 LD="${LD-ld} -m elf_s390"
10223 LD="${LD-ld} -m elf32_sparc"
10229 x86_64-*kfreebsd*-gnu)
10230 LD="${LD-ld} -m elf_x86_64_fbsd"
10233 LD="${LD-ld} -m elf_x86_64"
10236 LD="${LD-ld} -m elf64lppc"
10239 LD="${LD-ld} -m elf64ppc"
10241 s390*-*linux*|s390*-*tpf*)
10242 LD="${LD-ld} -m elf64_s390"
10245 LD="${LD-ld} -m elf64_sparc"
10255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10256 SAVE_CFLAGS=$CFLAGS
10257 CFLAGS="$CFLAGS -belf"
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10259 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10260 if ${lt_cv_cc_needs_belf+:} false; then :
10261 $as_echo_n "(cached) " >&6
10264 ac_cpp='$CPP $CPPFLAGS'
10265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 lt_cv_cc_needs_belf=yes
10282 lt_cv_cc_needs_belf=no
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10287 ac_cpp='$CPP $CPPFLAGS'
10288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10294 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10295 if test yes != "$lt_cv_cc_needs_belf"; then
10296 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10297 CFLAGS=$SAVE_CFLAGS
10301 # Find out what ABI is being produced by ac_compile, and set linker
10302 # options accordingly.
10303 echo 'int i;' > conftest.$ac_ext
10304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10305 (eval $ac_compile) 2>&5
10307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308 test $ac_status = 0; }; then
10309 case `/usr/bin/file conftest.o` in
10311 case $lt_cv_prog_gnu_ld in
10314 i?86-*-solaris*|x86_64-*-solaris*)
10315 LD="${LD-ld} -m elf_x86_64"
10318 LD="${LD-ld} -m elf64_sparc"
10321 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10322 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10327 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10339 need_locks=$enable_libtool_lock
10341 if test -n "$ac_tool_prefix"; then
10342 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10343 set dummy ${ac_tool_prefix}mt; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10347 $as_echo_n "(cached) " >&6
10349 if test -n "$MANIFEST_TOOL"; then
10350 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10359 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10370 if test -n "$MANIFEST_TOOL"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10372 $as_echo "$MANIFEST_TOOL" >&6; }
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10380 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10381 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10382 # Extract the first word of "mt", so it can be a program name with args.
10383 set dummy mt; ac_word=$2
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385 $as_echo_n "checking for $ac_word... " >&6; }
10386 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10387 $as_echo_n "(cached) " >&6
10389 if test -n "$ac_ct_MANIFEST_TOOL"; then
10390 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10396 test -z "$as_dir" && as_dir=.
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10399 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10410 if test -n "$ac_ct_MANIFEST_TOOL"; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10412 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; }
10418 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10421 case $cross_compiling:$ac_tool_warned in
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10425 ac_tool_warned=yes ;;
10427 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10430 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10433 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10435 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10436 if ${lt_cv_path_mainfest_tool+:} false; then :
10437 $as_echo_n "(cached) " >&6
10439 lt_cv_path_mainfest_tool=no
10440 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10441 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10442 cat conftest.err >&5
10443 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10444 lt_cv_path_mainfest_tool=yes
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10449 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10450 if test yes != "$lt_cv_path_mainfest_tool"; then
10460 rhapsody* | darwin*)
10461 if test -n "$ac_tool_prefix"; then
10462 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10463 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10467 $as_echo_n "(cached) " >&6
10469 if test -n "$DSYMUTIL"; then
10470 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10490 if test -n "$DSYMUTIL"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10492 $as_echo "$DSYMUTIL" >&6; }
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10500 if test -z "$ac_cv_prog_DSYMUTIL"; then
10501 ac_ct_DSYMUTIL=$DSYMUTIL
10502 # Extract the first word of "dsymutil", so it can be a program name with args.
10503 set dummy dsymutil; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10507 $as_echo_n "(cached) " >&6
10509 if test -n "$ac_ct_DSYMUTIL"; then
10510 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10519 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10530 if test -n "$ac_ct_DSYMUTIL"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10532 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10538 if test "x$ac_ct_DSYMUTIL" = x; then
10541 case $cross_compiling:$ac_tool_warned in
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10545 ac_tool_warned=yes ;;
10547 DSYMUTIL=$ac_ct_DSYMUTIL
10550 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10553 if test -n "$ac_tool_prefix"; then
10554 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10555 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_prog_NMEDIT+:} false; then :
10559 $as_echo_n "(cached) " >&6
10561 if test -n "$NMEDIT"; then
10562 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10571 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 NMEDIT=$ac_cv_prog_NMEDIT
10582 if test -n "$NMEDIT"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10584 $as_echo "$NMEDIT" >&6; }
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10592 if test -z "$ac_cv_prog_NMEDIT"; then
10593 ac_ct_NMEDIT=$NMEDIT
10594 # Extract the first word of "nmedit", so it can be a program name with args.
10595 set dummy nmedit; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10599 $as_echo_n "(cached) " >&6
10601 if test -n "$ac_ct_NMEDIT"; then
10602 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10622 if test -n "$ac_ct_NMEDIT"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10624 $as_echo "$ac_ct_NMEDIT" >&6; }
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10630 if test "x$ac_ct_NMEDIT" = x; then
10633 case $cross_compiling:$ac_tool_warned in
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10637 ac_tool_warned=yes ;;
10639 NMEDIT=$ac_ct_NMEDIT
10642 NMEDIT="$ac_cv_prog_NMEDIT"
10645 if test -n "$ac_tool_prefix"; then
10646 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10647 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_prog_LIPO+:} false; then :
10651 $as_echo_n "(cached) " >&6
10653 if test -n "$LIPO"; then
10654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10663 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 LIPO=$ac_cv_prog_LIPO
10674 if test -n "$LIPO"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10676 $as_echo "$LIPO" >&6; }
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10684 if test -z "$ac_cv_prog_LIPO"; then
10686 # Extract the first word of "lipo", so it can be a program name with args.
10687 set dummy lipo; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 $as_echo_n "checking for $ac_word... " >&6; }
10690 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10691 $as_echo_n "(cached) " >&6
10693 if test -n "$ac_ct_LIPO"; then
10694 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_prog_ac_ct_LIPO="lipo"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10714 if test -n "$ac_ct_LIPO"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10716 $as_echo "$ac_ct_LIPO" >&6; }
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10722 if test "x$ac_ct_LIPO" = x; then
10725 case $cross_compiling:$ac_tool_warned in
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10729 ac_tool_warned=yes ;;
10734 LIPO="$ac_cv_prog_LIPO"
10737 if test -n "$ac_tool_prefix"; then
10738 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10739 set dummy ${ac_tool_prefix}otool; ac_word=$2
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741 $as_echo_n "checking for $ac_word... " >&6; }
10742 if ${ac_cv_prog_OTOOL+:} false; then :
10743 $as_echo_n "(cached) " >&6
10745 if test -n "$OTOOL"; then
10746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10755 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 OTOOL=$ac_cv_prog_OTOOL
10766 if test -n "$OTOOL"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10768 $as_echo "$OTOOL" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10776 if test -z "$ac_cv_prog_OTOOL"; then
10778 # Extract the first word of "otool", so it can be a program name with args.
10779 set dummy otool; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10783 $as_echo_n "(cached) " >&6
10785 if test -n "$ac_ct_OTOOL"; then
10786 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795 ac_cv_prog_ac_ct_OTOOL="otool"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10806 if test -n "$ac_ct_OTOOL"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10808 $as_echo "$ac_ct_OTOOL" >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10814 if test "x$ac_ct_OTOOL" = x; then
10817 case $cross_compiling:$ac_tool_warned in
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10821 ac_tool_warned=yes ;;
10826 OTOOL="$ac_cv_prog_OTOOL"
10829 if test -n "$ac_tool_prefix"; then
10830 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10831 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_prog_OTOOL64+:} false; then :
10835 $as_echo_n "(cached) " >&6
10837 if test -n "$OTOOL64"; then
10838 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10847 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 OTOOL64=$ac_cv_prog_OTOOL64
10858 if test -n "$OTOOL64"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10860 $as_echo "$OTOOL64" >&6; }
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10868 if test -z "$ac_cv_prog_OTOOL64"; then
10869 ac_ct_OTOOL64=$OTOOL64
10870 # Extract the first word of "otool64", so it can be a program name with args.
10871 set dummy otool64; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10875 $as_echo_n "(cached) " >&6
10877 if test -n "$ac_ct_OTOOL64"; then
10878 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_ac_ct_OTOOL64="otool64"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10898 if test -n "$ac_ct_OTOOL64"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10900 $as_echo "$ac_ct_OTOOL64" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10906 if test "x$ac_ct_OTOOL64" = x; then
10909 case $cross_compiling:$ac_tool_warned in
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10913 ac_tool_warned=yes ;;
10915 OTOOL64=$ac_ct_OTOOL64
10918 OTOOL64="$ac_cv_prog_OTOOL64"
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10948 $as_echo_n "checking for -single_module linker flag... " >&6; }
10949 if ${lt_cv_apple_cc_single_mod+:} false; then :
10950 $as_echo_n "(cached) " >&6
10952 lt_cv_apple_cc_single_mod=no
10953 if test -z "$LT_MULTI_MODULE"; then
10954 # By default we will add the -single_module flag. You can override
10955 # by either setting the environment variable LT_MULTI_MODULE
10956 # non-empty at configure time, or by adding -multi_module to the
10958 rm -rf libconftest.dylib*
10959 echo "int foo(void){return 1;}" > conftest.c
10960 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10961 -dynamiclib -Wl,-single_module conftest.c" >&5
10962 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10963 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10965 # If there is a non-empty error log, and "single_module"
10966 # appears in it, assume the flag caused a linker warning
10967 if test -s conftest.err && $GREP single_module conftest.err; then
10968 cat conftest.err >&5
10969 # Otherwise, if the output was created with a 0 exit code from
10970 # the compiler, it worked.
10971 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10972 lt_cv_apple_cc_single_mod=yes
10974 cat conftest.err >&5
10976 rm -rf libconftest.dylib*
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10981 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10984 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10985 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10986 $as_echo_n "(cached) " >&6
10988 lt_cv_ld_exported_symbols_list=no
10989 save_LDFLAGS=$LDFLAGS
10990 echo "_main" > conftest.sym
10991 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
11002 if ac_fn_c_try_link "$LINENO"; then :
11003 lt_cv_ld_exported_symbols_list=yes
11005 lt_cv_ld_exported_symbols_list=no
11007 rm -f core conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LDFLAGS=$save_LDFLAGS
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11013 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11016 $as_echo_n "checking for -force_load linker flag... " >&6; }
11017 if ${lt_cv_ld_force_load+:} false; then :
11018 $as_echo_n "(cached) " >&6
11020 lt_cv_ld_force_load=no
11021 cat > conftest.c << _LT_EOF
11022 int forced_loaded() { return 2;}
11024 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11025 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11026 echo "$AR cru libconftest.a conftest.o" >&5
11027 $AR cru libconftest.a conftest.o 2>&5
11028 echo "$RANLIB libconftest.a" >&5
11029 $RANLIB libconftest.a 2>&5
11030 cat > conftest.c << _LT_EOF
11031 int main() { return 0;}
11033 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11034 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11036 if test -s conftest.err && $GREP force_load conftest.err; then
11037 cat conftest.err >&5
11038 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11039 lt_cv_ld_force_load=yes
11041 cat conftest.err >&5
11043 rm -f conftest.err libconftest.a conftest conftest.c
11044 rm -rf conftest.dSYM
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11048 $as_echo "$lt_cv_ld_force_load" >&6; }
11050 rhapsody* | darwin1.[012])
11051 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11053 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11054 darwin*) # darwin 5.x on
11055 # if running on 10.5 or later, the deployment target defaults
11056 # to the OS version, if on x86, and 10.4, the deployment
11057 # target defaults to 10.4. Don't you love it?
11058 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11059 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11060 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11062 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11064 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11068 if test yes = "$lt_cv_apple_cc_single_mod"; then
11069 _lt_dar_single_mod='$single_module'
11071 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11072 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11076 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11077 _lt_dsymutil='~$DSYMUTIL $lib || :'
11084 # func_munge_path_list VARIABLE PATH
11085 # -----------------------------------
11086 # VARIABLE is name of variable containing _space_ separated list of
11087 # directories to be munged by the contents of PATH, which is string
11090 # string "DIR[ DIR]" will be prepended to VARIABLE
11092 # string "DIR[ DIR]" will be appended to VARIABLE
11093 # "DIRP[:DIRP]::[DIRA:]DIRA"
11094 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11095 # "DIRA[ DIRA]" will be appended to VARIABLE
11097 # VARIABLE will be replaced by "DIR[ DIR]"
11098 func_munge_path_list ()
11104 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11107 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11110 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11111 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11114 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11119 for ac_header in dlfcn.h
11121 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11123 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11124 cat >>confdefs.h <<_ACEOF
11125 #define HAVE_DLFCN_H 1
11132 # ------------------------------------ #
11133 # Determine libtool default behavior #
11134 # ------------------------------------ #
11137 # Default behavior is to enable shared and static libraries on systems
11138 # where libtool knows how to build both library versions, and does not
11139 # require separate configuration and build runs for each flavor.
11142 xc_lt_want_enable_shared='yes'
11143 xc_lt_want_enable_static='yes'
11146 # User may have disabled shared or static libraries.
11148 case "x$enable_shared" in # (
11150 xc_lt_want_enable_shared='no'
11153 case "x$enable_static" in # (
11155 xc_lt_want_enable_static='no'
11158 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11159 test "x$xc_lt_want_enable_static" = 'xno'; then
11160 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11164 # Default behavior on systems that require independent configuration
11165 # and build runs for shared and static is to enable shared libraries
11166 # and disable static ones. On these systems option '--disable-shared'
11167 # must be used in order to build a proper static library.
11170 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11171 test "x$xc_lt_want_enable_static" = 'xyes'; then
11172 case $host_os in # (
11173 pw32* | cegcc* | os2* | aix*)
11174 xc_lt_want_enable_static='no'
11180 # Make libtool aware of current shared and static library preferences
11181 # taking in account that, depending on host characteristics, libtool
11182 # may modify these option preferences later in this configure script.
11185 enable_shared=$xc_lt_want_enable_shared
11186 enable_static=$xc_lt_want_enable_static
11189 # Default behavior is to build PIC objects for shared libraries and
11190 # non-PIC objects for static libraries.
11193 xc_lt_want_with_pic='default'
11196 # User may have specified PIC preference.
11199 case "x$with_pic" in # ((
11201 xc_lt_want_with_pic='no'
11204 xc_lt_want_with_pic='yes'
11209 # Default behavior on some systems where building a shared library out
11210 # of non-PIC compiled objects will fail with following linker error
11211 # "relocation R_X86_64_32 can not be used when making a shared object"
11212 # is to build PIC objects even for static libraries. This behavior may
11213 # be overriden using 'configure --disable-shared --without-pic'.
11216 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11217 case $host_cpu in # (
11218 x86_64 | amd64 | ia64)
11219 case $host_os in # (
11221 xc_lt_want_with_pic='yes'
11229 # Make libtool aware of current PIC preference taking in account that,
11230 # depending on host characteristics, libtool may modify PIC default
11231 # behavior to fit host system idiosyncrasies later in this script.
11234 with_pic=$xc_lt_want_with_pic
11236 ## ----------------------- ##
11237 ## Start of libtool code ##
11238 ## ----------------------- ##
11244 enable_win32_dll=yes
11247 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11248 if test -n "$ac_tool_prefix"; then
11249 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11250 set dummy ${ac_tool_prefix}as; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_prog_AS+:} false; then :
11254 $as_echo_n "(cached) " >&6
11256 if test -n "$AS"; then
11257 ac_cv_prog_AS="$AS" # Let the user override the test.
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_AS="${ac_tool_prefix}as"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 if test -n "$AS"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11279 $as_echo "$AS" >&6; }
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11287 if test -z "$ac_cv_prog_AS"; then
11289 # Extract the first word of "as", so it can be a program name with args.
11290 set dummy as; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11294 $as_echo_n "(cached) " >&6
11296 if test -n "$ac_ct_AS"; then
11297 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_prog_ac_ct_AS="as"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11317 if test -n "$ac_ct_AS"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11319 $as_echo "$ac_ct_AS" >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11325 if test "x$ac_ct_AS" = x; then
11328 case $cross_compiling:$ac_tool_warned in
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332 ac_tool_warned=yes ;;
11337 AS="$ac_cv_prog_AS"
11340 if test -n "$ac_tool_prefix"; then
11341 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344 $as_echo_n "checking for $ac_word... " >&6; }
11345 if ${ac_cv_prog_DLLTOOL+:} false; then :
11346 $as_echo_n "(cached) " >&6
11348 if test -n "$DLLTOOL"; then
11349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 DLLTOOL=$ac_cv_prog_DLLTOOL
11369 if test -n "$DLLTOOL"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11371 $as_echo "$DLLTOOL" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11379 if test -z "$ac_cv_prog_DLLTOOL"; then
11380 ac_ct_DLLTOOL=$DLLTOOL
11381 # Extract the first word of "dlltool", so it can be a program name with args.
11382 set dummy dlltool; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11386 $as_echo_n "(cached) " >&6
11388 if test -n "$ac_ct_DLLTOOL"; then
11389 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11409 if test -n "$ac_ct_DLLTOOL"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11411 $as_echo "$ac_ct_DLLTOOL" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11417 if test "x$ac_ct_DLLTOOL" = x; then
11420 case $cross_compiling:$ac_tool_warned in
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11424 ac_tool_warned=yes ;;
11426 DLLTOOL=$ac_ct_DLLTOOL
11429 DLLTOOL="$ac_cv_prog_DLLTOOL"
11432 if test -n "$ac_tool_prefix"; then
11433 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if ${ac_cv_prog_OBJDUMP+:} false; then :
11438 $as_echo_n "(cached) " >&6
11440 if test -n "$OBJDUMP"; then
11441 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11450 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 OBJDUMP=$ac_cv_prog_OBJDUMP
11461 if test -n "$OBJDUMP"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11463 $as_echo "$OBJDUMP" >&6; }
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11471 if test -z "$ac_cv_prog_OBJDUMP"; then
11472 ac_ct_OBJDUMP=$OBJDUMP
11473 # Extract the first word of "objdump", so it can be a program name with args.
11474 set dummy objdump; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11478 $as_echo_n "(cached) " >&6
11480 if test -n "$ac_ct_OBJDUMP"; then
11481 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11501 if test -n "$ac_ct_OBJDUMP"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11503 $as_echo "$ac_ct_OBJDUMP" >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11509 if test "x$ac_ct_OBJDUMP" = x; then
11512 case $cross_compiling:$ac_tool_warned in
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516 ac_tool_warned=yes ;;
11518 OBJDUMP=$ac_ct_OBJDUMP
11521 OBJDUMP="$ac_cv_prog_OBJDUMP"
11527 test -z "$AS" && AS=as
11533 test -z "$DLLTOOL" && DLLTOOL=dlltool
11539 test -z "$OBJDUMP" && OBJDUMP=objdump
11551 # Check whether --enable-shared was given.
11552 if test "${enable_shared+set}" = set; then :
11553 enableval=$enable_shared; p=${PACKAGE-default}
11555 yes) enable_shared=yes ;;
11556 no) enable_shared=no ;;
11559 # Look at the argument we got. We use all the common list separators.
11560 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11561 for pkg in $enableval; do
11563 if test "X$pkg" = "X$p"; then
11582 # Check whether --enable-static was given.
11583 if test "${enable_static+set}" = set; then :
11584 enableval=$enable_static; p=${PACKAGE-default}
11586 yes) enable_static=yes ;;
11587 no) enable_static=no ;;
11590 # Look at the argument we got. We use all the common list separators.
11591 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11592 for pkg in $enableval; do
11594 if test "X$pkg" = "X$p"; then
11614 # Check whether --with-pic was given.
11615 if test "${with_pic+set}" = set; then :
11616 withval=$with_pic; lt_p=${PACKAGE-default}
11618 yes|no) pic_mode=$withval ;;
11621 # Look at the argument we got. We use all the common list separators.
11622 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11623 for lt_pkg in $withval; do
11625 if test "X$lt_pkg" = "X$lt_p"; then
11643 # Check whether --enable-fast-install was given.
11644 if test "${enable_fast_install+set}" = set; then :
11645 enableval=$enable_fast_install; p=${PACKAGE-default}
11647 yes) enable_fast_install=yes ;;
11648 no) enable_fast_install=no ;;
11650 enable_fast_install=no
11651 # Look at the argument we got. We use all the common list separators.
11652 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11653 for pkg in $enableval; do
11655 if test "X$pkg" = "X$p"; then
11656 enable_fast_install=yes
11663 enable_fast_install=yes
11673 shared_archive_member_spec=
11674 case $host,$enable_shared in
11675 power*-*-aix[5-9]*,yes)
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11677 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11679 # Check whether --with-aix-soname was given.
11680 if test "${with_aix_soname+set}" = set; then :
11681 withval=$with_aix_soname; case $withval in
11685 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11688 lt_cv_with_aix_soname=$with_aix_soname
11690 if ${lt_cv_with_aix_soname+:} false; then :
11691 $as_echo_n "(cached) " >&6
11693 lt_cv_with_aix_soname=aix
11696 with_aix_soname=$lt_cv_with_aix_soname
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11700 $as_echo "$with_aix_soname" >&6; }
11701 if test aix != "$with_aix_soname"; then
11702 # For the AIX way of multilib, we name the shared archive member
11703 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11704 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11705 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11706 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11707 if test 64 = "${OBJECT_MODE-32}"; then
11708 shared_archive_member_spec=shr_64
11710 shared_archive_member_spec=shr
11715 with_aix_soname=aix
11728 # This can be used to rebuild libtool when needed
11729 LIBTOOL_DEPS=$ltmain
11731 # Always use our own libtool.
11732 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11763 test -z "$LN_S" && LN_S="ln -s"
11778 if test -n "${ZSH_VERSION+set}"; then
11779 setopt NO_GLOB_SUBST
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11783 $as_echo_n "checking for objdir... " >&6; }
11784 if ${lt_cv_objdir+:} false; then :
11785 $as_echo_n "(cached) " >&6
11787 rm -f .libs 2>/dev/null
11788 mkdir .libs 2>/dev/null
11789 if test -d .libs; then
11792 # MS-DOS does not allow filenames that begin with a dot.
11795 rmdir .libs 2>/dev/null
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11798 $as_echo "$lt_cv_objdir" >&6; }
11799 objdir=$lt_cv_objdir
11805 cat >>confdefs.h <<_ACEOF
11806 #define LT_OBJDIR "$lt_cv_objdir/"
11814 # AIX sometimes has problems with the GCC collect2 program. For some
11815 # reason, if we set the COLLECT_NAMES environment variable, the problems
11816 # vanish in a puff of smoke.
11817 if test set != "${COLLECT_NAMES+set}"; then
11819 export COLLECT_NAMES
11824 # Global variables:
11826 can_build_shared=yes
11828 # All known linkers require a '.a' archive for static linking (except MSVC,
11829 # which needs '.lib').
11832 with_gnu_ld=$lt_cv_prog_gnu_ld
11837 # Set sane defaults for various variables
11838 test -z "$CC" && CC=cc
11839 test -z "$LTCC" && LTCC=$CC
11840 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11841 test -z "$LD" && LD=ld
11842 test -z "$ac_objext" && ac_objext=o
11844 func_cc_basename $compiler
11845 cc_basename=$func_cc_basename_result
11848 # Only perform the check for file, if the check method requires it
11849 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11850 case $deplibs_check_method in
11852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11854 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11855 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11856 $as_echo_n "(cached) " >&6
11860 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11863 lt_save_MAGIC_CMD=$MAGIC_CMD
11864 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11866 for ac_dir in $ac_dummy; do
11868 test -z "$ac_dir" && ac_dir=.
11869 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11870 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11871 if test -n "$file_magic_test_file"; then
11872 case $deplibs_check_method in
11874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11875 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11877 $EGREP "$file_magic_regex" > /dev/null; then
11882 *** Warning: the command libtool uses to detect shared libraries,
11883 *** $file_magic_cmd, produces output that libtool cannot recognize.
11884 *** The result is that libtool may fail to recognize shared libraries
11885 *** as such. This will affect the creation of libtool libraries that
11886 *** depend on shared libraries, but programs linked with such libtool
11887 *** libraries will work regardless of this problem. Nevertheless, you
11888 *** may want to report the problem to your system manager and/or to
11889 *** bug-libtool@gnu.org
11899 MAGIC_CMD=$lt_save_MAGIC_CMD
11904 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11905 if test -n "$MAGIC_CMD"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11907 $as_echo "$MAGIC_CMD" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11917 if test -z "$lt_cv_path_MAGIC_CMD"; then
11918 if test -n "$ac_tool_prefix"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11920 $as_echo_n "checking for file... " >&6; }
11921 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11922 $as_echo_n "(cached) " >&6
11926 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11929 lt_save_MAGIC_CMD=$MAGIC_CMD
11930 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11932 for ac_dir in $ac_dummy; do
11934 test -z "$ac_dir" && ac_dir=.
11935 if test -f "$ac_dir/file"; then
11936 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11937 if test -n "$file_magic_test_file"; then
11938 case $deplibs_check_method in
11940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11941 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11943 $EGREP "$file_magic_regex" > /dev/null; then
11948 *** Warning: the command libtool uses to detect shared libraries,
11949 *** $file_magic_cmd, produces output that libtool cannot recognize.
11950 *** The result is that libtool may fail to recognize shared libraries
11951 *** as such. This will affect the creation of libtool libraries that
11952 *** depend on shared libraries, but programs linked with such libtool
11953 *** libraries will work regardless of this problem. Nevertheless, you
11954 *** may want to report the problem to your system manager and/or to
11955 *** bug-libtool@gnu.org
11965 MAGIC_CMD=$lt_save_MAGIC_CMD
11970 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11971 if test -n "$MAGIC_CMD"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11973 $as_echo "$MAGIC_CMD" >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11989 # Use C for the default configuration in the libtool script
11993 ac_cpp='$CPP $CPPFLAGS'
11994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11999 # Source file extension for C test sources.
12002 # Object file extension for compiled C test sources.
12006 # Code to be used in simple compile tests
12007 lt_simple_compile_test_code="int some_variable = 0;"
12009 # Code to be used in simple link tests
12010 lt_simple_link_test_code='int main(){return(0);}'
12018 # If no C compiler was specified, use CC.
12021 # If no C compiler flags were specified, use CFLAGS.
12022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12024 # Allow CC to be a program name with arguments.
12027 # Save the default compiler, since it gets overwritten when the other
12028 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12029 compiler_DEFAULT=$CC
12031 # save warnings/boilerplate of simple test code
12032 ac_outfile=conftest.$ac_objext
12033 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12034 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12035 _lt_compiler_boilerplate=`cat conftest.err`
12038 ac_outfile=conftest.$ac_objext
12039 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12040 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12041 _lt_linker_boilerplate=`cat conftest.err`
12046 ## There is no encapsulation within the following macros, do not change
12047 ## the running order or otherwise move them around unless you know exactly
12048 ## what you are doing...
12049 if test -n "$compiler"; then
12051 lt_prog_compiler_no_builtin_flag=
12053 if test yes = "$GCC"; then
12054 case $cc_basename in
12056 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12058 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12062 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12063 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12064 $as_echo_n "(cached) " >&6
12066 lt_cv_prog_compiler_rtti_exceptions=no
12067 ac_outfile=conftest.$ac_objext
12068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12069 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12070 # Insert the option either (1) after the last *FLAGS variable, or
12071 # (2) before a word containing "conftest.", or (3) at the end.
12072 # Note that $ac_compile itself does not contain backslashes and begins
12073 # with a dollar sign (not a hyphen), so the echo should work correctly.
12074 # The option is referenced via a variable to avoid confusing sed.
12075 lt_compile=`echo "$ac_compile" | $SED \
12076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12078 -e 's:$: $lt_compiler_flag:'`
12079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12080 (eval "$lt_compile" 2>conftest.err)
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 if (exit $ac_status) && test -s "$ac_outfile"; then
12085 # The compiler can only warn and ignore the option if not recognized
12086 # So say no if there are warnings other than the usual output.
12087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12090 lt_cv_prog_compiler_rtti_exceptions=yes
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12097 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12099 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12100 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12112 lt_prog_compiler_wl=
12113 lt_prog_compiler_pic=
12114 lt_prog_compiler_static=
12117 if test yes = "$GCC"; then
12118 lt_prog_compiler_wl='-Wl,'
12119 lt_prog_compiler_static='-static'
12123 # All AIX code is PIC.
12124 if test ia64 = "$host_cpu"; then
12125 # AIX 5 now supports IA64 processor
12126 lt_prog_compiler_static='-Bstatic'
12128 lt_prog_compiler_pic='-fPIC'
12134 # see comment about AmigaOS4 .so support
12135 lt_prog_compiler_pic='-fPIC'
12138 # FIXME: we need at least 68020 code to build shared libraries, but
12139 # adding the '-m68020' flag to GCC prevents building anything better,
12141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12147 # PIC is the default for these OSes.
12150 mingw* | cygwin* | pw32* | os2* | cegcc*)
12151 # This hack is so that the source file can tell whether it is being
12152 # built for inclusion in a dll (and should export symbols for example).
12153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12154 # (--disable-auto-import) libraries
12155 lt_prog_compiler_pic='-DDLL_EXPORT'
12158 lt_prog_compiler_static='$wl-static'
12163 darwin* | rhapsody*)
12164 # PIC is the default on this platform
12165 # Common symbols not allowed in MH_DYLIB files
12166 lt_prog_compiler_pic='-fno-common'
12170 # PIC is the default for Haiku.
12171 # The "-static" flag exists, but is broken.
12172 lt_prog_compiler_static=
12176 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12177 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12178 # sets the default TLS model and affects inlining.
12184 lt_prog_compiler_pic='-fPIC'
12190 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12191 # Instead, we relocate shared libraries at runtime.
12195 # Just because we use GCC doesn't mean we suddenly get shared libraries
12196 # on systems that don't support them.
12197 lt_prog_compiler_can_build_shared=no
12202 # QNX uses GNU C++, but need to define -shared option too, otherwise
12203 # it will coredump.
12204 lt_prog_compiler_pic='-fPIC -shared'
12208 if test -d /usr/nec; then
12209 lt_prog_compiler_pic=-Kconform_pic
12214 lt_prog_compiler_pic='-fPIC'
12218 case $cc_basename in
12219 nvcc*) # Cuda Compiler Driver 2.2
12220 lt_prog_compiler_wl='-Xlinker '
12221 if test -n "$lt_prog_compiler_pic"; then
12222 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12227 # PORTME Check for flag to pass linker flags through the system compiler.
12230 lt_prog_compiler_wl='-Wl,'
12231 if test ia64 = "$host_cpu"; then
12232 # AIX 5 now supports IA64 processor
12233 lt_prog_compiler_static='-Bstatic'
12235 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12239 darwin* | rhapsody*)
12240 # PIC is the default on this platform
12241 # Common symbols not allowed in MH_DYLIB files
12242 lt_prog_compiler_pic='-fno-common'
12243 case $cc_basename in
12245 # NAG Fortran compiler
12246 lt_prog_compiler_wl='-Wl,-Wl,,'
12247 lt_prog_compiler_pic='-PIC'
12248 lt_prog_compiler_static='-Bstatic'
12253 mingw* | cygwin* | pw32* | os2* | cegcc*)
12254 # This hack is so that the source file can tell whether it is being
12255 # built for inclusion in a dll (and should export symbols for example).
12256 lt_prog_compiler_pic='-DDLL_EXPORT'
12259 lt_prog_compiler_static='$wl-static'
12264 hpux9* | hpux10* | hpux11*)
12265 lt_prog_compiler_wl='-Wl,'
12266 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12267 # not for PA HP-UX.
12273 lt_prog_compiler_pic='+Z'
12276 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12277 lt_prog_compiler_static='$wl-a ${wl}archive'
12280 irix5* | irix6* | nonstopux*)
12281 lt_prog_compiler_wl='-Wl,'
12282 # PIC (with -KPIC) is the default.
12283 lt_prog_compiler_static='-non_shared'
12286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12287 case $cc_basename in
12288 # old Intel for x86_64, which still supported -KPIC.
12290 lt_prog_compiler_wl='-Wl,'
12291 lt_prog_compiler_pic='-KPIC'
12292 lt_prog_compiler_static='-static'
12294 # icc used to be incompatible with GCC.
12295 # ICC 10 doesn't accept -KPIC any more.
12297 lt_prog_compiler_wl='-Wl,'
12298 lt_prog_compiler_pic='-fPIC'
12299 lt_prog_compiler_static='-static'
12301 # Lahey Fortran 8.1.
12303 lt_prog_compiler_wl='-Wl,'
12304 lt_prog_compiler_pic='--shared'
12305 lt_prog_compiler_static='--static'
12308 # NAG Fortran compiler
12309 lt_prog_compiler_wl='-Wl,-Wl,,'
12310 lt_prog_compiler_pic='-PIC'
12311 lt_prog_compiler_static='-Bstatic'
12314 # Fabrice Bellard et al's Tiny C Compiler
12315 lt_prog_compiler_wl='-Wl,'
12316 lt_prog_compiler_pic='-fPIC'
12317 lt_prog_compiler_static='-static'
12319 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12320 # Portland Group compilers (*not* the Pentium gcc compiler,
12321 # which looks to be a dead project)
12322 lt_prog_compiler_wl='-Wl,'
12323 lt_prog_compiler_pic='-fpic'
12324 lt_prog_compiler_static='-Bstatic'
12327 lt_prog_compiler_wl='-Wl,'
12328 # All Alpha code is PIC.
12329 lt_prog_compiler_static='-non_shared'
12331 xl* | bgxl* | bgf* | mpixl*)
12332 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12333 lt_prog_compiler_wl='-Wl,'
12334 lt_prog_compiler_pic='-qpic'
12335 lt_prog_compiler_static='-qstaticlink'
12338 case `$CC -V 2>&1 | sed 5q` in
12339 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12340 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12341 lt_prog_compiler_pic='-KPIC'
12342 lt_prog_compiler_static='-Bstatic'
12343 lt_prog_compiler_wl=''
12345 *Sun\ F* | *Sun*Fortran*)
12346 lt_prog_compiler_pic='-KPIC'
12347 lt_prog_compiler_static='-Bstatic'
12348 lt_prog_compiler_wl='-Qoption ld '
12352 lt_prog_compiler_pic='-KPIC'
12353 lt_prog_compiler_static='-Bstatic'
12354 lt_prog_compiler_wl='-Wl,'
12356 *Intel*\ [CF]*Compiler*)
12357 lt_prog_compiler_wl='-Wl,'
12358 lt_prog_compiler_pic='-fPIC'
12359 lt_prog_compiler_static='-static'
12362 lt_prog_compiler_wl='-Wl,'
12363 lt_prog_compiler_pic='-fpic'
12364 lt_prog_compiler_static='-Bstatic'
12372 lt_prog_compiler_pic='-KPIC'
12373 lt_prog_compiler_static='-Bstatic'
12377 # QNX uses GNU C++, but need to define -shared option too, otherwise
12378 # it will coredump.
12379 lt_prog_compiler_pic='-fPIC -shared'
12382 osf3* | osf4* | osf5*)
12383 lt_prog_compiler_wl='-Wl,'
12384 # All OSF/1 code is PIC.
12385 lt_prog_compiler_static='-non_shared'
12389 lt_prog_compiler_static='-non_shared'
12393 lt_prog_compiler_pic='-KPIC'
12394 lt_prog_compiler_static='-Bstatic'
12395 case $cc_basename in
12396 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12397 lt_prog_compiler_wl='-Qoption ld ';;
12399 lt_prog_compiler_wl='-Wl,';;
12404 lt_prog_compiler_wl='-Qoption ld '
12405 lt_prog_compiler_pic='-PIC'
12406 lt_prog_compiler_static='-Bstatic'
12409 sysv4 | sysv4.2uw2* | sysv4.3*)
12410 lt_prog_compiler_wl='-Wl,'
12411 lt_prog_compiler_pic='-KPIC'
12412 lt_prog_compiler_static='-Bstatic'
12416 if test -d /usr/nec; then
12417 lt_prog_compiler_pic='-Kconform_pic'
12418 lt_prog_compiler_static='-Bstatic'
12422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12423 lt_prog_compiler_wl='-Wl,'
12424 lt_prog_compiler_pic='-KPIC'
12425 lt_prog_compiler_static='-Bstatic'
12429 lt_prog_compiler_wl='-Wl,'
12430 lt_prog_compiler_can_build_shared=no
12434 lt_prog_compiler_pic='-pic'
12435 lt_prog_compiler_static='-Bstatic'
12439 lt_prog_compiler_can_build_shared=no
12445 # For platforms that do not support PIC, -DPIC is meaningless:
12447 lt_prog_compiler_pic=
12450 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12455 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12456 if ${lt_cv_prog_compiler_pic+:} false; then :
12457 $as_echo_n "(cached) " >&6
12459 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12462 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12463 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12466 # Check to make sure the PIC flag actually works.
12468 if test -n "$lt_prog_compiler_pic"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12470 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12471 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12472 $as_echo_n "(cached) " >&6
12474 lt_cv_prog_compiler_pic_works=no
12475 ac_outfile=conftest.$ac_objext
12476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12477 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12478 # Insert the option either (1) after the last *FLAGS variable, or
12479 # (2) before a word containing "conftest.", or (3) at the end.
12480 # Note that $ac_compile itself does not contain backslashes and begins
12481 # with a dollar sign (not a hyphen), so the echo should work correctly.
12482 # The option is referenced via a variable to avoid confusing sed.
12483 lt_compile=`echo "$ac_compile" | $SED \
12484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12486 -e 's:$: $lt_compiler_flag:'`
12487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12488 (eval "$lt_compile" 2>conftest.err)
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 if (exit $ac_status) && test -s "$ac_outfile"; then
12493 # The compiler can only warn and ignore the option if not recognized
12494 # So say no if there are warnings other than the usual output.
12495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12498 lt_cv_prog_compiler_pic_works=yes
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12505 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12507 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12508 case $lt_prog_compiler_pic in
12510 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12513 lt_prog_compiler_pic=
12514 lt_prog_compiler_can_build_shared=no
12530 # Check to make sure the static flag actually works.
12532 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12534 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12535 if ${lt_cv_prog_compiler_static_works+:} false; then :
12536 $as_echo_n "(cached) " >&6
12538 lt_cv_prog_compiler_static_works=no
12539 save_LDFLAGS=$LDFLAGS
12540 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12541 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12543 # The linker can only warn and ignore the option if not recognized
12544 # So say no if there are warnings
12545 if test -s conftest.err; then
12546 # Append any errors to the config.log.
12547 cat conftest.err 1>&5
12548 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12550 if diff conftest.exp conftest.er2 >/dev/null; then
12551 lt_cv_prog_compiler_static_works=yes
12554 lt_cv_prog_compiler_static_works=yes
12558 LDFLAGS=$save_LDFLAGS
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12562 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12564 if test yes = "$lt_cv_prog_compiler_static_works"; then
12567 lt_prog_compiler_static=
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12577 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12578 if ${lt_cv_prog_compiler_c_o+:} false; then :
12579 $as_echo_n "(cached) " >&6
12581 lt_cv_prog_compiler_c_o=no
12582 $RM -r conftest 2>/dev/null
12586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12588 lt_compiler_flag="-o out/conftest2.$ac_objext"
12589 # Insert the option either (1) after the last *FLAGS variable, or
12590 # (2) before a word containing "conftest.", or (3) at the end.
12591 # Note that $ac_compile itself does not contain backslashes and begins
12592 # with a dollar sign (not a hyphen), so the echo should work correctly.
12593 lt_compile=`echo "$ac_compile" | $SED \
12594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12596 -e 's:$: $lt_compiler_flag:'`
12597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12598 (eval "$lt_compile" 2>out/conftest.err)
12600 cat out/conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12604 # The compiler can only warn and ignore the option if not recognized
12605 # So say no if there are warnings
12606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12609 lt_cv_prog_compiler_c_o=yes
12614 # SGI C++ compiler will create directory out/ii_files/ for
12615 # template instantiation
12616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12617 $RM out/* && rmdir out
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12624 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12632 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12633 if ${lt_cv_prog_compiler_c_o+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 lt_cv_prog_compiler_c_o=no
12637 $RM -r conftest 2>/dev/null
12641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12643 lt_compiler_flag="-o out/conftest2.$ac_objext"
12644 # Insert the option either (1) after the last *FLAGS variable, or
12645 # (2) before a word containing "conftest.", or (3) at the end.
12646 # Note that $ac_compile itself does not contain backslashes and begins
12647 # with a dollar sign (not a hyphen), so the echo should work correctly.
12648 lt_compile=`echo "$ac_compile" | $SED \
12649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651 -e 's:$: $lt_compiler_flag:'`
12652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12653 (eval "$lt_compile" 2>out/conftest.err)
12655 cat out/conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12659 # The compiler can only warn and ignore the option if not recognized
12660 # So say no if there are warnings
12661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12664 lt_cv_prog_compiler_c_o=yes
12669 # SGI C++ compiler will create directory out/ii_files/ for
12670 # template instantiation
12671 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12672 $RM out/* && rmdir out
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12679 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12684 hard_links=nottested
12685 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12686 # do not overwrite the value of need_locks provided by the user
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12688 $as_echo_n "checking if we can lock with hard links... " >&6; }
12691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12693 ln conftest.a conftest.b 2>&5 || hard_links=no
12694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12696 $as_echo "$hard_links" >&6; }
12697 if test no = "$hard_links"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12699 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12712 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12715 allow_undefined_flag=
12716 always_export_symbols=no
12718 archive_expsym_cmds=
12719 compiler_needs_object=no
12720 enable_shared_with_static_runtimes=no
12721 export_dynamic_flag_spec=
12722 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12723 hardcode_automatic=no
12725 hardcode_direct_absolute=no
12726 hardcode_libdir_flag_spec=
12727 hardcode_libdir_separator=
12728 hardcode_minus_L=no
12729 hardcode_shlibpath_var=unsupported
12731 link_all_deplibs=unknown
12733 module_expsym_cmds=
12734 old_archive_from_new_cmds=
12735 old_archive_from_expsyms_cmds=
12736 thread_safe_flag_spec=
12737 whole_archive_flag_spec=
12738 # include_expsyms should be a list of space-separated symbols to be *always*
12739 # included in the symbol list
12741 # exclude_expsyms can be an extended regexp of symbols to exclude
12742 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12743 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12744 # as well as any symbol that contains 'd'.
12745 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12746 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12747 # platforms (ab)use it in PIC code, but their linkers get confused if
12748 # the symbol is explicitly referenced. Since portable code cannot
12749 # rely on this symbol name, it's probably fine to never include it in
12750 # preloaded symbol tables.
12751 # Exclude shared library initialization/finalization symbols.
12752 extract_expsyms_cmds=
12755 cygwin* | mingw* | pw32* | cegcc*)
12756 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12757 # When not using gcc, we currently assume that we are using
12758 # Microsoft Visual C++.
12759 if test yes != "$GCC"; then
12764 # we just hope/assume this is gcc and not c89 (= MSVC++)
12767 openbsd* | bitrig*)
12770 linux* | k*bsd*-gnu | gnu*)
12771 link_all_deplibs=no
12777 # On some targets, GNU ld is compatible enough with the native linker
12778 # that we're better off using the native interface for both.
12779 lt_use_gnu_ld_interface=no
12780 if test yes = "$with_gnu_ld"; then
12783 # The AIX port of GNU ld has always aspired to compatibility
12784 # with the native linker. However, as the warning in the GNU ld
12785 # block says, versions before 2.19.5* couldn't really create working
12786 # shared libraries, regardless of the interface used.
12787 case `$LD -v 2>&1` in
12788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12792 lt_use_gnu_ld_interface=yes
12797 lt_use_gnu_ld_interface=yes
12802 if test yes = "$lt_use_gnu_ld_interface"; then
12803 # If archive_cmds runs LD, not CC, wlarc should be empty
12806 # Set some defaults for GNU ld with shared library support. These
12807 # are reset later if shared libraries are not supported. Putting them
12808 # here allows them to be overridden if necessary.
12809 runpath_var=LD_RUN_PATH
12810 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12811 export_dynamic_flag_spec='$wl--export-dynamic'
12812 # ancient GNU ld didn't support --whole-archive et. al.
12813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12814 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12816 whole_archive_flag_spec=
12818 supports_anon_versioning=no
12819 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12820 *GNU\ gold*) supports_anon_versioning=yes ;;
12821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12824 *\ 2.11.*) ;; # other 2.11 versions
12825 *) supports_anon_versioning=yes ;;
12828 # See if GNU ld supports shared libraries.
12831 # On AIX/PPC, the GNU linker is very broken
12832 if test ia64 != "$host_cpu"; then
12836 *** Warning: the GNU linker, at least up to release 2.19, is reported
12837 *** to be unable to reliably create shared libraries on AIX.
12838 *** Therefore, libtool is disabling shared libraries support. If you
12839 *** really care for shared libraries, you may want to install binutils
12840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12841 *** You will then need to restart the configuration process.
12850 # see comment about AmigaOS4 .so support
12851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12852 archive_expsym_cmds=''
12855 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)'
12856 hardcode_libdir_flag_spec='-L$libdir'
12857 hardcode_minus_L=yes
12863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12864 allow_undefined_flag=unsupported
12865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12866 # support --undefined. This deserves some investigation. FIXME
12867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12873 cygwin* | mingw* | pw32* | cegcc*)
12874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12875 # as there is no search path for DLLs.
12876 hardcode_libdir_flag_spec='-L$libdir'
12877 export_dynamic_flag_spec='$wl--export-all-symbols'
12878 allow_undefined_flag=unsupported
12879 always_export_symbols=no
12880 enable_shared_with_static_runtimes=yes
12881 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'
12882 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12884 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12886 # If the export-symbols file already is a .def file, use it as
12887 # is; otherwise, prepend EXPORTS...
12888 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12889 cp $export_symbols $output_objdir/$soname.def;
12891 echo EXPORTS > $output_objdir/$soname.def;
12892 cat $export_symbols >> $output_objdir/$soname.def;
12894 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12902 link_all_deplibs=yes
12906 hardcode_libdir_flag_spec='-L$libdir'
12907 hardcode_minus_L=yes
12908 allow_undefined_flag=unsupported
12910 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12911 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12912 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12913 $ECHO EXPORTS >> $output_objdir/$libname.def~
12914 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12915 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12916 emximp -o $lib $output_objdir/$libname.def'
12917 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12918 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12919 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12920 $ECHO EXPORTS >> $output_objdir/$libname.def~
12921 prefix_cmds="$SED"~
12922 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12923 prefix_cmds="$prefix_cmds -e 1d";
12925 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12926 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12927 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12928 emximp -o $lib $output_objdir/$libname.def'
12929 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12930 enable_shared_with_static_runtimes=yes
12935 hardcode_shlibpath_var=no
12936 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12937 export_dynamic_flag_spec='$wl-E'
12938 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12939 # Instead, shared libraries are loaded at an image base (0x10000000 by
12940 # default) and relocated if they conflict, which is a slow very memory
12941 # consuming and fragmenting process. To avoid this, we pick a random,
12942 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12943 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12945 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'
12948 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12950 if test linux-dietlibc = "$host_os"; then
12951 case $cc_basename in
12952 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12955 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12956 && test no = "$tmp_diet"
12958 tmp_addflag=' $pic_flag'
12959 tmp_sharedflag='-shared'
12960 case $cc_basename,$host_cpu in
12961 pgcc*) # Portland Group C compiler
12962 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'
12963 tmp_addflag=' $pic_flag'
12965 pgf77* | pgf90* | pgf95* | pgfortran*)
12966 # Portland Group f77 and f90 compilers
12967 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'
12968 tmp_addflag=' $pic_flag -Mnomain' ;;
12969 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12970 tmp_addflag=' -i_dynamic' ;;
12971 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12972 tmp_addflag=' -i_dynamic -nofor_main' ;;
12973 ifc* | ifort*) # Intel Fortran compiler
12974 tmp_addflag=' -nofor_main' ;;
12975 lf95*) # Lahey Fortran 8.1
12976 whole_archive_flag_spec=
12977 tmp_sharedflag='--shared' ;;
12978 nagfor*) # NAGFOR 5.3
12979 tmp_sharedflag='-Wl,-shared' ;;
12980 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12981 tmp_sharedflag='-qmkshrobj'
12983 nvcc*) # Cuda Compiler Driver 2.2
12984 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'
12985 compiler_needs_object=yes
12988 case `$CC -V 2>&1 | sed 5q` in
12989 *Sun\ C*) # Sun C 5.9
12990 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'
12991 compiler_needs_object=yes
12992 tmp_sharedflag='-G' ;;
12993 *Sun\ F*) # Sun Fortran 8.3
12994 tmp_sharedflag='-G' ;;
12996 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12998 if test yes = "$supports_anon_versioning"; then
12999 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13001 echo "local: *; };" >> $output_objdir/$libname.ver~
13002 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13005 case $cc_basename in
13007 export_dynamic_flag_spec='-rdynamic'
13009 xlf* | bgf* | bgxlf* | mpixlf*)
13010 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13011 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13012 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13013 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13014 if test yes = "$supports_anon_versioning"; then
13015 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13017 echo "local: *; };" >> $output_objdir/$libname.ver~
13018 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13027 netbsd* | netbsdelf*-gnu)
13028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13029 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13032 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13033 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13038 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13043 *** create shared libraries on Solaris systems. Therefore, libtool
13044 *** is disabling shared libraries support. We urge you to upgrade GNU
13045 *** binutils to release 2.9.1 or newer. Another option is to modify
13046 *** your PATH or compiler configuration so that the native linker is
13047 *** used, and then restart.
13050 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13052 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13059 case `$LD -v 2>&1` in
13060 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13064 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13065 *** reliably create shared libraries on SCO systems. Therefore, libtool
13066 *** is disabling shared libraries support. We urge you to upgrade GNU
13067 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13068 *** your PATH or compiler configuration so that the native linker is
13069 *** used, and then restart.
13074 # For security reasons, it is highly recommended that you always
13075 # use absolute paths for naming shared libraries, and exclude the
13076 # DT_RUNPATH tag from executables and libraries. But doing so
13077 # requires that you compile everything twice, which is a pain.
13078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13090 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13092 hardcode_direct=yes
13093 hardcode_shlibpath_var=no
13097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13099 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13106 if test no = "$ld_shlibs"; then
13108 hardcode_libdir_flag_spec=
13109 export_dynamic_flag_spec=
13110 whole_archive_flag_spec=
13113 # PORTME fill in a description of your system's linker (not GNU ld)
13116 allow_undefined_flag=unsupported
13117 always_export_symbols=yes
13118 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'
13119 # Note: this linker hardcodes the directories in LIBPATH if there
13120 # are no directories specified by -L.
13121 hardcode_minus_L=yes
13122 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13123 # Neither direct hardcoding nor static linking is supported with a
13125 hardcode_direct=unsupported
13130 if test ia64 = "$host_cpu"; then
13131 # On IA64, the linker does run time linking by default, so we don't
13132 # have to do anything special.
13133 aix_use_runtimelinking=no
13134 exp_sym_flag='-Bexport'
13137 # If we're using GNU nm, then we don't want the "-C" option.
13138 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13139 # Without the "-l" option, or with the "-B" option, AIX nm treats
13140 # weak defined symbols like other global defined symbols, whereas
13141 # GNU nm marks them as "W".
13142 # While the 'weak' keyword is ignored in the Export File, we need
13143 # it in the Import File for the 'aix-soname' feature, so we have
13144 # to replace the "-B" option with "-P" for AIX nm.
13145 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13146 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'
13148 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'
13150 aix_use_runtimelinking=no
13152 # Test if we are trying to use run time linking or normal
13153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13154 # have runtime linking enabled, and use it for executables.
13155 # For shared libraries, we enable/disable runtime linking
13156 # depending on the kind of the shared library created -
13157 # when "with_aix_soname,aix_use_runtimelinking" is:
13158 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13159 # "aix,yes" lib.so shared, rtl:yes, for executables
13160 # lib.a static archive
13161 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13162 # lib.a(lib.so.V) shared, rtl:no, for executables
13163 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13164 # lib.a(lib.so.V) shared, rtl:no
13165 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13166 # lib.a static archive
13167 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13168 for ld_flag in $LDFLAGS; do
13169 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13170 aix_use_runtimelinking=yes
13174 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13175 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13176 # so we don't have lib.a shared libs to link our executables.
13177 # We have to force runtime linking in this case.
13178 aix_use_runtimelinking=yes
13179 LDFLAGS="$LDFLAGS -Wl,-brtl"
13184 exp_sym_flag='-bexport'
13185 no_entry_flag='-bnoentry'
13188 # When large executables or shared objects are built, AIX ld can
13189 # have problems creating the table of contents. If linking a library
13190 # or program results in "error TOC overflow" add -mminimal-toc to
13191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13195 hardcode_direct=yes
13196 hardcode_direct_absolute=yes
13197 hardcode_libdir_separator=':'
13198 link_all_deplibs=yes
13199 file_list_spec='$wl-f,'
13200 case $with_aix_soname,$aix_use_runtimelinking in
13201 aix,*) ;; # traditional, no import file
13202 svr4,* | *,yes) # use import file
13203 # The Import File defines what to hardcode.
13205 hardcode_direct_absolute=no
13209 if test yes = "$GCC"; then
13210 case $host_os in aix4.[012]|aix4.[012].*)
13211 # We only want to do this on AIX 4.2 and lower, the check
13212 # below for broken collect2 doesn't work under 4.3+
13213 collect2name=`$CC -print-prog-name=collect2`
13214 if test -f "$collect2name" &&
13215 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13217 # We have reworked collect2
13220 # We have old collect2
13221 hardcode_direct=unsupported
13222 # It fails to find uninstalled libraries when the uninstalled
13223 # path is not listed in the libpath. Setting hardcode_minus_L
13224 # to unsupported forces relinking
13225 hardcode_minus_L=yes
13226 hardcode_libdir_flag_spec='-L$libdir'
13227 hardcode_libdir_separator=
13231 shared_flag='-shared'
13232 if test yes = "$aix_use_runtimelinking"; then
13233 shared_flag="$shared_flag "'$wl-G'
13235 # Need to ensure runtime linking is disabled for the traditional
13236 # shared library, or the linker may eventually find shared libraries
13237 # /with/ Import File - we do not want to mix them.
13238 shared_flag_aix='-shared'
13239 shared_flag_svr4='-shared $wl-G'
13242 if test ia64 = "$host_cpu"; then
13243 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13244 # chokes on -Wl,-G. The following line is correct:
13247 if test yes = "$aix_use_runtimelinking"; then
13248 shared_flag='$wl-G'
13250 shared_flag='$wl-bM:SRE'
13252 shared_flag_aix='$wl-bM:SRE'
13253 shared_flag_svr4='$wl-G'
13257 export_dynamic_flag_spec='$wl-bexpall'
13258 # It seems that -bexpall does not export symbols beginning with
13259 # underscore (_), so it is better to generate a list of symbols to export.
13260 always_export_symbols=yes
13261 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13262 # Warning - without using the other runtime loading flags (-brtl),
13263 # -berok will link without error, but may produce a broken library.
13264 allow_undefined_flag='-berok'
13265 # Determine the default libpath from the value encoded in an
13266 # empty executable.
13267 if test set = "${lt_cv_aix_libpath+set}"; then
13268 aix_libpath=$lt_cv_aix_libpath
13270 if ${lt_cv_aix_libpath_+:} false; then :
13271 $as_echo_n "(cached) " >&6
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13283 if ac_fn_c_try_link "$LINENO"; then :
13285 lt_aix_libpath_sed='
13286 /Import File Strings/,/^$/ {
13288 s/^0 *\([^ ]*\) *$/\1/
13292 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13293 # Check for a 64-bit object if we didn't find anything.
13294 if test -z "$lt_cv_aix_libpath_"; then
13295 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13298 rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300 if test -z "$lt_cv_aix_libpath_"; then
13301 lt_cv_aix_libpath_=/usr/lib:/lib
13306 aix_libpath=$lt_cv_aix_libpath_
13309 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13310 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
13312 if test ia64 = "$host_cpu"; then
13313 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13314 allow_undefined_flag="-z nodefs"
13315 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"
13317 # Determine the default libpath from the value encoded in an
13318 # empty executable.
13319 if test set = "${lt_cv_aix_libpath+set}"; then
13320 aix_libpath=$lt_cv_aix_libpath
13322 if ${lt_cv_aix_libpath_+:} false; then :
13323 $as_echo_n "(cached) " >&6
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13335 if ac_fn_c_try_link "$LINENO"; then :
13337 lt_aix_libpath_sed='
13338 /Import File Strings/,/^$/ {
13340 s/^0 *\([^ ]*\) *$/\1/
13344 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13345 # Check for a 64-bit object if we didn't find anything.
13346 if test -z "$lt_cv_aix_libpath_"; then
13347 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 if test -z "$lt_cv_aix_libpath_"; then
13353 lt_cv_aix_libpath_=/usr/lib:/lib
13358 aix_libpath=$lt_cv_aix_libpath_
13361 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13362 # Warning - without using the other run time loading flags,
13363 # -berok will link without error, but may produce a broken library.
13364 no_undefined_flag=' $wl-bernotok'
13365 allow_undefined_flag=' $wl-berok'
13366 if test yes = "$with_gnu_ld"; then
13367 # We only use this code for GNU lds that support --whole-archive.
13368 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13370 # Exported symbols can be pulled into shared objects from archives
13371 whole_archive_flag_spec='$convenience'
13373 archive_cmds_need_lc=yes
13374 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13375 # -brtl affects multiple linker settings, -berok does not and is overridden later
13376 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13377 if test svr4 != "$with_aix_soname"; then
13378 # This is similar to how AIX traditionally builds its shared libraries.
13379 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'
13381 if test aix != "$with_aix_soname"; then
13382 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'
13384 # used by -dlpreopen to get the symbols
13385 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13387 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13395 # see comment about AmigaOS4 .so support
13396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13397 archive_expsym_cmds=''
13400 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)'
13401 hardcode_libdir_flag_spec='-L$libdir'
13402 hardcode_minus_L=yes
13408 export_dynamic_flag_spec=-rdynamic
13411 cygwin* | mingw* | pw32* | cegcc*)
13412 # When not using gcc, we currently assume that we are using
13413 # Microsoft Visual C++.
13414 # hardcode_libdir_flag_spec is actually meaningless, as there is
13415 # no search path for DLLs.
13416 case $cc_basename in
13419 hardcode_libdir_flag_spec=' '
13420 allow_undefined_flag=unsupported
13421 always_export_symbols=yes
13423 # Tell ltmain to make .lib files, not .a files.
13425 # Tell ltmain to make .dll files, not .so files.
13427 # FIXME: Setting linknames here is a bad hack.
13428 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13429 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13430 cp "$export_symbols" "$output_objdir/$soname.def";
13431 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13433 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13435 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13437 # The linker will not automatically build a static lib if we build a DLL.
13438 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13439 enable_shared_with_static_runtimes=yes
13440 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13443 old_postinstall_cmds='chmod 644 $oldlib'
13444 postlink_cmds='lt_outputfile="@OUTPUT@"~
13445 lt_tool_outputfile="@TOOL_OUTPUT@"~
13446 case $lt_outputfile in
13449 lt_outputfile=$lt_outputfile.exe
13450 lt_tool_outputfile=$lt_tool_outputfile.exe
13453 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13454 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13455 $RM "$lt_outputfile.manifest";
13459 # Assume MSVC wrapper
13460 hardcode_libdir_flag_spec=' '
13461 allow_undefined_flag=unsupported
13462 # Tell ltmain to make .lib files, not .a files.
13464 # Tell ltmain to make .dll files, not .so files.
13466 # FIXME: Setting linknames here is a bad hack.
13467 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13468 # The linker will automatically build a .lib file if we build a DLL.
13469 old_archive_from_new_cmds='true'
13470 # FIXME: Should let the user specify the lib program.
13471 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13472 enable_shared_with_static_runtimes=yes
13477 darwin* | rhapsody*)
13480 archive_cmds_need_lc=no
13482 hardcode_automatic=yes
13483 hardcode_shlibpath_var=unsupported
13484 if test yes = "$lt_cv_ld_force_load"; then
13485 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\"`'
13488 whole_archive_flag_spec=''
13490 link_all_deplibs=yes
13491 allow_undefined_flag=$_lt_dar_allow_undefined
13492 case $cc_basename in
13493 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13494 *) _lt_dar_can_shared=$GCC ;;
13496 if test yes = "$_lt_dar_can_shared"; then
13497 output_verbose_link_cmd=func_echo_all
13498 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13499 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13500 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"
13501 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"
13510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13511 hardcode_libdir_flag_spec='-L$libdir'
13512 hardcode_shlibpath_var=no
13515 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13516 # support. Future versions do this automatically, but an explicit c++rt0.o
13517 # does not break anything, and helps significantly (at the cost of a little
13520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13521 hardcode_libdir_flag_spec='-R$libdir'
13522 hardcode_direct=yes
13523 hardcode_shlibpath_var=no
13526 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13529 hardcode_direct=yes
13530 hardcode_minus_L=yes
13531 hardcode_shlibpath_var=no
13534 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13535 freebsd* | dragonfly*)
13536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13537 hardcode_libdir_flag_spec='-R$libdir'
13538 hardcode_direct=yes
13539 hardcode_shlibpath_var=no
13543 if test yes = "$GCC"; then
13544 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'
13546 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'
13548 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13549 hardcode_libdir_separator=:
13550 hardcode_direct=yes
13552 # hardcode_minus_L: Not really in the search PATH,
13553 # but as the default location of the library.
13554 hardcode_minus_L=yes
13555 export_dynamic_flag_spec='$wl-E'
13559 if test yes,no = "$GCC,$with_gnu_ld"; then
13560 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13562 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13564 if test no = "$with_gnu_ld"; then
13565 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13566 hardcode_libdir_separator=:
13567 hardcode_direct=yes
13568 hardcode_direct_absolute=yes
13569 export_dynamic_flag_spec='$wl-E'
13570 # hardcode_minus_L: Not really in the search PATH,
13571 # but as the default location of the library.
13572 hardcode_minus_L=yes
13577 if test yes,no = "$GCC,$with_gnu_ld"; then
13580 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13583 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13592 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13599 # Older versions of the 11.00 compiler do not understand -b yet
13600 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13602 $as_echo_n "checking if $CC understands -b... " >&6; }
13603 if ${lt_cv_prog_compiler__b+:} false; then :
13604 $as_echo_n "(cached) " >&6
13606 lt_cv_prog_compiler__b=no
13607 save_LDFLAGS=$LDFLAGS
13608 LDFLAGS="$LDFLAGS -b"
13609 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13610 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13611 # The linker can only warn and ignore the option if not recognized
13612 # So say no if there are warnings
13613 if test -s conftest.err; then
13614 # Append any errors to the config.log.
13615 cat conftest.err 1>&5
13616 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13618 if diff conftest.exp conftest.er2 >/dev/null; then
13619 lt_cv_prog_compiler__b=yes
13622 lt_cv_prog_compiler__b=yes
13626 LDFLAGS=$save_LDFLAGS
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13630 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13632 if test yes = "$lt_cv_prog_compiler__b"; then
13633 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13641 if test no = "$with_gnu_ld"; then
13642 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13643 hardcode_libdir_separator=:
13648 hardcode_shlibpath_var=no
13651 hardcode_direct=yes
13652 hardcode_direct_absolute=yes
13653 export_dynamic_flag_spec='$wl-E'
13655 # hardcode_minus_L: Not really in the search PATH,
13656 # but as the default location of the library.
13657 hardcode_minus_L=yes
13663 irix5* | irix6* | nonstopux*)
13664 if test yes = "$GCC"; then
13665 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'
13666 # Try to use the -exported_symbol ld option, if it does not
13667 # work, assume that -exports_file does not work either and
13668 # implicitly export all symbols.
13669 # This should be the same for all languages, so no per-tag cache variable.
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13671 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13672 if ${lt_cv_irix_exported_symbol+:} false; then :
13673 $as_echo_n "(cached) " >&6
13675 save_LDFLAGS=$LDFLAGS
13676 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 int foo (void) { return 0; }
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 lt_cv_irix_exported_symbol=yes
13684 lt_cv_irix_exported_symbol=no
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 LDFLAGS=$save_LDFLAGS
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13691 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13692 if test yes = "$lt_cv_irix_exported_symbol"; then
13693 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'
13695 link_all_deplibs=no
13697 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'
13698 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'
13700 archive_cmds_need_lc='no'
13701 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13702 hardcode_libdir_separator=:
13704 link_all_deplibs=yes
13708 case $cc_basename in
13710 # Fabrice Bellard et al's Tiny C Compiler
13712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13717 netbsd* | netbsdelf*-gnu)
13718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13721 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13723 hardcode_libdir_flag_spec='-R$libdir'
13724 hardcode_direct=yes
13725 hardcode_shlibpath_var=no
13729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13730 hardcode_direct=yes
13731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13732 hardcode_libdir_separator=:
13733 hardcode_shlibpath_var=no
13739 openbsd* | bitrig*)
13740 if test -f /usr/libexec/ld.so; then
13741 hardcode_direct=yes
13742 hardcode_shlibpath_var=no
13743 hardcode_direct_absolute=yes
13744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13747 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13748 export_dynamic_flag_spec='$wl-E'
13750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13751 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13759 hardcode_libdir_flag_spec='-L$libdir'
13760 hardcode_minus_L=yes
13761 allow_undefined_flag=unsupported
13763 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13764 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13765 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13766 $ECHO EXPORTS >> $output_objdir/$libname.def~
13767 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13769 emximp -o $lib $output_objdir/$libname.def'
13770 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13773 $ECHO EXPORTS >> $output_objdir/$libname.def~
13774 prefix_cmds="$SED"~
13775 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13776 prefix_cmds="$prefix_cmds -e 1d";
13778 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13779 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13780 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13781 emximp -o $lib $output_objdir/$libname.def'
13782 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13783 enable_shared_with_static_runtimes=yes
13787 if test yes = "$GCC"; then
13788 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13789 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'
13791 allow_undefined_flag=' -expect_unresolved \*'
13792 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'
13794 archive_cmds_need_lc='no'
13795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13796 hardcode_libdir_separator=:
13799 osf4* | osf5*) # as osf3* with the addition of -msym flag
13800 if test yes = "$GCC"; then
13801 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13802 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'
13803 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13805 allow_undefined_flag=' -expect_unresolved \*'
13806 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'
13807 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~
13808 $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'
13810 # Both c and cxx compiler support -rpath directly
13811 hardcode_libdir_flag_spec='-rpath $libdir'
13813 archive_cmds_need_lc='no'
13814 hardcode_libdir_separator=:
13818 no_undefined_flag=' -z defs'
13819 if test yes = "$GCC"; then
13821 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13823 $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'
13825 case `$CC -V 2>&1` in
13828 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13830 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13834 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13836 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13840 hardcode_libdir_flag_spec='-R$libdir'
13841 hardcode_shlibpath_var=no
13843 solaris2.[0-5] | solaris2.[0-5].*) ;;
13845 # The compiler driver will combine and reorder linker options,
13846 # but understands '-z linker_flag'. GCC discards it without '$wl',
13847 # but is careful enough not to reorder.
13848 # Supported since Solaris 2.6 (maybe 2.5.1?)
13849 if test yes = "$GCC"; then
13850 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13856 link_all_deplibs=yes
13860 if test sequent = "$host_vendor"; then
13861 # Use $CC to link under sequent, because it throws in some extra .o
13862 # files that make .init and .fini sections work.
13863 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_libdir_flag_spec='-L$libdir'
13868 hardcode_direct=yes
13869 hardcode_minus_L=yes
13870 hardcode_shlibpath_var=no
13874 case $host_vendor in
13876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_direct=yes # is this really true???
13880 ## LD is ld it makes a PLAMLIB
13881 ## CC just makes a GrossModule.
13882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13883 reload_cmds='$CC -r -o $output$reload_objs'
13887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13891 runpath_var='LD_RUN_PATH'
13892 hardcode_shlibpath_var=no
13896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897 hardcode_shlibpath_var=no
13898 export_dynamic_flag_spec='-Bexport'
13902 if test -d /usr/nec; then
13903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13904 hardcode_shlibpath_var=no
13905 runpath_var=LD_RUN_PATH
13906 hardcode_runpath_var=yes
13911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13912 no_undefined_flag='$wl-z,text'
13913 archive_cmds_need_lc=no
13914 hardcode_shlibpath_var=no
13915 runpath_var='LD_RUN_PATH'
13917 if test yes = "$GCC"; then
13918 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13919 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13921 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 sysv5* | sco3.2v5* | sco5v6*)
13927 # Note: We CANNOT use -z defs as we might desire, because we do not
13928 # link with -lc, and that would cause any symbols used from libc to
13929 # always be unresolved, which means just about no library would
13930 # ever link correctly. If we're not using GNU ld we use -z text
13931 # though, which does catch some bad symbols but isn't as heavy-handed
13933 no_undefined_flag='$wl-z,text'
13934 allow_undefined_flag='$wl-z,nodefs'
13935 archive_cmds_need_lc=no
13936 hardcode_shlibpath_var=no
13937 hardcode_libdir_flag_spec='$wl-R,$libdir'
13938 hardcode_libdir_separator=':'
13939 link_all_deplibs=yes
13940 export_dynamic_flag_spec='$wl-Bexport'
13941 runpath_var='LD_RUN_PATH'
13943 if test yes = "$GCC"; then
13944 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13947 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13954 hardcode_libdir_flag_spec='-L$libdir'
13955 hardcode_shlibpath_var=no
13963 if test sni = "$host_vendor"; then
13965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13966 export_dynamic_flag_spec='$wl-Blargedynsym'
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13973 $as_echo "$ld_shlibs" >&6; }
13974 test no = "$ld_shlibs" && can_build_shared=no
13976 with_gnu_ld=$with_gnu_ld
13993 # Do we need to explicitly link libc?
13995 case "x$archive_cmds_need_lc" in
13997 # Assume -lc should be added
13998 archive_cmds_need_lc=yes
14000 if test yes,yes = "$GCC,$enable_shared"; then
14001 case $archive_cmds in
14003 # FIXME: we may have to deal with multi-command sequences.
14006 # Test whether the compiler implicitly links with -lc since on some
14007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14008 # to ld, don't add -lc before -lgcc.
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14011 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14012 $as_echo_n "(cached) " >&6
14015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14018 (eval $ac_compile) 2>&5
14020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021 test $ac_status = 0; } 2>conftest.err; then
14024 libobjs=conftest.$ac_objext
14026 wl=$lt_prog_compiler_wl
14027 pic_flag=$lt_prog_compiler_pic
14033 lt_save_allow_undefined_flag=$allow_undefined_flag
14034 allow_undefined_flag=
14035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14036 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039 test $ac_status = 0; }
14041 lt_cv_archive_cmds_need_lc=no
14043 lt_cv_archive_cmds_need_lc=yes
14045 allow_undefined_flag=$lt_save_allow_undefined_flag
14047 cat conftest.err 1>&5
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14053 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14054 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14215 if test yes = "$GCC"; then
14217 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14218 *) lt_awk_arg='/^libraries:/' ;;
14221 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14222 *) lt_sed_strip_eq='s|=/|/|g' ;;
14224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14225 case $lt_search_path_spec in
14227 # if the path contains ";" then we assume it to be the separator
14228 # otherwise default to the standard path separator (i.e. ":") - it is
14229 # assumed that no part of a normal pathname contains ";" but that should
14230 # okay in the real world where ";" in dirpaths is itself problematic.
14231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14237 # Ok, now we have the path, separated by spaces, we can step through it
14238 # and add multilib dir if necessary...
14239 lt_tmp_lt_search_path_spec=
14240 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14241 # ...but if some path component already ends with the multilib dir we assume
14242 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14243 case "$lt_multi_os_dir; $lt_search_path_spec " in
14244 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14248 for lt_sys_path in $lt_search_path_spec; do
14249 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14250 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14251 elif test -n "$lt_multi_os_dir"; then
14252 test -d "$lt_sys_path" && \
14253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14256 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14257 BEGIN {RS = " "; FS = "/|\n";} {
14260 for (lt_i = NF; lt_i > 0; lt_i--) {
14261 if ($lt_i != "" && $lt_i != ".") {
14262 if ($lt_i == "..") {
14265 if (lt_count == 0) {
14266 lt_foo = "/" $lt_i lt_foo;
14273 if (lt_foo != "") { lt_freq[lt_foo]++; }
14274 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14276 # AWK program above erroneously prepends '/' to C:/dos/paths
14279 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14280 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14282 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14284 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14286 library_names_spec=
14287 libname_spec='lib$name'
14291 postuninstall_cmds=
14295 shlibpath_overrides_runpath=unknown
14297 dynamic_linker="$host_os ld.so"
14298 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14299 need_lib_prefix=unknown
14300 hardcode_into_libs=no
14302 # when you set need_version to no, make sure it does not cause -set_version
14303 # flags to be left without arguments
14304 need_version=unknown
14310 version_type=linux # correct to gnu/linux during the next big refactor
14311 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14312 shlibpath_var=LIBPATH
14314 # AIX 3 has no versioning support, so we append a major version to the name.
14315 soname_spec='$libname$release$shared_ext$major'
14319 version_type=linux # correct to gnu/linux during the next big refactor
14322 hardcode_into_libs=yes
14323 if test ia64 = "$host_cpu"; then
14324 # AIX 5 supports IA64
14325 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14326 shlibpath_var=LD_LIBRARY_PATH
14328 # With GCC up to 2.95.x, collect2 would create an import file
14329 # for dependence libraries. The import file would start with
14330 # the line '#! .'. This would cause the generated library to
14331 # depend on '.', always an invalid library. This was fixed in
14332 # development snapshots of GCC prior to 3.0.
14334 aix4 | aix4.[01] | aix4.[01].*)
14335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14337 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14340 can_build_shared=no
14344 # Using Import Files as archive members, it is possible to support
14345 # filename-based versioning of shared library archives on AIX. While
14346 # this would work for both with and without runtime linking, it will
14347 # prevent static linking of such archives. So we do filename-based
14348 # shared library versioning with .so extension only, which is used
14349 # when both runtime linking and shared linking is enabled.
14350 # Unfortunately, runtime linking may impact performance, so we do
14351 # not want this to be the default eventually. Also, we use the
14352 # versioned .so libs for executables only if there is the -brtl
14353 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14354 # To allow for filename-based versioning support, we need to create
14355 # libNAME.so.V as an archive file, containing:
14356 # *) an Import File, referring to the versioned filename of the
14357 # archive as well as the shared archive member, telling the
14358 # bitwidth (32 or 64) of that shared object, and providing the
14359 # list of exported symbols of that shared object, eventually
14360 # decorated with the 'weak' keyword
14361 # *) the shared object with the F_LOADONLY flag set, to really avoid
14362 # it being seen by the linker.
14363 # At run time we better use the real file rather than another symlink,
14364 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14366 case $with_aix_soname,$aix_use_runtimelinking in
14367 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14368 # soname into executable. Probably we can add versioning support to
14369 # collect2, so additional links can be useful in future.
14370 aix,yes) # traditional libtool
14371 dynamic_linker='AIX unversionable lib.so'
14372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14373 # instead of lib<name>.a to let people know that these are not
14374 # typical AIX shared libraries.
14375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14377 aix,no) # traditional AIX only
14378 dynamic_linker='AIX lib.a(lib.so.V)'
14379 # We preserve .a as extension for shared libraries through AIX4.2
14380 # and later when we are not doing run time linking.
14381 library_names_spec='$libname$release.a $libname.a'
14382 soname_spec='$libname$release$shared_ext$major'
14384 svr4,*) # full svr4 only
14385 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14386 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14387 # We do not specify a path in Import Files, so LIBPATH fires.
14388 shlibpath_overrides_runpath=yes
14390 *,yes) # both, prefer svr4
14391 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14392 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14393 # unpreferred sharedlib libNAME.a needs extra handling
14394 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"'
14395 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"'
14396 # We do not specify a path in Import Files, so LIBPATH fires.
14397 shlibpath_overrides_runpath=yes
14399 *,no) # both, prefer aix
14400 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14401 library_names_spec='$libname$release.a $libname.a'
14402 soname_spec='$libname$release$shared_ext$major'
14403 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14404 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)'
14405 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"'
14408 shlibpath_var=LIBPATH
14415 # Since July 2007 AmigaOS4 officially supports .so libraries.
14416 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14420 library_names_spec='$libname.ixlibrary $libname.a'
14421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14422 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'
14428 library_names_spec='$libname$shared_ext'
14429 dynamic_linker="$host_os ld.so"
14430 shlibpath_var=LIBRARY_PATH
14434 version_type=linux # correct to gnu/linux during the next big refactor
14436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14437 soname_spec='$libname$release$shared_ext$major'
14438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14442 # the default ld.so.conf also contains /usr/contrib/lib and
14443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14444 # libtool to hard-code these into programs
14447 cygwin* | mingw* | pw32* | cegcc*)
14448 version_type=windows
14453 case $GCC,$cc_basename in
14456 library_names_spec='$libname.dll.a'
14457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14458 postinstall_cmds='base_file=`basename \$file`~
14459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14460 dldir=$destdir/`dirname \$dlpath`~
14461 test -d \$dldir || mkdir -p \$dldir~
14462 $install_prog $dir/$dlname \$dldir/$dlname~
14463 chmod a+x \$dldir/$dlname~
14464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14468 dlpath=$dir/\$dldll~
14470 shlibpath_overrides_runpath=yes
14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14475 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14477 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14480 # MinGW DLLs use traditional 'lib' prefix
14481 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14484 # pw32 DLLs use 'pw' prefix rather than 'lib'
14485 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14488 dynamic_linker='Win32 ld.exe'
14493 libname_spec='$name'
14494 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14495 library_names_spec='$libname.dll.lib'
14499 sys_lib_search_path_spec=
14502 for lt_path in $LIB
14505 # Let DOS variable expansion print the short 8.3 style file name.
14506 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14507 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14510 # Convert to MSYS style.
14511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14514 # Convert to unix form, then to dos form, then back to unix form
14515 # but this time dos style (no spaces!) so that the unix form looks
14516 # like /cygdrive/c/PROGRA~1:/cygdr...
14517 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14518 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14519 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14522 sys_lib_search_path_spec=$LIB
14523 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14524 # It is most probably a Windows format PATH.
14525 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14529 # FIXME: find the short name or the path components, as spaces are
14530 # common. (e.g. "Program Files" -> "PROGRA~1")
14534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14535 postinstall_cmds='base_file=`basename \$file`~
14536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14537 dldir=$destdir/`dirname \$dlpath`~
14538 test -d \$dldir || mkdir -p \$dldir~
14539 $install_prog $dir/$dlname \$dldir/$dlname'
14540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14541 dlpath=$dir/\$dldll~
14543 shlibpath_overrides_runpath=yes
14544 dynamic_linker='Win32 link.exe'
14548 # Assume MSVC wrapper
14549 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14550 dynamic_linker='Win32 ld.exe'
14553 # FIXME: first we should search . and the directory the executable is in
14557 darwin* | rhapsody*)
14558 dynamic_linker="$host_os dyld"
14559 version_type=darwin
14562 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14563 soname_spec='$libname$release$major$shared_ext'
14564 shlibpath_overrides_runpath=yes
14565 shlibpath_var=DYLD_LIBRARY_PATH
14566 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14573 version_type=linux # correct to gnu/linux during the next big refactor
14576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14577 soname_spec='$libname$release$shared_ext$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14581 freebsd* | dragonfly*)
14582 # DragonFly does not have aout. When/if they implement a new
14583 # versioning mechanism, adjust this.
14584 if test -x /usr/bin/objformat; then
14585 objformat=`/usr/bin/objformat`
14588 freebsd[23].*) objformat=aout ;;
14589 *) objformat=elf ;;
14592 version_type=freebsd-$objformat
14593 case $version_type in
14595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14596 soname_spec='$libname$release$shared_ext$major'
14601 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14605 shlibpath_var=LD_LIBRARY_PATH
14608 shlibpath_overrides_runpath=yes
14610 freebsd3.[01]* | freebsdelf3.[01]*)
14611 shlibpath_overrides_runpath=yes
14612 hardcode_into_libs=yes
14614 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14615 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14619 *) # from 4.6 on, and DragonFly
14620 shlibpath_overrides_runpath=yes
14621 hardcode_into_libs=yes
14627 version_type=linux # correct to gnu/linux during the next big refactor
14630 dynamic_linker="$host_os runtime_loader"
14631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14632 soname_spec='$libname$release$shared_ext$major'
14633 shlibpath_var=LIBRARY_PATH
14634 shlibpath_overrides_runpath=no
14635 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14636 hardcode_into_libs=yes
14639 hpux9* | hpux10* | hpux11*)
14640 # Give a soname corresponding to the major version so that dld.sl refuses to
14641 # link against other versions.
14648 hardcode_into_libs=yes
14649 dynamic_linker="$host_os dld.so"
14650 shlibpath_var=LD_LIBRARY_PATH
14651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14653 soname_spec='$libname$release$shared_ext$major'
14654 if test 32 = "$HPUX_IA64_MODE"; then
14655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14656 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14659 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14664 hardcode_into_libs=yes
14665 dynamic_linker="$host_os dld.sl"
14666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14669 soname_spec='$libname$release$shared_ext$major'
14670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14675 dynamic_linker="$host_os dld.sl"
14676 shlibpath_var=SHLIB_PATH
14677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14679 soname_spec='$libname$release$shared_ext$major'
14682 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14683 postinstall_cmds='chmod 555 $lib'
14684 # or fails outright, so override atomically:
14685 install_override_mode=555
14689 version_type=linux # correct to gnu/linux during the next big refactor
14692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14693 soname_spec='$libname$release$shared_ext$major'
14694 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 shlibpath_overrides_runpath=no
14697 hardcode_into_libs=yes
14700 irix5* | irix6* | nonstopux*)
14702 nonstopux*) version_type=nonstopux ;;
14704 if test yes = "$lt_cv_prog_gnu_ld"; then
14705 version_type=linux # correct to gnu/linux during the next big refactor
14712 soname_spec='$libname$release$shared_ext$major'
14713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14715 irix5* | nonstopux*)
14716 libsuff= shlibsuff=
14719 case $LD in # libtool.m4 will add one of these switches to LD
14720 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14721 libsuff= shlibsuff= libmagic=32-bit;;
14722 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14723 libsuff=32 shlibsuff=N32 libmagic=N32;;
14724 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14725 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14726 *) libsuff= shlibsuff= libmagic=never-match;;
14730 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14731 shlibpath_overrides_runpath=no
14732 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14733 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14734 hardcode_into_libs=yes
14737 # No shared lib support for Linux oldld, aout, or coff.
14738 linux*oldld* | linux*aout* | linux*coff*)
14743 version_type=none # Android doesn't support versioned libraries.
14746 library_names_spec='$libname$release$shared_ext'
14747 soname_spec='$libname$release$shared_ext'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 shlibpath_overrides_runpath=yes
14752 # This implies no fast_install, which is unacceptable.
14753 # Some rework will be needed to allow for fast_install
14754 # before this can be enabled.
14755 hardcode_into_libs=yes
14757 dynamic_linker='Android linker'
14758 # Don't embed -rpath directories since the linker doesn't support them.
14759 hardcode_libdir_flag_spec='-L$libdir'
14762 # This must be glibc/ELF.
14763 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14764 version_type=linux # correct to gnu/linux during the next big refactor
14767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14768 soname_spec='$libname$release$shared_ext$major'
14769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 shlibpath_overrides_runpath=no
14773 # Some binutils ld are patched to set DT_RUNPATH
14774 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14775 $as_echo_n "(cached) " >&6
14777 lt_cv_shlibpath_overrides_runpath=no
14778 save_LDFLAGS=$LDFLAGS
14779 save_libdir=$libdir
14780 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14781 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14792 if ac_fn_c_try_link "$LINENO"; then :
14793 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14794 lt_cv_shlibpath_overrides_runpath=yes
14797 rm -f core conftest.err conftest.$ac_objext \
14798 conftest$ac_exeext conftest.$ac_ext
14799 LDFLAGS=$save_LDFLAGS
14800 libdir=$save_libdir
14804 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14806 # This implies no fast_install, which is unacceptable.
14807 # Some rework will be needed to allow for fast_install
14808 # before this can be enabled.
14809 hardcode_into_libs=yes
14811 # Ideally, we could use ldconfig to report *all* directores which are
14812 # searched for libraries, however this is still not possible. Aside from not
14813 # being certain /sbin/ldconfig is available, command
14814 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14815 # even though it is searched at run-time. Try to do the best guess by
14816 # appending ld.so.conf contents (and includes) to the search path.
14817 if test -f /etc/ld.so.conf; then
14818 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' ' '`
14819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14822 # We used to test for /lib/ld.so.1 and disable shared libraries on
14823 # powerpc, because MkLinux only supported shared libraries with the
14824 # GNU dynamic linker. Since this was broken with cross compilers,
14825 # most powerpc-linux boxes support dynamic linking these days and
14826 # people can always --disable-shared, the test was removed, and we
14827 # assume the GNU/Linux dynamic linker is in use.
14828 dynamic_linker='GNU/Linux ld.so'
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 shlibpath_overrides_runpath=no
14839 hardcode_into_libs=yes
14840 dynamic_linker='NetBSD ld.elf_so'
14847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14848 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850 dynamic_linker='NetBSD (a.out) ld.so'
14852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14853 soname_spec='$libname$release$shared_ext$major'
14854 dynamic_linker='NetBSD ld.elf_so'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 hardcode_into_libs=yes
14862 version_type=linux # correct to gnu/linux during the next big refactor
14863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=yes
14872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14873 soname_spec='$libname$release$shared_ext$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14877 dynamic_linker='ldqnx.so'
14880 openbsd* | bitrig*)
14882 sys_lib_dlsearch_path_spec=/usr/lib
14884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14889 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 shlibpath_overrides_runpath=yes
14896 libname_spec='$name'
14897 version_type=windows
14901 # OS/2 can only load a DLL with a base name of 8 characters or less.
14902 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14903 v=$($ECHO $release$versuffix | tr -d .-);
14904 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14905 $ECHO $n$v`$shared_ext'
14906 library_names_spec='${libname}_dll.$libext'
14907 dynamic_linker='OS/2 ld.exe'
14908 shlibpath_var=BEGINLIBPATH
14909 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14911 postinstall_cmds='base_file=`basename \$file`~
14912 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14913 dldir=$destdir/`dirname \$dlpath`~
14914 test -d \$dldir || mkdir -p \$dldir~
14915 $install_prog $dir/$dlname \$dldir/$dlname~
14916 chmod a+x \$dldir/$dlname~
14917 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14918 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14920 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14921 dlpath=$dir/\$dldll~
14925 osf3* | osf4* | osf5*)
14929 soname_spec='$libname$release$shared_ext$major'
14930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14941 version_type=linux # correct to gnu/linux during the next big refactor
14944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14945 soname_spec='$libname$release$shared_ext$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 shlibpath_overrides_runpath=yes
14948 hardcode_into_libs=yes
14949 # ldd complains unless libraries are executable
14950 postinstall_cmds='chmod +x $lib'
14955 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14956 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14957 shlibpath_var=LD_LIBRARY_PATH
14958 shlibpath_overrides_runpath=yes
14959 if test yes = "$with_gnu_ld"; then
14966 version_type=linux # correct to gnu/linux during the next big refactor
14967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14968 soname_spec='$libname$release$shared_ext$major'
14969 shlibpath_var=LD_LIBRARY_PATH
14970 case $host_vendor in
14972 shlibpath_overrides_runpath=no
14974 runpath_var=LD_RUN_PATH
14982 shlibpath_overrides_runpath=no
14983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14989 if test -d /usr/nec; then
14990 version_type=linux # correct to gnu/linux during the next big refactor
14991 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14992 soname_spec='$libname$shared_ext.$major'
14993 shlibpath_var=LD_LIBRARY_PATH
14997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15002 soname_spec='$libname$release$shared_ext$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=yes
15005 hardcode_into_libs=yes
15006 if test yes = "$with_gnu_ld"; then
15007 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15009 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15012 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15016 sys_lib_dlsearch_path_spec='/usr/lib'
15020 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15021 version_type=linux # correct to gnu/linux during the next big refactor
15024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 shlibpath_overrides_runpath=no
15027 hardcode_into_libs=yes
15031 version_type=linux # correct to gnu/linux during the next big refactor
15032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15033 soname_spec='$libname$release$shared_ext$major'
15034 shlibpath_var=LD_LIBRARY_PATH
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15042 $as_echo "$dynamic_linker" >&6; }
15043 test no = "$dynamic_linker" && can_build_shared=no
15045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15046 if test yes = "$GCC"; then
15047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15050 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15051 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15054 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15055 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15058 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15059 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15061 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15062 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15064 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15065 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15166 if test -n "$hardcode_libdir_flag_spec" ||
15167 test -n "$runpath_var" ||
15168 test yes = "$hardcode_automatic"; then
15170 # We can hardcode non-existent directories.
15171 if test no != "$hardcode_direct" &&
15172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15173 # have to relink, otherwise we might link with an installed library
15174 # when we should be linking with a yet-to-be-installed one
15175 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15176 test no != "$hardcode_minus_L"; then
15177 # Linking always hardcodes the temporary library directory.
15178 hardcode_action=relink
15180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15181 hardcode_action=immediate
15184 # We cannot hardcode anything, or else we can only hardcode existing
15186 hardcode_action=unsupported
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15189 $as_echo "$hardcode_action" >&6; }
15191 if test relink = "$hardcode_action" ||
15192 test yes = "$inherit_rpath"; then
15193 # Fast installation is not supported
15194 enable_fast_install=no
15195 elif test yes = "$shlibpath_overrides_runpath" ||
15196 test no = "$enable_shared"; then
15197 # Fast installation is not necessary
15198 enable_fast_install=needless
15206 if test yes != "$enable_dlopen"; then
15207 enable_dlopen=unknown
15208 enable_dlopen_self=unknown
15209 enable_dlopen_self_static=unknown
15216 lt_cv_dlopen=load_add_on
15218 lt_cv_dlopen_self=yes
15221 mingw* | pw32* | cegcc*)
15222 lt_cv_dlopen=LoadLibrary
15227 lt_cv_dlopen=dlopen
15232 # if libdl is installed we need to link against it
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15235 if ${ac_cv_lib_dl_dlopen+:} false; then :
15236 $as_echo_n "(cached) " >&6
15238 ac_check_lib_save_LIBS=$LIBS
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15255 if ac_fn_c_try_link "$LINENO"; then :
15256 ac_cv_lib_dl_dlopen=yes
15258 ac_cv_lib_dl_dlopen=no
15260 rm -f core conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$ac_check_lib_save_LIBS
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15266 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15267 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15272 lt_cv_dlopen_self=yes
15279 # Don't try to run any link tests for TPF. We know it's impossible
15280 # because TPF is a cross-compiler, and we know how we open DSOs.
15281 lt_cv_dlopen=dlopen
15283 lt_cv_dlopen_self=no
15287 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15288 if test "x$ac_cv_func_shl_load" = xyes; then :
15289 lt_cv_dlopen=shl_load
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15293 if ${ac_cv_lib_dld_shl_load+:} false; then :
15294 $as_echo_n "(cached) " >&6
15296 ac_check_lib_save_LIBS=$LIBS
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15308 return shl_load ();
15313 if ac_fn_c_try_link "$LINENO"; then :
15314 ac_cv_lib_dld_shl_load=yes
15316 ac_cv_lib_dld_shl_load=no
15318 rm -f core conftest.err conftest.$ac_objext \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_check_lib_save_LIBS
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15323 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15324 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15325 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15327 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15328 if test "x$ac_cv_func_dlopen" = xyes; then :
15329 lt_cv_dlopen=dlopen
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15332 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15333 if ${ac_cv_lib_dl_dlopen+:} false; then :
15334 $as_echo_n "(cached) " >&6
15336 ac_check_lib_save_LIBS=$LIBS
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15353 if ac_fn_c_try_link "$LINENO"; then :
15354 ac_cv_lib_dl_dlopen=yes
15356 ac_cv_lib_dl_dlopen=no
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15363 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15364 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15365 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15368 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15369 if ${ac_cv_lib_svld_dlopen+:} false; then :
15370 $as_echo_n "(cached) " >&6
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lsvld $LIBS"
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15389 if ac_fn_c_try_link "$LINENO"; then :
15390 ac_cv_lib_svld_dlopen=yes
15392 ac_cv_lib_svld_dlopen=no
15394 rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15396 LIBS=$ac_check_lib_save_LIBS
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15399 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15400 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15401 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15404 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15405 if ${ac_cv_lib_dld_dld_link+:} false; then :
15406 $as_echo_n "(cached) " >&6
15408 ac_check_lib_save_LIBS=$LIBS
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15420 return dld_link ();
15425 if ac_fn_c_try_link "$LINENO"; then :
15426 ac_cv_lib_dld_dld_link=yes
15428 ac_cv_lib_dld_dld_link=no
15430 rm -f core conftest.err conftest.$ac_objext \
15431 conftest$ac_exeext conftest.$ac_ext
15432 LIBS=$ac_check_lib_save_LIBS
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15436 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15437 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15458 if test no = "$lt_cv_dlopen"; then
15464 case $lt_cv_dlopen in
15466 save_CPPFLAGS=$CPPFLAGS
15467 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15469 save_LDFLAGS=$LDFLAGS
15470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15473 LIBS="$lt_cv_dlopen_libs $LIBS"
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15476 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15477 if ${lt_cv_dlopen_self+:} false; then :
15478 $as_echo_n "(cached) " >&6
15480 if test yes = "$cross_compiling"; then :
15481 lt_cv_dlopen_self=cross
15483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15484 lt_status=$lt_dlunknown
15485 cat > conftest.$ac_ext <<_LT_EOF
15486 #line $LINENO "configure"
15487 #include "confdefs.h"
15496 # define LT_DLGLOBAL RTLD_GLOBAL
15499 # define LT_DLGLOBAL DL_GLOBAL
15501 # define LT_DLGLOBAL 0
15505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15506 find out it does not work in some platform. */
15507 #ifndef LT_DLLAZY_OR_NOW
15509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15512 # define LT_DLLAZY_OR_NOW DL_LAZY
15515 # define LT_DLLAZY_OR_NOW RTLD_NOW
15518 # define LT_DLLAZY_OR_NOW DL_NOW
15520 # define LT_DLLAZY_OR_NOW 0
15527 /* When -fvisibility=hidden is used, assume the code has been annotated
15528 correspondingly for the symbols needed. */
15529 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15530 int fnord () __attribute__((visibility("default")));
15533 int fnord () { return 42; }
15536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15537 int status = $lt_dlunknown;
15541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15545 else puts (dlerror ());
15547 /* dlclose (self); */
15555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15556 (eval $ac_link) 2>&5
15558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15559 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15560 (./conftest; exit; ) >&5 2>/dev/null
15562 case x$lt_status in
15563 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15564 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15565 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15568 # compilation failed
15569 lt_cv_dlopen_self=no
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15577 $as_echo "$lt_cv_dlopen_self" >&6; }
15579 if test yes = "$lt_cv_dlopen_self"; then
15580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15582 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15583 if ${lt_cv_dlopen_self_static+:} false; then :
15584 $as_echo_n "(cached) " >&6
15586 if test yes = "$cross_compiling"; then :
15587 lt_cv_dlopen_self_static=cross
15589 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15590 lt_status=$lt_dlunknown
15591 cat > conftest.$ac_ext <<_LT_EOF
15592 #line $LINENO "configure"
15593 #include "confdefs.h"
15602 # define LT_DLGLOBAL RTLD_GLOBAL
15605 # define LT_DLGLOBAL DL_GLOBAL
15607 # define LT_DLGLOBAL 0
15611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15612 find out it does not work in some platform. */
15613 #ifndef LT_DLLAZY_OR_NOW
15615 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15618 # define LT_DLLAZY_OR_NOW DL_LAZY
15621 # define LT_DLLAZY_OR_NOW RTLD_NOW
15624 # define LT_DLLAZY_OR_NOW DL_NOW
15626 # define LT_DLLAZY_OR_NOW 0
15633 /* When -fvisibility=hidden is used, assume the code has been annotated
15634 correspondingly for the symbols needed. */
15635 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15636 int fnord () __attribute__((visibility("default")));
15639 int fnord () { return 42; }
15642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15643 int status = $lt_dlunknown;
15647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15650 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15651 else puts (dlerror ());
15653 /* dlclose (self); */
15661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15662 (eval $ac_link) 2>&5
15664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15665 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15666 (./conftest; exit; ) >&5 2>/dev/null
15668 case x$lt_status in
15669 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15670 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15671 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15674 # compilation failed
15675 lt_cv_dlopen_self_static=no
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15683 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15686 CPPFLAGS=$save_CPPFLAGS
15687 LDFLAGS=$save_LDFLAGS
15692 case $lt_cv_dlopen_self in
15693 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15694 *) enable_dlopen_self=unknown ;;
15697 case $lt_cv_dlopen_self_static in
15698 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15699 *) enable_dlopen_self_static=unknown ;;
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15722 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15723 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15724 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15725 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15727 $as_echo "yes" >&6; }
15729 # FIXME - insert some real tests, host_os isn't really good enough
15732 if test -n "$STRIP"; then
15733 striplib="$STRIP -x"
15734 old_striplib="$STRIP -S"
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15736 $as_echo "yes" >&6; }
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15739 $as_echo "no" >&6; }
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15760 # Report what library types will actually be built
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15762 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15764 $as_echo "$can_build_shared" >&6; }
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15767 $as_echo_n "checking whether to build shared libraries... " >&6; }
15768 test no = "$can_build_shared" && enable_shared=no
15770 # On AIX, shared libraries and static libraries use the same namespace, and
15771 # are all built from PIC.
15774 test yes = "$enable_shared" && enable_static=no
15775 if test -n "$RANLIB"; then
15776 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15777 postinstall_cmds='$RANLIB $lib'
15782 if test ia64 != "$host_cpu"; then
15783 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15784 yes,aix,yes) ;; # shared object as lib.so file only
15785 yes,svr4,*) ;; # shared object as lib.so archive member only
15786 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15792 $as_echo "$enable_shared" >&6; }
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15795 $as_echo_n "checking whether to build static libraries... " >&6; }
15796 # Make sure either enable_shared or enable_static is yes.
15797 test yes = "$enable_shared" || enable_static=yes
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15799 $as_echo "$enable_static" >&6; }
15806 ac_cpp='$CPP $CPPFLAGS'
15807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15827 ac_config_commands="$ac_config_commands libtool"
15832 # Only expand once:
15835 ## --------------------- ##
15836 ## End of libtool code ##
15837 ## --------------------- ##
15840 # Verify if finally libtool shared libraries will be built
15843 case "x$enable_shared" in # ((
15845 xc_lt_build_shared=$enable_shared
15848 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15853 # Verify if finally libtool static libraries will be built
15856 case "x$enable_static" in # ((
15858 xc_lt_build_static=$enable_static
15861 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15866 # Verify if libtool shared libraries should be linked using flag -version-info
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15870 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15871 xc_lt_shlib_use_version_info='yes'
15872 if test "x$version_type" = 'xnone'; then
15873 xc_lt_shlib_use_version_info='no'
15875 case $host_os in # (
15877 xc_lt_shlib_use_version_info='yes'
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15881 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15884 # Verify if libtool shared libraries should be linked using flag -no-undefined
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15888 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15889 xc_lt_shlib_use_no_undefined='no'
15890 if test "x$allow_undefined" = 'xno'; then
15891 xc_lt_shlib_use_no_undefined='yes'
15892 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15893 xc_lt_shlib_use_no_undefined='yes'
15895 case $host_os in # (
15896 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15897 xc_lt_shlib_use_no_undefined='yes'
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15901 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15904 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15908 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15909 xc_lt_shlib_use_mimpure_text='no'
15910 case $host_os in # (
15912 if test "x$GCC" = 'xyes'; then
15913 xc_lt_shlib_use_mimpure_text='yes'
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15918 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15921 # Find out wether libtool libraries would be built wit PIC
15924 case "x$pic_mode" in # ((((
15926 xc_lt_build_shared_with_pic='yes'
15927 xc_lt_build_static_with_pic='no'
15930 xc_lt_build_shared_with_pic='yes'
15931 xc_lt_build_static_with_pic='yes'
15934 xc_lt_build_shared_with_pic='no'
15935 xc_lt_build_static_with_pic='no'
15938 xc_lt_build_shared_with_pic='unknown'
15939 xc_lt_build_static_with_pic='unknown'
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15941 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15945 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15947 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15949 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15951 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15954 # Verify if libtool shared libraries will be built while static not built
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15958 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15959 if test "$xc_lt_build_shared" = 'yes' &&
15960 test "$xc_lt_build_static" = 'no'; then
15961 xc_lt_build_shared_only='yes'
15963 xc_lt_build_shared_only='no'
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15966 $as_echo "$xc_lt_build_shared_only" >&6; }
15969 # Verify if libtool static libraries will be built while shared not built
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15973 $as_echo_n "checking whether to build static libraries only... " >&6; }
15974 if test "$xc_lt_build_static" = 'yes' &&
15975 test "$xc_lt_build_shared" = 'no'; then
15976 xc_lt_build_static_only='yes'
15978 xc_lt_build_static_only='no'
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15981 $as_echo "$xc_lt_build_static_only" >&6; }
15987 # Automake conditionals based on libtool related checks
15990 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15991 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15992 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15994 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15995 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15998 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15999 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16000 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16002 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16003 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16006 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16007 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16008 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16010 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16011 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16016 # Due to libtool and automake machinery limitations of not allowing
16017 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16018 # inclusion of these in shared or static libraries, we are forced to
16019 # build using separate configure runs for shared and static libraries
16020 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16021 # to compile objects for each kind of library. Notice that relying on
16022 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16023 # user might for example choose to build static libraries with PIC.
16027 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16028 # targeting a static library and not building its shared counterpart.
16031 if test "x$xc_lt_build_static_only" = 'xyes'; then
16032 USE_CPPFLAG_CURL_STATICLIB_TRUE=
16033 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16035 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16036 USE_CPPFLAG_CURL_STATICLIB_FALSE=
16041 # Make staticlib CPPFLAG variable and its definition visible in output
16042 # files unconditionally, providing an empty definition unless strictly
16043 # targeting a static library and not building its shared counterpart.
16046 CPPFLAG_CURL_STATICLIB=
16047 if test "x$xc_lt_build_static_only" = 'xyes'; then
16048 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16053 # Determine whether all dependent libraries must be specified when linking
16054 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16056 REQUIRE_LIB_DEPS=no
16058 REQUIRE_LIB_DEPS=yes
16061 if test x$REQUIRE_LIB_DEPS = xyes; then
16062 USE_EXPLICIT_LIB_DEPS_TRUE=
16063 USE_EXPLICIT_LIB_DEPS_FALSE='#'
16065 USE_EXPLICIT_LIB_DEPS_TRUE='#'
16066 USE_EXPLICIT_LIB_DEPS_FALSE=
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16071 $as_echo_n "checking for inline... " >&6; }
16072 if ${ac_cv_c_inline+:} false; then :
16073 $as_echo_n "(cached) " >&6
16076 for ac_kw in inline __inline__ __inline; do
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079 #ifndef __cplusplus
16081 static $ac_kw foo_t static_foo () {return 0; }
16082 $ac_kw foo_t foo () {return 0; }
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087 ac_cv_c_inline=$ac_kw
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 test "$ac_cv_c_inline" != no && break
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16095 $as_echo "$ac_cv_c_inline" >&6; }
16097 case $ac_cv_c_inline in
16100 case $ac_cv_c_inline in
16102 *) ac_val=$ac_cv_c_inline;;
16104 cat >>confdefs.h <<_ACEOF
16105 #ifndef __cplusplus
16106 #define inline $ac_val
16116 compiler_id="unknown"
16119 flags_dbg_all="unknown"
16120 flags_dbg_yes="unknown"
16121 flags_dbg_off="unknown"
16122 flags_opt_all="unknown"
16123 flags_opt_yes="unknown"
16124 flags_opt_off="unknown"
16126 flags_prefer_cppflags="no"
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16130 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16132 OLDCPPFLAGS=$CPPFLAGS
16133 # CPPPFLAGS comes from CURL_CPP_P
16134 CPPFLAGS="$CPPPFLAGS"
16135 if test -z "$SED"; then
16136 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16138 if test -z "$GREP"; then
16139 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16148 CURL_DEF_TOKEN __DECC
16153 if ac_fn_c_try_cpp "$LINENO"; then :
16155 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16156 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16157 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16158 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16159 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16164 rm -f conftest.err conftest.i conftest.$ac_ext
16165 if test -z "$tmp_exp"; then
16166 curl_cv_have_def___DECC=no
16169 curl_cv_have_def___DECC=yes
16170 curl_cv_def___DECC=$tmp_exp
16173 CPPFLAGS=$OLDCPPFLAGS
16176 OLDCPPFLAGS=$CPPFLAGS
16177 # CPPPFLAGS comes from CURL_CPP_P
16178 CPPFLAGS="$CPPPFLAGS"
16179 if test -z "$SED"; then
16180 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16182 if test -z "$GREP"; then
16183 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16192 CURL_DEF_TOKEN __DECC_VER
16197 if ac_fn_c_try_cpp "$LINENO"; then :
16199 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16200 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16201 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16202 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16203 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16208 rm -f conftest.err conftest.i conftest.$ac_ext
16209 if test -z "$tmp_exp"; then
16210 curl_cv_have_def___DECC_VER=no
16213 curl_cv_have_def___DECC_VER=yes
16214 curl_cv_def___DECC_VER=$tmp_exp
16217 CPPFLAGS=$OLDCPPFLAGS
16219 if test "$curl_cv_have_def___DECC" = "yes" &&
16220 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16222 $as_echo "yes" >&6; }
16223 compiler_id="DEC_C"
16224 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16225 flags_dbg_yes="-g2"
16227 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16228 flags_opt_yes="-O1"
16229 flags_opt_off="-O0"
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16232 $as_echo "no" >&6; }
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16237 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16239 OLDCPPFLAGS=$CPPFLAGS
16240 # CPPPFLAGS comes from CURL_CPP_P
16241 CPPFLAGS="$CPPPFLAGS"
16242 if test -z "$SED"; then
16243 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16245 if test -z "$GREP"; then
16246 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16255 CURL_DEF_TOKEN __HP_cc
16260 if ac_fn_c_try_cpp "$LINENO"; then :
16262 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16263 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16264 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16265 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16266 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16271 rm -f conftest.err conftest.i conftest.$ac_ext
16272 if test -z "$tmp_exp"; then
16273 curl_cv_have_def___HP_cc=no
16276 curl_cv_have_def___HP_cc=yes
16277 curl_cv_def___HP_cc=$tmp_exp
16280 CPPFLAGS=$OLDCPPFLAGS
16282 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16284 $as_echo "yes" >&6; }
16285 compiler_id="HP_UX_C"
16286 flags_dbg_all="-g -s"
16289 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16290 flags_opt_yes="+O2"
16291 flags_opt_off="+O0"
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294 $as_echo "no" >&6; }
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16299 $as_echo_n "checking if compiler is IBM C... " >&6; }
16301 OLDCPPFLAGS=$CPPFLAGS
16302 # CPPPFLAGS comes from CURL_CPP_P
16303 CPPFLAGS="$CPPPFLAGS"
16304 if test -z "$SED"; then
16305 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16307 if test -z "$GREP"; then
16308 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16317 CURL_DEF_TOKEN __IBMC__
16322 if ac_fn_c_try_cpp "$LINENO"; then :
16324 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16325 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16326 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16327 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16328 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16333 rm -f conftest.err conftest.i conftest.$ac_ext
16334 if test -z "$tmp_exp"; then
16335 curl_cv_have_def___IBMC__=no
16338 curl_cv_have_def___IBMC__=yes
16339 curl_cv_def___IBMC__=$tmp_exp
16342 CPPFLAGS=$OLDCPPFLAGS
16344 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16347 compiler_id="IBM_C"
16348 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16351 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16352 flags_opt_all="$flags_opt_all -qnooptimize"
16353 flags_opt_all="$flags_opt_all -qoptimize=0"
16354 flags_opt_all="$flags_opt_all -qoptimize=1"
16355 flags_opt_all="$flags_opt_all -qoptimize=2"
16356 flags_opt_all="$flags_opt_all -qoptimize=3"
16357 flags_opt_all="$flags_opt_all -qoptimize=4"
16358 flags_opt_all="$flags_opt_all -qoptimize=5"
16359 flags_opt_yes="-O2"
16360 flags_opt_off="-qnooptimize"
16361 flags_prefer_cppflags="yes"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16364 $as_echo "no" >&6; }
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16369 $as_echo_n "checking if compiler is Intel C... " >&6; }
16371 OLDCPPFLAGS=$CPPFLAGS
16372 # CPPPFLAGS comes from CURL_CPP_P
16373 CPPFLAGS="$CPPPFLAGS"
16374 if test -z "$SED"; then
16375 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16377 if test -z "$GREP"; then
16378 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16386 #ifdef __INTEL_COMPILER
16387 CURL_DEF_TOKEN __INTEL_COMPILER
16392 if ac_fn_c_try_cpp "$LINENO"; then :
16394 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16395 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16396 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16397 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16398 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16403 rm -f conftest.err conftest.i conftest.$ac_ext
16404 if test -z "$tmp_exp"; then
16405 curl_cv_have_def___INTEL_COMPILER=no
16408 curl_cv_have_def___INTEL_COMPILER=yes
16409 curl_cv_def___INTEL_COMPILER=$tmp_exp
16412 CPPFLAGS=$OLDCPPFLAGS
16414 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16416 $as_echo "yes" >&6; }
16417 compiler_num="$curl_cv_def___INTEL_COMPILER"
16419 OLDCPPFLAGS=$CPPFLAGS
16420 # CPPPFLAGS comes from CURL_CPP_P
16421 CPPFLAGS="$CPPPFLAGS"
16422 if test -z "$SED"; then
16423 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16425 if test -z "$GREP"; then
16426 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16435 CURL_DEF_TOKEN __unix__
16440 if ac_fn_c_try_cpp "$LINENO"; then :
16442 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16443 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16444 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16445 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16446 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16451 rm -f conftest.err conftest.i conftest.$ac_ext
16452 if test -z "$tmp_exp"; then
16453 curl_cv_have_def___unix__=no
16456 curl_cv_have_def___unix__=yes
16457 curl_cv_def___unix__=$tmp_exp
16460 CPPFLAGS=$OLDCPPFLAGS
16462 if test "$curl_cv_have_def___unix__" = "yes"; then
16463 compiler_id="INTEL_UNIX_C"
16464 flags_dbg_all="-g -g0"
16467 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16468 flags_opt_yes="-O2"
16469 flags_opt_off="-O0"
16471 compiler_id="INTEL_WINDOWS_C"
16472 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16473 flags_dbg_all="$flags_dbg_all /debug"
16474 flags_dbg_all="$flags_dbg_all /debug:none"
16475 flags_dbg_all="$flags_dbg_all /debug:minimal"
16476 flags_dbg_all="$flags_dbg_all /debug:partial"
16477 flags_dbg_all="$flags_dbg_all /debug:full"
16478 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16479 flags_dbg_all="$flags_dbg_all /debug:extended"
16480 flags_dbg_yes="/Zi /Oy-"
16481 flags_dbg_off="/debug:none /Oy-"
16482 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16483 flags_opt_yes="/O2"
16484 flags_opt_off="/Od"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16488 $as_echo "no" >&6; }
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16493 $as_echo_n "checking if compiler is clang... " >&6; }
16495 OLDCPPFLAGS=$CPPFLAGS
16496 # CPPPFLAGS comes from CURL_CPP_P
16497 CPPFLAGS="$CPPPFLAGS"
16498 if test -z "$SED"; then
16499 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16501 if test -z "$GREP"; then
16502 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16511 CURL_DEF_TOKEN __clang__
16516 if ac_fn_c_try_cpp "$LINENO"; then :
16518 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16519 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16520 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16521 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16522 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16527 rm -f conftest.err conftest.i conftest.$ac_ext
16528 if test -z "$tmp_exp"; then
16529 curl_cv_have_def___clang__=no
16532 curl_cv_have_def___clang__=yes
16533 curl_cv_def___clang__=$tmp_exp
16536 CPPFLAGS=$OLDCPPFLAGS
16538 if test "$curl_cv_have_def___clang__" = "yes"; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16540 $as_echo "yes" >&6; }
16541 compiler_id="CLANG"
16542 clangver=`$CC -dumpversion`
16543 clangvhi=`echo $clangver | cut -d . -f1`
16544 clangvlo=`echo $clangver | cut -d . -f2`
16545 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16546 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16547 flags_dbg_all="$flags_dbg_all -ggdb"
16548 flags_dbg_all="$flags_dbg_all -gstabs"
16549 flags_dbg_all="$flags_dbg_all -gstabs+"
16550 flags_dbg_all="$flags_dbg_all -gcoff"
16551 flags_dbg_all="$flags_dbg_all -gxcoff"
16552 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16553 flags_dbg_all="$flags_dbg_all -gvms"
16556 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16557 flags_opt_yes="-Os"
16558 flags_opt_off="-O0"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561 $as_echo "no" >&6; }
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16566 $as_echo_n "checking if compiler is GNU C... " >&6; }
16568 OLDCPPFLAGS=$CPPFLAGS
16569 # CPPPFLAGS comes from CURL_CPP_P
16570 CPPFLAGS="$CPPPFLAGS"
16571 if test -z "$SED"; then
16572 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16574 if test -z "$GREP"; then
16575 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16584 CURL_DEF_TOKEN __GNUC__
16589 if ac_fn_c_try_cpp "$LINENO"; then :
16591 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16592 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16593 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16594 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16595 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16600 rm -f conftest.err conftest.i conftest.$ac_ext
16601 if test -z "$tmp_exp"; then
16602 curl_cv_have_def___GNUC__=no
16605 curl_cv_have_def___GNUC__=yes
16606 curl_cv_def___GNUC__=$tmp_exp
16609 CPPFLAGS=$OLDCPPFLAGS
16611 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16612 test "$compiler_id" = "unknown"; then
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16614 $as_echo "yes" >&6; }
16615 compiler_id="GNU_C"
16616 gccver=`$CC -dumpversion`
16617 gccvhi=`echo $gccver | cut -d . -f1`
16618 gccvlo=`echo $gccver | cut -d . -f2`
16619 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16620 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16621 flags_dbg_all="$flags_dbg_all -ggdb"
16622 flags_dbg_all="$flags_dbg_all -gstabs"
16623 flags_dbg_all="$flags_dbg_all -gstabs+"
16624 flags_dbg_all="$flags_dbg_all -gcoff"
16625 flags_dbg_all="$flags_dbg_all -gxcoff"
16626 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16627 flags_dbg_all="$flags_dbg_all -gvms"
16630 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16631 flags_opt_yes="-O2"
16632 flags_opt_off="-O0"
16634 OLDCPPFLAGS=$CPPFLAGS
16635 # CPPPFLAGS comes from CURL_CPP_P
16636 CPPFLAGS="$CPPPFLAGS"
16637 if test -z "$SED"; then
16638 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16640 if test -z "$GREP"; then
16641 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16650 CURL_DEF_TOKEN _WIN32
16655 if ac_fn_c_try_cpp "$LINENO"; then :
16657 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16658 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16659 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16660 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16661 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16666 rm -f conftest.err conftest.i conftest.$ac_ext
16667 if test -z "$tmp_exp"; then
16668 curl_cv_have_def__WIN32=no
16671 curl_cv_have_def__WIN32=yes
16672 curl_cv_def__WIN32=$tmp_exp
16675 CPPFLAGS=$OLDCPPFLAGS
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16679 $as_echo "no" >&6; }
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16684 $as_echo_n "checking if compiler is LCC... " >&6; }
16686 OLDCPPFLAGS=$CPPFLAGS
16687 # CPPPFLAGS comes from CURL_CPP_P
16688 CPPFLAGS="$CPPPFLAGS"
16689 if test -z "$SED"; then
16690 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16692 if test -z "$GREP"; then
16693 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16702 CURL_DEF_TOKEN __LCC__
16707 if ac_fn_c_try_cpp "$LINENO"; then :
16709 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16710 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16711 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16712 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16713 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16718 rm -f conftest.err conftest.i conftest.$ac_ext
16719 if test -z "$tmp_exp"; then
16720 curl_cv_have_def___LCC__=no
16723 curl_cv_have_def___LCC__=yes
16724 curl_cv_def___LCC__=$tmp_exp
16727 CPPFLAGS=$OLDCPPFLAGS
16729 if test "$curl_cv_have_def___LCC__" = "yes"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16731 $as_echo "yes" >&6; }
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16746 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16748 OLDCPPFLAGS=$CPPFLAGS
16749 # CPPPFLAGS comes from CURL_CPP_P
16750 CPPFLAGS="$CPPPFLAGS"
16751 if test -z "$SED"; then
16752 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16754 if test -z "$GREP"; then
16755 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16764 CURL_DEF_TOKEN __GNUC__
16769 if ac_fn_c_try_cpp "$LINENO"; then :
16771 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16772 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16773 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16774 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16775 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16780 rm -f conftest.err conftest.i conftest.$ac_ext
16781 if test -z "$tmp_exp"; then
16782 curl_cv_have_def___GNUC__=no
16785 curl_cv_have_def___GNUC__=yes
16786 curl_cv_def___GNUC__=$tmp_exp
16789 CPPFLAGS=$OLDCPPFLAGS
16792 OLDCPPFLAGS=$CPPFLAGS
16793 # CPPPFLAGS comes from CURL_CPP_P
16794 CPPFLAGS="$CPPPFLAGS"
16795 if test -z "$SED"; then
16796 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16798 if test -z "$GREP"; then
16799 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16807 #ifdef _COMPILER_VERSION
16808 CURL_DEF_TOKEN _COMPILER_VERSION
16813 if ac_fn_c_try_cpp "$LINENO"; then :
16815 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16816 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16817 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16818 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16819 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16824 rm -f conftest.err conftest.i conftest.$ac_ext
16825 if test -z "$tmp_exp"; then
16826 curl_cv_have_def__COMPILER_VERSION=no
16829 curl_cv_have_def__COMPILER_VERSION=yes
16830 curl_cv_def__COMPILER_VERSION=$tmp_exp
16833 CPPFLAGS=$OLDCPPFLAGS
16836 OLDCPPFLAGS=$CPPFLAGS
16837 # CPPPFLAGS comes from CURL_CPP_P
16838 CPPFLAGS="$CPPPFLAGS"
16839 if test -z "$SED"; then
16840 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16842 if test -z "$GREP"; then
16843 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16851 #ifdef _SGI_COMPILER_VERSION
16852 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16857 if ac_fn_c_try_cpp "$LINENO"; then :
16859 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16860 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16861 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16862 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16863 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16868 rm -f conftest.err conftest.i conftest.$ac_ext
16869 if test -z "$tmp_exp"; then
16870 curl_cv_have_def__SGI_COMPILER_VERSION=no
16873 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16874 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16877 CPPFLAGS=$OLDCPPFLAGS
16879 if test "$curl_cv_have_def___GNUC__" = "no" &&
16880 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16881 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16883 $as_echo "yes" >&6; }
16884 compiler_id="SGI_MIPSPRO_C"
16885 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16888 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16889 flags_opt_yes="-O2"
16890 flags_opt_off="-O0"
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; }
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16898 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16900 OLDCPPFLAGS=$CPPFLAGS
16901 # CPPPFLAGS comes from CURL_CPP_P
16902 CPPFLAGS="$CPPPFLAGS"
16903 if test -z "$SED"; then
16904 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16906 if test -z "$GREP"; then
16907 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16916 CURL_DEF_TOKEN __GNUC__
16921 if ac_fn_c_try_cpp "$LINENO"; then :
16923 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16924 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16925 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16926 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16927 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16932 rm -f conftest.err conftest.i conftest.$ac_ext
16933 if test -z "$tmp_exp"; then
16934 curl_cv_have_def___GNUC__=no
16937 curl_cv_have_def___GNUC__=yes
16938 curl_cv_def___GNUC__=$tmp_exp
16941 CPPFLAGS=$OLDCPPFLAGS
16944 OLDCPPFLAGS=$CPPFLAGS
16945 # CPPPFLAGS comes from CURL_CPP_P
16946 CPPFLAGS="$CPPPFLAGS"
16947 if test -z "$SED"; then
16948 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16950 if test -z "$GREP"; then
16951 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16960 CURL_DEF_TOKEN __sgi
16965 if ac_fn_c_try_cpp "$LINENO"; then :
16967 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16968 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16969 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16970 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16971 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16976 rm -f conftest.err conftest.i conftest.$ac_ext
16977 if test -z "$tmp_exp"; then
16978 curl_cv_have_def___sgi=no
16981 curl_cv_have_def___sgi=yes
16982 curl_cv_def___sgi=$tmp_exp
16985 CPPFLAGS=$OLDCPPFLAGS
16987 if test "$curl_cv_have_def___GNUC__" = "no" &&
16988 test "$curl_cv_have_def___sgi" = "yes" &&
16989 test "$compiler_id" = "unknown"; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16991 $as_echo "yes" >&6; }
16992 compiler_id="SGI_MIPS_C"
16993 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16996 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16997 flags_opt_yes="-O2"
16998 flags_opt_off="-O0"
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001 $as_echo "no" >&6; }
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17006 $as_echo_n "checking if compiler is SunPro C... " >&6; }
17008 OLDCPPFLAGS=$CPPFLAGS
17009 # CPPPFLAGS comes from CURL_CPP_P
17010 CPPFLAGS="$CPPPFLAGS"
17011 if test -z "$SED"; then
17012 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17014 if test -z "$GREP"; then
17015 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17024 CURL_DEF_TOKEN __SUNPRO_C
17029 if ac_fn_c_try_cpp "$LINENO"; then :
17031 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17032 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17033 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17034 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17035 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17040 rm -f conftest.err conftest.i conftest.$ac_ext
17041 if test -z "$tmp_exp"; then
17042 curl_cv_have_def___SUNPRO_C=no
17045 curl_cv_have_def___SUNPRO_C=yes
17046 curl_cv_def___SUNPRO_C=$tmp_exp
17049 CPPFLAGS=$OLDCPPFLAGS
17051 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17053 $as_echo "yes" >&6; }
17054 compiler_id="SUNPRO_C"
17055 flags_dbg_all="-g -s"
17058 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17059 flags_opt_yes="-xO2"
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17068 $as_echo_n "checking if compiler is Tiny C... " >&6; }
17070 OLDCPPFLAGS=$CPPFLAGS
17071 # CPPPFLAGS comes from CURL_CPP_P
17072 CPPFLAGS="$CPPPFLAGS"
17073 if test -z "$SED"; then
17074 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17076 if test -z "$GREP"; then
17077 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17086 CURL_DEF_TOKEN __TINYC__
17091 if ac_fn_c_try_cpp "$LINENO"; then :
17093 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17094 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17095 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17096 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17097 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17102 rm -f conftest.err conftest.i conftest.$ac_ext
17103 if test -z "$tmp_exp"; then
17104 curl_cv_have_def___TINYC__=no
17107 curl_cv_have_def___TINYC__=yes
17108 curl_cv_def___TINYC__=$tmp_exp
17111 CPPFLAGS=$OLDCPPFLAGS
17113 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17115 $as_echo "yes" >&6; }
17116 compiler_id="TINY_C"
17117 flags_dbg_all="-g -b"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125 $as_echo "no" >&6; }
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17130 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17132 OLDCPPFLAGS=$CPPFLAGS
17133 # CPPPFLAGS comes from CURL_CPP_P
17134 CPPFLAGS="$CPPPFLAGS"
17135 if test -z "$SED"; then
17136 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17138 if test -z "$GREP"; then
17139 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17148 CURL_DEF_TOKEN __WATCOMC__
17153 if ac_fn_c_try_cpp "$LINENO"; then :
17155 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17156 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17157 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17158 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17159 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17164 rm -f conftest.err conftest.i conftest.$ac_ext
17165 if test -z "$tmp_exp"; then
17166 curl_cv_have_def___WATCOMC__=no
17169 curl_cv_have_def___WATCOMC__=yes
17170 curl_cv_def___WATCOMC__=$tmp_exp
17173 CPPFLAGS=$OLDCPPFLAGS
17175 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17177 $as_echo "yes" >&6; }
17179 OLDCPPFLAGS=$CPPFLAGS
17180 # CPPPFLAGS comes from CURL_CPP_P
17181 CPPFLAGS="$CPPPFLAGS"
17182 if test -z "$SED"; then
17183 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17185 if test -z "$GREP"; then
17186 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17195 CURL_DEF_TOKEN __UNIX__
17200 if ac_fn_c_try_cpp "$LINENO"; then :
17202 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17203 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17204 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17205 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17206 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17211 rm -f conftest.err conftest.i conftest.$ac_ext
17212 if test -z "$tmp_exp"; then
17213 curl_cv_have_def___UNIX__=no
17216 curl_cv_have_def___UNIX__=yes
17217 curl_cv_def___UNIX__=$tmp_exp
17220 CPPFLAGS=$OLDCPPFLAGS
17222 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17223 compiler_id="WATCOM_UNIX_C"
17224 flags_dbg_all="-g1 -g1+ -g2 -g3"
17225 flags_dbg_yes="-g2"
17227 flags_opt_all="-O0 -O1 -O2 -O3"
17228 flags_opt_yes="-O2"
17229 flags_opt_off="-O0"
17231 compiler_id="WATCOM_WINDOWS_C"
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17241 $as_echo "no" >&6; }
17245 if test "$compiler_id" = "unknown"; then
17248 *** Warning: This configure script does not have information about the
17249 *** compiler you are using, relative to the flags required to enable or
17250 *** disable generation of debug info, optimization options or warnings.
17252 *** Whatever settings are present in CFLAGS will be used for this run.
17254 *** If you wish to help the cURL project to better support your compiler
17255 *** you can report this and the required info on the libcurl development
17256 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17264 eval _sqz_input=\$$1
17265 for _sqz_token in $_sqz_input; do
17266 if test -z "$_sqz_result"; then
17267 _sqz_result="$_sqz_token"
17269 _sqz_result="$_sqz_result $_sqz_token"
17272 eval $1=\$_sqz_result
17278 if test "$compiler_id" != "unknown"; then
17280 if test "$compiler_id" = "GNU_C" ||
17281 test "$compiler_id" = "CLANG"; then
17283 if test "$compiler_id" = "GNU_C" ||
17284 test "$compiler_id" = "CLANG"; then
17285 tmp_has_include="no"
17286 tmp_chg_FLAGS="$CFLAGS"
17287 for word1 in $tmp_chg_FLAGS; do
17290 tmp_has_include="yes"
17294 if test "$tmp_has_include" = "yes"; then
17295 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17296 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17297 CFLAGS="$tmp_chg_FLAGS"
17300 tmp_has_include="no"
17301 tmp_chg_FLAGS="$CPPFLAGS"
17302 for word1 in $tmp_chg_FLAGS; do
17305 tmp_has_include="yes"
17309 if test "$tmp_has_include" = "yes"; then
17310 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17311 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17312 CPPFLAGS="$tmp_chg_FLAGS"
17319 tmp_save_CPPFLAGS="$CPPFLAGS"
17320 tmp_save_CFLAGS="$CFLAGS"
17324 case "$compiler_id" in
17328 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17333 tmp_CFLAGS="$tmp_CFLAGS -std1"
17334 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17335 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17336 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17341 tmp_CFLAGS="$tmp_CFLAGS"
17346 tmp_CFLAGS="$tmp_CFLAGS -z"
17347 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17352 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17353 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17354 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17359 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17360 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17361 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17366 tmp_CFLAGS="$tmp_CFLAGS"
17371 tmp_CFLAGS="$tmp_CFLAGS -n"
17376 tmp_CFLAGS="$tmp_CFLAGS"
17381 tmp_CFLAGS="$tmp_CFLAGS"
17386 tmp_CFLAGS="$tmp_CFLAGS"
17391 tmp_CFLAGS="$tmp_CFLAGS"
17396 tmp_CFLAGS="$tmp_CFLAGS"
17401 tmp_CFLAGS="$tmp_CFLAGS"
17406 squeeze tmp_CPPFLAGS
17409 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17411 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17412 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17413 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17417 tmp_compiler_works="unknown"
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17434 if ac_fn_c_try_compile "$LINENO"; then :
17436 tmp_compiler_works="yes"
17440 tmp_compiler_works="no"
17442 sed 's/^/cc-fail: /' conftest.err >&6
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 if test "$tmp_compiler_works" = "yes"; then
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17464 if ac_fn_c_try_link "$LINENO"; then :
17466 tmp_compiler_works="yes"
17470 tmp_compiler_works="no"
17472 sed 's/^/link-fail: /' conftest.err >&6
17476 rm -f core conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17479 if test "x$cross_compiling" != "xyes" &&
17480 test "$tmp_compiler_works" = "yes"; then
17481 if test "$cross_compiling" = yes; then :
17482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17484 as_fn_error $? "cannot run test program while cross compiling
17485 See \`config.log' for more details" "$LINENO" 5; }
17487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17492 # include <stdlib.h>
17506 if ac_fn_c_try_run "$LINENO"; then :
17508 tmp_compiler_works="yes"
17512 tmp_compiler_works="no"
17514 echo "run-fail: test program exited with status $ac_status" >&6
17518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17519 conftest.$ac_objext conftest.beam conftest.$ac_ext
17523 if test "$tmp_compiler_works" = "yes"; then
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17526 $as_echo "yes" >&6; }
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17528 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17533 $as_echo "no" >&6; }
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17535 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17536 CPPFLAGS="$tmp_save_CPPFLAGS"
17537 CFLAGS="$tmp_save_CFLAGS"
17547 if test "$compiler_id" != "unknown"; then
17549 tmp_save_CFLAGS="$CFLAGS"
17550 tmp_save_CPPFLAGS="$CPPFLAGS"
17553 tmp_CFLAGS="$CFLAGS"
17554 tmp_CPPFLAGS="$CPPFLAGS"
17557 for word1 in $tmp_CFLAGS; do
17558 ac_var_strip_word="no"
17559 for word2 in $flags_dbg_all; do
17560 if test "$word1" = "$word2"; then
17561 ac_var_strip_word="yes"
17564 if test "$ac_var_strip_word" = "no"; then
17565 ac_var_stripped="$ac_var_stripped $word1"
17568 tmp_CFLAGS="$ac_var_stripped"
17573 for word1 in $tmp_CPPFLAGS; do
17574 ac_var_strip_word="no"
17575 for word2 in $flags_dbg_all; do
17576 if test "$word1" = "$word2"; then
17577 ac_var_strip_word="yes"
17580 if test "$ac_var_strip_word" = "no"; then
17581 ac_var_stripped="$ac_var_stripped $word1"
17584 tmp_CPPFLAGS="$ac_var_stripped"
17585 squeeze tmp_CPPFLAGS
17588 if test "$want_debug" = "yes"; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17590 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17591 tmp_options="$flags_dbg_yes"
17593 if test "$want_debug" = "no"; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17595 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17596 tmp_options="$flags_dbg_off"
17599 if test "$flags_prefer_cppflags" = "yes"; then
17600 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17601 CFLAGS="$tmp_CFLAGS"
17603 CPPFLAGS="$tmp_CPPFLAGS"
17604 CFLAGS="$tmp_CFLAGS $tmp_options"
17609 tmp_compiler_works="unknown"
17610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611 /* end confdefs.h. */
17626 if ac_fn_c_try_compile "$LINENO"; then :
17628 tmp_compiler_works="yes"
17632 tmp_compiler_works="no"
17634 sed 's/^/cc-fail: /' conftest.err >&6
17638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639 if test "$tmp_compiler_works" = "yes"; then
17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h. */
17656 if ac_fn_c_try_link "$LINENO"; then :
17658 tmp_compiler_works="yes"
17662 tmp_compiler_works="no"
17664 sed 's/^/link-fail: /' conftest.err >&6
17668 rm -f core conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17671 if test "x$cross_compiling" != "xyes" &&
17672 test "$tmp_compiler_works" = "yes"; then
17673 if test "$cross_compiling" = yes; then :
17674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17676 as_fn_error $? "cannot run test program while cross compiling
17677 See \`config.log' for more details" "$LINENO" 5; }
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17684 # include <stdlib.h>
17698 if ac_fn_c_try_run "$LINENO"; then :
17700 tmp_compiler_works="yes"
17704 tmp_compiler_works="no"
17706 echo "run-fail: test program exited with status $ac_status" >&6
17710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17711 conftest.$ac_objext conftest.beam conftest.$ac_ext
17715 if test "$tmp_compiler_works" = "yes"; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17718 $as_echo "yes" >&6; }
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17720 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725 $as_echo "no" >&6; }
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17727 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17728 CPPFLAGS="$tmp_save_CPPFLAGS"
17729 CFLAGS="$tmp_save_CFLAGS"
17738 if test "$compiler_id" != "unknown"; then
17740 tmp_save_CFLAGS="$CFLAGS"
17741 tmp_save_CPPFLAGS="$CPPFLAGS"
17744 tmp_CFLAGS="$CFLAGS"
17745 tmp_CPPFLAGS="$CPPFLAGS"
17746 honor_optimize_option="yes"
17749 if test "$want_optimize" = "assume_no" ||
17750 test "$want_optimize" = "assume_yes"; then
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17752 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17755 ac_var_match_word="no"
17756 for word1 in $tmp_CFLAGS; do
17757 for word2 in $flags_opt_all; do
17758 if test "$word1" = "$word2"; then
17759 ac_var_match_word="yes"
17764 if test "$ac_var_match_word" = "yes"; then
17766 honor_optimize_option="no"
17773 ac_var_match_word="no"
17774 for word1 in $tmp_CPPFLAGS; do
17775 for word2 in $flags_opt_all; do
17776 if test "$word1" = "$word2"; then
17777 ac_var_match_word="yes"
17782 if test "$ac_var_match_word" = "yes"; then
17784 honor_optimize_option="no"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17790 $as_echo "$honor_optimize_option" >&6; }
17791 if test "$honor_optimize_option" = "yes"; then
17792 if test "$want_optimize" = "assume_yes"; then
17793 want_optimize="yes"
17795 if test "$want_optimize" = "assume_no"; then
17801 if test "$honor_optimize_option" = "yes"; then
17804 for word1 in $tmp_CFLAGS; do
17805 ac_var_strip_word="no"
17806 for word2 in $flags_opt_all; do
17807 if test "$word1" = "$word2"; then
17808 ac_var_strip_word="yes"
17811 if test "$ac_var_strip_word" = "no"; then
17812 ac_var_stripped="$ac_var_stripped $word1"
17815 tmp_CFLAGS="$ac_var_stripped"
17820 for word1 in $tmp_CPPFLAGS; do
17821 ac_var_strip_word="no"
17822 for word2 in $flags_opt_all; do
17823 if test "$word1" = "$word2"; then
17824 ac_var_strip_word="yes"
17827 if test "$ac_var_strip_word" = "no"; then
17828 ac_var_stripped="$ac_var_stripped $word1"
17831 tmp_CPPFLAGS="$ac_var_stripped"
17832 squeeze tmp_CPPFLAGS
17834 if test "$want_optimize" = "yes"; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17836 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17837 tmp_options="$flags_opt_yes"
17839 if test "$want_optimize" = "no"; then
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17841 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17842 tmp_options="$flags_opt_off"
17844 if test "$flags_prefer_cppflags" = "yes"; then
17845 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17846 CFLAGS="$tmp_CFLAGS"
17848 CPPFLAGS="$tmp_CPPFLAGS"
17849 CFLAGS="$tmp_CFLAGS $tmp_options"
17854 tmp_compiler_works="unknown"
17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17871 if ac_fn_c_try_compile "$LINENO"; then :
17873 tmp_compiler_works="yes"
17877 tmp_compiler_works="no"
17879 sed 's/^/cc-fail: /' conftest.err >&6
17883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884 if test "$tmp_compiler_works" = "yes"; then
17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886 /* end confdefs.h. */
17901 if ac_fn_c_try_link "$LINENO"; then :
17903 tmp_compiler_works="yes"
17907 tmp_compiler_works="no"
17909 sed 's/^/link-fail: /' conftest.err >&6
17913 rm -f core conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17916 if test "x$cross_compiling" != "xyes" &&
17917 test "$tmp_compiler_works" = "yes"; then
17918 if test "$cross_compiling" = yes; then :
17919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17921 as_fn_error $? "cannot run test program while cross compiling
17922 See \`config.log' for more details" "$LINENO" 5; }
17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h. */
17929 # include <stdlib.h>
17943 if ac_fn_c_try_run "$LINENO"; then :
17945 tmp_compiler_works="yes"
17949 tmp_compiler_works="no"
17951 echo "run-fail: test program exited with status $ac_status" >&6
17955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17956 conftest.$ac_objext conftest.beam conftest.$ac_ext
17960 if test "$tmp_compiler_works" = "yes"; then
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17963 $as_echo "yes" >&6; }
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17965 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17970 $as_echo "no" >&6; }
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17972 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17973 CPPFLAGS="$tmp_save_CPPFLAGS"
17974 CFLAGS="$tmp_save_CFLAGS"
17984 if test "$compiler_id" != "unknown"; then
17986 tmp_save_CPPFLAGS="$CPPFLAGS"
17987 tmp_save_CFLAGS="$CFLAGS"
17991 case "$compiler_id" in
17995 if test "$want_warnings" = "yes"; then
17996 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17997 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17998 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17999 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
18000 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18001 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18002 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18003 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18004 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18005 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18006 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18007 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18008 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18009 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18010 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18011 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18012 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
18014 if test "$compiler_num" -ge "101"; then
18015 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
18022 if test "$want_warnings" = "yes"; then
18023 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18029 if test "$want_warnings" = "yes"; then
18031 if test "x$cross_compiling" != "xyes" ||
18032 test "$compiler_num" -ge "300"; then
18033 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18036 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
18038 if test "$compiler_num" -ge "104"; then
18039 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18040 if test "x$cross_compiling" != "xyes" ||
18041 test "$compiler_num" -ge "300"; then
18042 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
18046 if test "$compiler_num" -ge "207"; then
18047 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18048 if test "x$cross_compiling" != "xyes" ||
18049 test "$compiler_num" -ge "300"; then
18050 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18051 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18055 if test "$compiler_num" -ge "295"; then
18056 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18059 if test "$compiler_num" -ge "296"; then
18060 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18061 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18062 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18065 if test "$compiler_num" -ge "297"; then
18066 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18069 if test "$compiler_num" -ge "300"; then
18070 tmp_CFLAGS="$tmp_CFLAGS"
18073 if test "$compiler_num" -ge "303"; then
18074 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18077 if test "$compiler_num" -ge "304"; then
18078 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18081 if test "$compiler_num" -ge "400"; then
18082 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18085 if test "$compiler_num" -ge "402"; then
18086 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18089 if test "$compiler_num" -ge "403"; then
18090 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18091 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18092 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18093 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18096 if test "$compiler_num" -ge "405"; then
18097 if test "$curl_cv_have_def__WIN32" = "yes"; then
18098 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18104 if test "$compiler_num" -ge "300"; then
18105 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18107 if test "x$cross_compiling" = "xyes"; then
18108 if test "$compiler_num" -ge "104"; then
18109 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18111 if test "$compiler_num" -ge "207"; then
18112 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18113 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18121 if test "$want_warnings" = "yes"; then
18122 tmp_CFLAGS="$tmp_CFLAGS +w1"
18128 tmp_CFLAGS="$tmp_CFLAGS"
18133 if test "$want_warnings" = "yes"; then
18134 if test "$compiler_num" -gt "600"; then
18135 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18136 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18137 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18138 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18139 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18140 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18141 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18142 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18143 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18144 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18145 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18148 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18149 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18150 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18151 if test "$compiler_num" -ge "1000"; then
18152 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18158 tmp_CFLAGS="$tmp_CFLAGS"
18163 if test "$want_warnings" = "yes"; then
18164 tmp_CFLAGS="$tmp_CFLAGS"
18170 if test "$want_warnings" = "yes"; then
18171 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18177 if test "$want_warnings" = "yes"; then
18178 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18179 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18185 if test "$want_warnings" = "yes"; then
18186 tmp_CFLAGS="$tmp_CFLAGS -v"
18192 if test "$want_warnings" = "yes"; then
18193 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18194 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18195 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18201 if test "$want_warnings" = "yes"; then
18202 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18208 tmp_CFLAGS="$tmp_CFLAGS"
18213 squeeze tmp_CPPFLAGS
18216 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18218 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18219 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18220 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18224 tmp_compiler_works="unknown"
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18241 if ac_fn_c_try_compile "$LINENO"; then :
18243 tmp_compiler_works="yes"
18247 tmp_compiler_works="no"
18249 sed 's/^/cc-fail: /' conftest.err >&6
18253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254 if test "$tmp_compiler_works" = "yes"; then
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18271 if ac_fn_c_try_link "$LINENO"; then :
18273 tmp_compiler_works="yes"
18277 tmp_compiler_works="no"
18279 sed 's/^/link-fail: /' conftest.err >&6
18283 rm -f core conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18286 if test "x$cross_compiling" != "xyes" &&
18287 test "$tmp_compiler_works" = "yes"; then
18288 if test "$cross_compiling" = yes; then :
18289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18291 as_fn_error $? "cannot run test program while cross compiling
18292 See \`config.log' for more details" "$LINENO" 5; }
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18299 # include <stdlib.h>
18313 if ac_fn_c_try_run "$LINENO"; then :
18315 tmp_compiler_works="yes"
18319 tmp_compiler_works="no"
18321 echo "run-fail: test program exited with status $ac_status" >&6
18325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18326 conftest.$ac_objext conftest.beam conftest.$ac_ext
18330 if test "$tmp_compiler_works" = "yes"; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18333 $as_echo "yes" >&6; }
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18335 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18340 $as_echo "no" >&6; }
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18342 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18343 CPPFLAGS="$tmp_save_CPPFLAGS"
18344 CFLAGS="$tmp_save_CFLAGS"
18353 if test "$compiler_id" = "INTEL_UNIX_C"; then
18355 if test "$compiler_num" -ge "1000"; then
18356 CFLAGS="$CFLAGS -shared-intel"
18357 elif test "$compiler_num" -ge "900"; then
18358 CFLAGS="$CFLAGS -i-dynamic"
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18365 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18374 force compilation error
18381 if ac_fn_c_try_compile "$LINENO"; then :
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18384 $as_echo "no" >&6; }
18385 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18397 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h. */
18402 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18414 if ac_fn_c_try_compile "$LINENO"; then :
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18418 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18423 $as_echo "yes" >&6; }
18426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18430 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18435 # include <stdlib.h>
18449 int j = rand(i[0]);
18458 if ac_fn_c_try_compile "$LINENO"; then :
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461 $as_echo "no" >&6; }
18462 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 $as_echo "yes" >&6; }
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18474 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18475 supports_symbol_hiding="no"
18476 symbol_hiding_CFLAGS=""
18477 symbol_hiding_EXTERN=""
18480 case "$compiler_id" in
18482 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18483 tmp_CFLAGS="-fvisibility=hidden"
18484 supports_symbol_hiding="yes"
18487 if test "$compiler_num" -ge "304"; then
18488 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18489 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18490 tmp_CFLAGS="-fvisibility=hidden"
18491 supports_symbol_hiding="yes"
18496 if test "$compiler_num" -ge "900"; then
18497 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18498 tmp_save_CFLAGS="$CFLAGS"
18499 CFLAGS="$CFLAGS -fvisibility=hidden"
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18504 # include <stdio.h>
18509 printf("icc fvisibility bug test");
18516 if ac_fn_c_try_link "$LINENO"; then :
18518 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18519 tmp_CFLAGS="-fvisibility=hidden"
18520 supports_symbol_hiding="yes"
18523 rm -f core conftest.err conftest.$ac_objext \
18524 conftest$ac_exeext conftest.$ac_ext
18525 CFLAGS="$tmp_save_CFLAGS"
18530 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18531 tmp_EXTERN="__global"
18532 tmp_CFLAGS="-xldscope=hidden"
18533 supports_symbol_hiding="yes"
18537 if test "$supports_symbol_hiding" = "yes"; then
18538 tmp_save_CFLAGS="$CFLAGS"
18539 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542 /* end confdefs.h. */
18545 $tmp_EXTERN char *dummy(char *buff);
18546 char *dummy(char *buff)
18558 char *r = dummy(&b[0]);
18567 if ac_fn_c_try_compile "$LINENO"; then :
18569 supports_symbol_hiding="yes"
18570 if test -f conftest.err; then
18571 grep 'visibility' conftest.err >/dev/null
18572 if test "$?" -eq "0"; then
18573 supports_symbol_hiding="no"
18579 supports_symbol_hiding="no"
18581 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18582 sed 's/^/cc-err: /' conftest.err >&6
18586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18587 CFLAGS="$tmp_save_CFLAGS"
18589 if test "$supports_symbol_hiding" = "yes"; then
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18591 $as_echo "yes" >&6; }
18592 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18593 symbol_hiding_EXTERN="$tmp_EXTERN"
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18601 supports_curldebug="unknown"
18602 if test "$want_curldebug" = "yes"; then
18603 if test "x$enable_shared" != "xno" &&
18604 test "x$enable_shared" != "xyes"; then
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18606 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18607 supports_curldebug="no"
18609 if test "x$enable_static" != "xno" &&
18610 test "x$enable_static" != "xyes"; then
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18612 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18613 supports_curldebug="no"
18615 if test "$supports_curldebug" != "no"; then
18616 if test "$enable_shared" = "yes" &&
18617 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18618 supports_curldebug="no"
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18620 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18625 if test "$want_curldebug" = "yes"; then
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18627 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18628 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18630 $as_echo "$supports_curldebug" >&6; }
18631 if test "$supports_curldebug" = "no"; then
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18633 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18634 want_curldebug="no"
18638 if test "$want_curldebug" = "yes"; then
18639 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18642 if test "$want_debug" = "yes"; then
18643 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18647 if test x$want_curldebug = xyes; then
18649 CURLDEBUG_FALSE='#'
18656 supports_unittests=yes
18657 # cross-compilation of unit tests static library/programs fails when
18658 # libcurl shared library is built. This might be due to a libtool or
18659 # automake issue. In this case we disable unit tests.
18660 if test "x$cross_compiling" != "xno" &&
18661 test "x$enable_shared" != "xno"; then
18662 supports_unittests=no
18665 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18666 # a problem related with OpenSSL headers and library versions not matching.
18667 # Disable unit tests while time to further investigate this is found.
18670 if test "$compiler_id" = "GNU_C"; then
18671 supports_unittests=no
18676 # All AIX autobuilds fails unit tests linking against unittests library
18677 # due to unittests library being built with no symbols or members. Libtool ?
18678 # Disable unit tests while time to further investigate this is found.
18681 supports_unittests=no
18685 if test "x$want_debug" = "xyes" &&
18686 test "x$supports_unittests" = "xyes"; then
18691 if test x$want_unittests = xyes; then
18692 BUILD_UNITTESTS_TRUE=
18693 BUILD_UNITTESTS_FALSE='#'
18695 BUILD_UNITTESTS_TRUE='#'
18696 BUILD_UNITTESTS_FALSE=
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18704 $as_echo_n "checking for windows.h... " >&6; }
18705 if ${ac_cv_header_windows_h+:} false; then :
18706 $as_echo_n "(cached) " >&6
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18714 #ifndef WIN32_LEAN_AND_MEAN
18715 #define WIN32_LEAN_AND_MEAN
18717 #include <windows.h>
18722 #if defined(__CYGWIN__) || defined(__CEGCC__)
18723 HAVE_WINDOWS_H shall not be defined.
18725 int dummy=2*WINVER;
18733 if ac_fn_c_try_compile "$LINENO"; then :
18735 ac_cv_header_windows_h="yes"
18739 ac_cv_header_windows_h="no"
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18746 $as_echo "$ac_cv_header_windows_h" >&6; }
18747 case "$ac_cv_header_windows_h" in
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_WINDOWS_H 1
18755 cat >>confdefs.h <<_ACEOF
18756 #define WIN32_LEAN_AND_MEAN 1
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18764 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18765 if ${ac_cv_native_windows+:} false; then :
18766 $as_echo_n "(cached) " >&6
18769 if test "$ac_cv_header_windows_h" = "no"; then
18770 ac_cv_native_windows="no"
18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18780 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18781 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18784 Not a native Windows build target.
18792 if ac_fn_c_try_compile "$LINENO"; then :
18794 ac_cv_native_windows="yes"
18798 ac_cv_native_windows="no"
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18806 $as_echo "$ac_cv_native_windows" >&6; }
18807 if test "x$ac_cv_native_windows" = xyes; then
18808 DOING_NATIVE_WINDOWS_TRUE=
18809 DOING_NATIVE_WINDOWS_FALSE='#'
18811 DOING_NATIVE_WINDOWS_TRUE='#'
18812 DOING_NATIVE_WINDOWS_FALSE=
18816 case X-"$ac_cv_native_windows" in
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18820 $as_echo_n "checking for winsock.h... " >&6; }
18821 if ${ac_cv_header_winsock_h+:} false; then :
18822 $as_echo_n "(cached) " >&6
18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18830 #ifndef WIN32_LEAN_AND_MEAN
18831 #define WIN32_LEAN_AND_MEAN
18833 #include <windows.h>
18834 #include <winsock.h>
18839 #if defined(__CYGWIN__) || defined(__CEGCC__)
18840 HAVE_WINSOCK_H shall not be defined.
18842 int dummy=WSACleanup();
18850 if ac_fn_c_try_compile "$LINENO"; then :
18852 ac_cv_header_winsock_h="yes"
18856 ac_cv_header_winsock_h="no"
18859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18863 $as_echo "$ac_cv_header_winsock_h" >&6; }
18864 case "$ac_cv_header_winsock_h" in
18867 cat >>confdefs.h <<_ACEOF
18868 #define HAVE_WINSOCK_H 1
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18876 $as_echo_n "checking for winsock2.h... " >&6; }
18877 if ${ac_cv_header_winsock2_h+:} false; then :
18878 $as_echo_n "(cached) " >&6
18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18886 #ifndef WIN32_LEAN_AND_MEAN
18887 #define WIN32_LEAN_AND_MEAN
18889 #include <windows.h>
18890 #include <winsock2.h>
18895 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18896 HAVE_WINSOCK2_H shall not be defined.
18898 int dummy=2*IPPROTO_ESP;
18906 if ac_fn_c_try_compile "$LINENO"; then :
18908 ac_cv_header_winsock2_h="yes"
18912 ac_cv_header_winsock2_h="no"
18915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18919 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18920 case "$ac_cv_header_winsock2_h" in
18923 cat >>confdefs.h <<_ACEOF
18924 #define HAVE_WINSOCK2_H 1
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18932 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18933 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18934 $as_echo_n "(cached) " >&6
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18942 #ifndef WIN32_LEAN_AND_MEAN
18943 #define WIN32_LEAN_AND_MEAN
18945 #include <windows.h>
18946 #include <winsock2.h>
18947 #include <ws2tcpip.h>
18952 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18953 HAVE_WS2TCPIP_H shall not be defined.
18955 int dummy=2*IP_PKTINFO;
18963 if ac_fn_c_try_compile "$LINENO"; then :
18965 ac_cv_header_ws2tcpip_h="yes"
18969 ac_cv_header_ws2tcpip_h="no"
18972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18976 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18977 case "$ac_cv_header_ws2tcpip_h" in
18980 cat >>confdefs.h <<_ACEOF
18981 #define HAVE_WS2TCPIP_H 1
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18989 $as_echo_n "checking for winldap.h... " >&6; }
18990 if ${ac_cv_header_winldap_h+:} false; then :
18991 $as_echo_n "(cached) " >&6
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18999 #ifdef HAVE_WINDOWS_H
19000 #ifndef WIN32_LEAN_AND_MEAN
19001 #define WIN32_LEAN_AND_MEAN
19003 #include <windows.h>
19005 #include <winldap.h>
19010 #if defined(__CYGWIN__) || defined(__CEGCC__)
19011 HAVE_WINLDAP_H shall not be defined.
19013 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19014 ULONG res = ldap_unbind(ldp);
19022 if ac_fn_c_try_compile "$LINENO"; then :
19024 ac_cv_header_winldap_h="yes"
19028 ac_cv_header_winldap_h="no"
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
19035 $as_echo "$ac_cv_header_winldap_h" >&6; }
19036 case "$ac_cv_header_winldap_h" in
19039 cat >>confdefs.h <<_ACEOF
19040 #define HAVE_WINLDAP_H 1
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19048 $as_echo_n "checking for winber.h... " >&6; }
19049 if ${ac_cv_header_winber_h+:} false; then :
19050 $as_echo_n "(cached) " >&6
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19058 #ifdef HAVE_WINDOWS_H
19059 #ifndef WIN32_LEAN_AND_MEAN
19060 #define WIN32_LEAN_AND_MEAN
19062 #include <windows.h>
19064 #include <winldap.h>
19065 #include <winber.h>
19070 #if defined(__CYGWIN__) || defined(__CEGCC__)
19071 HAVE_WINBER_H shall not be defined.
19073 BERVAL *bvp = NULL;
19074 BerElement *bep = ber_init(bvp);
19083 if ac_fn_c_try_compile "$LINENO"; then :
19085 ac_cv_header_winber_h="yes"
19089 ac_cv_header_winber_h="no"
19092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
19096 $as_echo "$ac_cv_header_winber_h" >&6; }
19097 case "$ac_cv_header_winber_h" in
19100 cat >>confdefs.h <<_ACEOF
19101 #define HAVE_WINBER_H 1
19109 ac_cv_header_winsock_h="no"
19110 ac_cv_header_winsock2_h="no"
19111 ac_cv_header_ws2tcpip_h="no"
19112 ac_cv_header_winldap_h="no"
19113 ac_cv_header_winber_h="no"
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19118 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19119 curl_win32_file_api="no"
19120 if test "$ac_cv_header_windows_h" = "yes"; then
19121 if test x"$enable_largefile" != "xno"; then
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19130 #if !defined(_WIN32_WCE) && \
19131 (defined(__MINGW32__) || \
19132 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19135 WIN32 large file API not supported.
19143 if ac_fn_c_try_compile "$LINENO"; then :
19145 curl_win32_file_api="win32_large_files"
19148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 if test "$curl_win32_file_api" = "no"; then
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19159 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19162 WIN32 small file API not supported.
19170 if ac_fn_c_try_compile "$LINENO"; then :
19172 curl_win32_file_api="win32_small_files"
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178 case "$curl_win32_file_api" in
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19181 $as_echo "yes (large file enabled)" >&6; }
19183 cat >>confdefs.h <<_ACEOF
19184 #define USE_WIN32_LARGE_FILES 1
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19190 $as_echo "yes (large file disabled)" >&6; }
19192 cat >>confdefs.h <<_ACEOF
19193 #define USE_WIN32_SMALL_FILES 1
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199 $as_echo "no" >&6; }
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19205 $as_echo_n "checking whether to support http... " >&6; }
19206 # Check whether --enable-http was given.
19207 if test "${enable_http+set}" = set; then :
19208 enableval=$enable_http; case "$enableval" in
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211 $as_echo "no" >&6; }
19213 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19216 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19217 CURL_DISABLE_HTTP=1
19220 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19222 CURL_DISABLE_RTSP=1
19225 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19226 $as_echo "yes" >&6; }
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19231 $as_echo "yes" >&6; }
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19236 $as_echo_n "checking whether to support ftp... " >&6; }
19237 # Check whether --enable-ftp was given.
19238 if test "${enable_ftp+set}" = set; then :
19239 enableval=$enable_ftp; case "$enableval" in
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19244 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19249 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19250 $as_echo "yes" >&6; }
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19260 $as_echo_n "checking whether to support file... " >&6; }
19261 # Check whether --enable-file was given.
19262 if test "${enable_file+set}" = set; then :
19263 enableval=$enable_file; case "$enableval" in
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 $as_echo "no" >&6; }
19268 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19270 CURL_DISABLE_FILE=1
19273 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19274 $as_echo "yes" >&6; }
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19279 $as_echo "yes" >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19284 $as_echo_n "checking whether to support ldap... " >&6; }
19285 # Check whether --enable-ldap was given.
19286 if test "${enable_ldap+set}" = set; then :
19287 enableval=$enable_ldap; case "$enableval" in
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19290 $as_echo "no" >&6; }
19292 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19294 CURL_DISABLE_LDAP=1
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19299 $as_echo "yes" >&6; }
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 $as_echo "yes" >&6; }
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19310 $as_echo_n "checking whether to support ldaps... " >&6; }
19311 # Check whether --enable-ldaps was given.
19312 if test "${enable_ldaps+set}" = set; then :
19313 enableval=$enable_ldaps; case "$enableval" in
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316 $as_echo "no" >&6; }
19318 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19320 CURL_DISABLE_LDAPS=1
19323 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19325 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19327 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19329 CURL_DISABLE_LDAPS=1
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19333 $as_echo "yes" >&6; }
19335 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19344 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19346 $as_echo "no" >&6; }
19348 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19350 CURL_DISABLE_LDAPS=1
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19354 $as_echo "yes" >&6; }
19356 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19366 $as_echo_n "checking whether to support rtsp... " >&6; }
19367 # Check whether --enable-rtsp was given.
19368 if test "${enable_rtsp+set}" = set; then :
19369 enableval=$enable_rtsp; case "$enableval" in
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19372 $as_echo "no" >&6; }
19374 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19376 CURL_DISABLE_RTSP=1
19379 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19380 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19383 $as_echo "yes" >&6; }
19384 curl_rtsp_msg="enabled"
19389 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19391 $as_echo "yes" >&6; }
19392 curl_rtsp_msg="enabled"
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 $as_echo "no" >&6; }
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19402 $as_echo_n "checking whether to support proxies... " >&6; }
19403 # Check whether --enable-proxy was given.
19404 if test "${enable_proxy+set}" = set; then :
19405 enableval=$enable_proxy; case "$enableval" in
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19408 $as_echo "no" >&6; }
19410 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19412 CURL_DISABLE_PROXY=1
19415 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416 $as_echo "yes" >&6; }
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19421 $as_echo "yes" >&6; }
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19427 $as_echo_n "checking whether to support dict... " >&6; }
19428 # Check whether --enable-dict was given.
19429 if test "${enable_dict+set}" = set; then :
19430 enableval=$enable_dict; case "$enableval" in
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19433 $as_echo "no" >&6; }
19435 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19437 CURL_DISABLE_DICT=1
19440 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441 $as_echo "yes" >&6; }
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19446 $as_echo "yes" >&6; }
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19451 $as_echo_n "checking whether to support telnet... " >&6; }
19452 # Check whether --enable-telnet was given.
19453 if test "${enable_telnet+set}" = set; then :
19454 enableval=$enable_telnet; case "$enableval" in
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19457 $as_echo "no" >&6; }
19459 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19461 CURL_DISABLE_TELNET=1
19464 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19465 $as_echo "yes" >&6; }
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19470 $as_echo "yes" >&6; }
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19475 $as_echo_n "checking whether to support tftp... " >&6; }
19476 # Check whether --enable-tftp was given.
19477 if test "${enable_tftp+set}" = set; then :
19478 enableval=$enable_tftp; case "$enableval" in
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19481 $as_echo "no" >&6; }
19483 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19485 CURL_DISABLE_TFTP=1
19488 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19489 $as_echo "yes" >&6; }
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19494 $as_echo "yes" >&6; }
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19500 $as_echo_n "checking whether to support pop3... " >&6; }
19501 # Check whether --enable-pop3 was given.
19502 if test "${enable_pop3+set}" = set; then :
19503 enableval=$enable_pop3; case "$enableval" in
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19506 $as_echo "no" >&6; }
19508 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19510 CURL_DISABLE_POP3=1
19513 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19514 $as_echo "yes" >&6; }
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19519 $as_echo "yes" >&6; }
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19526 $as_echo_n "checking whether to support imap... " >&6; }
19527 # Check whether --enable-imap was given.
19528 if test "${enable_imap+set}" = set; then :
19529 enableval=$enable_imap; case "$enableval" in
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19532 $as_echo "no" >&6; }
19534 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19536 CURL_DISABLE_IMAP=1
19539 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19540 $as_echo "yes" >&6; }
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19545 $as_echo "yes" >&6; }
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19552 $as_echo_n "checking whether to support smb... " >&6; }
19553 # Check whether --enable-smb was given.
19554 if test "${enable_smb+set}" = set; then :
19555 enableval=$enable_smb; case "$enableval" in
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19558 $as_echo "no" >&6; }
19560 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19565 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19566 $as_echo "yes" >&6; }
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19571 $as_echo "yes" >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19577 $as_echo_n "checking whether to support smtp... " >&6; }
19578 # Check whether --enable-smtp was given.
19579 if test "${enable_smtp+set}" = set; then :
19580 enableval=$enable_smtp; case "$enableval" in
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19583 $as_echo "no" >&6; }
19585 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19587 CURL_DISABLE_SMTP=1
19590 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19591 $as_echo "yes" >&6; }
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19596 $as_echo "yes" >&6; }
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19602 $as_echo_n "checking whether to support gopher... " >&6; }
19603 # Check whether --enable-gopher was given.
19604 if test "${enable_gopher+set}" = set; then :
19605 enableval=$enable_gopher; case "$enableval" in
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608 $as_echo "no" >&6; }
19610 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19612 CURL_DISABLE_GOPHER=1
19615 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19616 $as_echo "yes" >&6; }
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19621 $as_echo "yes" >&6; }
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19629 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19630 # Check whether --enable-manual was given.
19631 if test "${enable_manual+set}" = set; then :
19632 enableval=$enable_manual; case "$enableval" in
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635 $as_echo "no" >&6; }
19637 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19638 $as_echo "yes" >&6; }
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19644 $as_echo "yes" >&6; }
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19651 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19652 # Check whether --enable-libcurl_option was given.
19653 if test "${enable_libcurl_option+set}" = set; then :
19654 enableval=$enable_libcurl_option; case "$enableval" in
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19657 $as_echo "no" >&6; }
19659 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19661 curl_libcurl_msg="no"
19663 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19664 $as_echo "yes" >&6; }
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19669 $as_echo "yes" >&6; }
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19676 $as_echo_n "checking whether to use libgcc... " >&6; }
19677 # Check whether --enable-libgcc was given.
19678 if test "${enable_libgcc+set}" = set; then :
19679 enableval=$enable_libgcc; case "$enableval" in
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19683 $as_echo "yes" >&6; }
19685 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19698 $as_echo_n "checking if X/Open network library is required... " >&6; }
19699 tst_lib_xnet_required="no"
19700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701 /* end confdefs.h. */
19706 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19708 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19711 force compilation error
19717 if ac_fn_c_try_compile "$LINENO"; then :
19719 tst_lib_xnet_required="yes"
19720 LIBS="-lxnet $LIBS"
19723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19725 $as_echo "$tst_lib_xnet_required" >&6; }
19728 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19729 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19730 HAVE_GETHOSTBYNAME="1"
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19734 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19735 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19736 $as_echo_n "(cached) " >&6
19738 ac_check_lib_save_LIBS=$LIBS
19740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h. */
19747 char gethostbyname ();
19750 return gethostbyname ();
19755 if ac_fn_c_try_link "$LINENO"; then :
19756 ac_cv_lib_nsl_gethostbyname=yes
19758 ac_cv_lib_nsl_gethostbyname=no
19760 rm -f core conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19762 LIBS=$ac_check_lib_save_LIBS
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19765 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19766 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19767 HAVE_GETHOSTBYNAME="1"
19776 if test "$HAVE_GETHOSTBYNAME" != "1"
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19779 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19780 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19781 $as_echo_n "(cached) " >&6
19783 ac_check_lib_save_LIBS=$LIBS
19784 LIBS="-lsocket $LIBS"
19785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h. */
19792 char gethostbyname ();
19795 return gethostbyname ();
19800 if ac_fn_c_try_link "$LINENO"; then :
19801 ac_cv_lib_socket_gethostbyname=yes
19803 ac_cv_lib_socket_gethostbyname=no
19805 rm -f core conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext conftest.$ac_ext
19807 LIBS=$ac_check_lib_save_LIBS
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19810 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19811 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19812 HAVE_GETHOSTBYNAME="1"
19813 LIBS="-lsocket $LIBS"
19819 if test "$HAVE_GETHOSTBYNAME" != "1"
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19822 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19823 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19824 $as_echo_n "(cached) " >&6
19826 ac_check_lib_save_LIBS=$LIBS
19827 LIBS="-lwatt $LIBS"
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19835 char gethostbyname ();
19838 return gethostbyname ();
19843 if ac_fn_c_try_link "$LINENO"; then :
19844 ac_cv_lib_watt_gethostbyname=yes
19846 ac_cv_lib_watt_gethostbyname=no
19848 rm -f core conftest.err conftest.$ac_objext \
19849 conftest$ac_exeext conftest.$ac_ext
19850 LIBS=$ac_check_lib_save_LIBS
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19853 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19854 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19855 HAVE_GETHOSTBYNAME="1"
19856 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19857 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19858 LIBS="-lwatt $LIBS"
19864 if test "$HAVE_GETHOSTBYNAME" != "1"
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19867 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19868 my_ac_save_LIBS=$LIBS
19869 LIBS="-lnsl -lsocket $LIBS"
19870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19871 /* end confdefs.h. */
19885 if ac_fn_c_try_link "$LINENO"; then :
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19888 $as_echo "yes" >&6; }
19889 HAVE_GETHOSTBYNAME="1"
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19894 $as_echo "no" >&6; }
19895 LIBS=$my_ac_save_LIBS
19898 rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19902 if test "$HAVE_GETHOSTBYNAME" != "1"
19904 if test "$ac_cv_header_windows_h" = "yes"; then
19905 if test "$ac_cv_header_winsock_h" = "yes"; then
19908 winsock_LIB="-lwinsock"
19911 winsock_LIB="-lwsock32"
19915 if test "$ac_cv_header_winsock2_h" = "yes"; then
19916 winsock_LIB="-lws2_32"
19918 if test ! -z "$winsock_LIB"; then
19919 my_ac_save_LIBS=$LIBS
19920 LIBS="$winsock_LIB $LIBS"
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19922 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19927 #ifdef HAVE_WINDOWS_H
19928 #ifndef WIN32_LEAN_AND_MEAN
19929 #define WIN32_LEAN_AND_MEAN
19931 #include <windows.h>
19932 #ifdef HAVE_WINSOCK2_H
19933 #include <winsock2.h>
19935 #ifdef HAVE_WINSOCK_H
19936 #include <winsock.h>
19944 gethostbyname("www.dummysite.com");
19951 if ac_fn_c_try_link "$LINENO"; then :
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19954 $as_echo "yes" >&6; }
19955 HAVE_GETHOSTBYNAME="1"
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19960 $as_echo "no" >&6; }
19962 LIBS=$my_ac_save_LIBS
19965 rm -f core conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
19971 if test "$HAVE_GETHOSTBYNAME" != "1"
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19974 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19979 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19985 gethostbyname("www.dummysite.com");
19992 if ac_fn_c_try_link "$LINENO"; then :
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19995 $as_echo "yes" >&6; }
19996 HAVE_GETHOSTBYNAME="1"
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20001 $as_echo "no" >&6; }
20004 rm -f core conftest.err conftest.$ac_objext \
20005 conftest$ac_exeext conftest.$ac_ext
20008 if test "$HAVE_GETHOSTBYNAME" != "1"
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20011 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20022 gethostbyname("www.dummysite.com");
20029 if ac_fn_c_try_link "$LINENO"; then :
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20032 $as_echo "yes" >&6; }
20033 HAVE_GETHOSTBYNAME="1"
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 $as_echo "no" >&6; }
20041 rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20045 if test "$HAVE_GETHOSTBYNAME" != "1"
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20048 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20049 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20050 $as_echo_n "(cached) " >&6
20052 ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lnetwork $LIBS"
20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h. */
20061 char gethostbyname ();
20064 return gethostbyname ();
20069 if ac_fn_c_try_link "$LINENO"; then :
20070 ac_cv_lib_network_gethostbyname=yes
20072 ac_cv_lib_network_gethostbyname=no
20074 rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20079 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20080 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20081 HAVE_GETHOSTBYNAME="1"
20082 LIBS="-lnetwork $LIBS"
20088 if test "$HAVE_GETHOSTBYNAME" != "1"
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20091 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20092 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20093 $as_echo_n "(cached) " >&6
20095 ac_check_lib_save_LIBS=$LIBS
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20104 char gethostbyname ();
20107 return gethostbyname ();
20112 if ac_fn_c_try_link "$LINENO"; then :
20113 ac_cv_lib_net_gethostbyname=yes
20115 ac_cv_lib_net_gethostbyname=no
20117 rm -f core conftest.err conftest.$ac_objext \
20118 conftest$ac_exeext conftest.$ac_ext
20119 LIBS=$ac_check_lib_save_LIBS
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20122 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20123 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20124 HAVE_GETHOSTBYNAME="1"
20132 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20133 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20136 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20137 if test "x$ac_cv_func_strcasecmp" = xyes; then :
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
20141 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
20142 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
20143 $as_echo_n "(cached) " >&6
20145 ac_check_lib_save_LIBS=$LIBS
20146 LIBS="-lresolve $LIBS"
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20154 char strcasecmp ();
20157 return strcasecmp ();
20162 if ac_fn_c_try_link "$LINENO"; then :
20163 ac_cv_lib_resolve_strcasecmp=yes
20165 ac_cv_lib_resolve_strcasecmp=no
20167 rm -f core conftest.err conftest.$ac_objext \
20168 conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
20172 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
20173 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
20174 cat >>confdefs.h <<_ACEOF
20175 #define HAVE_LIBRESOLVE 1
20178 LIBS="-lresolve $LIBS"
20185 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
20187 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
20188 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
20189 $as_echo_n "(cached) " >&6
20191 ac_check_lib_save_LIBS=$LIBS
20192 LIBS="-lresolve -lnsl $LIBS"
20193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194 /* end confdefs.h. */
20200 char strcasecmp ();
20203 return strcasecmp ();
20208 if ac_fn_c_try_link "$LINENO"; then :
20209 ac_cv_lib_resolve_strcasecmp=yes
20211 ac_cv_lib_resolve_strcasecmp=no
20213 rm -f core conftest.err conftest.$ac_objext \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
20218 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
20219 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
20220 LIBS="-lresolve $LIBS"
20224 ac_cv_func_strcasecmp="no"
20227 curl_includes_winsock2="\
20228 /* includes start */
20229 #ifdef HAVE_WINDOWS_H
20230 # ifndef WIN32_LEAN_AND_MEAN
20231 # define WIN32_LEAN_AND_MEAN
20233 # include <windows.h>
20234 # ifdef HAVE_WINSOCK2_H
20235 # include <winsock2.h>
20237 # ifdef HAVE_WINSOCK_H
20238 # include <winsock.h>
20242 /* includes end */"
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20245 $as_echo_n "checking for windows.h... " >&6; }
20246 if ${ac_cv_header_windows_h+:} false; then :
20247 $as_echo_n "(cached) " >&6
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h. */
20255 #ifndef WIN32_LEAN_AND_MEAN
20256 #define WIN32_LEAN_AND_MEAN
20258 #include <windows.h>
20263 #if defined(__CYGWIN__) || defined(__CEGCC__)
20264 HAVE_WINDOWS_H shall not be defined.
20266 int dummy=2*WINVER;
20274 if ac_fn_c_try_compile "$LINENO"; then :
20276 ac_cv_header_windows_h="yes"
20280 ac_cv_header_windows_h="no"
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
20287 $as_echo "$ac_cv_header_windows_h" >&6; }
20288 case "$ac_cv_header_windows_h" in
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_WINDOWS_H 1
20296 cat >>confdefs.h <<_ACEOF
20297 #define WIN32_LEAN_AND_MEAN 1
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20305 $as_echo_n "checking for winsock.h... " >&6; }
20306 if ${ac_cv_header_winsock_h+:} false; then :
20307 $as_echo_n "(cached) " >&6
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h. */
20315 #ifndef WIN32_LEAN_AND_MEAN
20316 #define WIN32_LEAN_AND_MEAN
20318 #include <windows.h>
20319 #include <winsock.h>
20324 #if defined(__CYGWIN__) || defined(__CEGCC__)
20325 HAVE_WINSOCK_H shall not be defined.
20327 int dummy=WSACleanup();
20335 if ac_fn_c_try_compile "$LINENO"; then :
20337 ac_cv_header_winsock_h="yes"
20341 ac_cv_header_winsock_h="no"
20344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
20348 $as_echo "$ac_cv_header_winsock_h" >&6; }
20349 case "$ac_cv_header_winsock_h" in
20352 cat >>confdefs.h <<_ACEOF
20353 #define HAVE_WINSOCK_H 1
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20361 $as_echo_n "checking for winsock2.h... " >&6; }
20362 if ${ac_cv_header_winsock2_h+:} false; then :
20363 $as_echo_n "(cached) " >&6
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20371 #ifndef WIN32_LEAN_AND_MEAN
20372 #define WIN32_LEAN_AND_MEAN
20374 #include <windows.h>
20375 #include <winsock2.h>
20380 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20381 HAVE_WINSOCK2_H shall not be defined.
20383 int dummy=2*IPPROTO_ESP;
20391 if ac_fn_c_try_compile "$LINENO"; then :
20393 ac_cv_header_winsock2_h="yes"
20397 ac_cv_header_winsock2_h="no"
20400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
20404 $as_echo "$ac_cv_header_winsock2_h" >&6; }
20405 case "$ac_cv_header_winsock2_h" in
20408 cat >>confdefs.h <<_ACEOF
20409 #define HAVE_WINSOCK2_H 1
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20418 $as_echo_n "checking for connect in libraries... " >&6; }
20419 tst_connect_save_LIBS="$LIBS"
20420 tst_connect_need_LIBS="unknown"
20421 for tst_lib in '' '-lsocket' ; do
20422 if test "$tst_connect_need_LIBS" = "unknown"; then
20423 LIBS="$tst_lib $tst_connect_save_LIBS"
20424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h. */
20428 $curl_includes_winsock2
20429 #ifndef HAVE_WINDOWS_H
20430 int connect(int, void*, int);
20436 if(0 != connect(0, 0, 0))
20444 if ac_fn_c_try_link "$LINENO"; then :
20446 tst_connect_need_LIBS="$tst_lib"
20449 rm -f core conftest.err conftest.$ac_objext \
20450 conftest$ac_exeext conftest.$ac_ext
20453 LIBS="$tst_connect_save_LIBS"
20455 case X-"$tst_connect_need_LIBS" in
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20458 $as_echo "cannot find connect" >&6; }
20459 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20463 $as_echo "yes" >&6; }
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20467 $as_echo "$tst_connect_need_LIBS" >&6; }
20468 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20473 CURL_NETWORK_LIBS=$LIBS
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20476 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20477 if ${ac_cv_header_time+:} false; then :
20478 $as_echo_n "(cached) " >&6
20480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h. */
20482 #include <sys/types.h>
20483 #include <sys/time.h>
20488 if ((struct tm *) 0)
20494 if ac_fn_c_try_compile "$LINENO"; then :
20495 ac_cv_header_time=yes
20497 ac_cv_header_time=no
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20502 $as_echo "$ac_cv_header_time" >&6; }
20503 if test $ac_cv_header_time = yes; then
20505 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20510 for ac_header in sys/types.h sys/time.h time.h
20512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20515 cat >>confdefs.h <<_ACEOF
20516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20524 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20526 if test "x$dontwant_rt" == "xno" ; then
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h. */
20531 #ifdef HAVE_SYS_TYPES_H
20532 #include <sys/types.h>
20534 #ifdef HAVE_SYS_TIME_H
20535 #include <sys/time.h>
20536 #ifdef TIME_WITH_SYS_TIME
20548 struct timespec ts;
20549 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20556 if ac_fn_c_try_compile "$LINENO"; then :
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20559 $as_echo "yes" >&6; }
20560 ac_cv_func_clock_gettime="yes"
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565 $as_echo "no" >&6; }
20566 ac_cv_func_clock_gettime="no"
20569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 if test "$ac_cv_func_clock_gettime" = "yes"; then
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20577 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20579 curl_cv_save_LIBS="$LIBS"
20580 curl_cv_gclk_LIBS="unknown"
20582 for x_xlibs in '' '-lrt' '-lposix4' ; do
20583 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20584 if test -z "$x_xlibs"; then
20585 LIBS="$curl_cv_save_LIBS"
20587 LIBS="$x_xlibs $curl_cv_save_LIBS"
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20593 #ifdef HAVE_SYS_TYPES_H
20594 #include <sys/types.h>
20596 #ifdef HAVE_SYS_TIME_H
20597 #include <sys/time.h>
20598 #ifdef TIME_WITH_SYS_TIME
20610 struct timespec ts;
20611 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20618 if ac_fn_c_try_link "$LINENO"; then :
20620 curl_cv_gclk_LIBS="$x_xlibs"
20623 rm -f core conftest.err conftest.$ac_objext \
20624 conftest$ac_exeext conftest.$ac_ext
20628 LIBS="$curl_cv_save_LIBS"
20630 case X-"$curl_cv_gclk_LIBS" in
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20633 $as_echo "cannot find clock_gettime" >&6; }
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20635 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20636 ac_cv_func_clock_gettime="no"
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20640 $as_echo "no additional lib required" >&6; }
20641 ac_cv_func_clock_gettime="yes"
20644 if test -z "$curl_cv_save_LIBS"; then
20645 LIBS="$curl_cv_gclk_LIBS"
20647 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20650 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20651 ac_cv_func_clock_gettime="yes"
20655 if test "x$cross_compiling" != "xyes" &&
20656 test "$ac_cv_func_clock_gettime" = "yes"; then
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20658 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20659 if test "$cross_compiling" = yes; then :
20660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20662 as_fn_error $? "cannot run test program while cross compiling
20663 See \`config.log' for more details" "$LINENO" 5; }
20665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20666 /* end confdefs.h. */
20669 #ifdef HAVE_STDLIB_H
20670 #include <stdlib.h>
20672 #ifdef HAVE_SYS_TYPES_H
20673 #include <sys/types.h>
20675 #ifdef HAVE_SYS_TIME_H
20676 #include <sys/time.h>
20677 #ifdef TIME_WITH_SYS_TIME
20689 struct timespec ts;
20690 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20700 if ac_fn_c_try_run "$LINENO"; then :
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20703 $as_echo "yes" >&6; }
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20708 $as_echo "no" >&6; }
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20710 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20711 ac_cv_func_clock_gettime="no"
20712 LIBS="$curl_cv_save_LIBS"
20715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20716 conftest.$ac_objext conftest.beam conftest.$ac_ext
20721 case "$ac_cv_func_clock_gettime" in
20724 cat >>confdefs.h <<_ACEOF
20725 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20735 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20739 clean_CPPFLAGS=$CPPFLAGS
20740 clean_LDFLAGS=$LDFLAGS
20744 # Check whether --with-zlib was given.
20745 if test "${with_zlib+set}" = set; then :
20746 withval=$with_zlib; OPT_ZLIB="$withval"
20750 if test "$OPT_ZLIB" = "no" ; then
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20752 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20754 if test "$OPT_ZLIB" = "yes" ; then
20758 if test -z "$OPT_ZLIB" ; then
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20761 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20762 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20763 $as_echo_n "(cached) " >&6
20765 ac_check_lib_save_LIBS=$LIBS
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h. */
20774 char inflateEnd ();
20777 return inflateEnd ();
20782 if ac_fn_c_try_link "$LINENO"; then :
20783 ac_cv_lib_z_inflateEnd=yes
20785 ac_cv_lib_z_inflateEnd=no
20787 rm -f core conftest.err conftest.$ac_objext \
20788 conftest$ac_exeext conftest.$ac_ext
20789 LIBS=$ac_check_lib_save_LIBS
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20792 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20793 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20797 OPT_ZLIB="/usr/local"
20803 if test -n "$OPT_ZLIB"; then
20804 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20805 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20808 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20809 if test "x$ac_cv_header_zlib_h" = xyes; then :
20812 if test "$HAVE_LIBZ" != "1"; then
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20814 $as_echo_n "checking for gzread in -lz... " >&6; }
20815 if ${ac_cv_lib_z_gzread+:} false; then :
20816 $as_echo_n "(cached) " >&6
20818 ac_check_lib_save_LIBS=$LIBS
20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20835 if ac_fn_c_try_link "$LINENO"; then :
20836 ac_cv_lib_z_gzread=yes
20838 ac_cv_lib_z_gzread=no
20840 rm -f core conftest.err conftest.$ac_objext \
20841 conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20845 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20846 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20852 CPPFLAGS=$clean_CPPFLAGS
20853 LDFLAGS=$clean_LDFLAGS
20860 CPPFLAGS=$clean_CPPFLAGS
20861 LDFLAGS=$clean_LDFLAGS
20867 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20870 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20872 CPPFLAGS=$clean_CPPFLAGS
20873 LDFLAGS=$clean_LDFLAGS
20875 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20878 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20879 CPPFLAGS=$clean_CPPFLAGS
20880 LDFLAGS=$clean_LDFLAGS
20882 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20886 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20889 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20893 LIBS="-lz $clean_LIBS"
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20897 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20898 curl_zlib_msg="enabled"
20902 if test x"$AMFIXLIB" = x1; then
20904 HAVE_LIBZ_FALSE='#'
20915 # Check whether --with-ldap-lib was given.
20916 if test "${with_ldap_lib+set}" = set; then :
20917 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20923 # Check whether --with-lber-lib was given.
20924 if test "${with_lber_lib+set}" = set; then :
20925 withval=$with_lber_lib; LBERLIBNAME="$withval"
20929 if test x$CURL_DISABLE_LDAP != x1 ; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20933 $as_echo_n "checking for lber.h... " >&6; }
20934 if ${ac_cv_header_lber_h+:} false; then :
20935 $as_echo_n "(cached) " >&6
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20943 #ifdef HAVE_WINDOWS_H
20944 #ifndef WIN32_LEAN_AND_MEAN
20945 #define WIN32_LEAN_AND_MEAN
20947 #include <windows.h>
20949 #ifdef HAVE_SYS_TYPES_H
20950 #include <sys/types.h>
20954 #define NULL (void *)0
20961 BerValue *bvp = NULL;
20962 BerElement *bep = ber_init(bvp);
20970 if ac_fn_c_try_compile "$LINENO"; then :
20972 ac_cv_header_lber_h="yes"
20976 ac_cv_header_lber_h="no"
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20983 $as_echo "$ac_cv_header_lber_h" >&6; }
20984 if test "$ac_cv_header_lber_h" = "yes"; then
20986 cat >>confdefs.h <<_ACEOF
20987 #define HAVE_LBER_H 1
20991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20996 #ifdef HAVE_WINDOWS_H
20997 #ifndef WIN32_LEAN_AND_MEAN
20998 #define WIN32_LEAN_AND_MEAN
21000 #include <windows.h>
21002 #ifdef HAVE_SYS_TYPES_H
21003 #include <sys/types.h>
21007 #define NULL (void *)0
21009 #ifndef LDAP_DEPRECATED
21010 #define LDAP_DEPRECATED 1
21017 BerValue *bvp = NULL;
21018 BerElement *bep = ber_init(bvp);
21026 if ac_fn_c_try_compile "$LINENO"; then :
21028 curl_cv_need_header_lber_h="no"
21032 curl_cv_need_header_lber_h="yes"
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 case "$curl_cv_need_header_lber_h" in
21040 cat >>confdefs.h <<_ACEOF
21041 #define NEED_LBER_H 1
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21050 $as_echo_n "checking for ldap.h... " >&6; }
21051 if ${ac_cv_header_ldap_h+:} false; then :
21052 $as_echo_n "(cached) " >&6
21055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21056 /* end confdefs.h. */
21060 #ifdef HAVE_WINDOWS_H
21061 #ifndef WIN32_LEAN_AND_MEAN
21062 #define WIN32_LEAN_AND_MEAN
21064 #include <windows.h>
21066 #ifdef HAVE_SYS_TYPES_H
21067 #include <sys/types.h>
21070 #ifndef LDAP_DEPRECATED
21071 #define LDAP_DEPRECATED 1
21081 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21082 int res = ldap_unbind(ldp);
21089 if ac_fn_c_try_compile "$LINENO"; then :
21091 ac_cv_header_ldap_h="yes"
21095 ac_cv_header_ldap_h="no"
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
21102 $as_echo "$ac_cv_header_ldap_h" >&6; }
21103 case "$ac_cv_header_ldap_h" in
21106 cat >>confdefs.h <<_ACEOF
21107 #define HAVE_LDAP_H 1
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21115 $as_echo_n "checking for ldapssl.h... " >&6; }
21116 if ${ac_cv_header_ldapssl_h+:} false; then :
21117 $as_echo_n "(cached) " >&6
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21125 #ifdef HAVE_WINDOWS_H
21126 #ifndef WIN32_LEAN_AND_MEAN
21127 #define WIN32_LEAN_AND_MEAN
21129 #include <windows.h>
21131 #ifdef HAVE_SYS_TYPES_H
21132 #include <sys/types.h>
21136 #define NULL (void *)0
21138 #ifndef LDAP_DEPRECATED
21139 #define LDAP_DEPRECATED 1
21147 #include <ldapssl.h>
21152 char *cert_label = NULL;
21153 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21160 if ac_fn_c_try_compile "$LINENO"; then :
21162 ac_cv_header_ldapssl_h="yes"
21166 ac_cv_header_ldapssl_h="no"
21169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
21173 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
21174 case "$ac_cv_header_ldapssl_h" in
21177 cat >>confdefs.h <<_ACEOF
21178 #define HAVE_LDAPSSL_H 1
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21186 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21187 if ${ac_cv_header_ldap_ssl_h+:} false; then :
21188 $as_echo_n "(cached) " >&6
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21196 #ifdef HAVE_WINDOWS_H
21197 #ifndef WIN32_LEAN_AND_MEAN
21198 #define WIN32_LEAN_AND_MEAN
21200 #include <windows.h>
21202 #ifdef HAVE_SYS_TYPES_H
21203 #include <sys/types.h>
21206 #ifndef LDAP_DEPRECATED
21207 #define LDAP_DEPRECATED 1
21215 #include <ldap_ssl.h>
21220 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21227 if ac_fn_c_try_compile "$LINENO"; then :
21229 ac_cv_header_ldap_ssl_h="yes"
21233 ac_cv_header_ldap_ssl_h="no"
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
21240 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
21241 case "$ac_cv_header_ldap_ssl_h" in
21244 cat >>confdefs.h <<_ACEOF
21245 #define HAVE_LDAP_SSL_H 1
21252 if test -z "$LDAPLIBNAME" ; then
21253 if test "$ac_cv_native_windows" = "yes"; then
21254 LDAPLIBNAME="wldap32"
21259 if test "$LDAPLIBNAME" ; then
21260 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21262 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21263 if eval \${$as_ac_Lib+:} false; then :
21264 $as_echo_n "(cached) " >&6
21266 ac_check_lib_save_LIBS=$LIBS
21267 LIBS="-l"$LDAPLIBNAME" $LIBS"
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21278 return ldap_init ();
21283 if ac_fn_c_try_link "$LINENO"; then :
21284 eval "$as_ac_Lib=yes"
21286 eval "$as_ac_Lib=no"
21288 rm -f core conftest.err conftest.$ac_objext \
21289 conftest$ac_exeext conftest.$ac_ext
21290 LIBS=$ac_check_lib_save_LIBS
21292 eval ac_res=\$$as_ac_Lib
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21294 $as_echo "$ac_res" >&6; }
21295 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21296 cat >>confdefs.h <<_ACEOF
21297 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21300 LIBS="-l"$LDAPLIBNAME" $LIBS"
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21305 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21307 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21309 CURL_DISABLE_LDAP=1
21312 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21314 CURL_DISABLE_LDAPS=1
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21322 $as_echo_n "checking for LDAP libraries... " >&6; }
21328 curl_cv_save_LIBS="$LIBS"
21329 curl_cv_ldap_LIBS="unknown"
21331 for x_nlibs in '' "$u_libs" \
21335 '-lldapssl -lldapx -lldapsdk' \
21336 '-lldapsdk -lldapx -lldapssl' ; do
21337 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21338 if test -z "$x_nlibs"; then
21339 LIBS="$curl_cv_save_LIBS"
21341 LIBS="$x_nlibs $curl_cv_save_LIBS"
21343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h. */
21348 #ifdef HAVE_WINDOWS_H
21349 #ifndef WIN32_LEAN_AND_MEAN
21350 #define WIN32_LEAN_AND_MEAN
21352 #include <windows.h>
21354 #ifdef HAVE_SYS_TYPES_H
21355 #include <sys/types.h>
21359 #define NULL (void *)0
21361 #ifndef LDAP_DEPRECATED
21362 #define LDAP_DEPRECATED 1
21374 BerValue *bvp = NULL;
21375 BerElement *bep = ber_init(bvp);
21376 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21377 int res = ldap_unbind(ldp);
21385 if ac_fn_c_try_link "$LINENO"; then :
21387 curl_cv_ldap_LIBS="$x_nlibs"
21390 rm -f core conftest.err conftest.$ac_objext \
21391 conftest$ac_exeext conftest.$ac_ext
21395 LIBS="$curl_cv_save_LIBS"
21397 case X-"$curl_cv_ldap_LIBS" in
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21400 $as_echo "cannot find LDAP libraries" >&6; }
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21404 $as_echo "no additional lib required" >&6; }
21407 if test -z "$curl_cv_save_LIBS"; then
21408 LIBS="$curl_cv_ldap_LIBS"
21410 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21413 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21418 case X-"$curl_cv_ldap_LIBS" in
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21421 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21423 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21425 CURL_DISABLE_LDAP=1
21428 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21430 CURL_DISABLE_LDAPS=1
21437 if test x$CURL_DISABLE_LDAP != x1 ; then
21439 if test "$LBERLIBNAME" ; then
21440 if test "$LBERLIBNAME" != "no" ; then
21441 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21443 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21444 if eval \${$as_ac_Lib+:} false; then :
21445 $as_echo_n "(cached) " >&6
21447 ac_check_lib_save_LIBS=$LIBS
21448 LIBS="-l"$LBERLIBNAME" $LIBS"
21449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21450 /* end confdefs.h. */
21459 return ber_free ();
21464 if ac_fn_c_try_link "$LINENO"; then :
21465 eval "$as_ac_Lib=yes"
21467 eval "$as_ac_Lib=no"
21469 rm -f core conftest.err conftest.$ac_objext \
21470 conftest$ac_exeext conftest.$ac_ext
21471 LIBS=$ac_check_lib_save_LIBS
21473 eval ac_res=\$$as_ac_Lib
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21475 $as_echo "$ac_res" >&6; }
21476 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21477 cat >>confdefs.h <<_ACEOF
21478 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21481 LIBS="-l"$LBERLIBNAME" $LIBS"
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21486 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21488 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21490 CURL_DISABLE_LDAP=1
21493 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21495 CURL_DISABLE_LDAPS=1
21503 if test x$CURL_DISABLE_LDAP != x1 ; then
21504 for ac_func in ldap_url_parse ldap_init_fd
21506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21507 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21508 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21509 cat >>confdefs.h <<_ACEOF
21510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21517 if test "$LDAPLIBNAME" = "wldap32"; then
21518 curl_ldap_msg="enabled (winldap)"
21520 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21523 curl_ldap_msg="enabled (OpenLDAP)"
21524 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21526 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21534 if test x$CURL_DISABLE_LDAPS != x1 ; then
21535 curl_ldaps_msg="enabled"
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21540 $as_echo_n "checking whether to enable IPv6... " >&6; }
21541 # Check whether --enable-ipv6 was given.
21542 if test "${enable_ipv6+set}" = set; then :
21543 enableval=$enable_ipv6; case "$enableval" in
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 $as_echo "no" >&6; }
21549 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21550 $as_echo "yes" >&6; }
21555 if test "$cross_compiling" = yes; then :
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21557 $as_echo "yes" >&6; }
21561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562 /* end confdefs.h. */
21563 /* is AF_INET6 available? */
21564 #include <sys/types.h>
21565 #ifdef HAVE_WINSOCK2_H
21566 #include <winsock2.h>
21568 #include <sys/socket.h>
21570 #include <stdlib.h> /* for exit() */
21573 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21580 if ac_fn_c_try_run "$LINENO"; then :
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21582 $as_echo "yes" >&6; }
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21586 $as_echo "no" >&6; }
21589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21590 conftest.$ac_objext conftest.beam conftest.$ac_ext
21596 if test "$ipv6" = "yes"; then
21597 curl_ipv6_msg="enabled"
21600 # Check if struct sockaddr_in6 have sin6_scope_id member
21601 if test "$ipv6" = yes; then
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21603 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h. */
21607 #include <sys/types.h>
21608 #ifdef HAVE_WINSOCK2_H
21609 #include <winsock2.h>
21610 #include <ws2tcpip.h>
21612 #include <netinet/in.h>
21616 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21621 if ac_fn_c_try_compile "$LINENO"; then :
21622 have_sin6_scope_id=yes
21624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625 if test "$have_sin6_scope_id" = yes; then
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21627 $as_echo "yes" >&6; }
21629 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21633 $as_echo "no" >&6; }
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21639 $as_echo_n "checking if argv can be written to... " >&6; }
21640 if test "$cross_compiling" = yes; then :
21642 curl_cv_writable_argv=cross
21645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h. */
21649 int main(int argc, char ** argv) {
21651 return (argv[0][0] == ' ')?0:1;
21656 if ac_fn_c_try_run "$LINENO"; then :
21658 curl_cv_writable_argv=yes
21662 curl_cv_writable_argv=no
21665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21666 conftest.$ac_objext conftest.beam conftest.$ac_ext
21669 case $curl_cv_writable_argv in
21672 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21675 $as_echo "yes" >&6; }
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21685 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21693 # Check whether --with-gssapi-includes was given.
21694 if test "${with_gssapi_includes+set}" = set; then :
21695 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21702 # Check whether --with-gssapi-libs was given.
21703 if test "${with_gssapi_libs+set}" = set; then :
21704 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21711 # Check whether --with-gssapi was given.
21712 if test "${with_gssapi+set}" = set; then :
21713 withval=$with_gssapi;
21714 GSSAPI_ROOT="$withval"
21715 if test x"$GSSAPI_ROOT" != xno; then
21717 if test x"$GSSAPI_ROOT" = xyes; then
21725 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21727 save_CPPFLAGS="$CPPFLAGS"
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21729 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21730 if test x"$want_gss" = xyes; then
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21732 $as_echo "yes" >&6; }
21734 if test -z "$GSSAPI_INCS"; then
21735 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21736 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21737 elif test -f "$KRB5CONFIG"; then
21738 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21739 elif test "$GSSAPI_ROOT" != "yes"; then
21740 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21744 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21746 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21747 if test "x$ac_cv_header_gss_h" = xyes; then :
21750 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21756 for ac_header in gssapi/gssapi.h
21758 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21759 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21760 cat >>confdefs.h <<_ACEOF
21761 #define HAVE_GSSAPI_GSSAPI_H 1
21770 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21773 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21774 $ac_includes_default
21775 #ifdef HAVE_GSSAPI_GSSAPI_H
21776 #include <gssapi/gssapi.h>
21780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21781 cat >>confdefs.h <<_ACEOF
21782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21791 if test "x$not_mit" = "x1"; then
21792 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21793 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21796 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21803 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21811 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21814 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h. */
21819 #include <gssapi/gssapi.h>
21820 #include <gssapi/gssapi_generic.h>
21821 #include <gssapi/gssapi_krb5.h>
21829 GSS_C_NT_HOSTBASED_SERVICE,
21837 if ac_fn_c_try_compile "$LINENO"; then :
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21840 $as_echo "yes" >&6; }
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21845 $as_echo "no" >&6; }
21847 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21860 $as_echo "no" >&6; }
21862 if test x"$want_gss" = xyes; then
21864 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21867 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21869 if test -n "$gnu_gss"; then
21870 curl_gss_msg="enabled (GNU GSS)"
21871 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21873 elif test -z "$GSSAPI_LIB_DIR"; then
21876 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21879 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21880 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21881 LIBS="$gss_libs $LIBS"
21882 elif test -f "$KRB5CONFIG"; then
21883 gss_libs=`$KRB5CONFIG --libs gssapi`
21884 LIBS="$gss_libs $LIBS"
21891 gss_libname="gssapi"
21895 if test "$GSSAPI_ROOT" != "yes"; then
21896 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21897 LIBS="-l$gss_libname $LIBS"
21899 LIBS="-l$gss_libname $LIBS"
21905 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21911 LIBS="-lgssapi $LIBS"
21916 CPPFLAGS="$save_CPPFLAGS"
21922 # Check whether --with-winssl was given.
21923 if test "${with_winssl+set}" = set; then :
21924 withval=$with_winssl; OPT_WINSSL=$withval
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21929 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21930 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21931 if test "x$OPT_WINSSL" != "xno" &&
21932 test "x$ac_cv_native_windows" = "xyes"; then
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21934 $as_echo "yes" >&6; }
21936 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21940 curl_ssl_msg="enabled (Windows-native)"
21942 # --with-winssl implies --enable-sspi
21944 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21948 curl_sspi_msg="enabled"
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21951 $as_echo "no" >&6; }
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21955 $as_echo "no" >&6; }
21960 # Check whether --with-darwinssl was given.
21961 if test "${with_darwinssl+set}" = set; then :
21962 withval=$with_darwinssl; OPT_DARWINSSL=$withval
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21967 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21968 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21969 if test "x$OPT_DARWINSSL" != "xno" &&
21970 test -d "/System/Library/Frameworks/Security.framework"; then
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21972 $as_echo "yes" >&6; }
21974 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21978 curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21979 DARWINSSL_ENABLED=1
21980 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21983 $as_echo "no" >&6; }
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987 $as_echo "no" >&6; }
21994 # Check whether --with-ssl was given.
21995 if test "${with_ssl+set}" = set; then :
21996 withval=$with_ssl; OPT_SSL=$withval
22000 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
22001 CLEANLDFLAGS="$LDFLAGS"
22002 CLEANCPPFLAGS="$CPPFLAGS"
22006 *-*-msys* | *-*-mingw*)
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22008 $as_echo_n "checking for gdi32... " >&6; }
22009 my_ac_save_LIBS=$LIBS
22010 LIBS="-lgdi32 $LIBS"
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h. */
22013 #include <windef.h>
22014 #include <wingdi.h>
22022 if ac_fn_c_try_link "$LINENO"; then :
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22026 LIBS=$my_ac_save_LIBS
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22028 $as_echo "no" >&6; }
22031 rm -f core conftest.err conftest.$ac_objext \
22032 conftest$ac_exeext conftest.$ac_ext
22038 if test x$cross_compiling != xyes; then
22041 PREFIX_OPENSSL=/usr/local/ssl
22042 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22045 if test x$cross_compiling != xyes; then
22052 PREFIX_OPENSSL=$OPT_SSL
22054 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22056 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22057 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22061 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22062 if test "$PREFIX_OPENSSL" != "/usr" ; then
22063 SSL_LDFLAGS="-L$LIB_OPENSSL"
22064 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22066 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22070 if test "$PKGTEST" = "yes"; then
22073 if test -n "$PKG_CONFIG"; then
22074 PKGCONFIG="$PKG_CONFIG"
22076 if test -n "$ac_tool_prefix"; then
22077 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22078 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22080 $as_echo_n "checking for $ac_word... " >&6; }
22081 if ${ac_cv_path_PKGCONFIG+:} false; then :
22082 $as_echo_n "(cached) " >&6
22086 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22090 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22091 for as_dir in $as_dummy
22094 test -z "$as_dir" && as_dir=.
22095 for ac_exec_ext in '' $ac_executable_extensions; do
22096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22097 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22108 PKGCONFIG=$ac_cv_path_PKGCONFIG
22109 if test -n "$PKGCONFIG"; then
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22111 $as_echo "$PKGCONFIG" >&6; }
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22114 $as_echo "no" >&6; }
22119 if test -z "$ac_cv_path_PKGCONFIG"; then
22120 ac_pt_PKGCONFIG=$PKGCONFIG
22121 # Extract the first word of "pkg-config", so it can be a program name with args.
22122 set dummy pkg-config; ac_word=$2
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22124 $as_echo_n "checking for $ac_word... " >&6; }
22125 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22126 $as_echo_n "(cached) " >&6
22128 case $ac_pt_PKGCONFIG in
22130 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22135 for as_dir in $as_dummy
22138 test -z "$as_dir" && as_dir=.
22139 for ac_exec_ext in '' $ac_executable_extensions; do
22140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22141 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22152 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22153 if test -n "$ac_pt_PKGCONFIG"; then
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22155 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22158 $as_echo "no" >&6; }
22161 if test "x$ac_pt_PKGCONFIG" = x; then
22164 case $cross_compiling:$ac_tool_warned in
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22168 ac_tool_warned=yes ;;
22170 PKGCONFIG=$ac_pt_PKGCONFIG
22173 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22178 if test "x$PKGCONFIG" != "xno"; then
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22180 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22182 if test -n "$OPENSSL_PCDIR"; then
22183 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22184 export PKG_CONFIG_LIBDIR
22186 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22188 if test -z "$itexists"; then
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22191 $as_echo "no" >&6; }
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22194 $as_echo "found" >&6; }
22199 if test "$PKGCONFIG" != "no" ; then
22201 if test -n "$OPENSSL_PCDIR"; then
22202 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22203 export PKG_CONFIG_LIBDIR
22205 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22208 if test -n "$OPENSSL_PCDIR"; then
22209 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22210 export PKG_CONFIG_LIBDIR
22212 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22215 if test -n "$OPENSSL_PCDIR"; then
22216 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22217 export PKG_CONFIG_LIBDIR
22219 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22223 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22225 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22227 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22229 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22231 LIBS="$SSL_LIBS $LIBS"
22235 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22236 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22239 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22240 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22241 $as_echo_n "(cached) " >&6
22243 ac_check_lib_save_LIBS=$LIBS
22244 LIBS="-lcrypto $LIBS"
22245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22246 /* end confdefs.h. */
22252 char HMAC_Update ();
22255 return HMAC_Update ();
22260 if ac_fn_c_try_link "$LINENO"; then :
22261 ac_cv_lib_crypto_HMAC_Update=yes
22263 ac_cv_lib_crypto_HMAC_Update=no
22265 rm -f core conftest.err conftest.$ac_objext \
22266 conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22270 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22271 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22274 LIBS="-lcrypto $LIBS"
22278 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22279 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22281 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22282 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22283 $as_echo_n "(cached) " >&6
22285 ac_check_lib_save_LIBS=$LIBS
22286 LIBS="-lcrypto $LIBS"
22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h. */
22294 char HMAC_Init_ex ();
22297 return HMAC_Init_ex ();
22302 if ac_fn_c_try_link "$LINENO"; then :
22303 ac_cv_lib_crypto_HMAC_Init_ex=yes
22305 ac_cv_lib_crypto_HMAC_Init_ex=no
22307 rm -f core conftest.err conftest.$ac_objext \
22308 conftest$ac_exeext conftest.$ac_ext
22309 LIBS=$ac_check_lib_save_LIBS
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22312 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22313 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22316 LIBS="-lcrypto $LIBS"
22319 LDFLAGS="$CLEANLDFLAGS"
22320 CPPFLAGS="$CLEANCPPFLAGS"
22330 if test X"$HAVECRYPTO" = X"yes"; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
22332 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22337 #include <openssl/evp.h>
22342 SSLeay_add_all_algorithms();
22348 if ac_fn_c_try_link "$LINENO"; then :
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22351 $as_echo "yes" >&6; }
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22357 $as_echo "no" >&6; }
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22359 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22362 /* end confdefs.h. */
22364 #include <openssl/evp.h>
22369 SSLeay_add_all_algorithms();
22375 if ac_fn_c_try_link "$LINENO"; then :
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22378 $as_echo "yes" >&6; }
22379 LIBS="$saved_libs -ldl"
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22384 $as_echo "no" >&6; }
22389 rm -f core conftest.err conftest.$ac_objext \
22390 conftest$ac_exeext conftest.$ac_ext
22395 rm -f core conftest.err conftest.$ac_objext \
22396 conftest$ac_exeext conftest.$ac_ext
22400 if test X"$HAVECRYPTO" = X"yes"; then
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22403 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22404 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22405 $as_echo_n "(cached) " >&6
22407 ac_check_lib_save_LIBS=$LIBS
22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410 /* end confdefs.h. */
22416 char SSL_connect ();
22419 return SSL_connect ();
22424 if ac_fn_c_try_link "$LINENO"; then :
22425 ac_cv_lib_ssl_SSL_connect=yes
22427 ac_cv_lib_ssl_SSL_connect=no
22429 rm -f core conftest.err conftest.$ac_objext \
22430 conftest$ac_exeext conftest.$ac_ext
22431 LIBS=$ac_check_lib_save_LIBS
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22434 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22435 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_LIBSSL 1
22445 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22447 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22449 LIBS="-lRSAglue -lrsaref $LIBS"
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22451 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22452 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22453 $as_echo_n "(cached) " >&6
22455 ac_check_lib_save_LIBS=$LIBS
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h. */
22464 char SSL_connect ();
22467 return SSL_connect ();
22472 if ac_fn_c_try_link "$LINENO"; then :
22473 ac_cv_lib_ssl_SSL_connect=yes
22475 ac_cv_lib_ssl_SSL_connect=no
22477 rm -f core conftest.err conftest.$ac_objext \
22478 conftest$ac_exeext conftest.$ac_ext
22479 LIBS=$ac_check_lib_save_LIBS
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22482 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22483 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22484 cat >>confdefs.h <<_ACEOF
22485 #define HAVE_LIBSSL 1
22492 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22494 $as_echo "no" >&6; }
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22498 $as_echo "yes" >&6; }
22503 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22504 openssl/pem.h openssl/ssl.h openssl/err.h
22506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22509 cat >>confdefs.h <<_ACEOF
22510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22512 curl_ssl_msg="enabled (OpenSSL)"
22515 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22522 if test $ac_cv_header_openssl_x509_h = no; then
22523 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22526 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22528 cat >>confdefs.h <<_ACEOF
22529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22537 if test $ac_cv_header_x509_h = yes &&
22538 test $ac_cv_header_crypto_h = yes &&
22539 test $ac_cv_header_ssl_h = yes; then
22540 curl_ssl_msg="enabled (OpenSSL)"
22546 if test X"$OPENSSL_ENABLED" = X"1"; then
22547 for ac_header in openssl/pkcs12.h
22549 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22550 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_OPENSSL_PKCS12_H 1
22563 if test X"$OPT_SSL" != Xoff &&
22564 test "$OPENSSL_ENABLED" != "1"; then
22565 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22569 if test X"$OPENSSL_ENABLED" = X"1"; then
22570 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22571 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22573 for ac_header in openssl/engine.h
22575 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22576 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22577 cat >>confdefs.h <<_ACEOF
22578 #define HAVE_OPENSSL_ENGINE_H 1
22585 for ac_func in ENGINE_load_builtin_engines
22587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22589 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22590 cat >>confdefs.h <<_ACEOF
22591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22602 for ac_func in RAND_status \
22606 CRYPTO_cleanup_all_ex_data \
22608 SSLv2_client_method
22610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22613 cat >>confdefs.h <<_ACEOF
22614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22622 $as_echo_n "checking for BoringSSL... " >&6; }
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22627 #include <openssl/base.h>
22632 #ifndef OPENSSL_IS_BORINGSSL
22633 #error not boringssl
22641 if ac_fn_c_try_compile "$LINENO"; then :
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22644 $as_echo "yes" >&6; }
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_BORINGSSL 1
22650 curl_ssl_msg="enabled (BoringSSL)"
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22655 $as_echo "no" >&6; }
22658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22661 $as_echo_n "checking for libressl... " >&6; }
22662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h. */
22666 #include <openssl/opensslv.h>
22671 int dummy = LIBRESSL_VERSION_NUMBER;
22678 if ac_fn_c_try_compile "$LINENO"; then :
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22681 $as_echo "yes" >&6; }
22683 cat >>confdefs.h <<_ACEOF
22684 #define HAVE_LIBRESSL 1
22687 curl_ssl_msg="enabled (libressl)"
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22692 $as_echo "no" >&6; }
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698 if test "$OPENSSL_ENABLED" = "1"; then
22699 if test -n "$LIB_OPENSSL"; then
22700 if test "x$cross_compiling" != "xyes"; then
22701 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22702 export LD_LIBRARY_PATH
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22704 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22714 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22716 OLDCPPFLAGS=$CPPFLAGS
22717 # CPPPFLAGS comes from CURL_CPP_P
22718 CPPFLAGS="$CPPPFLAGS"
22719 if test -z "$SED"; then
22720 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22722 if test -z "$GREP"; then
22723 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22728 /* end confdefs.h. */
22731 # ifdef USE_OPENSSL
22732 # include <openssl/crypto.h>
22734 # include <crypto.h>
22737 #ifdef OPENSSL_VERSION_NUMBER
22738 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22743 if ac_fn_c_try_cpp "$LINENO"; then :
22745 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22746 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22747 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22748 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22749 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22754 rm -f conftest.err conftest.i conftest.$ac_ext
22755 if test -z "$tmp_exp"; then
22756 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22759 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22760 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22763 CPPFLAGS=$OLDCPPFLAGS
22765 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22766 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22767 case "x$tst_verlen" in
22769 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22770 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22771 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22772 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22775 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22776 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22777 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22778 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22785 0x110) tst_show="1.1.0" ;;
22786 0x102) tst_show="1.0.2" ;;
22787 0x101) tst_show="1.0.1" ;;
22788 0x100) tst_show="1.0.0" ;;
22789 0x099) tst_show="0.9.9" ;;
22790 0x098) tst_show="0.9.8" ;;
22791 0x097) tst_show="0.9.7" ;;
22792 0x096) tst_show="0.9.6" ;;
22793 0x095) tst_show="0.9.5" ;;
22794 0x094) tst_show="0.9.4" ;;
22795 0x093) tst_show="0.9.3" ;;
22796 0x092) tst_show="0.9.2" ;;
22797 0x091) tst_show="0.9.1" ;;
22798 *) tst_show="unknown" ;;
22800 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22805 $as_echo "$tst_show" >&6; }
22807 curl_openssl_api_headers=$tst_api
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22814 $as_echo_n "checking for OpenSSL library version... " >&6; }
22815 if test "$tst_api" = "unknown"; then
22818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22819 /* end confdefs.h. */
22822 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22824 # include <limits.h>
22826 # include <assert.h>
22828 #undef SSL_CTX_set_not_resumbl_sess_cb
22832 char SSL_CTX_set_not_resumbl_sess_cb ();
22833 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22839 return SSL_CTX_set_not_resumbl_sess_cb ();
22845 if ac_fn_c_try_link "$LINENO"; then :
22850 rm -f core conftest.err conftest.$ac_objext \
22851 conftest$ac_exeext conftest.$ac_ext
22854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22858 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22860 # include <limits.h>
22862 # include <assert.h>
22864 #undef SSL_CTX_set_not_resumable_session_callback
22868 char SSL_CTX_set_not_resumable_session_callback ();
22869 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22875 return SSL_CTX_set_not_resumable_session_callback ();
22881 if ac_fn_c_try_link "$LINENO"; then :
22886 rm -f core conftest.err conftest.$ac_objext \
22887 conftest$ac_exeext conftest.$ac_ext
22891 if test "$tst_api" = "unknown"; then
22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h. */
22896 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22898 # include <limits.h>
22900 # include <assert.h>
22902 #undef SSL_CONF_CTX_new
22906 char SSL_CONF_CTX_new ();
22907 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22913 return SSL_CONF_CTX_new ();
22919 if ac_fn_c_try_link "$LINENO"; then :
22924 rm -f core conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
22927 if test "$tst_api" = "unknown"; then
22928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22929 /* end confdefs.h. */
22932 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22934 # include <limits.h>
22936 # include <assert.h>
22938 #undef SSL_renegotiate_abbreviated
22942 char SSL_renegotiate_abbreviated ();
22943 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22949 return SSL_renegotiate_abbreviated ();
22955 if ac_fn_c_try_link "$LINENO"; then :
22960 rm -f core conftest.err conftest.$ac_objext \
22961 conftest$ac_exeext conftest.$ac_ext
22963 if test "$tst_api" = "unknown"; then
22964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22965 /* end confdefs.h. */
22968 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22970 # include <limits.h>
22972 # include <assert.h>
22974 #undef OBJ_add_sigid
22978 char OBJ_add_sigid ();
22979 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22985 return OBJ_add_sigid ();
22991 if ac_fn_c_try_link "$LINENO"; then :
22996 rm -f core conftest.err conftest.$ac_objext \
22997 conftest$ac_exeext conftest.$ac_ext
22999 if test "$tst_api" = "unknown"; then
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23004 #define ERR_set_mark innocuous_ERR_set_mark
23006 # include <limits.h>
23008 # include <assert.h>
23010 #undef ERR_set_mark
23014 char ERR_set_mark ();
23015 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23021 return ERR_set_mark ();
23027 if ac_fn_c_try_link "$LINENO"; then :
23032 rm -f core conftest.err conftest.$ac_objext \
23033 conftest$ac_exeext conftest.$ac_ext
23035 if test "$tst_api" = "unknown"; then
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h. */
23040 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23042 # include <limits.h>
23044 # include <assert.h>
23046 #undef ERR_peek_last_error
23050 char ERR_peek_last_error ();
23051 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23057 return ERR_peek_last_error ();
23063 if ac_fn_c_try_link "$LINENO"; then :
23068 rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23071 if test "$tst_api" = "unknown"; then
23072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h. */
23076 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23078 # include <limits.h>
23080 # include <assert.h>
23082 #undef c2i_ASN1_OBJECT
23086 char c2i_ASN1_OBJECT ();
23087 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23093 return c2i_ASN1_OBJECT ();
23099 if ac_fn_c_try_link "$LINENO"; then :
23104 rm -f core conftest.err conftest.$ac_objext \
23105 conftest$ac_exeext conftest.$ac_ext
23107 if test "$tst_api" = "unknown"; then
23108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109 /* end confdefs.h. */
23112 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23114 # include <limits.h>
23116 # include <assert.h>
23118 #undef SSL_CTX_set_purpose
23122 char SSL_CTX_set_purpose ();
23123 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23129 return SSL_CTX_set_purpose ();
23135 if ac_fn_c_try_link "$LINENO"; then :
23140 rm -f core conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
23143 if test "$tst_api" = "unknown"; then
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23148 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23150 # include <limits.h>
23152 # include <assert.h>
23158 char OBJ_obj2txt ();
23159 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23165 return OBJ_obj2txt ();
23171 if ac_fn_c_try_link "$LINENO"; then :
23176 rm -f core conftest.err conftest.$ac_objext \
23177 conftest$ac_exeext conftest.$ac_ext
23179 if test "$tst_api" = "unknown"; then
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23184 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23186 # include <limits.h>
23188 # include <assert.h>
23190 #undef SSL_get_verify_depth
23194 char SSL_get_verify_depth ();
23195 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23201 return SSL_get_verify_depth ();
23207 if ac_fn_c_try_link "$LINENO"; then :
23212 rm -f core conftest.err conftest.$ac_objext \
23213 conftest$ac_exeext conftest.$ac_ext
23215 if test "$tst_api" = "unknown"; then
23216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23220 #define SSL_library_init innocuous_SSL_library_init
23222 # include <limits.h>
23224 # include <assert.h>
23226 #undef SSL_library_init
23230 char SSL_library_init ();
23231 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23237 return SSL_library_init ();
23243 if ac_fn_c_try_link "$LINENO"; then :
23248 rm -f core conftest.err conftest.$ac_objext \
23249 conftest$ac_exeext conftest.$ac_ext
23251 if test "$tst_api" = "unknown"; then
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23256 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23258 # include <limits.h>
23260 # include <assert.h>
23262 #undef SSL_CTX_set_cipher_list
23266 char SSL_CTX_set_cipher_list ();
23267 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23273 return SSL_CTX_set_cipher_list ();
23279 if ac_fn_c_try_link "$LINENO"; then :
23284 rm -f core conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
23288 0x110) tst_show="1.1.0" ;;
23289 0x102) tst_show="1.0.2" ;;
23290 0x101) tst_show="1.0.1" ;;
23291 0x100) tst_show="1.0.0" ;;
23292 0x099) tst_show="0.9.9" ;;
23293 0x098) tst_show="0.9.8" ;;
23294 0x097) tst_show="0.9.7" ;;
23295 0x096) tst_show="0.9.6" ;;
23296 0x095) tst_show="0.9.5" ;;
23297 0x094) tst_show="0.9.4" ;;
23298 0x093) tst_show="0.9.3" ;;
23299 0x092) tst_show="0.9.2" ;;
23300 0x091) tst_show="0.9.1" ;;
23301 *) tst_show="unknown" ;;
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23304 $as_echo "$tst_show" >&6; }
23306 curl_openssl_api_library=$tst_api
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23312 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23313 if test "$curl_openssl_api_headers" = "unknown" ||
23314 test "$curl_openssl_api_library" = "unknown"; then
23316 tst_warns="Can not compare OpenSSL headers and library versions."
23317 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23319 tst_warns="OpenSSL headers and library versions do not match."
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23322 $as_echo "$tst_match" >&6; }
23323 if test "$tst_match" != "yes"; then
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23325 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23333 if test X"$OPENSSL_ENABLED" = X"1"; then
23335 # Check whether --with-egd-socket was given.
23336 if test "${with_egd_socket+set}" = set; then :
23337 withval=$with_egd_socket; EGD_SOCKET="$withval"
23341 if test -n "$EGD_SOCKET" ; then
23343 cat >>confdefs.h <<_ACEOF
23344 #define EGD_SOCKET "$EGD_SOCKET"
23350 # Check whether --with-random was given.
23351 if test "${with_random+set}" = set; then :
23352 withval=$with_random; RANDOM_FILE="$withval"
23355 if test x$cross_compiling != xyes; then
23356 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23358 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23359 if eval \${$as_ac_File+:} false; then :
23360 $as_echo_n "(cached) " >&6
23362 test "$cross_compiling" = yes &&
23363 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23364 if test -r ""/dev/urandom""; then
23365 eval "$as_ac_File=yes"
23367 eval "$as_ac_File=no"
23370 eval ac_res=\$$as_ac_File
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23372 $as_echo "$ac_res" >&6; }
23373 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23374 RANDOM_FILE="/dev/urandom"
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23379 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23385 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23388 cat >>confdefs.h <<_ACEOF
23389 #define RANDOM_FILE "$RANDOM_FILE"
23395 if test "$OPENSSL_ENABLED" = "1"; then
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23397 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23398 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23399 $as_echo_n "(cached) " >&6
23401 ac_check_lib_save_LIBS=$LIBS
23402 LIBS="-lcrypto $LIBS"
23403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23404 /* end confdefs.h. */
23410 char SRP_Calc_client_key ();
23413 return SRP_Calc_client_key ();
23418 if ac_fn_c_try_link "$LINENO"; then :
23419 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23421 ac_cv_lib_crypto_SRP_Calc_client_key=no
23423 rm -f core conftest.err conftest.$ac_objext \
23424 conftest$ac_exeext conftest.$ac_ext
23425 LIBS=$ac_check_lib_save_LIBS
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23428 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23429 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23432 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23445 # Check whether --with-gnutls was given.
23446 if test "${with_gnutls+set}" = set; then :
23447 withval=$with_gnutls; OPT_GNUTLS=$withval
23451 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23453 if test X"$OPT_GNUTLS" != Xno; then
23461 if test "x$OPT_GNUTLS" = "xyes"; then
23463 if test -n "$PKG_CONFIG"; then
23464 PKGCONFIG="$PKG_CONFIG"
23466 if test -n "$ac_tool_prefix"; then
23467 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23468 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23470 $as_echo_n "checking for $ac_word... " >&6; }
23471 if ${ac_cv_path_PKGCONFIG+:} false; then :
23472 $as_echo_n "(cached) " >&6
23476 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23480 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23481 for as_dir in $as_dummy
23484 test -z "$as_dir" && as_dir=.
23485 for ac_exec_ext in '' $ac_executable_extensions; do
23486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23487 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23498 PKGCONFIG=$ac_cv_path_PKGCONFIG
23499 if test -n "$PKGCONFIG"; then
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23501 $as_echo "$PKGCONFIG" >&6; }
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23504 $as_echo "no" >&6; }
23509 if test -z "$ac_cv_path_PKGCONFIG"; then
23510 ac_pt_PKGCONFIG=$PKGCONFIG
23511 # Extract the first word of "pkg-config", so it can be a program name with args.
23512 set dummy pkg-config; ac_word=$2
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23514 $as_echo_n "checking for $ac_word... " >&6; }
23515 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23516 $as_echo_n "(cached) " >&6
23518 case $ac_pt_PKGCONFIG in
23520 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23524 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23525 for as_dir in $as_dummy
23528 test -z "$as_dir" && as_dir=.
23529 for ac_exec_ext in '' $ac_executable_extensions; do
23530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23531 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23542 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23543 if test -n "$ac_pt_PKGCONFIG"; then
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23545 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23548 $as_echo "no" >&6; }
23551 if test "x$ac_pt_PKGCONFIG" = x; then
23554 case $cross_compiling:$ac_tool_warned in
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23558 ac_tool_warned=yes ;;
23560 PKGCONFIG=$ac_pt_PKGCONFIG
23563 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23568 if test "x$PKGCONFIG" != "xno"; then
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23570 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23572 if test -n ""; then
23573 PKG_CONFIG_LIBDIR=""
23574 export PKG_CONFIG_LIBDIR
23576 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23578 if test -z "$itexists"; then
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23581 $as_echo "no" >&6; }
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23584 $as_echo "found" >&6; }
23589 if test "$PKGCONFIG" != "no" ; then
23590 addlib=`$PKGCONFIG --libs-only-l gnutls`
23591 addld=`$PKGCONFIG --libs-only-L gnutls`
23592 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23593 version=`$PKGCONFIG --modversion gnutls`
23594 gtlslib=`echo $addld | $SED -e 's/-L//'`
23596 check=`libgnutls-config --version 2>/dev/null`
23597 if test -n "$check"; then
23598 addlib=`libgnutls-config --libs`
23599 addcflags=`libgnutls-config --cflags`
23600 version=`libgnutls-config --version`
23601 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23605 cfg=$OPT_GNUTLS/bin/libgnutls-config
23606 check=`$cfg --version 2>/dev/null`
23607 if test -n "$check"; then
23608 addlib=`$cfg --libs`
23609 addcflags=`$cfg --cflags`
23610 version=`$cfg --version`
23611 gtlslib=`$cfg --prefix`/lib$libsuff
23614 addld=-L$OPT_GNUTLS/lib$libsuff
23615 addcflags=-I$OPT_GNUTLS/include
23616 version="" # we just don't know
23617 gtlslib=$OPT_GNUTLS/lib$libsuff
23621 if test -z "$version"; then
23625 if test -n "$addlib"; then
23628 CLEANCPPFLAGS="$CPPFLAGS"
23629 CLEANLDFLAGS="$LDFLAGS"
23631 LIBS="$addlib $LIBS"
23632 LDFLAGS="$LDFLAGS $addld"
23633 if test "$addcflags" != "-I/usr/include"; then
23634 CPPFLAGS="$CPPFLAGS $addcflags"
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23638 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23639 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23640 $as_echo_n "(cached) " >&6
23642 ac_check_lib_save_LIBS=$LIBS
23643 LIBS="-lgnutls $LIBS"
23644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h. */
23651 char gnutls_check_version ();
23654 return gnutls_check_version ();
23659 if ac_fn_c_try_link "$LINENO"; then :
23660 ac_cv_lib_gnutls_gnutls_check_version=yes
23662 ac_cv_lib_gnutls_gnutls_check_version=no
23664 rm -f core conftest.err conftest.$ac_objext \
23665 conftest$ac_exeext conftest.$ac_ext
23666 LIBS=$ac_check_lib_save_LIBS
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23669 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23670 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23673 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23679 curl_ssl_msg="enabled (GnuTLS)"
23684 CPPFLAGS="$CLEANCPPFLAGS"
23689 if test "x$USE_GNUTLS" = "xyes"; then
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23691 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23693 if test -n "$gtlslib"; then
23694 if test "x$cross_compiling" != "xyes"; then
23695 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23696 export LD_LIBRARY_PATH
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23698 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23701 for ac_func in gnutls_certificate_set_x509_key_file2
23703 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_x509_key_file2" "ac_cv_func_gnutls_certificate_set_x509_key_file2"
23704 if test "x$ac_cv_func_gnutls_certificate_set_x509_key_file2" = xyes; then :
23705 cat >>confdefs.h <<_ACEOF
23706 #define HAVE_GNUTLS_CERTIFICATE_SET_X509_KEY_FILE2 1
23720 if test "$GNUTLS_ENABLED" = "1"; then
23722 # First check if we can detect either crypto library via transitive linking
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23724 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23725 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23726 $as_echo_n "(cached) " >&6
23728 ac_check_lib_save_LIBS=$LIBS
23729 LIBS="-lgnutls $LIBS"
23730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23731 /* end confdefs.h. */
23737 char nettle_MD5Init ();
23740 return nettle_MD5Init ();
23745 if ac_fn_c_try_link "$LINENO"; then :
23746 ac_cv_lib_gnutls_nettle_MD5Init=yes
23748 ac_cv_lib_gnutls_nettle_MD5Init=no
23750 rm -f core conftest.err conftest.$ac_objext \
23751 conftest$ac_exeext conftest.$ac_ext
23752 LIBS=$ac_check_lib_save_LIBS
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23755 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23756 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23757 USE_GNUTLS_NETTLE=1
23760 if test "$USE_GNUTLS_NETTLE" = ""; then
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23762 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23763 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23764 $as_echo_n "(cached) " >&6
23766 ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-lgnutls $LIBS"
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23775 char gcry_control ();
23778 return gcry_control ();
23783 if ac_fn_c_try_link "$LINENO"; then :
23784 ac_cv_lib_gnutls_gcry_control=yes
23786 ac_cv_lib_gnutls_gcry_control=no
23788 rm -f core conftest.err conftest.$ac_objext \
23789 conftest$ac_exeext conftest.$ac_ext
23790 LIBS=$ac_check_lib_save_LIBS
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23793 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23794 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23795 USE_GNUTLS_NETTLE=0
23799 # If not, try linking directly to both of them to see if they are available
23800 if test "$USE_GNUTLS_NETTLE" = ""; then
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23802 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23803 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23804 $as_echo_n "(cached) " >&6
23806 ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lnettle $LIBS"
23808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23809 /* end confdefs.h. */
23815 char nettle_MD5Init ();
23818 return nettle_MD5Init ();
23823 if ac_fn_c_try_link "$LINENO"; then :
23824 ac_cv_lib_nettle_nettle_MD5Init=yes
23826 ac_cv_lib_nettle_nettle_MD5Init=no
23828 rm -f core conftest.err conftest.$ac_objext \
23829 conftest$ac_exeext conftest.$ac_ext
23830 LIBS=$ac_check_lib_save_LIBS
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23833 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23834 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23835 USE_GNUTLS_NETTLE=1
23839 if test "$USE_GNUTLS_NETTLE" = ""; then
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23841 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23842 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23843 $as_echo_n "(cached) " >&6
23845 ac_check_lib_save_LIBS=$LIBS
23846 LIBS="-lgcrypt $LIBS"
23847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h. */
23854 char gcry_control ();
23857 return gcry_control ();
23862 if ac_fn_c_try_link "$LINENO"; then :
23863 ac_cv_lib_gcrypt_gcry_control=yes
23865 ac_cv_lib_gcrypt_gcry_control=no
23867 rm -f core conftest.err conftest.$ac_objext \
23868 conftest$ac_exeext conftest.$ac_ext
23869 LIBS=$ac_check_lib_save_LIBS
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23872 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23873 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23874 USE_GNUTLS_NETTLE=0
23878 if test "$USE_GNUTLS_NETTLE" = ""; then
23879 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23881 if test "$USE_GNUTLS_NETTLE" = "1"; then
23883 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23885 USE_GNUTLS_NETTLE=1
23887 LIBS="-lnettle $LIBS"
23889 LIBS="-lgcrypt $LIBS"
23893 if test "$GNUTLS_ENABLED" = "1"; then
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23895 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23896 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23897 $as_echo_n "(cached) " >&6
23899 ac_check_lib_save_LIBS=$LIBS
23900 LIBS="-lgnutls $LIBS"
23901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23902 /* end confdefs.h. */
23908 char gnutls_srp_verifier ();
23911 return gnutls_srp_verifier ();
23916 if ac_fn_c_try_link "$LINENO"; then :
23917 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23919 ac_cv_lib_gnutls_gnutls_srp_verifier=no
23921 rm -f core conftest.err conftest.$ac_objext \
23922 conftest$ac_exeext conftest.$ac_ext
23923 LIBS=$ac_check_lib_save_LIBS
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23926 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23927 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23930 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23942 _cppflags=$CPPFLAGS
23945 # Check whether --with-polarssl was given.
23946 if test "${with_polarssl+set}" = set; then :
23947 withval=$with_polarssl; OPT_POLARSSL=$withval
23951 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23953 if test X"$OPT_POLARSSL" != Xno; then
23955 if test "$OPT_POLARSSL" = "yes"; then
23959 if test -z "$OPT_POLARSSL" ; then
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23962 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23963 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23964 $as_echo_n "(cached) " >&6
23966 ac_check_lib_save_LIBS=$LIBS
23967 LIBS="-lpolarssl $LIBS"
23968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23969 /* end confdefs.h. */
23975 char havege_init ();
23978 return havege_init ();
23983 if ac_fn_c_try_link "$LINENO"; then :
23984 ac_cv_lib_polarssl_havege_init=yes
23986 ac_cv_lib_polarssl_havege_init=no
23988 rm -f core conftest.err conftest.$ac_objext \
23989 conftest$ac_exeext conftest.$ac_ext
23990 LIBS=$ac_check_lib_save_LIBS
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23993 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23994 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23997 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24003 curl_ssl_msg="enabled (PolarSSL)"
24014 if test "x$USE_POLARSSL" != "xyes"; then
24015 addld=-L$OPT_POLARSSL/lib$libsuff
24016 addcflags=-I$OPT_POLARSSL/include
24017 polarssllib=$OPT_POLARSSL/lib$libsuff
24019 LDFLAGS="$LDFLAGS $addld"
24020 if test "$addcflags" != "-I/usr/include"; then
24021 CPPFLAGS="$CPPFLAGS $addcflags"
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24025 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24026 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24027 $as_echo_n "(cached) " >&6
24029 ac_check_lib_save_LIBS=$LIBS
24030 LIBS="-lpolarssl $LIBS"
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24041 return ssl_init ();
24046 if ac_fn_c_try_link "$LINENO"; then :
24047 ac_cv_lib_polarssl_ssl_init=yes
24049 ac_cv_lib_polarssl_ssl_init=no
24051 rm -f core conftest.err conftest.$ac_objext \
24052 conftest$ac_exeext conftest.$ac_ext
24053 LIBS=$ac_check_lib_save_LIBS
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24056 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24057 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24060 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24066 curl_ssl_msg="enabled (PolarSSL)"
24070 CPPFLAGS=$_cppflags
24077 if test "x$USE_POLARSSL" = "xyes"; then
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24079 $as_echo "$as_me: detected PolarSSL" >&6;}
24081 LIBS="-lpolarssl $LIBS"
24083 if test -n "$polarssllib"; then
24084 if test "x$cross_compiling" != "xyes"; then
24085 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24086 export LD_LIBRARY_PATH
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24088 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24099 _cppflags=$CPPFLAGS
24102 # Check whether --with-mbedtls was given.
24103 if test "${with_mbedtls+set}" = set; then :
24104 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24108 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24110 if test X"$OPT_MBEDTLS" != Xno; then
24112 if test "$OPT_MBEDTLS" = "yes"; then
24116 if test -z "$OPT_MBEDTLS" ; then
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24119 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24120 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24121 $as_echo_n "(cached) " >&6
24123 ac_check_lib_save_LIBS=$LIBS
24124 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24126 /* end confdefs.h. */
24132 char mbedtls_havege_init ();
24135 return mbedtls_havege_init ();
24140 if ac_fn_c_try_link "$LINENO"; then :
24141 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24143 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24145 rm -f core conftest.err conftest.$ac_objext \
24146 conftest$ac_exeext conftest.$ac_ext
24147 LIBS=$ac_check_lib_save_LIBS
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24150 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24151 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24154 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24160 curl_ssl_msg="enabled (mbedTLS)"
24171 if test "x$USE_MBEDTLS" != "xyes"; then
24172 addld=-L$OPT_MBEDTLS/lib$libsuff
24173 addcflags=-I$OPT_MBEDTLS/include
24174 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24176 LDFLAGS="$LDFLAGS $addld"
24177 if test "$addcflags" != "-I/usr/include"; then
24178 CPPFLAGS="$CPPFLAGS $addcflags"
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24182 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24183 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24184 $as_echo_n "(cached) " >&6
24186 ac_check_lib_save_LIBS=$LIBS
24187 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24189 /* end confdefs.h. */
24195 char mbedtls_ssl_init ();
24198 return mbedtls_ssl_init ();
24203 if ac_fn_c_try_link "$LINENO"; then :
24204 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24206 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24208 rm -f core conftest.err conftest.$ac_objext \
24209 conftest$ac_exeext conftest.$ac_ext
24210 LIBS=$ac_check_lib_save_LIBS
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24213 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24214 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24217 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24223 curl_ssl_msg="enabled (mbedTLS)"
24227 CPPFLAGS=$_cppflags
24234 if test "x$USE_MBEDTLS" = "xyes"; then
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24236 $as_echo "$as_me: detected mbedTLS" >&6;}
24238 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24240 if test -n "$mbedtlslib"; then
24241 if test "x$cross_compiling" != "xyes"; then
24242 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24243 export LD_LIBRARY_PATH
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24245 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24256 _cppflags=$CPPFLAGS
24259 # Check whether --with-cyassl was given.
24260 if test "${with_cyassl+set}" = set; then :
24261 withval=$with_cyassl; OPT_CYASSL=$withval
24265 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24267 if test X"$OPT_CYASSL" != Xno; then
24269 if test "$OPT_CYASSL" = "yes"; then
24274 cyassllibname=cyassl
24276 if test -z "$OPT_CYASSL" ; then
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24279 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24280 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24281 $as_echo_n "(cached) " >&6
24283 ac_check_lib_save_LIBS=$LIBS
24284 LIBS="-lcyassl $LIBS"
24285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24286 /* end confdefs.h. */
24292 char CyaSSL_Init ();
24295 return CyaSSL_Init ();
24300 if ac_fn_c_try_link "$LINENO"; then :
24301 ac_cv_lib_cyassl_CyaSSL_Init=yes
24303 ac_cv_lib_cyassl_CyaSSL_Init=no
24305 rm -f core conftest.err conftest.$ac_objext \
24306 conftest$ac_exeext conftest.$ac_ext
24307 LIBS=$ac_check_lib_save_LIBS
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24310 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24311 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24314 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24320 curl_ssl_msg="enabled (CyaSSL)"
24331 if test "x$USE_CYASSL" != "xyes"; then
24332 addld=-L$OPT_CYASSL/lib$libsuff
24333 addcflags=-I$OPT_CYASSL/include
24334 cyassllib=$OPT_CYASSL/lib$libsuff
24336 LDFLAGS="$LDFLAGS $addld"
24337 if test "$addcflags" != "-I/usr/include"; then
24338 CPPFLAGS="$CPPFLAGS $addcflags"
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24342 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24343 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24344 $as_echo_n "(cached) " >&6
24346 ac_check_lib_save_LIBS=$LIBS
24347 LIBS="-lcyassl $LIBS"
24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h. */
24355 char CyaSSL_Init ();
24358 return CyaSSL_Init ();
24363 if ac_fn_c_try_link "$LINENO"; then :
24364 ac_cv_lib_cyassl_CyaSSL_Init=yes
24366 ac_cv_lib_cyassl_CyaSSL_Init=no
24368 rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24370 LIBS=$ac_check_lib_save_LIBS
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24373 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24374 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24377 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24383 curl_ssl_msg="enabled (CyaSSL)"
24387 CPPFLAGS=$_cppflags
24399 if test "x$USE_CYASSL" != "xyes"; then
24400 addld=-L$OPT_CYASSL/lib$libsuff
24401 addcflags=-I$OPT_CYASSL/include
24402 cyassllib=$OPT_CYASSL/lib$libsuff
24404 LDFLAGS="$LDFLAGS $addld"
24405 if test "$addcflags" != "-I/usr/include"; then
24406 CPPFLAGS="$CPPFLAGS $addcflags"
24409 cyassllibname=wolfssl
24410 my_ac_save_LIBS="$LIBS"
24411 LIBS="-l$cyassllibname -lm $LIBS"
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24414 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416 /* end confdefs.h. */
24419 /* These aren't needed for detection and confuse WolfSSL.
24420 They are set up properly later if it is detected. */
24422 #undef SIZEOF_LONG_LONG
24423 #include <cyassl/ssl.h>
24428 return CyaSSL_Init();
24435 if ac_fn_c_try_link "$LINENO"; then :
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24438 $as_echo "yes" >&6; }
24440 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24446 curl_ssl_msg="enabled (WolfSSL)"
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24451 $as_echo "no" >&6; }
24452 CPPFLAGS=$_cppflags
24457 rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24459 LIBS="$my_ac_save_LIBS"
24462 if test "x$USE_CYASSL" = "xyes"; then
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24464 $as_echo "$as_me: detected $cyassllibname" >&6;}
24466 # The cast to long int works around a bug in the HP C Compiler
24467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24469 # This bug is HP SR number 8606223364.
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24471 $as_echo_n "checking size of long long... " >&6; }
24472 if ${ac_cv_sizeof_long_long+:} false; then :
24473 $as_echo_n "(cached) " >&6
24475 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24478 if test "$ac_cv_type_long_long" = yes; then
24479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24481 as_fn_error 77 "cannot compute sizeof (long long)
24482 See \`config.log' for more details" "$LINENO" 5; }
24484 ac_cv_sizeof_long_long=0
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24490 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24494 cat >>confdefs.h <<_ACEOF
24495 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24500 for ac_header in cyassl/options.h
24502 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24503 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24504 cat >>confdefs.h <<_ACEOF
24505 #define HAVE_CYASSL_OPTIONS_H 1
24513 for ac_header in cyassl/error-ssl.h
24515 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24516 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24517 cat >>confdefs.h <<_ACEOF
24518 #define HAVE_CYASSL_ERROR_SSL_H 1
24526 LIBS="-l$cyassllibname -lm $LIBS"
24528 if test "x$cyassllibname" = "xwolfssl"; then
24529 for ac_func in wolfSSLv3_client_method \
24530 wolfSSL_get_peer_certificate
24532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24535 cat >>confdefs.h <<_ACEOF
24536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24543 for ac_func in CyaSSL_get_peer_certificate
24545 ac_fn_c_check_func "$LINENO" "CyaSSL_get_peer_certificate" "ac_cv_func_CyaSSL_get_peer_certificate"
24546 if test "x$ac_cv_func_CyaSSL_get_peer_certificate" = xyes; then :
24547 cat >>confdefs.h <<_ACEOF
24548 #define HAVE_CYASSL_GET_PEER_CERTIFICATE 1
24556 if test -n "$cyassllib"; then
24557 if test "x$cross_compiling" != "xyes"; then
24558 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24559 export LD_LIBRARY_PATH
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24561 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24574 # Check whether --with-nss was given.
24575 if test "${with_nss+set}" = set; then :
24576 withval=$with_nss; OPT_NSS=$withval
24580 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24582 if test X"$OPT_NSS" != Xno; then
24590 if test "x$OPT_NSS" = "xyes"; then
24593 if test -n "$PKG_CONFIG"; then
24594 PKGCONFIG="$PKG_CONFIG"
24596 if test -n "$ac_tool_prefix"; then
24597 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24598 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24600 $as_echo_n "checking for $ac_word... " >&6; }
24601 if ${ac_cv_path_PKGCONFIG+:} false; then :
24602 $as_echo_n "(cached) " >&6
24606 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24611 for as_dir in $as_dummy
24614 test -z "$as_dir" && as_dir=.
24615 for ac_exec_ext in '' $ac_executable_extensions; do
24616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24617 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24628 PKGCONFIG=$ac_cv_path_PKGCONFIG
24629 if test -n "$PKGCONFIG"; then
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24631 $as_echo "$PKGCONFIG" >&6; }
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24634 $as_echo "no" >&6; }
24639 if test -z "$ac_cv_path_PKGCONFIG"; then
24640 ac_pt_PKGCONFIG=$PKGCONFIG
24641 # Extract the first word of "pkg-config", so it can be a program name with args.
24642 set dummy pkg-config; ac_word=$2
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24644 $as_echo_n "checking for $ac_word... " >&6; }
24645 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24646 $as_echo_n "(cached) " >&6
24648 case $ac_pt_PKGCONFIG in
24650 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24654 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24655 for as_dir in $as_dummy
24658 test -z "$as_dir" && as_dir=.
24659 for ac_exec_ext in '' $ac_executable_extensions; do
24660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24661 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24672 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24673 if test -n "$ac_pt_PKGCONFIG"; then
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24675 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24678 $as_echo "no" >&6; }
24681 if test "x$ac_pt_PKGCONFIG" = x; then
24684 case $cross_compiling:$ac_tool_warned in
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24688 ac_tool_warned=yes ;;
24690 PKGCONFIG=$ac_pt_PKGCONFIG
24693 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24698 if test "x$PKGCONFIG" != "xno"; then
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24700 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24702 if test -n ""; then
24703 PKG_CONFIG_LIBDIR=""
24704 export PKG_CONFIG_LIBDIR
24706 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24708 if test -z "$itexists"; then
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24711 $as_echo "no" >&6; }
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24714 $as_echo "found" >&6; }
24719 if test "$PKGCONFIG" != "no" ; then
24720 addlib=`$PKGCONFIG --libs nss`
24721 addcflags=`$PKGCONFIG --cflags nss`
24722 version=`$PKGCONFIG --modversion nss`
24723 nssprefix=`$PKGCONFIG --variable=prefix nss`
24726 check=`nss-config --version 2>/dev/null`
24727 if test -n "$check"; then
24728 addlib=`nss-config --libs`
24729 addcflags=`nss-config --cflags`
24730 version=`nss-config --version`
24731 nssprefix=`nss-config --prefix`
24739 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24740 if test -f "$NSS_PCDIR/nss.pc"; then
24742 if test -n "$PKG_CONFIG"; then
24743 PKGCONFIG="$PKG_CONFIG"
24745 if test -n "$ac_tool_prefix"; then
24746 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24747 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24749 $as_echo_n "checking for $ac_word... " >&6; }
24750 if ${ac_cv_path_PKGCONFIG+:} false; then :
24751 $as_echo_n "(cached) " >&6
24755 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24759 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24760 for as_dir in $as_dummy
24763 test -z "$as_dir" && as_dir=.
24764 for ac_exec_ext in '' $ac_executable_extensions; do
24765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24766 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24777 PKGCONFIG=$ac_cv_path_PKGCONFIG
24778 if test -n "$PKGCONFIG"; then
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24780 $as_echo "$PKGCONFIG" >&6; }
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24783 $as_echo "no" >&6; }
24788 if test -z "$ac_cv_path_PKGCONFIG"; then
24789 ac_pt_PKGCONFIG=$PKGCONFIG
24790 # Extract the first word of "pkg-config", so it can be a program name with args.
24791 set dummy pkg-config; ac_word=$2
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24793 $as_echo_n "checking for $ac_word... " >&6; }
24794 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24795 $as_echo_n "(cached) " >&6
24797 case $ac_pt_PKGCONFIG in
24799 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24803 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24804 for as_dir in $as_dummy
24807 test -z "$as_dir" && as_dir=.
24808 for ac_exec_ext in '' $ac_executable_extensions; do
24809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24810 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24821 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24822 if test -n "$ac_pt_PKGCONFIG"; then
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24824 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24827 $as_echo "no" >&6; }
24830 if test "x$ac_pt_PKGCONFIG" = x; then
24833 case $cross_compiling:$ac_tool_warned in
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24837 ac_tool_warned=yes ;;
24839 PKGCONFIG=$ac_pt_PKGCONFIG
24842 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24847 if test "x$PKGCONFIG" != "xno"; then
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24849 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24851 if test -n "$NSS_PCDIR"; then
24852 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24853 export PKG_CONFIG_LIBDIR
24855 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24857 if test -z "$itexists"; then
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24860 $as_echo "no" >&6; }
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24863 $as_echo "found" >&6; }
24867 if test "$PKGCONFIG" != "no" ; then
24869 if test -n "$NSS_PCDIR"; then
24870 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24871 export PKG_CONFIG_LIBDIR
24873 $PKGCONFIG --libs-only-L nss`
24875 if test -n "$NSS_PCDIR"; then
24876 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24877 export PKG_CONFIG_LIBDIR
24879 $PKGCONFIG --libs-only-l nss`
24881 if test -n "$NSS_PCDIR"; then
24882 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24883 export PKG_CONFIG_LIBDIR
24885 $PKGCONFIG --cflags nss`
24887 if test -n "$NSS_PCDIR"; then
24888 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24889 export PKG_CONFIG_LIBDIR
24891 $PKGCONFIG --modversion nss`
24893 if test -n "$NSS_PCDIR"; then
24894 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24895 export PKG_CONFIG_LIBDIR
24897 $PKGCONFIG --variable=prefix nss`
24902 if test -z "$addlib"; then
24903 # Without pkg-config, we'll kludge in some defaults
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
24905 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
24906 addld="-L$OPT_NSS/lib"
24907 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
24908 addcflags="-I$OPT_NSS/include"
24913 CLEANLDFLAGS="$LDFLAGS"
24915 CLEANCPPFLAGS="$CPPFLAGS"
24917 LDFLAGS="$addld $LDFLAGS"
24918 LIBS="$addlib $LIBS"
24919 if test "$addcflags" != "-I/usr/include"; then
24920 CPPFLAGS="$CPPFLAGS $addcflags"
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
24924 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
24925 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
24926 $as_echo_n "(cached) " >&6
24928 ac_check_lib_save_LIBS=$LIBS
24929 LIBS="-lnss3 $LIBS"
24930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24931 /* end confdefs.h. */
24937 char SSL_VersionRangeSet ();
24940 return SSL_VersionRangeSet ();
24945 if ac_fn_c_try_link "$LINENO"; then :
24946 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
24948 ac_cv_lib_nss3_SSL_VersionRangeSet=no
24950 rm -f core conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
24952 LIBS=$ac_check_lib_save_LIBS
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
24955 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
24956 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
24959 $as_echo "#define USE_NSS 1" >>confdefs.h
24965 curl_ssl_msg="enabled (NSS)"
24969 LDFLAGS="$CLEANLDFLAGS"
24971 CPPFLAGS="$CLEANCPPFLAGS"
24976 if test "x$USE_NSS" = "xyes"; then
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
24978 $as_echo "$as_me: detected NSS version $version" >&6;}
24983 if test "x$cross_compiling" != "xyes"; then
24984 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
24985 export LD_LIBRARY_PATH
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
24987 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
24996 # Check whether --with-axtls was given.
24997 if test "${with_axtls+set}" = set; then :
24998 withval=$with_axtls; OPT_AXTLS=$withval
25002 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25003 if test X"$OPT_AXTLS" != Xno; then
25004 CLEANLDFLAGS="$LDFLAGS"
25005 CLEANCPPFLAGS="$CPPFLAGS"
25008 case "$OPT_AXTLS" in
25010 PREFIX_AXTLS=/usr/local
25011 LIB_AXTLS="$PREFIX_AXTLS/lib"
25012 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25013 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25019 PREFIX_AXTLS=$OPT_AXTLS
25020 LIB_AXTLS="$PREFIX_AXTLS/lib"
25021 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25022 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25027 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25028 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25029 $as_echo_n "(cached) " >&6
25031 ac_check_lib_save_LIBS=$LIBS
25032 LIBS="-laxtls $LIBS"
25033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h. */
25040 char ssl_version ();
25043 return ssl_version ();
25048 if ac_fn_c_try_link "$LINENO"; then :
25049 ac_cv_lib_axtls_ssl_version=yes
25051 ac_cv_lib_axtls_ssl_version=no
25053 rm -f core conftest.err conftest.$ac_objext \
25054 conftest$ac_exeext conftest.$ac_ext
25055 LIBS=$ac_check_lib_save_LIBS
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25058 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25059 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25061 LIBS="-laxtls $LIBS"
25063 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25069 curl_ssl_msg="enabled (axTLS)"
25071 if test "x$cross_compiling" != "xyes"; then
25072 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25073 export LD_LIBRARY_PATH
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25075 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25080 LDFLAGS="$CLEANLDFLAGS"
25081 CPPFLAGS="$CLEANCPPFLAGS"
25089 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25091 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25092 { $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
25093 $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;}
25095 # SSL is enabled, genericly
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25104 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25107 # Check whether --with-ca-bundle was given.
25108 if test "${with_ca_bundle+set}" = set; then :
25109 withval=$with_ca_bundle;
25111 if test "x$want_ca" = "xyes"; then
25112 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25120 # Check whether --with-ca-path was given.
25121 if test "${with_ca_path+set}" = set; then :
25122 withval=$with_ca_path;
25123 want_capath="$withval"
25124 if test "x$want_capath" = "xyes"; then
25125 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25129 want_capath="unset"
25133 ca_warning=" (warning: certs not found)"
25134 capath_warning=" (warning: certs not found)"
25137 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25138 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25140 capath="$want_capath"
25141 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25144 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25145 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25146 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25148 capath="$want_capath"
25153 if test "x$cross_compiling" != "xyes"; then
25154 if test "x$want_ca" = "xunset"; then
25155 if test "x$prefix" != xNONE; then
25156 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25158 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25161 for a in /etc/ssl/certs/ca-certificates.crt \
25162 /etc/pki/tls/certs/ca-bundle.crt \
25163 /usr/share/ssl/certs/ca-bundle.crt \
25164 /usr/local/share/certs/ca-root.crt \
25165 /etc/ssl/cert.pem \
25167 if test -f "$a"; then
25173 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25174 "x$OPENSSL_ENABLED" = "x1"; then
25175 check_capath="/etc/ssl/certs/"
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25179 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25183 if test "x$ca" = "xno" || test -f "$ca"; then
25187 if test "x$capath" != "xno"; then
25188 check_capath="$capath"
25191 if test ! -z "$check_capath"; then
25192 for a in "$check_capath"; do
25193 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
25194 if test "x$capath" = "xno"; then
25203 if test "x$capath" = "xno"; then
25207 if test "x$ca" != "xno"; then
25208 CURL_CA_BUNDLE='"'$ca'"'
25210 cat >>confdefs.h <<_ACEOF
25211 #define CURL_CA_BUNDLE "$ca"
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25216 $as_echo "$ca" >&6; }
25218 if test "x$capath" != "xno"; then
25219 CURL_CA_PATH="\"$capath\""
25221 cat >>confdefs.h <<_ACEOF
25222 #define CURL_CA_PATH "$capath"
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25226 $as_echo "$capath (capath)" >&6; }
25228 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25230 $as_echo "no" >&6; }
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25234 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25236 # Check whether --with-ca-fallback was given.
25237 if test "${with_ca_fallback+set}" = set; then :
25238 withval=$with_ca_fallback;
25239 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25240 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25244 with_ca_fallback="no"
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25248 $as_echo "$with_ca_fallback" >&6; }
25249 if test "x$with_ca_fallback" = "xyes"; then
25250 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25251 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25254 cat >>confdefs.h <<_ACEOF
25255 #define CURL_CA_FALLBACK 1
25263 # Check whether --with-libpsl was given.
25264 if test "${with_libpsl+set}" = set; then :
25265 withval=$with_libpsl; with_libpsl=$withval
25270 if test $with_libpsl != "no"; then
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25272 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25273 if ${ac_cv_search_psl_builtin+:} false; then :
25274 $as_echo_n "(cached) " >&6
25276 ac_func_search_save_LIBS=$LIBS
25277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25278 /* end confdefs.h. */
25284 char psl_builtin ();
25287 return psl_builtin ();
25292 for ac_lib in '' psl; do
25293 if test -z "$ac_lib"; then
25294 ac_res="none required"
25297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25299 if ac_fn_c_try_link "$LINENO"; then :
25300 ac_cv_search_psl_builtin=$ac_res
25302 rm -f core conftest.err conftest.$ac_objext \
25304 if ${ac_cv_search_psl_builtin+:} false; then :
25308 if ${ac_cv_search_psl_builtin+:} false; then :
25311 ac_cv_search_psl_builtin=no
25313 rm conftest.$ac_ext
25314 LIBS=$ac_func_search_save_LIBS
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25317 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25318 ac_res=$ac_cv_search_psl_builtin
25319 if test "$ac_res" != no; then :
25320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25321 curl_psl_msg="yes";
25323 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25327 curl_psl_msg="no (libpsl not found)";
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25329 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25335 if test "$curl_psl_msg" = "yes"; then
25337 USE_LIBPSL_FALSE='#'
25339 USE_LIBPSL_TRUE='#'
25348 # Check whether --with-libmetalink was given.
25349 if test "${with_libmetalink+set}" = set; then :
25350 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25354 if test X"$OPT_LIBMETALINK" != Xno; then
25363 if test "x$OPT_LIBMETALINK" = "xyes"; then
25366 if test -n "$PKG_CONFIG"; then
25367 PKGCONFIG="$PKG_CONFIG"
25369 if test -n "$ac_tool_prefix"; then
25370 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25371 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25373 $as_echo_n "checking for $ac_word... " >&6; }
25374 if ${ac_cv_path_PKGCONFIG+:} false; then :
25375 $as_echo_n "(cached) " >&6
25379 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25384 for as_dir in $as_dummy
25387 test -z "$as_dir" && as_dir=.
25388 for ac_exec_ext in '' $ac_executable_extensions; do
25389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25390 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25401 PKGCONFIG=$ac_cv_path_PKGCONFIG
25402 if test -n "$PKGCONFIG"; then
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25404 $as_echo "$PKGCONFIG" >&6; }
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25407 $as_echo "no" >&6; }
25412 if test -z "$ac_cv_path_PKGCONFIG"; then
25413 ac_pt_PKGCONFIG=$PKGCONFIG
25414 # Extract the first word of "pkg-config", so it can be a program name with args.
25415 set dummy pkg-config; ac_word=$2
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25417 $as_echo_n "checking for $ac_word... " >&6; }
25418 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25419 $as_echo_n "(cached) " >&6
25421 case $ac_pt_PKGCONFIG in
25423 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25427 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25428 for as_dir in $as_dummy
25431 test -z "$as_dir" && as_dir=.
25432 for ac_exec_ext in '' $ac_executable_extensions; do
25433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25434 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25445 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25446 if test -n "$ac_pt_PKGCONFIG"; then
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25448 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25451 $as_echo "no" >&6; }
25454 if test "x$ac_pt_PKGCONFIG" = x; then
25457 case $cross_compiling:$ac_tool_warned in
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25461 ac_tool_warned=yes ;;
25463 PKGCONFIG=$ac_pt_PKGCONFIG
25466 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25471 if test "x$PKGCONFIG" != "xno"; then
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25473 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25475 if test -n ""; then
25476 PKG_CONFIG_LIBDIR=""
25477 export PKG_CONFIG_LIBDIR
25479 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25481 if test -z "$itexists"; then
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25484 $as_echo "no" >&6; }
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25487 $as_echo "found" >&6; }
25492 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25494 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25495 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25498 if test "$PKGTEST" = "yes"; then
25500 if test -n "$PKG_CONFIG"; then
25501 PKGCONFIG="$PKG_CONFIG"
25503 if test -n "$ac_tool_prefix"; then
25504 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25505 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25507 $as_echo_n "checking for $ac_word... " >&6; }
25508 if ${ac_cv_path_PKGCONFIG+:} false; then :
25509 $as_echo_n "(cached) " >&6
25513 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25517 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25518 for as_dir in $as_dummy
25521 test -z "$as_dir" && as_dir=.
25522 for ac_exec_ext in '' $ac_executable_extensions; do
25523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25524 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25535 PKGCONFIG=$ac_cv_path_PKGCONFIG
25536 if test -n "$PKGCONFIG"; then
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25538 $as_echo "$PKGCONFIG" >&6; }
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25541 $as_echo "no" >&6; }
25546 if test -z "$ac_cv_path_PKGCONFIG"; then
25547 ac_pt_PKGCONFIG=$PKGCONFIG
25548 # Extract the first word of "pkg-config", so it can be a program name with args.
25549 set dummy pkg-config; ac_word=$2
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25551 $as_echo_n "checking for $ac_word... " >&6; }
25552 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25553 $as_echo_n "(cached) " >&6
25555 case $ac_pt_PKGCONFIG in
25557 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25561 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25562 for as_dir in $as_dummy
25565 test -z "$as_dir" && as_dir=.
25566 for ac_exec_ext in '' $ac_executable_extensions; do
25567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25568 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25579 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25580 if test -n "$ac_pt_PKGCONFIG"; then
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25582 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25585 $as_echo "no" >&6; }
25588 if test "x$ac_pt_PKGCONFIG" = x; then
25591 case $cross_compiling:$ac_tool_warned in
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25595 ac_tool_warned=yes ;;
25597 PKGCONFIG=$ac_pt_PKGCONFIG
25600 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25605 if test "x$PKGCONFIG" != "xno"; then
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25607 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25609 if test -n "$LIBMETALINK_PCDIR"; then
25610 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25611 export PKG_CONFIG_LIBDIR
25613 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25615 if test -z "$itexists"; then
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25618 $as_echo "no" >&6; }
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25621 $as_echo "found" >&6; }
25627 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25629 if test -n "$LIBMETALINK_PCDIR"; then
25630 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25631 export PKG_CONFIG_LIBDIR
25633 $PKGCONFIG --libs-only-l libmetalink`
25635 if test -n "$LIBMETALINK_PCDIR"; then
25636 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25637 export PKG_CONFIG_LIBDIR
25639 $PKGCONFIG --libs-only-L libmetalink`
25641 if test -n "$LIBMETALINK_PCDIR"; then
25642 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25643 export PKG_CONFIG_LIBDIR
25645 $PKGCONFIG --cflags-only-I libmetalink`
25647 if test -n "$LIBMETALINK_PCDIR"; then
25648 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25649 export PKG_CONFIG_LIBDIR
25651 $PKGCONFIG --modversion libmetalink`
25652 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25654 if test -n "$addlib"; then
25656 clean_CPPFLAGS="$CPPFLAGS"
25657 clean_LDFLAGS="$LDFLAGS"
25659 CPPFLAGS="$addcflags $clean_CPPFLAGS"
25660 LDFLAGS="$addld $clean_LDFLAGS"
25661 LIBS="$addlib $clean_LIBS"
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25663 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25665 /* end confdefs.h. */
25668 # include <metalink/metalink.h>
25673 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25681 if ac_fn_c_try_link "$LINENO"; then :
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25684 $as_echo "yes ($version)" >&6; }
25685 want_metalink="yes"
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25690 $as_echo "no ($version)" >&6; }
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25692 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25696 rm -f core conftest.err conftest.$ac_objext \
25697 conftest$ac_exeext conftest.$ac_ext
25698 CPPFLAGS="$clean_CPPFLAGS"
25699 LDFLAGS="$clean_LDFLAGS"
25701 if test "$want_metalink" = "yes"; then
25703 $as_echo "#define USE_METALINK 1" >>confdefs.h
25705 LIBMETALINK_LIBS=$addlib
25706 LIBMETALINK_LDFLAGS=$addld
25707 LIBMETALINK_CPPFLAGS=$addcflags
25711 curl_mtlnk_msg="enabled"
25720 # Check whether --with-libssh2 was given.
25721 if test "${with_libssh2+set}" = set; then :
25722 withval=$with_libssh2; OPT_LIBSSH2=$withval
25726 if test X"$OPT_LIBSSH2" != Xno; then
25727 CLEANLDFLAGS="$LDFLAGS"
25728 CLEANCPPFLAGS="$CPPFLAGS"
25731 case "$OPT_LIBSSH2" in
25734 if test -n "$PKG_CONFIG"; then
25735 PKGCONFIG="$PKG_CONFIG"
25737 if test -n "$ac_tool_prefix"; then
25738 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25739 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25741 $as_echo_n "checking for $ac_word... " >&6; }
25742 if ${ac_cv_path_PKGCONFIG+:} false; then :
25743 $as_echo_n "(cached) " >&6
25747 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25751 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25752 for as_dir in $as_dummy
25755 test -z "$as_dir" && as_dir=.
25756 for ac_exec_ext in '' $ac_executable_extensions; do
25757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25758 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25769 PKGCONFIG=$ac_cv_path_PKGCONFIG
25770 if test -n "$PKGCONFIG"; then
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25772 $as_echo "$PKGCONFIG" >&6; }
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25775 $as_echo "no" >&6; }
25780 if test -z "$ac_cv_path_PKGCONFIG"; then
25781 ac_pt_PKGCONFIG=$PKGCONFIG
25782 # Extract the first word of "pkg-config", so it can be a program name with args.
25783 set dummy pkg-config; ac_word=$2
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25785 $as_echo_n "checking for $ac_word... " >&6; }
25786 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25787 $as_echo_n "(cached) " >&6
25789 case $ac_pt_PKGCONFIG in
25791 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25795 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25796 for as_dir in $as_dummy
25799 test -z "$as_dir" && as_dir=.
25800 for ac_exec_ext in '' $ac_executable_extensions; do
25801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25802 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25813 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25814 if test -n "$ac_pt_PKGCONFIG"; then
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25816 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25819 $as_echo "no" >&6; }
25822 if test "x$ac_pt_PKGCONFIG" = x; then
25825 case $cross_compiling:$ac_tool_warned in
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25829 ac_tool_warned=yes ;;
25831 PKGCONFIG=$ac_pt_PKGCONFIG
25834 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25839 if test "x$PKGCONFIG" != "xno"; then
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25841 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25843 if test -n ""; then
25844 PKG_CONFIG_LIBDIR=""
25845 export PKG_CONFIG_LIBDIR
25847 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25849 if test -z "$itexists"; then
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25852 $as_echo "no" >&6; }
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25855 $as_echo "found" >&6; }
25860 if test "$PKGCONFIG" != "no" ; then
25861 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
25862 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
25863 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
25864 version=`$PKGCONFIG --modversion libssh2`
25865 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
25872 PREFIX_SSH2=$OPT_LIBSSH2
25876 if test -n "$PREFIX_SSH2"; then
25878 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
25879 CPP_SSH2=-I${PREFIX_SSH2}/include
25880 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
25883 LDFLAGS="$LDFLAGS $LD_SSH2"
25884 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
25885 LIBS="$LIB_SSH2 $LIBS"
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
25888 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
25889 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
25890 $as_echo_n "(cached) " >&6
25892 ac_check_lib_save_LIBS=$LIBS
25893 LIBS="-lssh2 $LIBS"
25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25895 /* end confdefs.h. */
25901 char libssh2_channel_open_ex ();
25904 return libssh2_channel_open_ex ();
25909 if ac_fn_c_try_link "$LINENO"; then :
25910 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
25912 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
25914 rm -f core conftest.err conftest.$ac_objext \
25915 conftest$ac_exeext conftest.$ac_ext
25916 LIBS=$ac_check_lib_save_LIBS
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
25919 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
25920 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
25921 cat >>confdefs.h <<_ACEOF
25922 #define HAVE_LIBSSH2 1
25925 LIBS="-lssh2 $LIBS"
25930 for ac_header in libssh2.h
25932 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
25933 if test "x$ac_cv_header_libssh2_h" = xyes; then :
25934 cat >>confdefs.h <<_ACEOF
25935 #define HAVE_LIBSSH2_H 1
25937 curl_ssh_msg="enabled (libSSH2)"
25940 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
25950 if test X"$OPT_LIBSSH2" != Xoff &&
25951 test "$LIBSSH2_ENABLED" != "1"; then
25952 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
25955 if test "$LIBSSH2_ENABLED" = "1"; then
25956 if test -n "$DIR_SSH2"; then
25958 if test "x$cross_compiling" != "xyes"; then
25959 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
25960 export LD_LIBRARY_PATH
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
25962 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
25966 LDFLAGS=$CLEANLDFLAGS
25967 CPPFLAGS=$CLEANCPPFLAGS
25975 # Check whether --with-librtmp was given.
25976 if test "${with_librtmp+set}" = set; then :
25977 withval=$with_librtmp; OPT_LIBRTMP=$withval
25981 if test X"$OPT_LIBRTMP" != Xno; then
25982 CLEANLDFLAGS="$LDFLAGS"
25983 CLEANCPPFLAGS="$CPPFLAGS"
25986 case "$OPT_LIBRTMP" in
25989 if test -n "$PKG_CONFIG"; then
25990 PKGCONFIG="$PKG_CONFIG"
25992 if test -n "$ac_tool_prefix"; then
25993 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25996 $as_echo_n "checking for $ac_word... " >&6; }
25997 if ${ac_cv_path_PKGCONFIG+:} false; then :
25998 $as_echo_n "(cached) " >&6
26002 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26006 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26007 for as_dir in $as_dummy
26010 test -z "$as_dir" && as_dir=.
26011 for ac_exec_ext in '' $ac_executable_extensions; do
26012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26013 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26024 PKGCONFIG=$ac_cv_path_PKGCONFIG
26025 if test -n "$PKGCONFIG"; then
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26027 $as_echo "$PKGCONFIG" >&6; }
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26030 $as_echo "no" >&6; }
26035 if test -z "$ac_cv_path_PKGCONFIG"; then
26036 ac_pt_PKGCONFIG=$PKGCONFIG
26037 # Extract the first word of "pkg-config", so it can be a program name with args.
26038 set dummy pkg-config; ac_word=$2
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26040 $as_echo_n "checking for $ac_word... " >&6; }
26041 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26042 $as_echo_n "(cached) " >&6
26044 case $ac_pt_PKGCONFIG in
26046 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26050 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26051 for as_dir in $as_dummy
26054 test -z "$as_dir" && as_dir=.
26055 for ac_exec_ext in '' $ac_executable_extensions; do
26056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26057 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26068 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26069 if test -n "$ac_pt_PKGCONFIG"; then
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26071 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26074 $as_echo "no" >&6; }
26077 if test "x$ac_pt_PKGCONFIG" = x; then
26080 case $cross_compiling:$ac_tool_warned in
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26084 ac_tool_warned=yes ;;
26086 PKGCONFIG=$ac_pt_PKGCONFIG
26089 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26094 if test "x$PKGCONFIG" != "xno"; then
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26096 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26098 if test -n ""; then
26099 PKG_CONFIG_LIBDIR=""
26100 export PKG_CONFIG_LIBDIR
26102 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26104 if test -z "$itexists"; then
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26110 $as_echo "found" >&6; }
26115 if test "$PKGCONFIG" != "no" ; then
26116 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26117 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26118 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26119 version=`$PKGCONFIG --modversion librtmp`
26120 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26122 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26130 PREFIX_RTMP=$OPT_LIBRTMP
26134 if test -n "$PREFIX_RTMP"; then
26135 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26136 CPP_RTMP=-I${PREFIX_RTMP}/include
26137 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26140 LDFLAGS="$LDFLAGS $LD_RTMP"
26141 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26142 LIBS="$LIB_RTMP $LIBS"
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26145 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26146 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26147 $as_echo_n "(cached) " >&6
26149 ac_check_lib_save_LIBS=$LIBS
26150 LIBS="-lrtmp $LIBS"
26151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h. */
26161 return RTMP_Init ();
26166 if ac_fn_c_try_link "$LINENO"; then :
26167 ac_cv_lib_rtmp_RTMP_Init=yes
26169 ac_cv_lib_rtmp_RTMP_Init=no
26171 rm -f core conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
26173 LIBS=$ac_check_lib_save_LIBS
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26176 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26177 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26179 for ac_header in librtmp/rtmp.h
26181 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26182 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26183 cat >>confdefs.h <<_ACEOF
26184 #define HAVE_LIBRTMP_RTMP_H 1
26186 curl_rtmp_msg="enabled (librtmp)"
26189 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26200 LDFLAGS=$CLEANLDFLAGS
26201 CPPFLAGS=$CLEANCPPFLAGS
26207 if test X"$OPT_LIBRTMP" != Xoff &&
26208 test "$LIBRTMP_ENABLED" != "1"; then
26209 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26215 versioned_symbols_flavour=
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26217 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26218 # Check whether --enable-versioned-symbols was given.
26219 if test "${enable_versioned_symbols+set}" = set; then :
26220 enableval=$enable_versioned_symbols; case "$enableval" in
26221 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222 $as_echo "yes" >&6; }
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26224 $as_echo_n "checking if libraries can be versioned... " >&6; }
26225 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26226 if test -z "$GLD"; then
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26228 $as_echo "no" >&6; }
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26230 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26233 $as_echo "yes" >&6; }
26234 if test "x$OPENSSL_ENABLED" = "x1"; then
26235 versioned_symbols_flavour="OPENSSL_"
26236 elif test "x$GNUTLS_ENABLED" = "x1"; then
26237 versioned_symbols_flavour="GNUTLS_"
26238 elif test "x$NSS_ENABLED" = "x1"; then
26239 versioned_symbols_flavour="NSS_"
26240 elif test "x$POLARSSL_ENABLED" = "x1"; then
26241 versioned_symbols_flavour="POLARSSL_"
26242 elif test "x$CYASSL_ENABLED" = "x1"; then
26243 versioned_symbols_flavour="CYASSL_"
26244 elif test "x$AXTLS_ENABLED" = "x1"; then
26245 versioned_symbols_flavour="AXTLS_"
26246 elif test "x$WINSSL_ENABLED" = "x1"; then
26247 versioned_symbols_flavour="WINSSL_"
26248 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26249 versioned_symbols_flavour="DARWINSSL_"
26251 versioned_symbols_flavour=""
26253 versioned_symbols="yes"
26257 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26258 $as_echo "no" >&6; }
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26265 $as_echo "no" >&6; }
26271 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26273 if test "x$versioned_symbols" = 'xyes'; then
26274 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26275 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26277 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26278 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26284 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26285 OPT_WINIDN="default"
26287 # Check whether --with-winidn was given.
26288 if test "${with_winidn+set}" = set; then :
26289 withval=$with_winidn; OPT_WINIDN=$withval
26292 case "$OPT_WINIDN" in
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26296 $as_echo "no" >&6; }
26300 want_winidn_path="default"
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26302 $as_echo "yes" >&6; }
26306 want_winidn_path="$withval"
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26308 $as_echo "yes ($withval)" >&6; }
26312 if test "$want_winidn" = "yes"; then
26313 clean_CPPFLAGS="$CPPFLAGS"
26314 clean_LDFLAGS="$LDFLAGS"
26316 WINIDN_LIBS="-lnormaliz"
26318 if test "$want_winidn_path" != "default"; then
26319 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26320 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26321 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26324 CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
26325 LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
26326 LIBS="$WINIDN_LIBS $LIBS"
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26329 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26331 /* end confdefs.h. */
26334 #define IdnToUnicode innocuous_IdnToUnicode
26336 # include <limits.h>
26338 # include <assert.h>
26340 #undef IdnToUnicode
26344 char IdnToUnicode ();
26345 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
26351 return IdnToUnicode ();
26357 if ac_fn_c_try_link "$LINENO"; then :
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26360 $as_echo "yes" >&6; }
26361 tst_links_winidn="yes"
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26366 $as_echo "no" >&6; }
26367 tst_links_winidn="no"
26370 rm -f core conftest.err conftest.$ac_objext \
26371 conftest$ac_exeext conftest.$ac_ext
26373 if test "$tst_links_winidn" = "yes"; then
26375 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26378 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26382 curl_idn_msg="enabled (Windows-native)"
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26385 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26386 CPPFLAGS="$clean_CPPFLAGS"
26387 LDFLAGS="$clean_LDFLAGS"
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
26394 $as_echo_n "checking whether to build with libidn... " >&6; }
26397 # Check whether --with-libidn was given.
26398 if test "${with_libidn+set}" = set; then :
26399 withval=$with_libidn; OPT_IDN=$withval
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26406 $as_echo "no" >&6; }
26410 want_idn_path="default"
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26412 $as_echo "(assumed) yes" >&6; }
26416 want_idn_path="default"
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26418 $as_echo "yes" >&6; }
26422 want_idn_path="$withval"
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26424 $as_echo "yes ($withval)" >&6; }
26428 if test "$want_idn" = "yes"; then
26429 clean_CPPFLAGS="$CPPFLAGS"
26430 clean_LDFLAGS="$LDFLAGS"
26434 if test "$want_idn_path" != "default"; then
26435 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26437 if test -n "$PKG_CONFIG"; then
26438 PKGCONFIG="$PKG_CONFIG"
26440 if test -n "$ac_tool_prefix"; then
26441 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26442 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26444 $as_echo_n "checking for $ac_word... " >&6; }
26445 if ${ac_cv_path_PKGCONFIG+:} false; then :
26446 $as_echo_n "(cached) " >&6
26450 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26454 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26455 for as_dir in $as_dummy
26458 test -z "$as_dir" && as_dir=.
26459 for ac_exec_ext in '' $ac_executable_extensions; do
26460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26461 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26472 PKGCONFIG=$ac_cv_path_PKGCONFIG
26473 if test -n "$PKGCONFIG"; then
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26475 $as_echo "$PKGCONFIG" >&6; }
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26478 $as_echo "no" >&6; }
26483 if test -z "$ac_cv_path_PKGCONFIG"; then
26484 ac_pt_PKGCONFIG=$PKGCONFIG
26485 # Extract the first word of "pkg-config", so it can be a program name with args.
26486 set dummy pkg-config; ac_word=$2
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26488 $as_echo_n "checking for $ac_word... " >&6; }
26489 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26490 $as_echo_n "(cached) " >&6
26492 case $ac_pt_PKGCONFIG in
26494 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26499 for as_dir in $as_dummy
26502 test -z "$as_dir" && as_dir=.
26503 for ac_exec_ext in '' $ac_executable_extensions; do
26504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26505 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26516 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26517 if test -n "$ac_pt_PKGCONFIG"; then
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26519 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26522 $as_echo "no" >&6; }
26525 if test "x$ac_pt_PKGCONFIG" = x; then
26528 case $cross_compiling:$ac_tool_warned in
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26532 ac_tool_warned=yes ;;
26534 PKGCONFIG=$ac_pt_PKGCONFIG
26537 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26542 if test "x$PKGCONFIG" != "xno"; then
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26544 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26546 if test -n "$IDN_PCDIR"; then
26547 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26548 export PKG_CONFIG_LIBDIR
26550 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26552 if test -z "$itexists"; then
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26555 $as_echo "no" >&6; }
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26558 $as_echo "found" >&6; }
26562 if test "$PKGCONFIG" != "no"; then
26564 if test -n "$IDN_PCDIR"; then
26565 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26566 export PKG_CONFIG_LIBDIR
26568 $PKGCONFIG --libs-only-l libidn 2>/dev/null`
26570 if test -n "$IDN_PCDIR"; then
26571 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26572 export PKG_CONFIG_LIBDIR
26574 $PKGCONFIG --libs-only-L libidn 2>/dev/null`
26576 if test -n "$IDN_PCDIR"; then
26577 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26578 export PKG_CONFIG_LIBDIR
26580 $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26581 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26584 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26585 IDN_CPPFLAGS="-I$want_idn_path/include"
26586 IDN_DIR="$want_idn_path/lib$libsuff"
26590 if test -n "$PKG_CONFIG"; then
26591 PKGCONFIG="$PKG_CONFIG"
26593 if test -n "$ac_tool_prefix"; then
26594 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26595 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26597 $as_echo_n "checking for $ac_word... " >&6; }
26598 if ${ac_cv_path_PKGCONFIG+:} false; then :
26599 $as_echo_n "(cached) " >&6
26603 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26607 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26608 for as_dir in $as_dummy
26611 test -z "$as_dir" && as_dir=.
26612 for ac_exec_ext in '' $ac_executable_extensions; do
26613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26614 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26625 PKGCONFIG=$ac_cv_path_PKGCONFIG
26626 if test -n "$PKGCONFIG"; then
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26628 $as_echo "$PKGCONFIG" >&6; }
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26631 $as_echo "no" >&6; }
26636 if test -z "$ac_cv_path_PKGCONFIG"; then
26637 ac_pt_PKGCONFIG=$PKGCONFIG
26638 # Extract the first word of "pkg-config", so it can be a program name with args.
26639 set dummy pkg-config; ac_word=$2
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26641 $as_echo_n "checking for $ac_word... " >&6; }
26642 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26643 $as_echo_n "(cached) " >&6
26645 case $ac_pt_PKGCONFIG in
26647 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26651 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26652 for as_dir in $as_dummy
26655 test -z "$as_dir" && as_dir=.
26656 for ac_exec_ext in '' $ac_executable_extensions; do
26657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26658 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26669 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26670 if test -n "$ac_pt_PKGCONFIG"; then
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26672 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26675 $as_echo "no" >&6; }
26678 if test "x$ac_pt_PKGCONFIG" = x; then
26681 case $cross_compiling:$ac_tool_warned in
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26685 ac_tool_warned=yes ;;
26687 PKGCONFIG=$ac_pt_PKGCONFIG
26690 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26695 if test "x$PKGCONFIG" != "xno"; then
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26697 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26699 if test -n ""; then
26700 PKG_CONFIG_LIBDIR=""
26701 export PKG_CONFIG_LIBDIR
26703 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26705 if test -z "$itexists"; then
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26708 $as_echo "no" >&6; }
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26711 $as_echo "found" >&6; }
26715 if test "$PKGCONFIG" != "no"; then
26716 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
26717 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
26718 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26719 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26725 if test "$PKGCONFIG" != "no"; then
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26727 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26729 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26731 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26733 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26736 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26738 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26740 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26742 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26745 CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
26746 LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
26747 LIBS="$IDN_LIBS $LIBS"
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
26750 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
26751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26752 /* end confdefs.h. */
26755 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
26757 # include <limits.h>
26759 # include <assert.h>
26761 #undef idna_to_ascii_4i
26765 char idna_to_ascii_4i ();
26766 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
26772 return idna_to_ascii_4i ();
26778 if ac_fn_c_try_link "$LINENO"; then :
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26781 $as_echo "yes" >&6; }
26782 tst_links_libidn="yes"
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26787 $as_echo "no" >&6; }
26788 tst_links_libidn="no"
26791 rm -f core conftest.err conftest.$ac_objext \
26792 conftest$ac_exeext conftest.$ac_ext
26793 if test "$tst_links_libidn" = "no"; then
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
26795 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
26796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26797 /* end confdefs.h. */
26800 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
26802 # include <limits.h>
26804 # include <assert.h>
26806 #undef idna_to_ascii_lz
26810 char idna_to_ascii_lz ();
26811 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
26817 return idna_to_ascii_lz ();
26823 if ac_fn_c_try_link "$LINENO"; then :
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26826 $as_echo "yes" >&6; }
26827 tst_links_libidn="yes"
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26832 $as_echo "no" >&6; }
26833 tst_links_libidn="no"
26836 rm -f core conftest.err conftest.$ac_objext \
26837 conftest$ac_exeext conftest.$ac_ext
26840 if test "$tst_links_libidn" = "yes"; then
26842 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
26844 for ac_func in idn_free idna_strerror tld_strerror
26846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26849 cat >>confdefs.h <<_ACEOF
26850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26856 for ac_header in idn-free.h tld.h
26858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26861 cat >>confdefs.h <<_ACEOF
26862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26869 if test "x$ac_cv_header_tld_h" = "xyes"; then
26872 curl_idn_msg="enabled"
26873 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26874 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26875 export LD_LIBRARY_PATH
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26877 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
26881 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
26882 CPPFLAGS="$clean_CPPFLAGS"
26883 LDFLAGS="$clean_LDFLAGS"
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26888 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26889 CPPFLAGS="$clean_CPPFLAGS"
26890 LDFLAGS="$clean_LDFLAGS"
26901 # Check whether --with-nghttp2 was given.
26902 if test "${with_nghttp2+set}" = set; then :
26903 withval=$with_nghttp2; OPT_H2=$withval
26916 want_h2_path="$withval/lib/pkgconfig"
26920 curl_h2_msg="disabled (--with-nghttp2)"
26921 if test X"$want_h2" != Xno; then
26922 CLEANLDFLAGS="$LDFLAGS"
26923 CLEANCPPFLAGS="$CPPFLAGS"
26927 if test -n "$PKG_CONFIG"; then
26928 PKGCONFIG="$PKG_CONFIG"
26930 if test -n "$ac_tool_prefix"; then
26931 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26932 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26934 $as_echo_n "checking for $ac_word... " >&6; }
26935 if ${ac_cv_path_PKGCONFIG+:} false; then :
26936 $as_echo_n "(cached) " >&6
26940 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26944 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26945 for as_dir in $as_dummy
26948 test -z "$as_dir" && as_dir=.
26949 for ac_exec_ext in '' $ac_executable_extensions; do
26950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26951 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26962 PKGCONFIG=$ac_cv_path_PKGCONFIG
26963 if test -n "$PKGCONFIG"; then
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26965 $as_echo "$PKGCONFIG" >&6; }
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26968 $as_echo "no" >&6; }
26973 if test -z "$ac_cv_path_PKGCONFIG"; then
26974 ac_pt_PKGCONFIG=$PKGCONFIG
26975 # Extract the first word of "pkg-config", so it can be a program name with args.
26976 set dummy pkg-config; ac_word=$2
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26978 $as_echo_n "checking for $ac_word... " >&6; }
26979 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26980 $as_echo_n "(cached) " >&6
26982 case $ac_pt_PKGCONFIG in
26984 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26988 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26989 for as_dir in $as_dummy
26992 test -z "$as_dir" && as_dir=.
26993 for ac_exec_ext in '' $ac_executable_extensions; do
26994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26995 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27006 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27007 if test -n "$ac_pt_PKGCONFIG"; then
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27009 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27012 $as_echo "no" >&6; }
27015 if test "x$ac_pt_PKGCONFIG" = x; then
27018 case $cross_compiling:$ac_tool_warned in
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27022 ac_tool_warned=yes ;;
27024 PKGCONFIG=$ac_pt_PKGCONFIG
27027 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27032 if test "x$PKGCONFIG" != "xno"; then
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27034 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27036 if test -n "$want_h2_path"; then
27037 PKG_CONFIG_LIBDIR="$want_h2_path"
27038 export PKG_CONFIG_LIBDIR
27040 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27042 if test -z "$itexists"; then
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27045 $as_echo "no" >&6; }
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27048 $as_echo "found" >&6; }
27053 if test "$PKGCONFIG" != "no" ; then
27055 if test -n "$want_h2_path"; then
27056 PKG_CONFIG_LIBDIR="$want_h2_path"
27057 export PKG_CONFIG_LIBDIR
27060 $PKGCONFIG --libs-only-l libnghttp2`
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27062 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27065 if test -n "$want_h2_path"; then
27066 PKG_CONFIG_LIBDIR="$want_h2_path"
27067 export PKG_CONFIG_LIBDIR
27069 $PKGCONFIG --cflags-only-I libnghttp2`
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27071 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27074 if test -n "$want_h2_path"; then
27075 PKG_CONFIG_LIBDIR="$want_h2_path"
27076 export PKG_CONFIG_LIBDIR
27079 $PKGCONFIG --libs-only-L libnghttp2`
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27081 $as_echo "$as_me: -L is $LD_H2" >&6;}
27083 LDFLAGS="$LDFLAGS $LD_H2"
27084 CPPFLAGS="$CPPFLAGS $CPP_H2"
27085 LIBS="$LIB_H2 $LIBS"
27087 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27090 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27091 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27092 $as_echo_n "(cached) " >&6
27094 ac_check_lib_save_LIBS=$LIBS
27095 LIBS="-lnghttp2 $LIBS"
27096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h. */
27103 char nghttp2_option_set_no_recv_client_magic ();
27106 return nghttp2_option_set_no_recv_client_magic ();
27111 if ac_fn_c_try_link "$LINENO"; then :
27112 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27114 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27116 rm -f core conftest.err conftest.$ac_objext \
27117 conftest$ac_exeext conftest.$ac_ext
27118 LIBS=$ac_check_lib_save_LIBS
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27121 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27122 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27124 for ac_header in nghttp2/nghttp2.h
27126 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27127 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27128 cat >>confdefs.h <<_ACEOF
27129 #define HAVE_NGHTTP2_NGHTTP2_H 1
27131 curl_h2_msg="enabled (nghttp2)"
27134 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27145 LDFLAGS=$CLEANLDFLAGS
27146 CPPFLAGS=$CLEANCPPFLAGS
27153 if test X"$want_h2" != Xdefault; then
27154 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27161 OPT_ZSH_FPATH=default
27163 # Check whether --with-zsh-functions-dir was given.
27164 if test "${with_zsh_functions_dir+set}" = set; then :
27165 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27168 case "$OPT_ZSH_FPATH" in
27172 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27176 ZSH_FUNCTIONS_DIR="$withval"
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27183 $as_echo_n "checking for ANSI C header files... " >&6; }
27184 if ${ac_cv_header_stdc+:} false; then :
27185 $as_echo_n "(cached) " >&6
27187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27188 /* end confdefs.h. */
27189 #include <stdlib.h>
27190 #include <stdarg.h>
27191 #include <string.h>
27201 if ac_fn_c_try_compile "$LINENO"; then :
27202 ac_cv_header_stdc=yes
27204 ac_cv_header_stdc=no
27206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27208 if test $ac_cv_header_stdc = yes; then
27209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27211 /* end confdefs.h. */
27212 #include <string.h>
27215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27216 $EGREP "memchr" >/dev/null 2>&1; then :
27219 ac_cv_header_stdc=no
27225 if test $ac_cv_header_stdc = yes; then
27226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27228 /* end confdefs.h. */
27229 #include <stdlib.h>
27232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27233 $EGREP "free" >/dev/null 2>&1; then :
27236 ac_cv_header_stdc=no
27242 if test $ac_cv_header_stdc = yes; then
27243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27244 if test "$cross_compiling" = yes; then :
27247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27248 /* end confdefs.h. */
27250 #include <stdlib.h>
27251 #if ((' ' & 0x0FF) == 0x020)
27252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27255 # define ISLOWER(c) \
27256 (('a' <= (c) && (c) <= 'i') \
27257 || ('j' <= (c) && (c) <= 'r') \
27258 || ('s' <= (c) && (c) <= 'z'))
27259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27267 for (i = 0; i < 256; i++)
27268 if (XOR (islower (i), ISLOWER (i))
27269 || toupper (i) != TOUPPER (i))
27274 if ac_fn_c_try_run "$LINENO"; then :
27277 ac_cv_header_stdc=no
27279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27280 conftest.$ac_objext conftest.beam conftest.$ac_ext
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27286 $as_echo "$ac_cv_header_stdc" >&6; }
27287 if test $ac_cv_header_stdc = yes; then
27289 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27296 $as_echo_n "checking for malloc.h... " >&6; }
27297 if ${ac_cv_header_malloc_h+:} false; then :
27298 $as_echo_n "(cached) " >&6
27301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27302 /* end confdefs.h. */
27305 #include <malloc.h>
27310 void *p = malloc(10);
27311 void *q = calloc(10,10);
27320 if ac_fn_c_try_compile "$LINENO"; then :
27322 ac_cv_header_malloc_h="yes"
27326 ac_cv_header_malloc_h="no"
27329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
27333 $as_echo "$ac_cv_header_malloc_h" >&6; }
27334 if test "$ac_cv_header_malloc_h" = "yes"; then
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_MALLOC_H 1
27341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27342 /* end confdefs.h. */
27345 #include <stdlib.h>
27350 void *p = malloc(10);
27351 void *q = calloc(10,10);
27360 if ac_fn_c_try_compile "$LINENO"; then :
27362 curl_cv_need_header_malloc_h="no"
27366 curl_cv_need_header_malloc_h="yes"
27369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27371 case "$curl_cv_need_header_malloc_h" in
27374 cat >>confdefs.h <<_ACEOF
27375 #define NEED_MALLOC_H 1
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27384 $as_echo_n "checking for memory.h... " >&6; }
27385 if ${ac_cv_header_memory_h+:} false; then :
27386 $as_echo_n "(cached) " >&6
27389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27390 /* end confdefs.h. */
27393 #include <memory.h>
27398 void *p = malloc(10);
27399 void *q = calloc(10,10);
27408 if ac_fn_c_try_compile "$LINENO"; then :
27410 ac_cv_header_memory_h="yes"
27414 ac_cv_header_memory_h="no"
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
27421 $as_echo "$ac_cv_header_memory_h" >&6; }
27422 if test "$ac_cv_header_memory_h" = "yes"; then
27424 cat >>confdefs.h <<_ACEOF
27425 #define HAVE_MEMORY_H 1
27429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27430 /* end confdefs.h. */
27433 #include <stdlib.h>
27438 void *p = malloc(10);
27439 void *q = calloc(10,10);
27448 if ac_fn_c_try_compile "$LINENO"; then :
27450 curl_cv_need_header_memory_h="no"
27454 curl_cv_need_header_memory_h="yes"
27457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27459 case "$curl_cv_need_header_memory_h" in
27462 cat >>confdefs.h <<_ACEOF
27463 #define NEED_MEMORY_H 1
27471 for ac_header in sys/types.h \
27513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27515 #ifdef HAVE_SYS_TYPES_H
27516 #include <sys/types.h>
27518 #ifdef HAVE_SYS_TIME_H
27519 #include <sys/time.h>
27521 #ifdef HAVE_SYS_SELECT_H
27522 #include <sys/select.h>
27524 #ifdef HAVE_SYS_SOCKET_H
27525 #include <sys/socket.h>
27527 #ifdef HAVE_NETINET_IN_H
27528 #include <netinet/in.h>
27530 #ifdef HAVE_SYS_UN_H
27531 #include <sys/un.h>
27536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27537 cat >>confdefs.h <<_ACEOF
27538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27547 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27548 if ${ac_cv_c_const+:} false; then :
27549 $as_echo_n "(cached) " >&6
27551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27552 /* end confdefs.h. */
27557 #ifndef __cplusplus
27558 /* Ultrix mips cc rejects this sort of thing. */
27559 typedef int charset[2];
27560 const charset cs = { 0, 0 };
27561 /* SunOS 4.1.1 cc rejects this. */
27562 char const *const *pcpcc;
27564 /* NEC SVR4.0.2 mips cc rejects this. */
27565 struct point {int x, y;};
27566 static struct point const zero = {0,0};
27567 /* AIX XL C 1.02.0.0 rejects this.
27568 It does not let you subtract one const X* pointer from another in
27569 an arm of an if-expression whose if-part is not a constant
27571 const char *g = "string";
27572 pcpcc = &g + (g ? g-g : 0);
27573 /* HPUX 7.0 cc rejects these. */
27575 ppc = (char**) pcpcc;
27576 pcpcc = (char const *const *) ppc;
27577 { /* SCO 3.2v4 cc rejects this sort of thing. */
27580 char const *s = 0 ? (char *) 0 : (char const *) 0;
27585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27586 int x[] = {25, 17};
27587 const int *foo = &x[0];
27590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27591 typedef const int *iptr;
27595 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27597 struct s { int j; const int *ap[3]; } bx;
27598 struct s *b = &bx; b->j = 5;
27600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27601 const int foo = 10;
27602 if (!foo) return 0;
27604 return !cs[0] && !zero.x;
27611 if ac_fn_c_try_compile "$LINENO"; then :
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27619 $as_echo "$ac_cv_c_const" >&6; }
27620 if test $ac_cv_c_const = no; then
27622 $as_echo "#define const /**/" >>confdefs.h
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27628 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27629 if ${curl_cv_variadic_macros_c99+:} false; then :
27630 $as_echo_n "(cached) " >&6
27633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634 /* end confdefs.h. */
27637 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27638 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27639 int fun3(int arg1, int arg2, int arg3);
27640 int fun2(int arg1, int arg2);
27641 int fun3(int arg1, int arg2, int arg3)
27642 { return arg1 + arg2 + arg3; }
27643 int fun2(int arg1, int arg2)
27644 { return arg1 + arg2; }
27649 int res3 = c99_vmacro3(1, 2, 3);
27650 int res2 = c99_vmacro2(1, 2);
27657 if ac_fn_c_try_compile "$LINENO"; then :
27659 curl_cv_variadic_macros_c99="yes"
27663 curl_cv_variadic_macros_c99="no"
27666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27670 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27671 case "$curl_cv_variadic_macros_c99" in
27674 cat >>confdefs.h <<_ACEOF
27675 #define HAVE_VARIADIC_MACROS_C99 1
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27681 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27682 if ${curl_cv_variadic_macros_gcc+:} false; then :
27683 $as_echo_n "(cached) " >&6
27686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h. */
27690 #define gcc_vmacro3(first, args...) fun3(first, args)
27691 #define gcc_vmacro2(first, args...) fun2(first, args)
27692 int fun3(int arg1, int arg2, int arg3);
27693 int fun2(int arg1, int arg2);
27694 int fun3(int arg1, int arg2, int arg3)
27695 { return arg1 + arg2 + arg3; }
27696 int fun2(int arg1, int arg2)
27697 { return arg1 + arg2; }
27702 int res3 = gcc_vmacro3(1, 2, 3);
27703 int res2 = gcc_vmacro2(1, 2);
27710 if ac_fn_c_try_compile "$LINENO"; then :
27712 curl_cv_variadic_macros_gcc="yes"
27716 curl_cv_variadic_macros_gcc="no"
27719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27723 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27724 case "$curl_cv_variadic_macros_gcc" in
27727 cat >>confdefs.h <<_ACEOF
27728 #define HAVE_VARIADIC_MACROS_GCC 1
27734 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27735 if test "x$ac_cv_type_size_t" = xyes; then :
27739 cat >>confdefs.h <<_ACEOF
27740 #define size_t unsigned int
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27746 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27747 if ${ac_cv_header_time+:} false; then :
27748 $as_echo_n "(cached) " >&6
27750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27751 /* end confdefs.h. */
27752 #include <sys/types.h>
27753 #include <sys/time.h>
27758 if ((struct tm *) 0)
27764 if ac_fn_c_try_compile "$LINENO"; then :
27765 ac_cv_header_time=yes
27767 ac_cv_header_time=no
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27772 $as_echo "$ac_cv_header_time" >&6; }
27773 if test $ac_cv_header_time = yes; then
27775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27780 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27783 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27784 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27785 cat >>confdefs.h <<_ACEOF
27786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27794 $as_echo_n "checking for struct timeval... " >&6; }
27795 if ${ac_cv_struct_timeval+:} false; then :
27796 $as_echo_n "(cached) " >&6
27799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h. */
27804 #ifdef HAVE_WINDOWS_H
27805 #ifndef WIN32_LEAN_AND_MEAN
27806 #define WIN32_LEAN_AND_MEAN
27808 #include <windows.h>
27809 #ifdef HAVE_WINSOCK2_H
27810 #include <winsock2.h>
27812 #ifdef HAVE_WINSOCK_H
27813 #include <winsock.h>
27817 #ifdef HAVE_SYS_TYPES_H
27818 #include <sys/types.h>
27820 #ifdef HAVE_SYS_TIME_H
27821 #include <sys/time.h>
27822 #ifdef TIME_WITH_SYS_TIME
27830 #ifdef HAVE_SYS_SOCKET_H
27831 #include <sys/socket.h>
27846 if ac_fn_c_try_compile "$LINENO"; then :
27848 ac_cv_struct_timeval="yes"
27852 ac_cv_struct_timeval="no"
27855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
27859 $as_echo "$ac_cv_struct_timeval" >&6; }
27860 case "$ac_cv_struct_timeval" in
27863 cat >>confdefs.h <<_ACEOF
27864 #define HAVE_STRUCT_TIMEVAL 1
27872 if test "x$cross_compiling" != xyes; then
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27875 $as_echo_n "checking run-time libs availability... " >&6; }
27876 if test "$cross_compiling" = yes; then :
27877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27879 as_fn_error $? "cannot run test program while cross compiling
27880 See \`config.log' for more details" "$LINENO" 5; }
27882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h. */
27891 if ac_fn_c_try_run "$LINENO"; then :
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27893 $as_echo "fine" >&6; }
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27896 $as_echo "failed" >&6; }
27897 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27901 conftest.$ac_objext conftest.beam conftest.$ac_ext
27908 # The cast to long int works around a bug in the HP C Compiler
27909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27911 # This bug is HP SR number 8606223364.
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27913 $as_echo_n "checking size of size_t... " >&6; }
27914 if ${ac_cv_sizeof_size_t+:} false; then :
27915 $as_echo_n "(cached) " >&6
27917 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
27920 if test "$ac_cv_type_size_t" = yes; then
27921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27923 as_fn_error 77 "cannot compute sizeof (size_t)
27924 See \`config.log' for more details" "$LINENO" 5; }
27926 ac_cv_sizeof_size_t=0
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27932 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27936 cat >>confdefs.h <<_ACEOF
27937 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27941 # The cast to long int works around a bug in the HP C Compiler
27942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27944 # This bug is HP SR number 8606223364.
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
27946 $as_echo_n "checking size of long... " >&6; }
27947 if ${ac_cv_sizeof_long+:} false; then :
27948 $as_echo_n "(cached) " >&6
27950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
27953 if test "$ac_cv_type_long" = yes; then
27954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27956 as_fn_error 77 "cannot compute sizeof (long)
27957 See \`config.log' for more details" "$LINENO" 5; }
27959 ac_cv_sizeof_long=0
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
27965 $as_echo "$ac_cv_sizeof_long" >&6; }
27969 cat >>confdefs.h <<_ACEOF
27970 #define SIZEOF_LONG $ac_cv_sizeof_long
27974 # The cast to long int works around a bug in the HP C Compiler
27975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27977 # This bug is HP SR number 8606223364.
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27979 $as_echo_n "checking size of int... " >&6; }
27980 if ${ac_cv_sizeof_int+:} false; then :
27981 $as_echo_n "(cached) " >&6
27983 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27986 if test "$ac_cv_type_int" = yes; then
27987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27989 as_fn_error 77 "cannot compute sizeof (int)
27990 See \`config.log' for more details" "$LINENO" 5; }
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27998 $as_echo "$ac_cv_sizeof_int" >&6; }
28002 cat >>confdefs.h <<_ACEOF
28003 #define SIZEOF_INT $ac_cv_sizeof_int
28007 # The cast to long int works around a bug in the HP C Compiler
28008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28010 # This bug is HP SR number 8606223364.
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28012 $as_echo_n "checking size of short... " >&6; }
28013 if ${ac_cv_sizeof_short+:} false; then :
28014 $as_echo_n "(cached) " >&6
28016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28019 if test "$ac_cv_type_short" = yes; then
28020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28022 as_fn_error 77 "cannot compute sizeof (short)
28023 See \`config.log' for more details" "$LINENO" 5; }
28025 ac_cv_sizeof_short=0
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28031 $as_echo "$ac_cv_sizeof_short" >&6; }
28035 cat >>confdefs.h <<_ACEOF
28036 #define SIZEOF_SHORT $ac_cv_sizeof_short
28041 if test -z "$ac_cv_sizeof_long" ||
28042 test "$ac_cv_sizeof_long" -eq "0"; then
28043 as_fn_error $? "cannot find out size of long." "$LINENO" 5
28046 cat >>confdefs.h <<_EOF
28047 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
28051 # The cast to long int works around a bug in the HP C Compiler
28052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28054 # This bug is HP SR number 8606223364.
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28056 $as_echo_n "checking size of time_t... " >&6; }
28057 if ${ac_cv_sizeof_time_t+:} false; then :
28058 $as_echo_n "(cached) " >&6
28060 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28063 if test "$ac_cv_type_time_t" = yes; then
28064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28066 as_fn_error 77 "cannot compute sizeof (time_t)
28067 See \`config.log' for more details" "$LINENO" 5; }
28069 ac_cv_sizeof_time_t=0
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28075 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28079 cat >>confdefs.h <<_ACEOF
28080 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28084 # The cast to long int works around a bug in the HP C Compiler
28085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28087 # This bug is HP SR number 8606223364.
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28089 $as_echo_n "checking size of off_t... " >&6; }
28090 if ${ac_cv_sizeof_off_t+:} false; then :
28091 $as_echo_n "(cached) " >&6
28093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28096 if test "$ac_cv_type_off_t" = yes; then
28097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28099 as_fn_error 77 "cannot compute sizeof (off_t)
28100 See \`config.log' for more details" "$LINENO" 5; }
28102 ac_cv_sizeof_off_t=0
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28108 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28112 cat >>confdefs.h <<_ACEOF
28113 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28119 if test x"$ac_cv_native_windows" != "xyes" &&
28120 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
28122 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
28124 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
28129 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28130 if test "x$ac_cv_type_long_long" = xyes; then :
28132 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28139 if test "xyes" = "x$longlong"; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28141 $as_echo_n "checking if numberLL works... " >&6; }
28142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28143 /* end confdefs.h. */
28150 long long val = 1000LL;
28157 if ac_fn_c_try_compile "$LINENO"; then :
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28160 $as_echo "yes" >&6; }
28162 $as_echo "#define HAVE_LL 1" >>confdefs.h
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28168 $as_echo "no" >&6; }
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 # check for ssize_t
28176 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28177 if test "x$ac_cv_type_ssize_t" = xyes; then :
28181 $as_echo "#define ssize_t int" >>confdefs.h
28186 # check for bool type
28187 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28188 #ifdef HAVE_SYS_TYPES_H
28189 #include <sys/types.h>
28191 #ifdef HAVE_STDBOOL_H
28192 #include <stdbool.h>
28196 if test "x$ac_cv_type_bool" = xyes; then :
28199 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28206 curl_includes_ws2tcpip="\
28207 /* includes start */
28208 #ifdef HAVE_WINDOWS_H
28209 # ifndef WIN32_LEAN_AND_MEAN
28210 # define WIN32_LEAN_AND_MEAN
28212 # include <windows.h>
28213 # ifdef HAVE_WINSOCK2_H
28214 # include <winsock2.h>
28215 # ifdef HAVE_WS2TCPIP_H
28216 # include <ws2tcpip.h>
28220 /* includes end */"
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28223 $as_echo_n "checking for windows.h... " >&6; }
28224 if ${ac_cv_header_windows_h+:} false; then :
28225 $as_echo_n "(cached) " >&6
28228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229 /* end confdefs.h. */
28233 #ifndef WIN32_LEAN_AND_MEAN
28234 #define WIN32_LEAN_AND_MEAN
28236 #include <windows.h>
28241 #if defined(__CYGWIN__) || defined(__CEGCC__)
28242 HAVE_WINDOWS_H shall not be defined.
28244 int dummy=2*WINVER;
28252 if ac_fn_c_try_compile "$LINENO"; then :
28254 ac_cv_header_windows_h="yes"
28258 ac_cv_header_windows_h="no"
28261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
28265 $as_echo "$ac_cv_header_windows_h" >&6; }
28266 case "$ac_cv_header_windows_h" in
28269 cat >>confdefs.h <<_ACEOF
28270 #define HAVE_WINDOWS_H 1
28274 cat >>confdefs.h <<_ACEOF
28275 #define WIN32_LEAN_AND_MEAN 1
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28283 $as_echo_n "checking for winsock2.h... " >&6; }
28284 if ${ac_cv_header_winsock2_h+:} false; then :
28285 $as_echo_n "(cached) " >&6
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h. */
28293 #ifndef WIN32_LEAN_AND_MEAN
28294 #define WIN32_LEAN_AND_MEAN
28296 #include <windows.h>
28297 #include <winsock2.h>
28302 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28303 HAVE_WINSOCK2_H shall not be defined.
28305 int dummy=2*IPPROTO_ESP;
28313 if ac_fn_c_try_compile "$LINENO"; then :
28315 ac_cv_header_winsock2_h="yes"
28319 ac_cv_header_winsock2_h="no"
28322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
28326 $as_echo "$ac_cv_header_winsock2_h" >&6; }
28327 case "$ac_cv_header_winsock2_h" in
28330 cat >>confdefs.h <<_ACEOF
28331 #define HAVE_WINSOCK2_H 1
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28339 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28340 if ${ac_cv_header_ws2tcpip_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>
28354 #include <ws2tcpip.h>
28359 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28360 HAVE_WS2TCPIP_H shall not be defined.
28362 int dummy=2*IP_PKTINFO;
28370 if ac_fn_c_try_compile "$LINENO"; then :
28372 ac_cv_header_ws2tcpip_h="yes"
28376 ac_cv_header_ws2tcpip_h="no"
28379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
28383 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
28384 case "$ac_cv_header_ws2tcpip_h" in
28387 cat >>confdefs.h <<_ACEOF
28388 #define HAVE_WS2TCPIP_H 1
28396 curl_includes_sys_socket="\
28397 /* includes start */
28398 #ifdef HAVE_SYS_TYPES_H
28399 # include <sys/types.h>
28401 #ifdef HAVE_SYS_SOCKET_H
28402 # include <sys/socket.h>
28404 /* includes end */"
28405 for ac_header in sys/types.h sys/socket.h
28407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28411 cat >>confdefs.h <<_ACEOF
28412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28421 curl_preprocess_callconv="\
28422 /* preprocess start */
28423 #ifdef HAVE_WINDOWS_H
28424 # define FUNCALLCONV __stdcall
28426 # define FUNCALLCONV
28428 /* preprocess end */"
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28434 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28435 curl_typeof_curl_socklen_t="unknown"
28436 for arg1 in int SOCKET; do
28437 for arg2 in 'struct sockaddr' void; do
28438 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28439 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28441 /* end confdefs.h. */
28444 $curl_includes_ws2tcpip
28445 $curl_includes_sys_socket
28446 $curl_preprocess_callconv
28447 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28453 if(0 != getpeername(0, 0, lenptr))
28461 if ac_fn_c_try_compile "$LINENO"; then :
28463 curl_typeof_curl_socklen_t="$t"
28466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28471 for t in socklen_t int; do
28472 if test "$curl_typeof_curl_socklen_t" = "void"; then
28473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28474 /* end confdefs.h. */
28477 $curl_includes_sys_socket
28478 typedef $t curl_socklen_t;
28483 curl_socklen_t dummy;
28490 if ac_fn_c_try_compile "$LINENO"; then :
28492 curl_typeof_curl_socklen_t="$t"
28495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28499 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28500 if test "$curl_typeof_curl_socklen_t" = "void" ||
28501 test "$curl_typeof_curl_socklen_t" = "unknown"; then
28502 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28506 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28507 curl_sizeof_curl_socklen_t="unknown"
28508 curl_pull_headers_socklen_t="unknown"
28509 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
28510 tst_pull_header_checks='none ws2tcpip'
28511 tst_size_checks='4'
28513 tst_pull_header_checks='none systypes syssocket'
28514 tst_size_checks='4 8 2'
28516 for tst_size in $tst_size_checks; do
28517 for tst_pull_headers in $tst_pull_header_checks; do
28518 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28519 case $tst_pull_headers in
28521 tmp_includes="$curl_includes_ws2tcpip"
28524 tmp_includes="$curl_includes_sys_types"
28527 tmp_includes="$curl_includes_sys_socket"
28533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28534 /* end confdefs.h. */
28538 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28539 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28544 curl_socklen_t dummy;
28551 if ac_fn_c_try_compile "$LINENO"; then :
28553 curl_sizeof_curl_socklen_t="$tst_size"
28554 curl_pull_headers_socklen_t="$tst_pull_headers"
28557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28562 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28563 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28564 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28567 case $curl_pull_headers_socklen_t in
28570 cat >>confdefs.h <<_EOF
28571 #define CURL_PULL_WS2TCPIP_H 1
28577 cat >>confdefs.h <<_EOF
28578 #define CURL_PULL_SYS_TYPES_H 1
28584 cat >>confdefs.h <<_EOF
28585 #define CURL_PULL_SYS_TYPES_H 1
28589 cat >>confdefs.h <<_EOF
28590 #define CURL_PULL_SYS_SOCKET_H 1
28596 cat >>confdefs.h <<_EOF
28597 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28601 cat >>confdefs.h <<_EOF
28602 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28608 curl_includes_poll="\
28609 /* includes start */
28610 #ifdef HAVE_SYS_TYPES_H
28611 # include <sys/types.h>
28616 #ifdef HAVE_SYS_POLL_H
28617 # include <sys/poll.h>
28619 /* includes end */"
28620 for ac_header in sys/types.h poll.h sys/poll.h
28622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28623 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28626 cat >>confdefs.h <<_ACEOF
28627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28637 tst_poll_events_macro_defined="unknown"
28639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28640 /* end confdefs.h. */
28643 $curl_includes_poll
28648 #if defined(events) || defined(revents)
28651 force compilation error
28659 if ac_fn_c_try_compile "$LINENO"; then :
28661 tst_poll_events_macro_defined="yes"
28665 tst_poll_events_macro_defined="no"
28668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28670 if test "$tst_poll_events_macro_defined" = "yes"; then
28671 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28673 cat >>confdefs.h <<_EOF
28674 #define CURL_PULL_SYS_POLL_H 1
28683 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28685 #ifdef HAVE_WINDOWS_H
28686 #ifndef WIN32_LEAN_AND_MEAN
28687 #define WIN32_LEAN_AND_MEAN
28689 #include <windows.h>
28690 #ifdef HAVE_WINSOCK2_H
28691 #include <winsock2.h>
28693 #ifdef HAVE_WINSOCK_H
28694 #include <winsock.h>
28698 #ifdef HAVE_SYS_TYPES_H
28699 #include <sys/types.h>
28701 #ifdef HAVE_SYS_SOCKET_H
28702 #include <sys/socket.h>
28704 #ifdef HAVE_NETINET_IN_H
28705 #include <netinet/in.h>
28707 #ifdef HAVE_ARPA_INET_H
28708 #include <arpa/inet.h>
28713 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28718 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28719 if ${curl_cv_in_addr_t_equiv+:} false; then :
28720 $as_echo_n "(cached) " >&6
28723 curl_cv_in_addr_t_equiv="unknown"
28724 for t in "unsigned long" int size_t unsigned long; do
28725 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28727 /* end confdefs.h. */
28731 #ifdef HAVE_WINDOWS_H
28732 #ifndef WIN32_LEAN_AND_MEAN
28733 #define WIN32_LEAN_AND_MEAN
28735 #include <windows.h>
28736 #ifdef HAVE_WINSOCK2_H
28737 #include <winsock2.h>
28739 #ifdef HAVE_WINSOCK_H
28740 #include <winsock.h>
28744 #ifdef HAVE_SYS_TYPES_H
28745 #include <sys/types.h>
28747 #ifdef HAVE_SYS_SOCKET_H
28748 #include <sys/socket.h>
28750 #ifdef HAVE_NETINET_IN_H
28751 #include <netinet/in.h>
28753 #ifdef HAVE_ARPA_INET_H
28754 #include <arpa/inet.h>
28761 $t data = inet_addr ("1.2.3.4");
28768 if ac_fn_c_try_link "$LINENO"; then :
28770 curl_cv_in_addr_t_equiv="$t"
28773 rm -f core conftest.err conftest.$ac_objext \
28774 conftest$ac_exeext conftest.$ac_ext
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28780 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28781 case "$curl_cv_in_addr_t_equiv" in
28783 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28787 cat >>confdefs.h <<_ACEOF
28788 #define in_addr_t $curl_cv_in_addr_t_equiv
28799 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28801 #ifdef HAVE_WINDOWS_H
28802 #ifndef WIN32_LEAN_AND_MEAN
28803 #define WIN32_LEAN_AND_MEAN
28805 #include <windows.h>
28806 #ifdef HAVE_WINSOCK2_H
28807 #include <winsock2.h>
28810 #ifdef HAVE_SYS_TYPES_H
28811 #include <sys/types.h>
28813 #ifdef HAVE_SYS_SOCKET_H
28814 #include <sys/socket.h>
28816 #ifdef HAVE_NETINET_IN_H
28817 #include <netinet/in.h>
28819 #ifdef HAVE_ARPA_INET_H
28820 #include <arpa/inet.h>
28825 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28827 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28834 for ac_header in signal.h
28836 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28837 if test "x$ac_cv_header_signal_h" = xyes; then :
28838 cat >>confdefs.h <<_ACEOF
28839 #define HAVE_SIGNAL_H 1
28846 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28847 #ifdef HAVE_SIGNAL_H
28848 #include <signal.h>
28852 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28855 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28860 case "$ac_cv_type_sig_atomic_t" in
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28864 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866 /* end confdefs.h. */
28869 #ifdef HAVE_SIGNAL_H
28870 #include <signal.h>
28876 static volatile sig_atomic_t dummy = 0;
28883 if ac_fn_c_try_link "$LINENO"; then :
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28886 $as_echo "no" >&6; }
28887 ac_cv_sig_atomic_t_volatile="no"
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28892 $as_echo "yes" >&6; }
28893 ac_cv_sig_atomic_t_volatile="yes"
28896 rm -f core conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext conftest.$ac_ext
28899 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
28901 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
28909 $as_echo_n "checking return type of signal handlers... " >&6; }
28910 if ${ac_cv_type_signal+:} false; then :
28911 $as_echo_n "(cached) " >&6
28913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28914 /* end confdefs.h. */
28915 #include <sys/types.h>
28916 #include <signal.h>
28920 return *(signal (0, 0)) (0) == 1;
28925 if ac_fn_c_try_compile "$LINENO"; then :
28926 ac_cv_type_signal=int
28928 ac_cv_type_signal=void
28930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
28933 $as_echo "$ac_cv_type_signal" >&6; }
28935 cat >>confdefs.h <<_ACEOF
28936 #define RETSIGTYPE $ac_cv_type_signal
28942 for ac_header in sys/select.h sys/socket.h
28944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28947 cat >>confdefs.h <<_ACEOF
28948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
28957 $as_echo_n "checking for select... " >&6; }
28958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h. */
28963 #ifdef HAVE_WINDOWS_H
28964 #ifndef WIN32_LEAN_AND_MEAN
28965 #define WIN32_LEAN_AND_MEAN
28967 #include <windows.h>
28968 #ifdef HAVE_WINSOCK2_H
28969 #include <winsock2.h>
28971 #ifdef HAVE_WINSOCK_H
28972 #include <winsock.h>
28976 #ifdef HAVE_SYS_TYPES_H
28977 #include <sys/types.h>
28979 #ifdef HAVE_SYS_TIME_H
28980 #include <sys/time.h>
28981 #ifdef TIME_WITH_SYS_TIME
28989 #ifndef HAVE_WINDOWS_H
28990 #ifdef HAVE_SYS_SELECT_H
28991 #include <sys/select.h>
28993 #ifdef HAVE_SYS_SOCKET_H
28994 #include <sys/socket.h>
29001 select(0, 0, 0, 0, 0);
29008 if ac_fn_c_try_link "$LINENO"; then :
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29011 $as_echo "yes" >&6; }
29012 curl_cv_select="yes"
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29017 $as_echo "no" >&6; }
29018 curl_cv_select="no"
29021 rm -f core conftest.err conftest.$ac_objext \
29022 conftest$ac_exeext conftest.$ac_ext
29024 if test "$curl_cv_select" = "yes"; then
29025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29026 $as_echo_n "checking types of args and return type for select... " >&6; }
29027 if ${curl_cv_func_select_args+:} false; then :
29028 $as_echo_n "(cached) " >&6
29031 curl_cv_func_select_args="unknown"
29032 for sel_retv in 'int' 'ssize_t'; do
29033 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29034 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29035 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29036 if test "$curl_cv_func_select_args" = "unknown"; then
29037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29038 /* end confdefs.h. */
29042 #ifdef HAVE_WINDOWS_H
29043 #ifndef WIN32_LEAN_AND_MEAN
29044 #define WIN32_LEAN_AND_MEAN
29046 #include <windows.h>
29047 #ifdef HAVE_WINSOCK2_H
29048 #include <winsock2.h>
29050 #ifdef HAVE_WINSOCK_H
29051 #include <winsock.h>
29054 #define SELECTCALLCONV PASCAL
29056 #ifdef HAVE_SYS_TYPES_H
29057 #include <sys/types.h>
29059 #ifdef HAVE_SYS_TIME_H
29060 #include <sys/time.h>
29061 #ifdef TIME_WITH_SYS_TIME
29069 #ifndef HAVE_WINDOWS_H
29070 #ifdef HAVE_SYS_SELECT_H
29071 #include <sys/select.h>
29073 #ifdef HAVE_SYS_SOCKET_H
29074 #include <sys/socket.h>
29076 #define SELECTCALLCONV
29078 #ifndef HAVE_STRUCT_TIMEVAL
29084 extern $sel_retv SELECTCALLCONV select($sel_arg1,
29094 $sel_arg234 rfds=0;
29095 $sel_arg234 wfds=0;
29096 $sel_arg234 efds=0;
29097 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29104 if ac_fn_c_try_compile "$LINENO"; then :
29106 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29118 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29119 if test "$curl_cv_func_select_args" = "unknown"; then
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29121 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29123 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29125 select_prev_IFS=$IFS; IFS=','
29126 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29127 IFS=$select_prev_IFS
29130 sel_qual_type_arg5=$3
29133 cat >>confdefs.h <<_ACEOF
29134 #define SELECT_TYPE_ARG1 $1
29138 cat >>confdefs.h <<_ACEOF
29139 #define SELECT_TYPE_ARG234 $2
29143 cat >>confdefs.h <<_ACEOF
29144 #define SELECT_TYPE_RETV $4
29150 case $prev_sh_opts in
29158 case "$sel_qual_type_arg5" in
29160 sel_qual_arg5=const
29161 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29165 sel_type_arg5=$sel_qual_type_arg5
29170 cat >>confdefs.h <<_ACEOF
29171 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29175 cat >>confdefs.h <<_ACEOF
29176 #define SELECT_TYPE_ARG5 $sel_type_arg5
29180 case $prev_sh_opts in
29189 cat >>confdefs.h <<_ACEOF
29190 #define HAVE_SELECT 1
29193 ac_cv_func_select="yes"
29199 for ac_header in sys/types.h sys/socket.h
29201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29204 cat >>confdefs.h <<_ACEOF
29205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29214 $as_echo_n "checking for recv... " >&6; }
29215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29216 /* end confdefs.h. */
29220 #ifdef HAVE_WINDOWS_H
29221 #ifndef WIN32_LEAN_AND_MEAN
29222 #define WIN32_LEAN_AND_MEAN
29224 #include <windows.h>
29225 #ifdef HAVE_WINSOCK2_H
29226 #include <winsock2.h>
29228 #ifdef HAVE_WINSOCK_H
29229 #include <winsock.h>
29233 #ifdef HAVE_SYS_TYPES_H
29234 #include <sys/types.h>
29236 #ifdef HAVE_SYS_SOCKET_H
29237 #include <sys/socket.h>
29251 if ac_fn_c_try_link "$LINENO"; then :
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254 $as_echo "yes" >&6; }
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29260 $as_echo "no" >&6; }
29264 rm -f core conftest.err conftest.$ac_objext \
29265 conftest$ac_exeext conftest.$ac_ext
29267 if test "$curl_cv_recv" = "yes"; then
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29269 $as_echo_n "checking types of args and return type for recv... " >&6; }
29270 if ${curl_cv_func_recv_args+:} false; then :
29271 $as_echo_n "(cached) " >&6
29274 curl_cv_func_recv_args="unknown"
29275 for recv_retv in 'int' 'ssize_t'; do
29276 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29277 for recv_arg2 in 'char *' 'void *'; do
29278 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29279 for recv_arg4 in 'int' 'unsigned int'; do
29280 if test "$curl_cv_func_recv_args" = "unknown"; then
29281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29282 /* end confdefs.h. */
29286 #ifdef HAVE_WINDOWS_H
29287 #ifndef WIN32_LEAN_AND_MEAN
29288 #define WIN32_LEAN_AND_MEAN
29290 #include <windows.h>
29291 #ifdef HAVE_WINSOCK2_H
29292 #include <winsock2.h>
29294 #ifdef HAVE_WINSOCK_H
29295 #include <winsock.h>
29298 #define RECVCALLCONV PASCAL
29300 #ifdef HAVE_SYS_TYPES_H
29301 #include <sys/types.h>
29303 #ifdef HAVE_SYS_SOCKET_H
29304 #include <sys/socket.h>
29306 #define RECVCALLCONV
29308 extern $recv_retv RECVCALLCONV
29309 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29317 $recv_arg4 flags=0;
29318 $recv_retv res = recv(s, buf, len, flags);
29325 if ac_fn_c_try_compile "$LINENO"; then :
29327 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29340 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29341 if test "$curl_cv_func_recv_args" = "unknown"; then
29342 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29344 recv_prev_IFS=$IFS; IFS=','
29345 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29350 cat >>confdefs.h <<_ACEOF
29351 #define RECV_TYPE_ARG1 $1
29355 cat >>confdefs.h <<_ACEOF
29356 #define RECV_TYPE_ARG2 $2
29360 cat >>confdefs.h <<_ACEOF
29361 #define RECV_TYPE_ARG3 $3
29365 cat >>confdefs.h <<_ACEOF
29366 #define RECV_TYPE_ARG4 $4
29370 cat >>confdefs.h <<_ACEOF
29371 #define RECV_TYPE_RETV $5
29376 cat >>confdefs.h <<_ACEOF
29377 #define HAVE_RECV 1
29380 ac_cv_func_recv="yes"
29383 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29387 for ac_header in sys/types.h sys/socket.h
29389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29390 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29392 cat >>confdefs.h <<_ACEOF
29393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29402 $as_echo_n "checking for send... " >&6; }
29403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29404 /* end confdefs.h. */
29408 #ifdef HAVE_WINDOWS_H
29409 #ifndef WIN32_LEAN_AND_MEAN
29410 #define WIN32_LEAN_AND_MEAN
29412 #include <windows.h>
29413 #ifdef HAVE_WINSOCK2_H
29414 #include <winsock2.h>
29416 #ifdef HAVE_WINSOCK_H
29417 #include <winsock.h>
29421 #ifdef HAVE_SYS_TYPES_H
29422 #include <sys/types.h>
29424 #ifdef HAVE_SYS_SOCKET_H
29425 #include <sys/socket.h>
29439 if ac_fn_c_try_link "$LINENO"; then :
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29442 $as_echo "yes" >&6; }
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29448 $as_echo "no" >&6; }
29452 rm -f core conftest.err conftest.$ac_objext \
29453 conftest$ac_exeext conftest.$ac_ext
29455 if test "$curl_cv_send" = "yes"; then
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29457 $as_echo_n "checking types of args and return type for send... " >&6; }
29458 if ${curl_cv_func_send_args+:} false; then :
29459 $as_echo_n "(cached) " >&6
29462 curl_cv_func_send_args="unknown"
29463 for send_retv in 'int' 'ssize_t'; do
29464 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29465 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29466 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29467 for send_arg4 in 'int' 'unsigned int'; do
29468 if test "$curl_cv_func_send_args" = "unknown"; then
29469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29470 /* end confdefs.h. */
29474 #ifdef HAVE_WINDOWS_H
29475 #ifndef WIN32_LEAN_AND_MEAN
29476 #define WIN32_LEAN_AND_MEAN
29478 #include <windows.h>
29479 #ifdef HAVE_WINSOCK2_H
29480 #include <winsock2.h>
29482 #ifdef HAVE_WINSOCK_H
29483 #include <winsock.h>
29486 #define SENDCALLCONV PASCAL
29488 #ifdef HAVE_SYS_TYPES_H
29489 #include <sys/types.h>
29491 #ifdef HAVE_SYS_SOCKET_H
29492 #include <sys/socket.h>
29494 #define SENDCALLCONV
29496 extern $send_retv SENDCALLCONV
29497 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29504 $send_arg4 flags=0;
29505 $send_retv res = send(s, 0, len, flags);
29512 if ac_fn_c_try_compile "$LINENO"; then :
29514 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29527 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29528 if test "$curl_cv_func_send_args" = "unknown"; then
29529 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29531 send_prev_IFS=$IFS; IFS=','
29532 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29536 send_qual_type_arg2=$2
29539 cat >>confdefs.h <<_ACEOF
29540 #define SEND_TYPE_ARG1 $1
29544 cat >>confdefs.h <<_ACEOF
29545 #define SEND_TYPE_ARG3 $3
29549 cat >>confdefs.h <<_ACEOF
29550 #define SEND_TYPE_ARG4 $4
29554 cat >>confdefs.h <<_ACEOF
29555 #define SEND_TYPE_RETV $5
29561 case $prev_sh_opts in
29569 case "$send_qual_type_arg2" in
29571 send_qual_arg2=const
29572 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29576 send_type_arg2=$send_qual_type_arg2
29581 cat >>confdefs.h <<_ACEOF
29582 #define SEND_QUAL_ARG2 $send_qual_arg2
29586 cat >>confdefs.h <<_ACEOF
29587 #define SEND_TYPE_ARG2 $send_type_arg2
29591 case $prev_sh_opts in
29600 cat >>confdefs.h <<_ACEOF
29601 #define HAVE_SEND 1
29604 ac_cv_func_send="yes"
29607 as_fn_error $? "Unable to link function send" "$LINENO" 5
29611 for ac_header in sys/types.h sys/socket.h
29613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29614 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29616 cat >>confdefs.h <<_ACEOF
29617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29625 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29626 if ${ac_cv_msg_nosignal+:} false; then :
29627 $as_echo_n "(cached) " >&6
29630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29631 /* end confdefs.h. */
29635 #ifdef HAVE_WINDOWS_H
29636 #ifndef WIN32_LEAN_AND_MEAN
29637 #define WIN32_LEAN_AND_MEAN
29639 #include <windows.h>
29640 #ifdef HAVE_WINSOCK2_H
29641 #include <winsock2.h>
29643 #ifdef HAVE_WINSOCK_H
29644 #include <winsock.h>
29648 #ifdef HAVE_SYS_TYPES_H
29649 #include <sys/types.h>
29651 #ifdef HAVE_SYS_SOCKET_H
29652 #include <sys/socket.h>
29659 int flag=MSG_NOSIGNAL;
29666 if ac_fn_c_try_compile "$LINENO"; then :
29668 ac_cv_msg_nosignal="yes"
29672 ac_cv_msg_nosignal="no"
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
29679 $as_echo "$ac_cv_msg_nosignal" >&6; }
29680 case "$ac_cv_msg_nosignal" in
29683 cat >>confdefs.h <<_ACEOF
29684 #define HAVE_MSG_NOSIGNAL 1
29692 curl_includes_unistd="\
29693 /* includes start */
29694 #ifdef HAVE_SYS_TYPES_H
29695 # include <sys/types.h>
29697 #ifdef HAVE_UNISTD_H
29698 # include <unistd.h>
29700 /* includes end */"
29701 for ac_header in sys/types.h unistd.h
29703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29707 cat >>confdefs.h <<_ACEOF
29708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29718 tst_links_alarm="unknown"
29719 tst_proto_alarm="unknown"
29720 tst_compi_alarm="unknown"
29721 tst_allow_alarm="unknown"
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29724 $as_echo_n "checking if alarm can be linked... " >&6; }
29725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29726 /* end confdefs.h. */
29729 #define alarm innocuous_alarm
29731 # include <limits.h>
29733 # include <assert.h>
29740 #if defined __stub_alarm || defined __stub___alarm
29752 if ac_fn_c_try_link "$LINENO"; then :
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29755 $as_echo "yes" >&6; }
29756 tst_links_alarm="yes"
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29761 $as_echo "no" >&6; }
29762 tst_links_alarm="no"
29765 rm -f core conftest.err conftest.$ac_objext \
29766 conftest$ac_exeext conftest.$ac_ext
29768 if test "$tst_links_alarm" = "yes"; then
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29770 $as_echo_n "checking if alarm is prototyped... " >&6; }
29771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29772 /* end confdefs.h. */
29774 $curl_includes_unistd
29777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29778 $EGREP "alarm" >/dev/null 2>&1; then :
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29781 $as_echo "yes" >&6; }
29782 tst_proto_alarm="yes"
29786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29787 $as_echo "no" >&6; }
29788 tst_proto_alarm="no"
29795 if test "$tst_proto_alarm" = "yes"; then
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29797 $as_echo_n "checking if alarm is compilable... " >&6; }
29798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799 /* end confdefs.h. */
29802 $curl_includes_unistd
29815 if ac_fn_c_try_compile "$LINENO"; then :
29817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29818 $as_echo "yes" >&6; }
29819 tst_compi_alarm="yes"
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29824 $as_echo "no" >&6; }
29825 tst_compi_alarm="no"
29828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29831 if test "$tst_compi_alarm" = "yes"; then
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29833 $as_echo_n "checking if alarm usage allowed... " >&6; }
29834 if test "x$curl_disallow_alarm" != "xyes"; then
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29836 $as_echo "yes" >&6; }
29837 tst_allow_alarm="yes"
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29840 $as_echo "no" >&6; }
29841 tst_allow_alarm="no"
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29846 $as_echo_n "checking if alarm might be used... " >&6; }
29847 if test "$tst_links_alarm" = "yes" &&
29848 test "$tst_proto_alarm" = "yes" &&
29849 test "$tst_compi_alarm" = "yes" &&
29850 test "$tst_allow_alarm" = "yes"; then
29851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29852 $as_echo "yes" >&6; }
29854 cat >>confdefs.h <<_ACEOF
29855 #define HAVE_ALARM 1
29858 ac_cv_func_alarm="yes"
29860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29861 $as_echo "no" >&6; }
29862 ac_cv_func_alarm="no"
29866 curl_includes_string="\
29867 /* includes start */
29868 #ifdef HAVE_SYS_TYPES_H
29869 # include <sys/types.h>
29871 #ifdef HAVE_STRING_H
29872 # include <string.h>
29874 #ifdef HAVE_STRINGS_H
29875 # include <strings.h>
29877 /* includes end */"
29878 for ac_header in sys/types.h string.h strings.h
29880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29881 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29884 cat >>confdefs.h <<_ACEOF
29885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29894 curl_includes_libgen="\
29895 /* includes start */
29896 #ifdef HAVE_SYS_TYPES_H
29897 # include <sys/types.h>
29899 #ifdef HAVE_LIBGEN_H
29900 # include <libgen.h>
29902 /* includes end */"
29903 for ac_header in sys/types.h libgen.h
29905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
29908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29909 cat >>confdefs.h <<_ACEOF
29910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29920 tst_links_basename="unknown"
29921 tst_proto_basename="unknown"
29922 tst_compi_basename="unknown"
29923 tst_allow_basename="unknown"
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
29926 $as_echo_n "checking if basename can be linked... " >&6; }
29927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29928 /* end confdefs.h. */
29931 #define basename innocuous_basename
29933 # include <limits.h>
29935 # include <assert.h>
29942 #if defined __stub_basename || defined __stub___basename
29948 return basename ();
29954 if ac_fn_c_try_link "$LINENO"; then :
29956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29957 $as_echo "yes" >&6; }
29958 tst_links_basename="yes"
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29963 $as_echo "no" >&6; }
29964 tst_links_basename="no"
29967 rm -f core conftest.err conftest.$ac_objext \
29968 conftest$ac_exeext conftest.$ac_ext
29970 if test "$tst_links_basename" = "yes"; then
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
29972 $as_echo_n "checking if basename is prototyped... " >&6; }
29973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29974 /* end confdefs.h. */
29976 $curl_includes_string
29977 $curl_includes_libgen
29978 $curl_includes_unistd
29981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29982 $EGREP "basename" >/dev/null 2>&1; then :
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29985 $as_echo "yes" >&6; }
29986 tst_proto_basename="yes"
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29991 $as_echo "no" >&6; }
29992 tst_proto_basename="no"
29999 if test "$tst_proto_basename" = "yes"; then
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30001 $as_echo_n "checking if basename is compilable... " >&6; }
30002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30003 /* end confdefs.h. */
30006 $curl_includes_string
30007 $curl_includes_libgen
30008 $curl_includes_unistd
30013 if(0 != basename(0))
30021 if ac_fn_c_try_compile "$LINENO"; then :
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30024 $as_echo "yes" >&6; }
30025 tst_compi_basename="yes"
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30030 $as_echo "no" >&6; }
30031 tst_compi_basename="no"
30034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30037 if test "$tst_compi_basename" = "yes"; then
30038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30039 $as_echo_n "checking if basename usage allowed... " >&6; }
30040 if test "x$curl_disallow_basename" != "xyes"; then
30041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30042 $as_echo "yes" >&6; }
30043 tst_allow_basename="yes"
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30046 $as_echo "no" >&6; }
30047 tst_allow_basename="no"
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30052 $as_echo_n "checking if basename might be used... " >&6; }
30053 if test "$tst_links_basename" = "yes" &&
30054 test "$tst_proto_basename" = "yes" &&
30055 test "$tst_compi_basename" = "yes" &&
30056 test "$tst_allow_basename" = "yes"; then
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30058 $as_echo "yes" >&6; }
30060 cat >>confdefs.h <<_ACEOF
30061 #define HAVE_BASENAME 1
30064 ac_cv_func_basename="yes"
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30067 $as_echo "no" >&6; }
30068 ac_cv_func_basename="no"
30072 curl_includes_socket="\
30073 /* includes start */
30074 #ifdef HAVE_SYS_TYPES_H
30075 # include <sys/types.h>
30077 #ifdef HAVE_SOCKET_H
30078 # include <socket.h>
30080 /* includes end */"
30081 for ac_header in sys/types.h socket.h
30083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30087 cat >>confdefs.h <<_ACEOF
30088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30098 tst_links_closesocket="unknown"
30099 tst_proto_closesocket="unknown"
30100 tst_compi_closesocket="unknown"
30101 tst_allow_closesocket="unknown"
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30104 $as_echo_n "checking if closesocket can be linked... " >&6; }
30105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30106 /* end confdefs.h. */
30109 $curl_includes_winsock2
30110 $curl_includes_socket
30115 if(0 != closesocket(0))
30123 if ac_fn_c_try_link "$LINENO"; then :
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30126 $as_echo "yes" >&6; }
30127 tst_links_closesocket="yes"
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132 $as_echo "no" >&6; }
30133 tst_links_closesocket="no"
30136 rm -f core conftest.err conftest.$ac_objext \
30137 conftest$ac_exeext conftest.$ac_ext
30139 if test "$tst_links_closesocket" = "yes"; then
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30141 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30143 /* end confdefs.h. */
30145 $curl_includes_winsock2
30146 $curl_includes_socket
30149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30150 $EGREP "closesocket" >/dev/null 2>&1; then :
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30153 $as_echo "yes" >&6; }
30154 tst_proto_closesocket="yes"
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30159 $as_echo "no" >&6; }
30160 tst_proto_closesocket="no"
30167 if test "$tst_proto_closesocket" = "yes"; then
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30169 $as_echo_n "checking if closesocket is compilable... " >&6; }
30170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30171 /* end confdefs.h. */
30174 $curl_includes_winsock2
30175 $curl_includes_socket
30180 if(0 != closesocket(0))
30188 if ac_fn_c_try_compile "$LINENO"; then :
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30191 $as_echo "yes" >&6; }
30192 tst_compi_closesocket="yes"
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30197 $as_echo "no" >&6; }
30198 tst_compi_closesocket="no"
30201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30204 if test "$tst_compi_closesocket" = "yes"; then
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30206 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30207 if test "x$curl_disallow_closesocket" != "xyes"; then
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30209 $as_echo "yes" >&6; }
30210 tst_allow_closesocket="yes"
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30213 $as_echo "no" >&6; }
30214 tst_allow_closesocket="no"
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30219 $as_echo_n "checking if closesocket might be used... " >&6; }
30220 if test "$tst_links_closesocket" = "yes" &&
30221 test "$tst_proto_closesocket" = "yes" &&
30222 test "$tst_compi_closesocket" = "yes" &&
30223 test "$tst_allow_closesocket" = "yes"; then
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30225 $as_echo "yes" >&6; }
30227 cat >>confdefs.h <<_ACEOF
30228 #define HAVE_CLOSESOCKET 1
30231 ac_cv_func_closesocket="yes"
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30234 $as_echo "no" >&6; }
30235 ac_cv_func_closesocket="no"
30240 tst_links_closesocket_camel="unknown"
30241 tst_proto_closesocket_camel="unknown"
30242 tst_compi_closesocket_camel="unknown"
30243 tst_allow_closesocket_camel="unknown"
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30246 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30248 /* end confdefs.h. */
30251 $curl_includes_sys_socket
30256 if(0 != CloseSocket(0))
30264 if ac_fn_c_try_link "$LINENO"; then :
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30267 $as_echo "yes" >&6; }
30268 tst_links_closesocket_camel="yes"
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30273 $as_echo "no" >&6; }
30274 tst_links_closesocket_camel="no"
30277 rm -f core conftest.err conftest.$ac_objext \
30278 conftest$ac_exeext conftest.$ac_ext
30280 if test "$tst_links_closesocket_camel" = "yes"; then
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30282 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30284 /* end confdefs.h. */
30286 $curl_includes_sys_socket
30289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30290 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30293 $as_echo "yes" >&6; }
30294 tst_proto_closesocket_camel="yes"
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30299 $as_echo "no" >&6; }
30300 tst_proto_closesocket_camel="no"
30307 if test "$tst_proto_closesocket_camel" = "yes"; then
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30309 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30311 /* end confdefs.h. */
30314 $curl_includes_sys_socket
30319 if(0 != CloseSocket(0))
30327 if ac_fn_c_try_compile "$LINENO"; then :
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30330 $as_echo "yes" >&6; }
30331 tst_compi_closesocket_camel="yes"
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30336 $as_echo "no" >&6; }
30337 tst_compi_closesocket_camel="no"
30340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30343 if test "$tst_compi_closesocket_camel" = "yes"; then
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30345 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30346 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30348 $as_echo "yes" >&6; }
30349 tst_allow_closesocket_camel="yes"
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30352 $as_echo "no" >&6; }
30353 tst_allow_closesocket_camel="no"
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30358 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30359 if test "$tst_links_closesocket_camel" = "yes" &&
30360 test "$tst_proto_closesocket_camel" = "yes" &&
30361 test "$tst_compi_closesocket_camel" = "yes" &&
30362 test "$tst_allow_closesocket_camel" = "yes"; then
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30364 $as_echo "yes" >&6; }
30366 cat >>confdefs.h <<_ACEOF
30367 #define HAVE_CLOSESOCKET_CAMEL 1
30370 ac_cv_func_closesocket_camel="yes"
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30373 $as_echo "no" >&6; }
30374 ac_cv_func_closesocket_camel="no"
30379 tst_links_connect="unknown"
30380 tst_proto_connect="unknown"
30381 tst_compi_connect="unknown"
30382 tst_allow_connect="unknown"
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30385 $as_echo_n "checking if connect can be linked... " >&6; }
30386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30387 /* end confdefs.h. */
30390 $curl_includes_winsock2
30391 $curl_includes_sys_socket
30392 $curl_includes_socket
30397 if(0 != connect(0, 0, 0))
30405 if ac_fn_c_try_link "$LINENO"; then :
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30408 $as_echo "yes" >&6; }
30409 tst_links_connect="yes"
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30414 $as_echo "no" >&6; }
30415 tst_links_connect="no"
30418 rm -f core conftest.err conftest.$ac_objext \
30419 conftest$ac_exeext conftest.$ac_ext
30421 if test "$tst_links_connect" = "yes"; then
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30423 $as_echo_n "checking if connect is prototyped... " >&6; }
30424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30425 /* end confdefs.h. */
30427 $curl_includes_winsock2
30428 $curl_includes_sys_socket
30429 $curl_includes_socket
30432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30433 $EGREP "connect" >/dev/null 2>&1; then :
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30436 $as_echo "yes" >&6; }
30437 tst_proto_connect="yes"
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30442 $as_echo "no" >&6; }
30443 tst_proto_connect="no"
30450 if test "$tst_proto_connect" = "yes"; then
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30452 $as_echo_n "checking if connect is compilable... " >&6; }
30453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30454 /* end confdefs.h. */
30457 $curl_includes_winsock2
30458 $curl_includes_sys_socket
30459 $curl_includes_socket
30464 if(0 != connect(0, 0, 0))
30472 if ac_fn_c_try_compile "$LINENO"; then :
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30475 $as_echo "yes" >&6; }
30476 tst_compi_connect="yes"
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30482 tst_compi_connect="no"
30485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30488 if test "$tst_compi_connect" = "yes"; then
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30490 $as_echo_n "checking if connect usage allowed... " >&6; }
30491 if test "x$curl_disallow_connect" != "xyes"; then
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30493 $as_echo "yes" >&6; }
30494 tst_allow_connect="yes"
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30497 $as_echo "no" >&6; }
30498 tst_allow_connect="no"
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30503 $as_echo_n "checking if connect might be used... " >&6; }
30504 if test "$tst_links_connect" = "yes" &&
30505 test "$tst_proto_connect" = "yes" &&
30506 test "$tst_compi_connect" = "yes" &&
30507 test "$tst_allow_connect" = "yes"; then
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30509 $as_echo "yes" >&6; }
30511 cat >>confdefs.h <<_ACEOF
30512 #define HAVE_CONNECT 1
30515 ac_cv_func_connect="yes"
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30518 $as_echo "no" >&6; }
30519 ac_cv_func_connect="no"
30523 curl_includes_fcntl="\
30524 /* includes start */
30525 #ifdef HAVE_SYS_TYPES_H
30526 # include <sys/types.h>
30528 #ifdef HAVE_UNISTD_H
30529 # include <unistd.h>
30531 #ifdef HAVE_FCNTL_H
30532 # include <fcntl.h>
30534 /* includes end */"
30535 for ac_header in sys/types.h unistd.h fcntl.h
30537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30538 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30540 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30541 cat >>confdefs.h <<_ACEOF
30542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30552 tst_links_fcntl="unknown"
30553 tst_proto_fcntl="unknown"
30554 tst_compi_fcntl="unknown"
30555 tst_allow_fcntl="unknown"
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30558 $as_echo_n "checking if fcntl can be linked... " >&6; }
30559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30560 /* end confdefs.h. */
30563 #define fcntl innocuous_fcntl
30565 # include <limits.h>
30567 # include <assert.h>
30574 #if defined __stub_fcntl || defined __stub___fcntl
30586 if ac_fn_c_try_link "$LINENO"; then :
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30589 $as_echo "yes" >&6; }
30590 tst_links_fcntl="yes"
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30595 $as_echo "no" >&6; }
30596 tst_links_fcntl="no"
30599 rm -f core conftest.err conftest.$ac_objext \
30600 conftest$ac_exeext conftest.$ac_ext
30602 if test "$tst_links_fcntl" = "yes"; then
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30604 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30606 /* end confdefs.h. */
30608 $curl_includes_fcntl
30611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30612 $EGREP "fcntl" >/dev/null 2>&1; then :
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30615 $as_echo "yes" >&6; }
30616 tst_proto_fcntl="yes"
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30621 $as_echo "no" >&6; }
30622 tst_proto_fcntl="no"
30629 if test "$tst_proto_fcntl" = "yes"; then
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30631 $as_echo_n "checking if fcntl is compilable... " >&6; }
30632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30633 /* end confdefs.h. */
30636 $curl_includes_fcntl
30641 if(0 != fcntl(0, 0, 0))
30649 if ac_fn_c_try_compile "$LINENO"; then :
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30652 $as_echo "yes" >&6; }
30653 tst_compi_fcntl="yes"
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30658 $as_echo "no" >&6; }
30659 tst_compi_fcntl="no"
30662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30665 if test "$tst_compi_fcntl" = "yes"; then
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30667 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30668 if test "x$curl_disallow_fcntl" != "xyes"; then
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30670 $as_echo "yes" >&6; }
30671 tst_allow_fcntl="yes"
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30674 $as_echo "no" >&6; }
30675 tst_allow_fcntl="no"
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30680 $as_echo_n "checking if fcntl might be used... " >&6; }
30681 if test "$tst_links_fcntl" = "yes" &&
30682 test "$tst_proto_fcntl" = "yes" &&
30683 test "$tst_compi_fcntl" = "yes" &&
30684 test "$tst_allow_fcntl" = "yes"; then
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30686 $as_echo "yes" >&6; }
30688 cat >>confdefs.h <<_ACEOF
30689 #define HAVE_FCNTL 1
30692 ac_cv_func_fcntl="yes"
30695 tst_compi_fcntl_o_nonblock="unknown"
30696 tst_allow_fcntl_o_nonblock="unknown"
30699 sunos4* | aix3* | beos*)
30700 curl_disallow_fcntl_o_nonblock="yes"
30704 if test "$ac_cv_func_fcntl" = "yes"; then
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30706 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30708 /* end confdefs.h. */
30711 $curl_includes_fcntl
30717 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30725 if ac_fn_c_try_compile "$LINENO"; then :
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30728 $as_echo "yes" >&6; }
30729 tst_compi_fcntl_o_nonblock="yes"
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30734 $as_echo "no" >&6; }
30735 tst_compi_fcntl_o_nonblock="no"
30738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30741 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30743 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30744 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30746 $as_echo "yes" >&6; }
30747 tst_allow_fcntl_o_nonblock="yes"
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30750 $as_echo "no" >&6; }
30751 tst_allow_fcntl_o_nonblock="no"
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30756 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30757 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30758 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30760 $as_echo "yes" >&6; }
30762 cat >>confdefs.h <<_ACEOF
30763 #define HAVE_FCNTL_O_NONBLOCK 1
30766 ac_cv_func_fcntl_o_nonblock="yes"
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769 $as_echo "no" >&6; }
30770 ac_cv_func_fcntl_o_nonblock="no"
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30775 $as_echo "no" >&6; }
30776 ac_cv_func_fcntl="no"
30780 curl_includes_stdio="\
30781 /* includes start */
30782 #ifdef HAVE_SYS_TYPES_H
30783 # include <sys/types.h>
30785 #ifdef HAVE_STDIO_H
30786 # include <stdio.h>
30788 /* includes end */"
30789 for ac_header in sys/types.h stdio.h
30791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30795 cat >>confdefs.h <<_ACEOF
30796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30806 tst_links_fdopen="unknown"
30807 tst_proto_fdopen="unknown"
30808 tst_compi_fdopen="unknown"
30809 tst_allow_fdopen="unknown"
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30812 $as_echo_n "checking if fdopen can be linked... " >&6; }
30813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30814 /* end confdefs.h. */
30817 #define fdopen innocuous_fdopen
30819 # include <limits.h>
30821 # include <assert.h>
30828 #if defined __stub_fdopen || defined __stub___fdopen
30840 if ac_fn_c_try_link "$LINENO"; then :
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843 $as_echo "yes" >&6; }
30844 tst_links_fdopen="yes"
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30849 $as_echo "no" >&6; }
30850 tst_links_fdopen="no"
30853 rm -f core conftest.err conftest.$ac_objext \
30854 conftest$ac_exeext conftest.$ac_ext
30856 if test "$tst_links_fdopen" = "yes"; then
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30858 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30860 /* end confdefs.h. */
30862 $curl_includes_stdio
30865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30866 $EGREP "fdopen" >/dev/null 2>&1; then :
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30869 $as_echo "yes" >&6; }
30870 tst_proto_fdopen="yes"
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30875 $as_echo "no" >&6; }
30876 tst_proto_fdopen="no"
30883 if test "$tst_proto_fdopen" = "yes"; then
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30885 $as_echo_n "checking if fdopen is compilable... " >&6; }
30886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30887 /* end confdefs.h. */
30890 $curl_includes_stdio
30895 if(0 != fdopen(0, 0))
30903 if ac_fn_c_try_compile "$LINENO"; then :
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30906 $as_echo "yes" >&6; }
30907 tst_compi_fdopen="yes"
30911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30912 $as_echo "no" >&6; }
30913 tst_compi_fdopen="no"
30916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30919 if test "$tst_compi_fdopen" = "yes"; then
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
30921 $as_echo_n "checking if fdopen usage allowed... " >&6; }
30922 if test "x$curl_disallow_fdopen" != "xyes"; then
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30924 $as_echo "yes" >&6; }
30925 tst_allow_fdopen="yes"
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30928 $as_echo "no" >&6; }
30929 tst_allow_fdopen="no"
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
30934 $as_echo_n "checking if fdopen might be used... " >&6; }
30935 if test "$tst_links_fdopen" = "yes" &&
30936 test "$tst_proto_fdopen" = "yes" &&
30937 test "$tst_compi_fdopen" = "yes" &&
30938 test "$tst_allow_fdopen" = "yes"; then
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30940 $as_echo "yes" >&6; }
30942 cat >>confdefs.h <<_ACEOF
30943 #define HAVE_FDOPEN 1
30946 ac_cv_func_fdopen="yes"
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30949 $as_echo "no" >&6; }
30950 ac_cv_func_fdopen="no"
30954 curl_includes_netdb="\
30955 /* includes start */
30956 #ifdef HAVE_SYS_TYPES_H
30957 # include <sys/types.h>
30959 #ifdef HAVE_NETDB_H
30960 # include <netdb.h>
30962 /* includes end */"
30963 for ac_header in sys/types.h netdb.h
30965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
30968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30969 cat >>confdefs.h <<_ACEOF
30970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30980 tst_links_freeaddrinfo="unknown"
30981 tst_proto_freeaddrinfo="unknown"
30982 tst_compi_freeaddrinfo="unknown"
30983 tst_allow_freeaddrinfo="unknown"
30985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
30986 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
30987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30988 /* end confdefs.h. */
30991 $curl_includes_ws2tcpip
30992 $curl_includes_sys_socket
30993 $curl_includes_netdb
31005 if ac_fn_c_try_link "$LINENO"; then :
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31008 $as_echo "yes" >&6; }
31009 tst_links_freeaddrinfo="yes"
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31014 $as_echo "no" >&6; }
31015 tst_links_freeaddrinfo="no"
31018 rm -f core conftest.err conftest.$ac_objext \
31019 conftest$ac_exeext conftest.$ac_ext
31021 if test "$tst_links_freeaddrinfo" = "yes"; then
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31023 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31025 /* end confdefs.h. */
31027 $curl_includes_ws2tcpip
31028 $curl_includes_sys_socket
31029 $curl_includes_netdb
31032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31033 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31036 $as_echo "yes" >&6; }
31037 tst_proto_freeaddrinfo="yes"
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31042 $as_echo "no" >&6; }
31043 tst_proto_freeaddrinfo="no"
31050 if test "$tst_proto_freeaddrinfo" = "yes"; then
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31052 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31054 /* end confdefs.h. */
31057 $curl_includes_ws2tcpip
31058 $curl_includes_sys_socket
31059 $curl_includes_netdb
31071 if ac_fn_c_try_compile "$LINENO"; then :
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31074 $as_echo "yes" >&6; }
31075 tst_compi_freeaddrinfo="yes"
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31080 $as_echo "no" >&6; }
31081 tst_compi_freeaddrinfo="no"
31084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31087 if test "$tst_compi_freeaddrinfo" = "yes"; then
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31089 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31090 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092 $as_echo "yes" >&6; }
31093 tst_allow_freeaddrinfo="yes"
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31096 $as_echo "no" >&6; }
31097 tst_allow_freeaddrinfo="no"
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31102 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31103 if test "$tst_links_freeaddrinfo" = "yes" &&
31104 test "$tst_proto_freeaddrinfo" = "yes" &&
31105 test "$tst_compi_freeaddrinfo" = "yes" &&
31106 test "$tst_allow_freeaddrinfo" = "yes"; then
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31108 $as_echo "yes" >&6; }
31110 cat >>confdefs.h <<_ACEOF
31111 #define HAVE_FREEADDRINFO 1
31114 ac_cv_func_freeaddrinfo="yes"
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31117 $as_echo "no" >&6; }
31118 ac_cv_func_freeaddrinfo="no"
31122 curl_includes_ifaddrs="\
31123 /* includes start */
31124 #ifdef HAVE_SYS_TYPES_H
31125 # include <sys/types.h>
31127 #ifdef HAVE_SYS_SOCKET_H
31128 # include <sys/socket.h>
31130 #ifdef HAVE_NETINET_IN_H
31131 # include <netinet/in.h>
31133 #ifdef HAVE_IFADDRS_H
31134 # include <ifaddrs.h>
31136 /* includes end */"
31137 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31143 cat >>confdefs.h <<_ACEOF
31144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31154 tst_links_freeifaddrs="unknown"
31155 tst_proto_freeifaddrs="unknown"
31156 tst_compi_freeifaddrs="unknown"
31157 tst_allow_freeifaddrs="unknown"
31159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31160 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31162 /* end confdefs.h. */
31165 #define freeifaddrs innocuous_freeifaddrs
31167 # include <limits.h>
31169 # include <assert.h>
31175 char freeifaddrs ();
31176 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31182 return freeifaddrs ();
31188 if ac_fn_c_try_link "$LINENO"; then :
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31191 $as_echo "yes" >&6; }
31192 tst_links_freeifaddrs="yes"
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197 $as_echo "no" >&6; }
31198 tst_links_freeifaddrs="no"
31201 rm -f core conftest.err conftest.$ac_objext \
31202 conftest$ac_exeext conftest.$ac_ext
31204 if test "$tst_links_freeifaddrs" = "yes"; then
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31206 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31208 /* end confdefs.h. */
31210 $curl_includes_ifaddrs
31213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31214 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31217 $as_echo "yes" >&6; }
31218 tst_proto_freeifaddrs="yes"
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31223 $as_echo "no" >&6; }
31224 tst_proto_freeifaddrs="no"
31231 if test "$tst_proto_freeifaddrs" = "yes"; then
31232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31233 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235 /* end confdefs.h. */
31238 $curl_includes_ifaddrs
31250 if ac_fn_c_try_compile "$LINENO"; then :
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31253 $as_echo "yes" >&6; }
31254 tst_compi_freeifaddrs="yes"
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31259 $as_echo "no" >&6; }
31260 tst_compi_freeifaddrs="no"
31263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31266 if test "$tst_compi_freeifaddrs" = "yes"; then
31267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31268 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31269 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31271 $as_echo "yes" >&6; }
31272 tst_allow_freeifaddrs="yes"
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31275 $as_echo "no" >&6; }
31276 tst_allow_freeifaddrs="no"
31280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31281 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31282 if test "$tst_links_freeifaddrs" = "yes" &&
31283 test "$tst_proto_freeifaddrs" = "yes" &&
31284 test "$tst_compi_freeifaddrs" = "yes" &&
31285 test "$tst_allow_freeifaddrs" = "yes"; then
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31287 $as_echo "yes" >&6; }
31289 cat >>confdefs.h <<_ACEOF
31290 #define HAVE_FREEIFADDRS 1
31293 ac_cv_func_freeifaddrs="yes"
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296 $as_echo "no" >&6; }
31297 ac_cv_func_freeifaddrs="no"
31301 curl_includes_sys_xattr="\
31302 /* includes start */
31303 #ifdef HAVE_SYS_TYPES_H
31304 # include <sys/types.h>
31306 #ifdef HAVE_SYS_XATTR_H
31307 # include <sys/xattr.h>
31309 /* includes end */"
31310 for ac_header in sys/types.h sys/xattr.h
31312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31316 cat >>confdefs.h <<_ACEOF
31317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31327 tst_links_fsetxattr="unknown"
31328 tst_proto_fsetxattr="unknown"
31329 tst_compi_fsetxattr="unknown"
31330 tst_allow_fsetxattr="unknown"
31331 tst_nargs_fsetxattr="unknown"
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31334 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31336 /* end confdefs.h. */
31339 #define fsetxattr innocuous_fsetxattr
31341 # include <limits.h>
31343 # include <assert.h>
31350 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31356 return fsetxattr ();
31362 if ac_fn_c_try_link "$LINENO"; then :
31364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31365 $as_echo "yes" >&6; }
31366 tst_links_fsetxattr="yes"
31370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371 $as_echo "no" >&6; }
31372 tst_links_fsetxattr="no"
31375 rm -f core conftest.err conftest.$ac_objext \
31376 conftest$ac_exeext conftest.$ac_ext
31378 if test "$tst_links_fsetxattr" = "yes"; then
31379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31380 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31382 /* end confdefs.h. */
31384 $curl_includes_sys_xattr
31387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31388 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31391 $as_echo "yes" >&6; }
31392 tst_proto_fsetxattr="yes"
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31397 $as_echo "no" >&6; }
31398 tst_proto_fsetxattr="no"
31405 if test "$tst_proto_fsetxattr" = "yes"; then
31406 if test "$tst_nargs_fsetxattr" = "unknown"; then
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31408 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31410 /* end confdefs.h. */
31413 $curl_includes_sys_xattr
31418 if(0 != fsetxattr(0, 0, 0, 0, 0))
31426 if ac_fn_c_try_compile "$LINENO"; then :
31428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31429 $as_echo "yes" >&6; }
31430 tst_compi_fsetxattr="yes"
31431 tst_nargs_fsetxattr="5"
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31436 $as_echo "no" >&6; }
31437 tst_compi_fsetxattr="no"
31440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31442 if test "$tst_nargs_fsetxattr" = "unknown"; then
31443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31444 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31446 /* end confdefs.h. */
31449 $curl_includes_sys_xattr
31454 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31462 if ac_fn_c_try_compile "$LINENO"; then :
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31465 $as_echo "yes" >&6; }
31466 tst_compi_fsetxattr="yes"
31467 tst_nargs_fsetxattr="6"
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472 $as_echo "no" >&6; }
31473 tst_compi_fsetxattr="no"
31476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31479 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31480 if test "$tst_compi_fsetxattr" = "yes"; then
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31482 $as_echo "yes" >&6; }
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31485 $as_echo "no" >&6; }
31489 if test "$tst_compi_fsetxattr" = "yes"; then
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31491 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31492 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31494 $as_echo "yes" >&6; }
31495 tst_allow_fsetxattr="yes"
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31498 $as_echo "no" >&6; }
31499 tst_allow_fsetxattr="no"
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31504 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31505 if test "$tst_links_fsetxattr" = "yes" &&
31506 test "$tst_proto_fsetxattr" = "yes" &&
31507 test "$tst_compi_fsetxattr" = "yes" &&
31508 test "$tst_allow_fsetxattr" = "yes"; then
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31510 $as_echo "yes" >&6; }
31512 cat >>confdefs.h <<_ACEOF
31513 #define HAVE_FSETXATTR 1
31517 if test "$tst_nargs_fsetxattr" -eq "5"; then
31519 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31521 elif test "$tst_nargs_fsetxattr" -eq "6"; then
31523 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31527 ac_cv_func_fsetxattr="yes"
31529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31530 $as_echo "no" >&6; }
31531 ac_cv_func_fsetxattr="no"
31536 tst_links_ftruncate="unknown"
31537 tst_proto_ftruncate="unknown"
31538 tst_compi_ftruncate="unknown"
31539 tst_allow_ftruncate="unknown"
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31542 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31544 /* end confdefs.h. */
31547 #define ftruncate innocuous_ftruncate
31549 # include <limits.h>
31551 # include <assert.h>
31558 #if defined __stub_ftruncate || defined __stub___ftruncate
31564 return ftruncate ();
31570 if ac_fn_c_try_link "$LINENO"; then :
31572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31573 $as_echo "yes" >&6; }
31574 tst_links_ftruncate="yes"
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31579 $as_echo "no" >&6; }
31580 tst_links_ftruncate="no"
31583 rm -f core conftest.err conftest.$ac_objext \
31584 conftest$ac_exeext conftest.$ac_ext
31586 if test "$tst_links_ftruncate" = "yes"; then
31587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31588 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31590 /* end confdefs.h. */
31592 $curl_includes_unistd
31595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31596 $EGREP "ftruncate" >/dev/null 2>&1; then :
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31599 $as_echo "yes" >&6; }
31600 tst_proto_ftruncate="yes"
31604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31605 $as_echo "no" >&6; }
31606 tst_proto_ftruncate="no"
31613 if test "$tst_proto_ftruncate" = "yes"; then
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31615 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31617 /* end confdefs.h. */
31620 $curl_includes_unistd
31625 if(0 != ftruncate(0, 0))
31633 if ac_fn_c_try_compile "$LINENO"; then :
31635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31636 $as_echo "yes" >&6; }
31637 tst_compi_ftruncate="yes"
31641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31642 $as_echo "no" >&6; }
31643 tst_compi_ftruncate="no"
31646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649 if test "$tst_compi_ftruncate" = "yes"; then
31650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31651 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31652 if test "x$curl_disallow_ftruncate" != "xyes"; then
31653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31654 $as_echo "yes" >&6; }
31655 tst_allow_ftruncate="yes"
31657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31658 $as_echo "no" >&6; }
31659 tst_allow_ftruncate="no"
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31664 $as_echo_n "checking if ftruncate might be used... " >&6; }
31665 if test "$tst_links_ftruncate" = "yes" &&
31666 test "$tst_proto_ftruncate" = "yes" &&
31667 test "$tst_compi_ftruncate" = "yes" &&
31668 test "$tst_allow_ftruncate" = "yes"; then
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31670 $as_echo "yes" >&6; }
31672 cat >>confdefs.h <<_ACEOF
31673 #define HAVE_FTRUNCATE 1
31676 ac_cv_func_ftruncate="yes"
31678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31679 $as_echo "no" >&6; }
31680 ac_cv_func_ftruncate="no"
31684 curl_includes_stdlib="\
31685 /* includes start */
31686 #ifdef HAVE_SYS_TYPES_H
31687 # include <sys/types.h>
31689 #ifdef HAVE_STDLIB_H
31690 # include <stdlib.h>
31692 /* includes end */"
31693 for ac_header in sys/types.h stdlib.h
31695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31699 cat >>confdefs.h <<_ACEOF
31700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31710 tst_links_getaddrinfo="unknown"
31711 tst_proto_getaddrinfo="unknown"
31712 tst_compi_getaddrinfo="unknown"
31713 tst_works_getaddrinfo="unknown"
31714 tst_allow_getaddrinfo="unknown"
31715 tst_tsafe_getaddrinfo="unknown"
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31718 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
31719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31720 /* end confdefs.h. */
31723 $curl_includes_ws2tcpip
31724 $curl_includes_sys_socket
31725 $curl_includes_netdb
31730 if(0 != getaddrinfo(0, 0, 0, 0))
31738 if ac_fn_c_try_link "$LINENO"; then :
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741 $as_echo "yes" >&6; }
31742 tst_links_getaddrinfo="yes"
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31747 $as_echo "no" >&6; }
31748 tst_links_getaddrinfo="no"
31751 rm -f core conftest.err conftest.$ac_objext \
31752 conftest$ac_exeext conftest.$ac_ext
31754 if test "$tst_links_getaddrinfo" = "yes"; then
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31756 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31758 /* end confdefs.h. */
31760 $curl_includes_ws2tcpip
31761 $curl_includes_sys_socket
31762 $curl_includes_netdb
31765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31766 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31769 $as_echo "yes" >&6; }
31770 tst_proto_getaddrinfo="yes"
31774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31775 $as_echo "no" >&6; }
31776 tst_proto_getaddrinfo="no"
31783 if test "$tst_proto_getaddrinfo" = "yes"; then
31784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31785 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31787 /* end confdefs.h. */
31790 $curl_includes_ws2tcpip
31791 $curl_includes_sys_socket
31792 $curl_includes_netdb
31797 if(0 != getaddrinfo(0, 0, 0, 0))
31805 if ac_fn_c_try_compile "$LINENO"; then :
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31808 $as_echo "yes" >&6; }
31809 tst_compi_getaddrinfo="yes"
31813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31814 $as_echo "no" >&6; }
31815 tst_compi_getaddrinfo="no"
31818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31821 if test "x$cross_compiling" != "xyes" &&
31822 test "$tst_compi_getaddrinfo" = "yes"; then
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31824 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31825 if test "$cross_compiling" = yes; then :
31826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31828 as_fn_error $? "cannot run test program while cross compiling
31829 See \`config.log' for more details" "$LINENO" 5; }
31831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31832 /* end confdefs.h. */
31835 $curl_includes_ws2tcpip
31836 $curl_includes_stdlib
31837 $curl_includes_string
31838 $curl_includes_sys_socket
31839 $curl_includes_netdb
31844 struct addrinfo hints;
31845 struct addrinfo *ai = 0;
31848 #ifdef HAVE_WINSOCK2_H
31850 if (WSAStartup(MAKEWORD(2,2), &wsa))
31854 memset(&hints, 0, sizeof(hints));
31855 hints.ai_flags = AI_NUMERICHOST;
31856 hints.ai_family = AF_UNSPEC;
31857 hints.ai_socktype = SOCK_STREAM;
31858 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31860 exit(1); /* fail */
31869 if ac_fn_c_try_run "$LINENO"; then :
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31872 $as_echo "yes" >&6; }
31873 tst_works_getaddrinfo="yes"
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31879 tst_works_getaddrinfo="no"
31882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31883 conftest.$ac_objext conftest.beam conftest.$ac_ext
31888 if test "$tst_compi_getaddrinfo" = "yes" &&
31889 test "$tst_works_getaddrinfo" != "no"; then
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31891 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31892 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31894 $as_echo "yes" >&6; }
31895 tst_allow_getaddrinfo="yes"
31897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31898 $as_echo "no" >&6; }
31899 tst_allow_getaddrinfo="no"
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
31904 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
31905 if test "$tst_links_getaddrinfo" = "yes" &&
31906 test "$tst_proto_getaddrinfo" = "yes" &&
31907 test "$tst_compi_getaddrinfo" = "yes" &&
31908 test "$tst_allow_getaddrinfo" = "yes" &&
31909 test "$tst_works_getaddrinfo" != "no"; then
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31911 $as_echo "yes" >&6; }
31913 cat >>confdefs.h <<_ACEOF
31914 #define HAVE_GETADDRINFO 1
31917 ac_cv_func_getaddrinfo="yes"
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31920 $as_echo "no" >&6; }
31921 ac_cv_func_getaddrinfo="no"
31922 ac_cv_func_getaddrinfo_threadsafe="no"
31925 if test "$ac_cv_func_getaddrinfo" = "yes"; then
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
31927 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
31929 aix[1234].* | aix5.[01].*)
31930 tst_tsafe_getaddrinfo="no"
31933 tst_tsafe_getaddrinfo="yes"
31936 tst_tsafe_getaddrinfo="no"
31939 tst_tsafe_getaddrinfo="yes"
31941 freebsd[1234].* | freebsd5.[1234]*)
31942 tst_tsafe_getaddrinfo="no"
31945 tst_tsafe_getaddrinfo="yes"
31947 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
31948 tst_tsafe_getaddrinfo="no"
31951 tst_tsafe_getaddrinfo="yes"
31954 tst_tsafe_getaddrinfo="no"
31957 tst_tsafe_getaddrinfo="yes"
31960 tst_tsafe_getaddrinfo="no"
31963 tst_tsafe_getaddrinfo="yes"
31966 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
31967 test "$ac_cv_native_windows" = "yes"; then
31968 tst_tsafe_getaddrinfo="yes"
31970 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
31973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31974 /* end confdefs.h. */
31977 $curl_includes_sys_socket
31978 $curl_includes_netdb
31985 force compilation error
31991 if ac_fn_c_try_compile "$LINENO"; then :
31993 tst_symbol_defined="yes"
31997 tst_symbol_defined="no"
32000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32001 if test "$tst_symbol_defined" = "yes"; then
32002 curl_cv_have_def_h_errno=yes
32005 curl_cv_have_def_h_errno=no
32009 if test "$curl_cv_have_def_h_errno" = "yes"; then
32010 tst_h_errno_macro="yes"
32012 tst_h_errno_macro="no"
32014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32015 /* end confdefs.h. */
32018 $curl_includes_sys_socket
32019 $curl_includes_netdb
32033 if ac_fn_c_try_compile "$LINENO"; then :
32035 tst_h_errno_modifiable_lvalue="yes"
32039 tst_h_errno_modifiable_lvalue="no"
32042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32044 /* end confdefs.h. */
32051 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32053 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32056 force compilation error
32064 if ac_fn_c_try_compile "$LINENO"; then :
32066 tst_h_errno_sbs_issue_7="yes"
32070 tst_h_errno_sbs_issue_7="no"
32073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32074 if test "$tst_h_errno_macro" = "no" &&
32075 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32076 test "$tst_h_errno_sbs_issue_7" = "no"; then
32077 tst_tsafe_getaddrinfo="no"
32079 tst_tsafe_getaddrinfo="yes"
32082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32083 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32084 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32086 cat >>confdefs.h <<_ACEOF
32087 #define HAVE_GETADDRINFO_THREADSAFE 1
32090 ac_cv_func_getaddrinfo_threadsafe="yes"
32092 ac_cv_func_getaddrinfo_threadsafe="no"
32098 tst_links_gai_strerror="unknown"
32099 tst_proto_gai_strerror="unknown"
32100 tst_compi_gai_strerror="unknown"
32101 tst_allow_gai_strerror="unknown"
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32104 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32106 /* end confdefs.h. */
32109 $curl_includes_winsock2
32110 $curl_includes_netdb
32115 if(0 != gai_strerror(0))
32123 if ac_fn_c_try_link "$LINENO"; then :
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32126 $as_echo "yes" >&6; }
32127 tst_links_gai_strerror="yes"
32131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32132 $as_echo "no" >&6; }
32133 tst_links_gai_strerror="no"
32136 rm -f core conftest.err conftest.$ac_objext \
32137 conftest$ac_exeext conftest.$ac_ext
32139 if test "$tst_links_gai_strerror" = "yes"; then
32140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32141 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32143 /* end confdefs.h. */
32145 $curl_includes_winsock2
32146 $curl_includes_netdb
32149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32150 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32153 $as_echo "yes" >&6; }
32154 tst_proto_gai_strerror="yes"
32158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32159 $as_echo "no" >&6; }
32160 tst_proto_gai_strerror="no"
32167 if test "$tst_proto_gai_strerror" = "yes"; then
32168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32169 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32171 /* end confdefs.h. */
32174 $curl_includes_winsock2
32175 $curl_includes_netdb
32180 if(0 != gai_strerror(0))
32188 if ac_fn_c_try_compile "$LINENO"; then :
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32191 $as_echo "yes" >&6; }
32192 tst_compi_gai_strerror="yes"
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32197 $as_echo "no" >&6; }
32198 tst_compi_gai_strerror="no"
32201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32204 if test "$tst_compi_gai_strerror" = "yes"; then
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32206 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32207 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32209 $as_echo "yes" >&6; }
32210 tst_allow_gai_strerror="yes"
32212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32213 $as_echo "no" >&6; }
32214 tst_allow_gai_strerror="no"
32218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32219 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32220 if test "$tst_links_gai_strerror" = "yes" &&
32221 test "$tst_proto_gai_strerror" = "yes" &&
32222 test "$tst_compi_gai_strerror" = "yes" &&
32223 test "$tst_allow_gai_strerror" = "yes"; then
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32225 $as_echo "yes" >&6; }
32227 cat >>confdefs.h <<_ACEOF
32228 #define HAVE_GAI_STRERROR 1
32231 ac_cv_func_gai_strerror="yes"
32233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32234 $as_echo "no" >&6; }
32235 ac_cv_func_gai_strerror="no"
32240 tst_links_gethostbyaddr="unknown"
32241 tst_proto_gethostbyaddr="unknown"
32242 tst_compi_gethostbyaddr="unknown"
32243 tst_allow_gethostbyaddr="unknown"
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32246 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32248 /* end confdefs.h. */
32251 $curl_includes_winsock2
32252 $curl_includes_netdb
32257 if(0 != gethostbyaddr(0, 0, 0))
32265 if ac_fn_c_try_link "$LINENO"; then :
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32268 $as_echo "yes" >&6; }
32269 tst_links_gethostbyaddr="yes"
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32274 $as_echo "no" >&6; }
32275 tst_links_gethostbyaddr="no"
32278 rm -f core conftest.err conftest.$ac_objext \
32279 conftest$ac_exeext conftest.$ac_ext
32281 if test "$tst_links_gethostbyaddr" = "yes"; then
32282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32283 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32285 /* end confdefs.h. */
32287 $curl_includes_winsock2
32288 $curl_includes_netdb
32291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32292 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32295 $as_echo "yes" >&6; }
32296 tst_proto_gethostbyaddr="yes"
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32301 $as_echo "no" >&6; }
32302 tst_proto_gethostbyaddr="no"
32309 if test "$tst_proto_gethostbyaddr" = "yes"; then
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32311 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32313 /* end confdefs.h. */
32316 $curl_includes_winsock2
32317 $curl_includes_netdb
32322 if(0 != gethostbyaddr(0, 0, 0))
32330 if ac_fn_c_try_compile "$LINENO"; then :
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32333 $as_echo "yes" >&6; }
32334 tst_compi_gethostbyaddr="yes"
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32339 $as_echo "no" >&6; }
32340 tst_compi_gethostbyaddr="no"
32343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346 if test "$tst_compi_gethostbyaddr" = "yes"; then
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32348 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32349 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32351 $as_echo "yes" >&6; }
32352 tst_allow_gethostbyaddr="yes"
32354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32355 $as_echo "no" >&6; }
32356 tst_allow_gethostbyaddr="no"
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32361 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32362 if test "$tst_links_gethostbyaddr" = "yes" &&
32363 test "$tst_proto_gethostbyaddr" = "yes" &&
32364 test "$tst_compi_gethostbyaddr" = "yes" &&
32365 test "$tst_allow_gethostbyaddr" = "yes"; then
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32367 $as_echo "yes" >&6; }
32369 cat >>confdefs.h <<_ACEOF
32370 #define HAVE_GETHOSTBYADDR 1
32373 ac_cv_func_gethostbyaddr="yes"
32375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32376 $as_echo "no" >&6; }
32377 ac_cv_func_gethostbyaddr="no"
32382 tst_links_gethostbyaddr_r="unknown"
32383 tst_proto_gethostbyaddr_r="unknown"
32384 tst_compi_gethostbyaddr_r="unknown"
32385 tst_allow_gethostbyaddr_r="unknown"
32386 tst_nargs_gethostbyaddr_r="unknown"
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32389 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32391 /* end confdefs.h. */
32394 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32396 # include <limits.h>
32398 # include <assert.h>
32400 #undef gethostbyaddr_r
32404 char gethostbyaddr_r ();
32405 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32411 return gethostbyaddr_r ();
32417 if ac_fn_c_try_link "$LINENO"; then :
32419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32420 $as_echo "yes" >&6; }
32421 tst_links_gethostbyaddr_r="yes"
32425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32426 $as_echo "no" >&6; }
32427 tst_links_gethostbyaddr_r="no"
32430 rm -f core conftest.err conftest.$ac_objext \
32431 conftest$ac_exeext conftest.$ac_ext
32433 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32435 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32437 /* end confdefs.h. */
32439 $curl_includes_netdb
32442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32443 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32446 $as_echo "yes" >&6; }
32447 tst_proto_gethostbyaddr_r="yes"
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32452 $as_echo "no" >&6; }
32453 tst_proto_gethostbyaddr_r="no"
32460 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32461 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32463 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32465 /* end confdefs.h. */
32468 $curl_includes_netdb
32473 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32481 if ac_fn_c_try_compile "$LINENO"; then :
32483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32484 $as_echo "yes" >&6; }
32485 tst_compi_gethostbyaddr_r="yes"
32486 tst_nargs_gethostbyaddr_r="5"
32490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32491 $as_echo "no" >&6; }
32492 tst_compi_gethostbyaddr_r="no"
32495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32499 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32501 /* end confdefs.h. */
32504 $curl_includes_netdb
32509 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32517 if ac_fn_c_try_compile "$LINENO"; then :
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32520 $as_echo "yes" >&6; }
32521 tst_compi_gethostbyaddr_r="yes"
32522 tst_nargs_gethostbyaddr_r="7"
32526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32527 $as_echo "no" >&6; }
32528 tst_compi_gethostbyaddr_r="no"
32531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32533 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32535 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32537 /* end confdefs.h. */
32540 $curl_includes_netdb
32545 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32553 if ac_fn_c_try_compile "$LINENO"; then :
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32556 $as_echo "yes" >&6; }
32557 tst_compi_gethostbyaddr_r="yes"
32558 tst_nargs_gethostbyaddr_r="8"
32562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32563 $as_echo "no" >&6; }
32564 tst_compi_gethostbyaddr_r="no"
32567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32570 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32571 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32573 $as_echo "yes" >&6; }
32575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32576 $as_echo "no" >&6; }
32580 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32582 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32583 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32585 $as_echo "yes" >&6; }
32586 tst_allow_gethostbyaddr_r="yes"
32588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32589 $as_echo "no" >&6; }
32590 tst_allow_gethostbyaddr_r="no"
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32595 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32596 if test "$tst_links_gethostbyaddr_r" = "yes" &&
32597 test "$tst_proto_gethostbyaddr_r" = "yes" &&
32598 test "$tst_compi_gethostbyaddr_r" = "yes" &&
32599 test "$tst_allow_gethostbyaddr_r" = "yes"; then
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32601 $as_echo "yes" >&6; }
32603 cat >>confdefs.h <<_ACEOF
32604 #define HAVE_GETHOSTBYADDR_R 1
32608 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32610 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32612 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32614 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32616 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32618 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32622 ac_cv_func_gethostbyaddr_r="yes"
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32625 $as_echo "no" >&6; }
32626 ac_cv_func_gethostbyaddr_r="no"
32631 tst_links_gethostbyname="unknown"
32632 tst_proto_gethostbyname="unknown"
32633 tst_compi_gethostbyname="unknown"
32634 tst_allow_gethostbyname="unknown"
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32637 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32639 /* end confdefs.h. */
32642 $curl_includes_winsock2
32643 $curl_includes_netdb
32648 if(0 != gethostbyname(0))
32656 if ac_fn_c_try_link "$LINENO"; then :
32658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32659 $as_echo "yes" >&6; }
32660 tst_links_gethostbyname="yes"
32664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32665 $as_echo "no" >&6; }
32666 tst_links_gethostbyname="no"
32669 rm -f core conftest.err conftest.$ac_objext \
32670 conftest$ac_exeext conftest.$ac_ext
32672 if test "$tst_links_gethostbyname" = "yes"; then
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32674 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32676 /* end confdefs.h. */
32678 $curl_includes_winsock2
32679 $curl_includes_netdb
32682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32683 $EGREP "gethostbyname" >/dev/null 2>&1; then :
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32686 $as_echo "yes" >&6; }
32687 tst_proto_gethostbyname="yes"
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32692 $as_echo "no" >&6; }
32693 tst_proto_gethostbyname="no"
32700 if test "$tst_proto_gethostbyname" = "yes"; then
32701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32702 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32704 /* end confdefs.h. */
32707 $curl_includes_winsock2
32708 $curl_includes_netdb
32713 if(0 != gethostbyname(0))
32721 if ac_fn_c_try_compile "$LINENO"; then :
32723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32724 $as_echo "yes" >&6; }
32725 tst_compi_gethostbyname="yes"
32729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32730 $as_echo "no" >&6; }
32731 tst_compi_gethostbyname="no"
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32737 if test "$tst_compi_gethostbyname" = "yes"; then
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32739 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32740 if test "x$curl_disallow_gethostbyname" != "xyes"; then
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32742 $as_echo "yes" >&6; }
32743 tst_allow_gethostbyname="yes"
32745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32746 $as_echo "no" >&6; }
32747 tst_allow_gethostbyname="no"
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32752 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32753 if test "$tst_links_gethostbyname" = "yes" &&
32754 test "$tst_proto_gethostbyname" = "yes" &&
32755 test "$tst_compi_gethostbyname" = "yes" &&
32756 test "$tst_allow_gethostbyname" = "yes"; then
32757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32758 $as_echo "yes" >&6; }
32760 cat >>confdefs.h <<_ACEOF
32761 #define HAVE_GETHOSTBYNAME 1
32764 ac_cv_func_gethostbyname="yes"
32766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32767 $as_echo "no" >&6; }
32768 ac_cv_func_gethostbyname="no"
32773 tst_links_gethostbyname_r="unknown"
32774 tst_proto_gethostbyname_r="unknown"
32775 tst_compi_gethostbyname_r="unknown"
32776 tst_allow_gethostbyname_r="unknown"
32777 tst_nargs_gethostbyname_r="unknown"
32779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32780 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32782 /* end confdefs.h. */
32785 #define gethostbyname_r innocuous_gethostbyname_r
32787 # include <limits.h>
32789 # include <assert.h>
32791 #undef gethostbyname_r
32795 char gethostbyname_r ();
32796 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32802 return gethostbyname_r ();
32808 if ac_fn_c_try_link "$LINENO"; then :
32810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32811 $as_echo "yes" >&6; }
32812 tst_links_gethostbyname_r="yes"
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32817 $as_echo "no" >&6; }
32818 tst_links_gethostbyname_r="no"
32821 rm -f core conftest.err conftest.$ac_objext \
32822 conftest$ac_exeext conftest.$ac_ext
32824 if test "$tst_links_gethostbyname_r" = "yes"; then
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32826 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32828 /* end confdefs.h. */
32830 $curl_includes_netdb
32833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32834 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32837 $as_echo "yes" >&6; }
32838 tst_proto_gethostbyname_r="yes"
32842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32843 $as_echo "no" >&6; }
32844 tst_proto_gethostbyname_r="no"
32851 if test "$tst_proto_gethostbyname_r" = "yes"; then
32852 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32854 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32856 /* end confdefs.h. */
32859 $curl_includes_netdb
32864 if(0 != gethostbyname_r(0, 0, 0))
32872 if ac_fn_c_try_compile "$LINENO"; then :
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32875 $as_echo "yes" >&6; }
32876 tst_compi_gethostbyname_r="yes"
32877 tst_nargs_gethostbyname_r="3"
32881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32882 $as_echo "no" >&6; }
32883 tst_compi_gethostbyname_r="no"
32886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32888 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32890 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32892 /* end confdefs.h. */
32895 $curl_includes_netdb
32900 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
32908 if ac_fn_c_try_compile "$LINENO"; then :
32910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32911 $as_echo "yes" >&6; }
32912 tst_compi_gethostbyname_r="yes"
32913 tst_nargs_gethostbyname_r="5"
32917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32918 $as_echo "no" >&6; }
32919 tst_compi_gethostbyname_r="no"
32922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32924 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
32926 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
32927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32928 /* end confdefs.h. */
32931 $curl_includes_netdb
32936 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
32944 if ac_fn_c_try_compile "$LINENO"; then :
32946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32947 $as_echo "yes" >&6; }
32948 tst_compi_gethostbyname_r="yes"
32949 tst_nargs_gethostbyname_r="6"
32953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32954 $as_echo "no" >&6; }
32955 tst_compi_gethostbyname_r="no"
32958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
32961 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
32962 if test "$tst_compi_gethostbyname_r" = "yes"; then
32963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32964 $as_echo "yes" >&6; }
32966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32967 $as_echo "no" >&6; }
32971 if test "$tst_compi_gethostbyname_r" = "yes"; then
32972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
32973 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
32974 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32976 $as_echo "yes" >&6; }
32977 tst_allow_gethostbyname_r="yes"
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32980 $as_echo "no" >&6; }
32981 tst_allow_gethostbyname_r="no"
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
32986 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
32987 if test "$tst_links_gethostbyname_r" = "yes" &&
32988 test "$tst_proto_gethostbyname_r" = "yes" &&
32989 test "$tst_compi_gethostbyname_r" = "yes" &&
32990 test "$tst_allow_gethostbyname_r" = "yes"; then
32991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32992 $as_echo "yes" >&6; }
32994 cat >>confdefs.h <<_ACEOF
32995 #define HAVE_GETHOSTBYNAME_R 1
32999 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33001 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33003 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33005 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33007 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33009 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33013 ac_cv_func_gethostbyname_r="yes"
33015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33016 $as_echo "no" >&6; }
33017 ac_cv_func_gethostbyname_r="no"
33022 tst_links_gethostname="unknown"
33023 tst_proto_gethostname="unknown"
33024 tst_compi_gethostname="unknown"
33025 tst_allow_gethostname="unknown"
33027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33028 $as_echo_n "checking if gethostname can be linked... " >&6; }
33029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33030 /* end confdefs.h. */
33033 $curl_includes_winsock2
33034 $curl_includes_unistd
33039 if(0 != gethostname(0, 0))
33047 if ac_fn_c_try_link "$LINENO"; then :
33049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33050 $as_echo "yes" >&6; }
33051 tst_links_gethostname="yes"
33055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33056 $as_echo "no" >&6; }
33057 tst_links_gethostname="no"
33060 rm -f core conftest.err conftest.$ac_objext \
33061 conftest$ac_exeext conftest.$ac_ext
33063 if test "$tst_links_gethostname" = "yes"; then
33064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33065 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33067 /* end confdefs.h. */
33069 $curl_includes_winsock2
33070 $curl_includes_unistd
33073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33074 $EGREP "gethostname" >/dev/null 2>&1; then :
33076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33077 $as_echo "yes" >&6; }
33078 tst_proto_gethostname="yes"
33082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33083 $as_echo "no" >&6; }
33084 tst_proto_gethostname="no"
33091 if test "$tst_proto_gethostname" = "yes"; then
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33093 $as_echo_n "checking if gethostname is compilable... " >&6; }
33094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33095 /* end confdefs.h. */
33098 $curl_includes_winsock2
33099 $curl_includes_unistd
33104 if(0 != gethostname(0, 0))
33112 if ac_fn_c_try_compile "$LINENO"; then :
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33115 $as_echo "yes" >&6; }
33116 tst_compi_gethostname="yes"
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33121 $as_echo "no" >&6; }
33122 tst_compi_gethostname="no"
33125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33128 if test "$tst_compi_gethostname" = "yes"; then
33129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33130 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33131 tst_gethostname_type_arg2="unknown"
33132 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33133 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33134 if test "$tst_gethostname_type_arg2" = "unknown"; then
33135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33136 /* end confdefs.h. */
33139 $curl_includes_winsock2
33140 $curl_includes_unistd
33141 $curl_preprocess_callconv
33142 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33147 if(0 != gethostname(0, 0))
33155 if ac_fn_c_try_compile "$LINENO"; then :
33157 tst_gethostname_type_arg2="$tst_arg2"
33160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33165 $as_echo "$tst_gethostname_type_arg2" >&6; }
33166 if test "$tst_gethostname_type_arg2" != "unknown"; then
33168 cat >>confdefs.h <<_ACEOF
33169 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33175 if test "$tst_compi_gethostname" = "yes"; then
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33177 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33178 if test "x$curl_disallow_gethostname" != "xyes"; then
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33180 $as_echo "yes" >&6; }
33181 tst_allow_gethostname="yes"
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184 $as_echo "no" >&6; }
33185 tst_allow_gethostname="no"
33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33190 $as_echo_n "checking if gethostname might be used... " >&6; }
33191 if test "$tst_links_gethostname" = "yes" &&
33192 test "$tst_proto_gethostname" = "yes" &&
33193 test "$tst_compi_gethostname" = "yes" &&
33194 test "$tst_allow_gethostname" = "yes"; then
33195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33196 $as_echo "yes" >&6; }
33198 cat >>confdefs.h <<_ACEOF
33199 #define HAVE_GETHOSTNAME 1
33202 ac_cv_func_gethostname="yes"
33204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33205 $as_echo "no" >&6; }
33206 ac_cv_func_gethostname="no"
33211 tst_links_getifaddrs="unknown"
33212 tst_proto_getifaddrs="unknown"
33213 tst_compi_getifaddrs="unknown"
33214 tst_works_getifaddrs="unknown"
33215 tst_allow_getifaddrs="unknown"
33217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33218 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33220 /* end confdefs.h. */
33223 #define getifaddrs innocuous_getifaddrs
33225 # include <limits.h>
33227 # include <assert.h>
33233 char getifaddrs ();
33234 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33240 return getifaddrs ();
33246 if ac_fn_c_try_link "$LINENO"; then :
33248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33249 $as_echo "yes" >&6; }
33250 tst_links_getifaddrs="yes"
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33255 $as_echo "no" >&6; }
33256 tst_links_getifaddrs="no"
33259 rm -f core conftest.err conftest.$ac_objext \
33260 conftest$ac_exeext conftest.$ac_ext
33262 if test "$tst_links_getifaddrs" = "yes"; then
33263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33264 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33266 /* end confdefs.h. */
33268 $curl_includes_ifaddrs
33271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33272 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33275 $as_echo "yes" >&6; }
33276 tst_proto_getifaddrs="yes"
33280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33281 $as_echo "no" >&6; }
33282 tst_proto_getifaddrs="no"
33289 if test "$tst_proto_getifaddrs" = "yes"; then
33290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33291 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33293 /* end confdefs.h. */
33296 $curl_includes_ifaddrs
33301 if(0 != getifaddrs(0))
33309 if ac_fn_c_try_compile "$LINENO"; then :
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33312 $as_echo "yes" >&6; }
33313 tst_compi_getifaddrs="yes"
33317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33318 $as_echo "no" >&6; }
33319 tst_compi_getifaddrs="no"
33322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33325 if test "x$cross_compiling" != "xyes" &&
33326 test "$tst_compi_getifaddrs" = "yes"; then
33327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33328 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33329 if test "$cross_compiling" = yes; then :
33330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33332 as_fn_error $? "cannot run test program while cross compiling
33333 See \`config.log' for more details" "$LINENO" 5; }
33335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33336 /* end confdefs.h. */
33339 $curl_includes_stdlib
33340 $curl_includes_ifaddrs
33345 struct ifaddrs *ifa = 0;
33348 error = getifaddrs(&ifa);
33350 exit(1); /* fail */
33359 if ac_fn_c_try_run "$LINENO"; then :
33361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33362 $as_echo "yes" >&6; }
33363 tst_works_getifaddrs="yes"
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 $as_echo "no" >&6; }
33369 tst_works_getifaddrs="no"
33372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33373 conftest.$ac_objext conftest.beam conftest.$ac_ext
33378 if test "$tst_compi_getifaddrs" = "yes" &&
33379 test "$tst_works_getifaddrs" != "no"; then
33380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33381 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33382 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33384 $as_echo "yes" >&6; }
33385 tst_allow_getifaddrs="yes"
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33388 $as_echo "no" >&6; }
33389 tst_allow_getifaddrs="no"
33393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33394 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33395 if test "$tst_links_getifaddrs" = "yes" &&
33396 test "$tst_proto_getifaddrs" = "yes" &&
33397 test "$tst_compi_getifaddrs" = "yes" &&
33398 test "$tst_allow_getifaddrs" = "yes" &&
33399 test "$tst_works_getifaddrs" != "no"; then
33400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33401 $as_echo "yes" >&6; }
33403 cat >>confdefs.h <<_ACEOF
33404 #define HAVE_GETIFADDRS 1
33407 ac_cv_func_getifaddrs="yes"
33409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33410 $as_echo "no" >&6; }
33411 ac_cv_func_getifaddrs="no"
33416 tst_links_getservbyport_r="unknown"
33417 tst_proto_getservbyport_r="unknown"
33418 tst_compi_getservbyport_r="unknown"
33419 tst_allow_getservbyport_r="unknown"
33420 tst_nargs_getservbyport_r="unknown"
33422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33423 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33425 /* end confdefs.h. */
33428 #define getservbyport_r innocuous_getservbyport_r
33430 # include <limits.h>
33432 # include <assert.h>
33434 #undef getservbyport_r
33438 char getservbyport_r ();
33439 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33445 return getservbyport_r ();
33451 if ac_fn_c_try_link "$LINENO"; then :
33453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33454 $as_echo "yes" >&6; }
33455 tst_links_getservbyport_r="yes"
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33460 $as_echo "no" >&6; }
33461 tst_links_getservbyport_r="no"
33464 rm -f core conftest.err conftest.$ac_objext \
33465 conftest$ac_exeext conftest.$ac_ext
33467 if test "$tst_links_getservbyport_r" = "yes"; then
33468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33469 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33471 /* end confdefs.h. */
33473 $curl_includes_netdb
33476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33477 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33480 $as_echo "yes" >&6; }
33481 tst_proto_getservbyport_r="yes"
33485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33486 $as_echo "no" >&6; }
33487 tst_proto_getservbyport_r="no"
33494 if test "$tst_proto_getservbyport_r" = "yes"; then
33495 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33497 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33499 /* end confdefs.h. */
33502 $curl_includes_netdb
33507 if(0 != getservbyport_r(0, 0, 0, 0))
33515 if ac_fn_c_try_compile "$LINENO"; then :
33517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33518 $as_echo "yes" >&6; }
33519 tst_compi_getservbyport_r="yes"
33520 tst_nargs_getservbyport_r="4"
33524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33525 $as_echo "no" >&6; }
33526 tst_compi_getservbyport_r="no"
33529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33531 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33533 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33535 /* end confdefs.h. */
33538 $curl_includes_netdb
33543 if(0 != getservbyport_r(0, 0, 0, 0, 0))
33551 if ac_fn_c_try_compile "$LINENO"; then :
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33554 $as_echo "yes" >&6; }
33555 tst_compi_getservbyport_r="yes"
33556 tst_nargs_getservbyport_r="5"
33560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33561 $as_echo "no" >&6; }
33562 tst_compi_getservbyport_r="no"
33565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33567 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33569 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33571 /* end confdefs.h. */
33574 $curl_includes_netdb
33579 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33587 if ac_fn_c_try_compile "$LINENO"; then :
33589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33590 $as_echo "yes" >&6; }
33591 tst_compi_getservbyport_r="yes"
33592 tst_nargs_getservbyport_r="6"
33596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33597 $as_echo "no" >&6; }
33598 tst_compi_getservbyport_r="no"
33601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33604 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33605 if test "$tst_compi_getservbyport_r" = "yes"; then
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33607 $as_echo "yes" >&6; }
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33610 $as_echo "no" >&6; }
33614 if test "$tst_compi_getservbyport_r" = "yes"; then
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33616 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33617 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33619 $as_echo "yes" >&6; }
33620 tst_allow_getservbyport_r="yes"
33622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33623 $as_echo "no" >&6; }
33624 tst_allow_getservbyport_r="no"
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33629 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33630 if test "$tst_links_getservbyport_r" = "yes" &&
33631 test "$tst_proto_getservbyport_r" = "yes" &&
33632 test "$tst_compi_getservbyport_r" = "yes" &&
33633 test "$tst_allow_getservbyport_r" = "yes"; then
33634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33635 $as_echo "yes" >&6; }
33637 cat >>confdefs.h <<_ACEOF
33638 #define HAVE_GETSERVBYPORT_R 1
33642 cat >>confdefs.h <<_ACEOF
33643 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33646 if test "$tst_nargs_getservbyport_r" -eq "4"; then
33648 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33652 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33655 ac_cv_func_getservbyport_r="yes"
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33658 $as_echo "no" >&6; }
33659 ac_cv_func_getservbyport_r="no"
33663 curl_includes_time="\
33664 /* includes start */
33665 #ifdef HAVE_SYS_TYPES_H
33666 # include <sys/types.h>
33668 #ifdef HAVE_SYS_TIME_H
33669 # include <sys/time.h>
33670 # ifdef TIME_WITH_SYS_TIME
33674 # ifdef HAVE_TIME_H
33678 /* includes end */"
33679 for ac_header in sys/types.h sys/time.h time.h
33681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33685 cat >>confdefs.h <<_ACEOF
33686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33696 tst_links_gmtime_r="unknown"
33697 tst_proto_gmtime_r="unknown"
33698 tst_compi_gmtime_r="unknown"
33699 tst_works_gmtime_r="unknown"
33700 tst_allow_gmtime_r="unknown"
33702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33703 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33705 /* end confdefs.h. */
33708 #define gmtime_r innocuous_gmtime_r
33710 # include <limits.h>
33712 # include <assert.h>
33719 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33725 return gmtime_r ();
33731 if ac_fn_c_try_link "$LINENO"; then :
33733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33734 $as_echo "yes" >&6; }
33735 tst_links_gmtime_r="yes"
33739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33740 $as_echo "no" >&6; }
33741 tst_links_gmtime_r="no"
33744 rm -f core conftest.err conftest.$ac_objext \
33745 conftest$ac_exeext conftest.$ac_ext
33747 if test "$tst_links_gmtime_r" = "yes"; then
33748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33749 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33751 /* end confdefs.h. */
33753 $curl_includes_time
33756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33757 $EGREP "gmtime_r" >/dev/null 2>&1; then :
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33760 $as_echo "yes" >&6; }
33761 tst_proto_gmtime_r="yes"
33765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33766 $as_echo "no" >&6; }
33767 tst_proto_gmtime_r="no"
33774 if test "$tst_proto_gmtime_r" = "yes"; then
33775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33776 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33778 /* end confdefs.h. */
33781 $curl_includes_time
33786 if(0 != gmtime_r(0, 0))
33794 if ac_fn_c_try_compile "$LINENO"; then :
33796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33797 $as_echo "yes" >&6; }
33798 tst_compi_gmtime_r="yes"
33802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33803 $as_echo "no" >&6; }
33804 tst_compi_gmtime_r="no"
33807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33810 if test "x$cross_compiling" != "xyes" &&
33811 test "$tst_compi_gmtime_r" = "yes"; then
33812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33813 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33814 if test "$cross_compiling" = yes; then :
33815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33817 as_fn_error $? "cannot run test program while cross compiling
33818 See \`config.log' for more details" "$LINENO" 5; }
33820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33821 /* end confdefs.h. */
33824 $curl_includes_stdlib
33825 $curl_includes_time
33830 time_t local = 1170352587;
33831 struct tm *gmt = 0;
33833 gmt = gmtime_r(&local, &result);
33844 if ac_fn_c_try_run "$LINENO"; then :
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847 $as_echo "yes" >&6; }
33848 tst_works_gmtime_r="yes"
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854 tst_works_gmtime_r="no"
33857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33858 conftest.$ac_objext conftest.beam conftest.$ac_ext
33863 if test "$tst_compi_gmtime_r" = "yes" &&
33864 test "$tst_works_gmtime_r" != "no"; then
33865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33866 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33867 if test "x$curl_disallow_gmtime_r" != "xyes"; then
33868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33869 $as_echo "yes" >&6; }
33870 tst_allow_gmtime_r="yes"
33872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33873 $as_echo "no" >&6; }
33874 tst_allow_gmtime_r="no"
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33879 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33880 if test "$tst_links_gmtime_r" = "yes" &&
33881 test "$tst_proto_gmtime_r" = "yes" &&
33882 test "$tst_compi_gmtime_r" = "yes" &&
33883 test "$tst_allow_gmtime_r" = "yes" &&
33884 test "$tst_works_gmtime_r" != "no"; then
33885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33886 $as_echo "yes" >&6; }
33888 cat >>confdefs.h <<_ACEOF
33889 #define HAVE_GMTIME_R 1
33892 ac_cv_func_gmtime_r="yes"
33894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33895 $as_echo "no" >&6; }
33896 ac_cv_func_gmtime_r="no"
33900 curl_includes_arpa_inet="\
33901 /* includes start */
33902 #ifdef HAVE_SYS_TYPES_H
33903 # include <sys/types.h>
33905 #ifdef HAVE_SYS_SOCKET_H
33906 # include <sys/socket.h>
33908 #ifdef HAVE_NETINET_IN_H
33909 # include <netinet/in.h>
33911 #ifdef HAVE_ARPA_INET_H
33912 # include <arpa/inet.h>
33914 #ifdef HAVE_WINSOCK2_H
33915 #include <winsock2.h>
33916 #include <ws2tcpip.h>
33918 /* includes end */"
33919 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
33921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
33924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33925 cat >>confdefs.h <<_ACEOF
33926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33936 tst_links_inet_ntoa_r="unknown"
33937 tst_proto_inet_ntoa_r="unknown"
33938 tst_compi_inet_ntoa_r="unknown"
33939 tst_allow_inet_ntoa_r="unknown"
33940 tst_nargs_inet_ntoa_r="unknown"
33942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
33943 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
33944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33945 /* end confdefs.h. */
33948 #define inet_ntoa_r innocuous_inet_ntoa_r
33950 # include <limits.h>
33952 # include <assert.h>
33958 char inet_ntoa_r ();
33959 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
33965 return inet_ntoa_r ();
33971 if ac_fn_c_try_link "$LINENO"; then :
33973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33974 $as_echo "yes" >&6; }
33975 tst_links_inet_ntoa_r="yes"
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33980 $as_echo "no" >&6; }
33981 tst_links_inet_ntoa_r="no"
33984 rm -f core conftest.err conftest.$ac_objext \
33985 conftest$ac_exeext conftest.$ac_ext
33987 if test "$tst_links_inet_ntoa_r" = "yes"; then
33988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
33989 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
33990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33991 /* end confdefs.h. */
33993 $curl_includes_arpa_inet
33996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33997 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
33999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34000 $as_echo "yes" >&6; }
34001 tst_proto_inet_ntoa_r="yes"
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34006 $as_echo "no" >&6; }
34007 tst_proto_inet_ntoa_r="no"
34014 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34015 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34017 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34019 /* end confdefs.h. */
34022 $curl_includes_arpa_inet
34027 struct in_addr addr;
34028 if(0 != inet_ntoa_r(addr, 0))
34036 if ac_fn_c_try_compile "$LINENO"; then :
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34039 $as_echo "yes" >&6; }
34040 tst_compi_inet_ntoa_r="yes"
34041 tst_nargs_inet_ntoa_r="2"
34045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34046 $as_echo "no" >&6; }
34047 tst_compi_inet_ntoa_r="no"
34050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34052 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34054 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34056 /* end confdefs.h. */
34059 $curl_includes_arpa_inet
34064 struct in_addr addr;
34065 if(0 != inet_ntoa_r(addr, 0, 0))
34073 if ac_fn_c_try_compile "$LINENO"; then :
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34076 $as_echo "yes" >&6; }
34077 tst_compi_inet_ntoa_r="yes"
34078 tst_nargs_inet_ntoa_r="3"
34082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34083 $as_echo "no" >&6; }
34084 tst_compi_inet_ntoa_r="no"
34087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34090 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34091 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34093 $as_echo "yes" >&6; }
34095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34096 $as_echo "no" >&6; }
34100 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34102 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34103 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34105 $as_echo "yes" >&6; }
34106 tst_allow_inet_ntoa_r="yes"
34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34109 $as_echo "no" >&6; }
34110 tst_allow_inet_ntoa_r="no"
34114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34115 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34116 if test "$tst_links_inet_ntoa_r" = "yes" &&
34117 test "$tst_proto_inet_ntoa_r" = "yes" &&
34118 test "$tst_compi_inet_ntoa_r" = "yes" &&
34119 test "$tst_allow_inet_ntoa_r" = "yes"; then
34120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34121 $as_echo "yes" >&6; }
34123 cat >>confdefs.h <<_ACEOF
34124 #define HAVE_INET_NTOA_R 1
34128 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34130 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34132 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34134 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34138 ac_cv_func_inet_ntoa_r="yes"
34140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34141 $as_echo "no" >&6; }
34142 ac_cv_func_inet_ntoa_r="no"
34147 tst_links_inet_ntop="unknown"
34148 tst_proto_inet_ntop="unknown"
34149 tst_compi_inet_ntop="unknown"
34150 tst_works_inet_ntop="unknown"
34151 tst_allow_inet_ntop="unknown"
34153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34154 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34156 /* end confdefs.h. */
34159 #define inet_ntop innocuous_inet_ntop
34161 # include <limits.h>
34163 # include <assert.h>
34170 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34176 return inet_ntop ();
34182 if ac_fn_c_try_link "$LINENO"; then :
34184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34185 $as_echo "yes" >&6; }
34186 tst_links_inet_ntop="yes"
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34191 $as_echo "no" >&6; }
34192 tst_links_inet_ntop="no"
34195 rm -f core conftest.err conftest.$ac_objext \
34196 conftest$ac_exeext conftest.$ac_ext
34198 if test "$tst_links_inet_ntop" = "yes"; then
34199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34200 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34202 /* end confdefs.h. */
34204 $curl_includes_arpa_inet
34207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34208 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34211 $as_echo "yes" >&6; }
34212 tst_proto_inet_ntop="yes"
34216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34217 $as_echo "no" >&6; }
34218 tst_proto_inet_ntop="no"
34225 if test "$tst_proto_inet_ntop" = "yes"; then
34226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34227 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34229 /* end confdefs.h. */
34232 $curl_includes_arpa_inet
34237 if(0 != inet_ntop(0, 0, 0, 0))
34245 if ac_fn_c_try_compile "$LINENO"; then :
34247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34248 $as_echo "yes" >&6; }
34249 tst_compi_inet_ntop="yes"
34253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34254 $as_echo "no" >&6; }
34255 tst_compi_inet_ntop="no"
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34261 if test "x$cross_compiling" != "xyes" &&
34262 test "$tst_compi_inet_ntop" = "yes"; then
34263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34264 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34265 if test "$cross_compiling" = yes; then :
34266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34268 as_fn_error $? "cannot run test program while cross compiling
34269 See \`config.log' for more details" "$LINENO" 5; }
34271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34272 /* end confdefs.h. */
34275 $curl_includes_stdlib
34276 $curl_includes_arpa_inet
34277 $curl_includes_string
34282 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34283 char ipv4res[sizeof "255.255.255.255"];
34284 unsigned char ipv6a[26];
34285 unsigned char ipv4a[5];
34296 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34298 exit(1); /* fail */
34299 if(ipv4ptr != ipv4res)
34300 exit(1); /* fail */
34302 exit(1); /* fail */
34303 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34304 exit(1); /* fail */
34307 memset(ipv6a, 0, sizeof(ipv6a));
34320 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34322 exit(1); /* fail */
34323 if(ipv6ptr != ipv6res)
34324 exit(1); /* fail */
34326 exit(1); /* fail */
34327 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34328 exit(1); /* fail */
34337 if ac_fn_c_try_run "$LINENO"; then :
34339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34340 $as_echo "yes" >&6; }
34341 tst_works_inet_ntop="yes"
34345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34346 $as_echo "no" >&6; }
34347 tst_works_inet_ntop="no"
34350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34351 conftest.$ac_objext conftest.beam conftest.$ac_ext
34356 if test "$tst_compi_inet_ntop" = "yes" &&
34357 test "$tst_works_inet_ntop" != "no"; then
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34359 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34360 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34362 $as_echo "yes" >&6; }
34363 tst_allow_inet_ntop="yes"
34365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34366 $as_echo "no" >&6; }
34367 tst_allow_inet_ntop="no"
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34372 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34373 if test "$tst_links_inet_ntop" = "yes" &&
34374 test "$tst_proto_inet_ntop" = "yes" &&
34375 test "$tst_compi_inet_ntop" = "yes" &&
34376 test "$tst_allow_inet_ntop" = "yes" &&
34377 test "$tst_works_inet_ntop" != "no"; then
34378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34379 $as_echo "yes" >&6; }
34381 cat >>confdefs.h <<_ACEOF
34382 #define HAVE_INET_NTOP 1
34385 ac_cv_func_inet_ntop="yes"
34387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34388 $as_echo "no" >&6; }
34389 ac_cv_func_inet_ntop="no"
34394 tst_links_inet_pton="unknown"
34395 tst_proto_inet_pton="unknown"
34396 tst_compi_inet_pton="unknown"
34397 tst_works_inet_pton="unknown"
34398 tst_allow_inet_pton="unknown"
34400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34401 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34403 /* end confdefs.h. */
34406 #define inet_pton innocuous_inet_pton
34408 # include <limits.h>
34410 # include <assert.h>
34417 #if defined __stub_inet_pton || defined __stub___inet_pton
34423 return inet_pton ();
34429 if ac_fn_c_try_link "$LINENO"; then :
34431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34432 $as_echo "yes" >&6; }
34433 tst_links_inet_pton="yes"
34437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34438 $as_echo "no" >&6; }
34439 tst_links_inet_pton="no"
34442 rm -f core conftest.err conftest.$ac_objext \
34443 conftest$ac_exeext conftest.$ac_ext
34445 if test "$tst_links_inet_pton" = "yes"; then
34446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34447 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34449 /* end confdefs.h. */
34451 $curl_includes_arpa_inet
34454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34455 $EGREP "inet_pton" >/dev/null 2>&1; then :
34457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34458 $as_echo "yes" >&6; }
34459 tst_proto_inet_pton="yes"
34463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34464 $as_echo "no" >&6; }
34465 tst_proto_inet_pton="no"
34472 if test "$tst_proto_inet_pton" = "yes"; then
34473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34474 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34476 /* end confdefs.h. */
34479 $curl_includes_arpa_inet
34484 if(0 != inet_pton(0, 0, 0))
34492 if ac_fn_c_try_compile "$LINENO"; then :
34494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34495 $as_echo "yes" >&6; }
34496 tst_compi_inet_pton="yes"
34500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34501 $as_echo "no" >&6; }
34502 tst_compi_inet_pton="no"
34505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34508 if test "x$cross_compiling" != "xyes" &&
34509 test "$tst_compi_inet_pton" = "yes"; then
34510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34511 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34512 if test "$cross_compiling" = yes; then :
34513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34515 as_fn_error $? "cannot run test program while cross compiling
34516 See \`config.log' for more details" "$LINENO" 5; }
34518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34519 /* end confdefs.h. */
34522 $curl_includes_stdlib
34523 $curl_includes_arpa_inet
34524 $curl_includes_string
34529 unsigned char ipv6a[16+1];
34530 unsigned char ipv4a[4+1];
34531 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34532 const char *ipv4src = "192.168.100.1";
34534 memset(ipv4a, 1, sizeof(ipv4a));
34535 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34536 exit(1); /* fail */
34538 if( (ipv4a[0] != 0xc0) ||
34539 (ipv4a[1] != 0xa8) ||
34540 (ipv4a[2] != 0x64) ||
34541 (ipv4a[3] != 0x01) ||
34542 (ipv4a[4] != 0x01) )
34543 exit(1); /* fail */
34545 memset(ipv6a, 1, sizeof(ipv6a));
34546 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34547 exit(1); /* fail */
34549 if( (ipv6a[0] != 0xfe) ||
34550 (ipv6a[1] != 0x80) ||
34551 (ipv6a[8] != 0x02) ||
34552 (ipv6a[9] != 0x14) ||
34553 (ipv6a[10] != 0x4f) ||
34554 (ipv6a[11] != 0xff) ||
34555 (ipv6a[12] != 0xfe) ||
34556 (ipv6a[13] != 0x0b) ||
34557 (ipv6a[14] != 0x76) ||
34558 (ipv6a[15] != 0xc8) ||
34559 (ipv6a[16] != 0x01) )
34560 exit(1); /* fail */
34562 if( (ipv6a[2] != 0x0) ||
34563 (ipv6a[3] != 0x0) ||
34564 (ipv6a[4] != 0x0) ||
34565 (ipv6a[5] != 0x0) ||
34566 (ipv6a[6] != 0x0) ||
34567 (ipv6a[7] != 0x0) )
34568 exit(1); /* fail */
34577 if ac_fn_c_try_run "$LINENO"; then :
34579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34580 $as_echo "yes" >&6; }
34581 tst_works_inet_pton="yes"
34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34586 $as_echo "no" >&6; }
34587 tst_works_inet_pton="no"
34590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34591 conftest.$ac_objext conftest.beam conftest.$ac_ext
34596 if test "$tst_compi_inet_pton" = "yes" &&
34597 test "$tst_works_inet_pton" != "no"; then
34598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34599 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34600 if test "x$curl_disallow_inet_pton" != "xyes"; then
34601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34602 $as_echo "yes" >&6; }
34603 tst_allow_inet_pton="yes"
34605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34606 $as_echo "no" >&6; }
34607 tst_allow_inet_pton="no"
34611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34612 $as_echo_n "checking if inet_pton might be used... " >&6; }
34613 if test "$tst_links_inet_pton" = "yes" &&
34614 test "$tst_proto_inet_pton" = "yes" &&
34615 test "$tst_compi_inet_pton" = "yes" &&
34616 test "$tst_allow_inet_pton" = "yes" &&
34617 test "$tst_works_inet_pton" != "no"; then
34618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34619 $as_echo "yes" >&6; }
34621 cat >>confdefs.h <<_ACEOF
34622 #define HAVE_INET_PTON 1
34625 ac_cv_func_inet_pton="yes"
34627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34628 $as_echo "no" >&6; }
34629 ac_cv_func_inet_pton="no"
34633 curl_includes_stropts="\
34634 /* includes start */
34635 #ifdef HAVE_SYS_TYPES_H
34636 # include <sys/types.h>
34638 #ifdef HAVE_UNISTD_H
34639 # include <unistd.h>
34641 #ifdef HAVE_SYS_SOCKET_H
34642 # include <sys/socket.h>
34644 #ifdef HAVE_SYS_IOCTL_H
34645 # include <sys/ioctl.h>
34647 #ifdef HAVE_STROPTS_H
34648 # include <stropts.h>
34650 /* includes end */"
34651 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
34653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
34656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34657 cat >>confdefs.h <<_ACEOF
34658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34668 tst_links_ioctl="unknown"
34669 tst_proto_ioctl="unknown"
34670 tst_compi_ioctl="unknown"
34671 tst_allow_ioctl="unknown"
34673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34674 $as_echo_n "checking if ioctl can be linked... " >&6; }
34675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34676 /* end confdefs.h. */
34679 #define ioctl innocuous_ioctl
34681 # include <limits.h>
34683 # include <assert.h>
34690 #if defined __stub_ioctl || defined __stub___ioctl
34702 if ac_fn_c_try_link "$LINENO"; then :
34704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34705 $as_echo "yes" >&6; }
34706 tst_links_ioctl="yes"
34710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34711 $as_echo "no" >&6; }
34712 tst_links_ioctl="no"
34715 rm -f core conftest.err conftest.$ac_objext \
34716 conftest$ac_exeext conftest.$ac_ext
34718 if test "$tst_links_ioctl" = "yes"; then
34719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34720 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34722 /* end confdefs.h. */
34724 $curl_includes_stropts
34727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34728 $EGREP "ioctl" >/dev/null 2>&1; then :
34730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34731 $as_echo "yes" >&6; }
34732 tst_proto_ioctl="yes"
34736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34737 $as_echo "no" >&6; }
34738 tst_proto_ioctl="no"
34745 if test "$tst_proto_ioctl" = "yes"; then
34746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34747 $as_echo_n "checking if ioctl is compilable... " >&6; }
34748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34749 /* end confdefs.h. */
34752 $curl_includes_stropts
34757 if(0 != ioctl(0, 0, 0))
34765 if ac_fn_c_try_compile "$LINENO"; then :
34767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34768 $as_echo "yes" >&6; }
34769 tst_compi_ioctl="yes"
34773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34774 $as_echo "no" >&6; }
34775 tst_compi_ioctl="no"
34778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34781 if test "$tst_compi_ioctl" = "yes"; then
34782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34783 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34784 if test "x$curl_disallow_ioctl" != "xyes"; then
34785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34786 $as_echo "yes" >&6; }
34787 tst_allow_ioctl="yes"
34789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34790 $as_echo "no" >&6; }
34791 tst_allow_ioctl="no"
34795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34796 $as_echo_n "checking if ioctl might be used... " >&6; }
34797 if test "$tst_links_ioctl" = "yes" &&
34798 test "$tst_proto_ioctl" = "yes" &&
34799 test "$tst_compi_ioctl" = "yes" &&
34800 test "$tst_allow_ioctl" = "yes"; then
34801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34802 $as_echo "yes" >&6; }
34804 cat >>confdefs.h <<_ACEOF
34805 #define HAVE_IOCTL 1
34808 ac_cv_func_ioctl="yes"
34811 tst_compi_ioctl_fionbio="unknown"
34812 tst_allow_ioctl_fionbio="unknown"
34814 if test "$ac_cv_func_ioctl" = "yes"; then
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34816 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34818 /* end confdefs.h. */
34821 $curl_includes_stropts
34827 if(0 != ioctl(0, FIONBIO, &flags))
34835 if ac_fn_c_try_compile "$LINENO"; then :
34837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34838 $as_echo "yes" >&6; }
34839 tst_compi_ioctl_fionbio="yes"
34843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34844 $as_echo "no" >&6; }
34845 tst_compi_ioctl_fionbio="no"
34848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34851 if test "$tst_compi_ioctl_fionbio" = "yes"; then
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34853 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34854 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34856 $as_echo "yes" >&6; }
34857 tst_allow_ioctl_fionbio="yes"
34859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34860 $as_echo "no" >&6; }
34861 tst_allow_ioctl_fionbio="no"
34865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34866 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34867 if test "$tst_compi_ioctl_fionbio" = "yes" &&
34868 test "$tst_allow_ioctl_fionbio" = "yes"; then
34869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34870 $as_echo "yes" >&6; }
34872 cat >>confdefs.h <<_ACEOF
34873 #define HAVE_IOCTL_FIONBIO 1
34876 ac_cv_func_ioctl_fionbio="yes"
34878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34879 $as_echo "no" >&6; }
34880 ac_cv_func_ioctl_fionbio="no"
34885 tst_compi_ioctl_siocgifaddr="unknown"
34886 tst_allow_ioctl_siocgifaddr="unknown"
34888 if test "$ac_cv_func_ioctl" = "yes"; then
34889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34890 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34892 /* end confdefs.h. */
34895 $curl_includes_stropts
34896 #include <net/if.h>
34902 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
34910 if ac_fn_c_try_compile "$LINENO"; then :
34912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34913 $as_echo "yes" >&6; }
34914 tst_compi_ioctl_siocgifaddr="yes"
34918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34919 $as_echo "no" >&6; }
34920 tst_compi_ioctl_siocgifaddr="no"
34923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34926 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
34927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
34928 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
34929 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
34930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34931 $as_echo "yes" >&6; }
34932 tst_allow_ioctl_siocgifaddr="yes"
34934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34935 $as_echo "no" >&6; }
34936 tst_allow_ioctl_siocgifaddr="no"
34940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
34941 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
34942 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
34943 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
34944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34945 $as_echo "yes" >&6; }
34947 cat >>confdefs.h <<_ACEOF
34948 #define HAVE_IOCTL_SIOCGIFADDR 1
34951 ac_cv_func_ioctl_siocgifaddr="yes"
34953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34954 $as_echo "no" >&6; }
34955 ac_cv_func_ioctl_siocgifaddr="no"
34959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34960 $as_echo "no" >&6; }
34961 ac_cv_func_ioctl="no"
34966 tst_links_ioctlsocket="unknown"
34967 tst_proto_ioctlsocket="unknown"
34968 tst_compi_ioctlsocket="unknown"
34969 tst_allow_ioctlsocket="unknown"
34971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
34972 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
34973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34974 /* end confdefs.h. */
34977 $curl_includes_winsock2
34982 if(0 != ioctlsocket(0, 0, 0))
34990 if ac_fn_c_try_link "$LINENO"; then :
34992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34993 $as_echo "yes" >&6; }
34994 tst_links_ioctlsocket="yes"
34998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34999 $as_echo "no" >&6; }
35000 tst_links_ioctlsocket="no"
35003 rm -f core conftest.err conftest.$ac_objext \
35004 conftest$ac_exeext conftest.$ac_ext
35006 if test "$tst_links_ioctlsocket" = "yes"; then
35007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35008 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35010 /* end confdefs.h. */
35012 $curl_includes_winsock2
35015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35016 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35019 $as_echo "yes" >&6; }
35020 tst_proto_ioctlsocket="yes"
35024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35025 $as_echo "no" >&6; }
35026 tst_proto_ioctlsocket="no"
35033 if test "$tst_proto_ioctlsocket" = "yes"; then
35034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35035 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35037 /* end confdefs.h. */
35040 $curl_includes_winsock2
35045 if(0 != ioctlsocket(0, 0, 0))
35053 if ac_fn_c_try_compile "$LINENO"; then :
35055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35056 $as_echo "yes" >&6; }
35057 tst_compi_ioctlsocket="yes"
35061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35062 $as_echo "no" >&6; }
35063 tst_compi_ioctlsocket="no"
35066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35069 if test "$tst_compi_ioctlsocket" = "yes"; then
35070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35071 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35072 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35074 $as_echo "yes" >&6; }
35075 tst_allow_ioctlsocket="yes"
35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35078 $as_echo "no" >&6; }
35079 tst_allow_ioctlsocket="no"
35083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35084 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35085 if test "$tst_links_ioctlsocket" = "yes" &&
35086 test "$tst_proto_ioctlsocket" = "yes" &&
35087 test "$tst_compi_ioctlsocket" = "yes" &&
35088 test "$tst_allow_ioctlsocket" = "yes"; then
35089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35090 $as_echo "yes" >&6; }
35092 cat >>confdefs.h <<_ACEOF
35093 #define HAVE_IOCTLSOCKET 1
35096 ac_cv_func_ioctlsocket="yes"
35099 tst_compi_ioctlsocket_fionbio="unknown"
35100 tst_allow_ioctlsocket_fionbio="unknown"
35102 if test "$ac_cv_func_ioctlsocket" = "yes"; then
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35104 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35106 /* end confdefs.h. */
35109 $curl_includes_winsock2
35115 if(0 != ioctlsocket(0, FIONBIO, &flags))
35123 if ac_fn_c_try_compile "$LINENO"; then :
35125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35126 $as_echo "yes" >&6; }
35127 tst_compi_ioctlsocket_fionbio="yes"
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35132 $as_echo "no" >&6; }
35133 tst_compi_ioctlsocket_fionbio="no"
35136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35139 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35141 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35142 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35144 $as_echo "yes" >&6; }
35145 tst_allow_ioctlsocket_fionbio="yes"
35147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35148 $as_echo "no" >&6; }
35149 tst_allow_ioctlsocket_fionbio="no"
35153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35154 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35155 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35156 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35158 $as_echo "yes" >&6; }
35160 cat >>confdefs.h <<_ACEOF
35161 #define HAVE_IOCTLSOCKET_FIONBIO 1
35164 ac_cv_func_ioctlsocket_fionbio="yes"
35166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35167 $as_echo "no" >&6; }
35168 ac_cv_func_ioctlsocket_fionbio="no"
35172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35173 $as_echo "no" >&6; }
35174 ac_cv_func_ioctlsocket="no"
35179 tst_links_ioctlsocket_camel="unknown"
35180 tst_proto_ioctlsocket_camel="unknown"
35181 tst_compi_ioctlsocket_camel="unknown"
35182 tst_allow_ioctlsocket_camel="unknown"
35184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35185 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35187 /* end confdefs.h. */
35190 #define IoctlSocket innocuous_IoctlSocket
35192 # include <limits.h>
35194 # include <assert.h>
35200 char IoctlSocket ();
35201 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35207 return IoctlSocket ();
35213 if ac_fn_c_try_link "$LINENO"; then :
35215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35216 $as_echo "yes" >&6; }
35217 tst_links_ioctlsocket_camel="yes"
35221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35222 $as_echo "no" >&6; }
35223 tst_links_ioctlsocket_camel="no"
35226 rm -f core conftest.err conftest.$ac_objext \
35227 conftest$ac_exeext conftest.$ac_ext
35229 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35231 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35233 /* end confdefs.h. */
35235 $curl_includes_stropts
35238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35239 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242 $as_echo "yes" >&6; }
35243 tst_proto_ioctlsocket_camel="yes"
35247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248 $as_echo "no" >&6; }
35249 tst_proto_ioctlsocket_camel="no"
35256 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35258 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35260 /* end confdefs.h. */
35263 $curl_includes_stropts
35268 if(0 != IoctlSocket(0, 0, 0))
35276 if ac_fn_c_try_compile "$LINENO"; then :
35278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35279 $as_echo "yes" >&6; }
35280 tst_compi_ioctlsocket_camel="yes"
35284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35285 $as_echo "no" >&6; }
35286 tst_compi_ioctlsocket_camel="no"
35289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35292 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35294 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35295 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35297 $as_echo "yes" >&6; }
35298 tst_allow_ioctlsocket_camel="yes"
35300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35301 $as_echo "no" >&6; }
35302 tst_allow_ioctlsocket_camel="no"
35306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35307 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35308 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35309 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35310 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35311 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35313 $as_echo "yes" >&6; }
35315 cat >>confdefs.h <<_ACEOF
35316 #define HAVE_IOCTLSOCKET_CAMEL 1
35319 ac_cv_func_ioctlsocket_camel="yes"
35322 tst_compi_ioctlsocket_camel_fionbio="unknown"
35323 tst_allow_ioctlsocket_camel_fionbio="unknown"
35325 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
35326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35327 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35329 /* end confdefs.h. */
35332 $curl_includes_stropts
35338 if(0 != ioctlsocket(0, FIONBIO, &flags))
35346 if ac_fn_c_try_compile "$LINENO"; then :
35348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35349 $as_echo "yes" >&6; }
35350 tst_compi_ioctlsocket_camel_fionbio="yes"
35354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35355 $as_echo "no" >&6; }
35356 tst_compi_ioctlsocket_camel_fionbio="no"
35359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35362 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35364 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35365 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35367 $as_echo "yes" >&6; }
35368 tst_allow_ioctlsocket_camel_fionbio="yes"
35370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35371 $as_echo "no" >&6; }
35372 tst_allow_ioctlsocket_camel_fionbio="no"
35376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35377 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35378 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35379 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35381 $as_echo "yes" >&6; }
35383 cat >>confdefs.h <<_ACEOF
35384 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35387 ac_cv_func_ioctlsocket_camel_fionbio="yes"
35389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35390 $as_echo "no" >&6; }
35391 ac_cv_func_ioctlsocket_camel_fionbio="no"
35395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35396 $as_echo "no" >&6; }
35397 ac_cv_func_ioctlsocket_camel="no"
35402 tst_links_localtime_r="unknown"
35403 tst_proto_localtime_r="unknown"
35404 tst_compi_localtime_r="unknown"
35405 tst_works_localtime_r="unknown"
35406 tst_allow_localtime_r="unknown"
35408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35409 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35411 /* end confdefs.h. */
35414 #define localtime_r innocuous_localtime_r
35416 # include <limits.h>
35418 # include <assert.h>
35424 char localtime_r ();
35425 #if defined __stub_localtime_r || defined __stub___localtime_r
35431 return localtime_r ();
35437 if ac_fn_c_try_link "$LINENO"; then :
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35440 $as_echo "yes" >&6; }
35441 tst_links_localtime_r="yes"
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447 tst_links_localtime_r="no"
35450 rm -f core conftest.err conftest.$ac_objext \
35451 conftest$ac_exeext conftest.$ac_ext
35453 if test "$tst_links_localtime_r" = "yes"; then
35454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35455 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35457 /* end confdefs.h. */
35459 $curl_includes_time
35462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35463 $EGREP "localtime_r" >/dev/null 2>&1; then :
35465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35466 $as_echo "yes" >&6; }
35467 tst_proto_localtime_r="yes"
35471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35472 $as_echo "no" >&6; }
35473 tst_proto_localtime_r="no"
35480 if test "$tst_proto_localtime_r" = "yes"; then
35481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35482 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35484 /* end confdefs.h. */
35487 $curl_includes_time
35492 if(0 != localtime_r(0, 0))
35500 if ac_fn_c_try_compile "$LINENO"; then :
35502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35503 $as_echo "yes" >&6; }
35504 tst_compi_localtime_r="yes"
35508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35509 $as_echo "no" >&6; }
35510 tst_compi_localtime_r="no"
35513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35516 if test "x$cross_compiling" != "xyes" &&
35517 test "$tst_compi_localtime_r" = "yes"; then
35518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35519 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35520 if test "$cross_compiling" = yes; then :
35521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35523 as_fn_error $? "cannot run test program while cross compiling
35524 See \`config.log' for more details" "$LINENO" 5; }
35526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35527 /* end confdefs.h. */
35530 $curl_includes_stdlib
35531 $curl_includes_time
35536 time_t clock = 1170352587;
35537 struct tm *tmp = 0;
35539 tmp = localtime_r(&clock, &result);
35550 if ac_fn_c_try_run "$LINENO"; then :
35552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35553 $as_echo "yes" >&6; }
35554 tst_works_localtime_r="yes"
35558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35559 $as_echo "no" >&6; }
35560 tst_works_localtime_r="no"
35563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35564 conftest.$ac_objext conftest.beam conftest.$ac_ext
35569 if test "$tst_compi_localtime_r" = "yes" &&
35570 test "$tst_works_localtime_r" != "no"; then
35571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35572 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35573 if test "x$curl_disallow_localtime_r" != "xyes"; then
35574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35575 $as_echo "yes" >&6; }
35576 tst_allow_localtime_r="yes"
35578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35579 $as_echo "no" >&6; }
35580 tst_allow_localtime_r="no"
35584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35585 $as_echo_n "checking if localtime_r might be used... " >&6; }
35586 if test "$tst_links_localtime_r" = "yes" &&
35587 test "$tst_proto_localtime_r" = "yes" &&
35588 test "$tst_compi_localtime_r" = "yes" &&
35589 test "$tst_allow_localtime_r" = "yes" &&
35590 test "$tst_works_localtime_r" != "no"; then
35591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35592 $as_echo "yes" >&6; }
35594 cat >>confdefs.h <<_ACEOF
35595 #define HAVE_LOCALTIME_R 1
35598 ac_cv_func_localtime_r="yes"
35600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35601 $as_echo "no" >&6; }
35602 ac_cv_func_localtime_r="no"
35607 tst_links_memrchr="unknown"
35608 tst_macro_memrchr="unknown"
35609 tst_proto_memrchr="unknown"
35610 tst_compi_memrchr="unknown"
35611 tst_allow_memrchr="unknown"
35613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35614 $as_echo_n "checking if memrchr can be linked... " >&6; }
35615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35616 /* end confdefs.h. */
35619 #define memrchr innocuous_memrchr
35621 # include <limits.h>
35623 # include <assert.h>
35630 #if defined __stub_memrchr || defined __stub___memrchr
35642 if ac_fn_c_try_link "$LINENO"; then :
35644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35645 $as_echo "yes" >&6; }
35646 tst_links_memrchr="yes"
35650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35651 $as_echo "no" >&6; }
35652 tst_links_memrchr="no"
35655 rm -f core conftest.err conftest.$ac_objext \
35656 conftest$ac_exeext conftest.$ac_ext
35658 if test "$tst_links_memrchr" = "no"; then
35659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35660 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35662 /* end confdefs.h. */
35665 $curl_includes_string
35670 if(0 != memrchr(0, 0, 0))
35678 if ac_fn_c_try_link "$LINENO"; then :
35680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35681 $as_echo "yes" >&6; }
35682 tst_macro_memrchr="yes"
35686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35687 $as_echo "no" >&6; }
35688 tst_macro_memrchr="no"
35691 rm -f core conftest.err conftest.$ac_objext \
35692 conftest$ac_exeext conftest.$ac_ext
35695 if test "$tst_links_memrchr" = "yes"; then
35696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35697 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35699 /* end confdefs.h. */
35701 $curl_includes_string
35704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35705 $EGREP "memrchr" >/dev/null 2>&1; then :
35707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35708 $as_echo "yes" >&6; }
35709 tst_proto_memrchr="yes"
35713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35714 $as_echo "no" >&6; }
35715 tst_proto_memrchr="no"
35722 if test "$tst_proto_memrchr" = "yes" ||
35723 test "$tst_macro_memrchr" = "yes"; then
35724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35725 $as_echo_n "checking if memrchr is compilable... " >&6; }
35726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35727 /* end confdefs.h. */
35730 $curl_includes_string
35735 if(0 != memrchr(0, 0, 0))
35743 if ac_fn_c_try_compile "$LINENO"; then :
35745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35746 $as_echo "yes" >&6; }
35747 tst_compi_memrchr="yes"
35751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35752 $as_echo "no" >&6; }
35753 tst_compi_memrchr="no"
35756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35759 if test "$tst_compi_memrchr" = "yes"; then
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35761 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35762 if test "x$curl_disallow_memrchr" != "xyes"; then
35763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35764 $as_echo "yes" >&6; }
35765 tst_allow_memrchr="yes"
35767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35768 $as_echo "no" >&6; }
35769 tst_allow_memrchr="no"
35773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35774 $as_echo_n "checking if memrchr might be used... " >&6; }
35775 if (test "$tst_proto_memrchr" = "yes" ||
35776 test "$tst_macro_memrchr" = "yes") &&
35777 test "$tst_compi_memrchr" = "yes" &&
35778 test "$tst_allow_memrchr" = "yes"; then
35779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35780 $as_echo "yes" >&6; }
35782 cat >>confdefs.h <<_ACEOF
35783 #define HAVE_MEMRCHR 1
35786 ac_cv_func_memrchr="yes"
35788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35789 $as_echo "no" >&6; }
35790 ac_cv_func_memrchr="no"
35795 tst_links_poll="unknown"
35796 tst_proto_poll="unknown"
35797 tst_compi_poll="unknown"
35798 tst_works_poll="unknown"
35799 tst_allow_poll="unknown"
35802 darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
35803 curl_disallow_poll="yes"
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35808 $as_echo_n "checking if poll can be linked... " >&6; }
35809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35810 /* end confdefs.h. */
35813 $curl_includes_poll
35818 if(0 != poll(0, 0, 0))
35826 if ac_fn_c_try_link "$LINENO"; then :
35828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35829 $as_echo "yes" >&6; }
35830 tst_links_poll="yes"
35834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35835 $as_echo "no" >&6; }
35836 tst_links_poll="no"
35839 rm -f core conftest.err conftest.$ac_objext \
35840 conftest$ac_exeext conftest.$ac_ext
35842 if test "$tst_links_poll" = "yes"; then
35843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35844 $as_echo_n "checking if poll is prototyped... " >&6; }
35845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35846 /* end confdefs.h. */
35848 $curl_includes_poll
35851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35852 $EGREP "poll" >/dev/null 2>&1; then :
35854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35855 $as_echo "yes" >&6; }
35856 tst_proto_poll="yes"
35860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35861 $as_echo "no" >&6; }
35862 tst_proto_poll="no"
35869 if test "$tst_proto_poll" = "yes"; then
35870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35871 $as_echo_n "checking if poll is compilable... " >&6; }
35872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35873 /* end confdefs.h. */
35876 $curl_includes_poll
35881 if(0 != poll(0, 0, 0))
35889 if ac_fn_c_try_compile "$LINENO"; then :
35891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35892 $as_echo "yes" >&6; }
35893 tst_compi_poll="yes"
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35898 $as_echo "no" >&6; }
35899 tst_compi_poll="no"
35902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35905 if test "x$cross_compiling" != "xyes" &&
35906 test "$tst_compi_poll" = "yes"; then
35907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
35908 $as_echo_n "checking if poll seems to work... " >&6; }
35909 if test "$cross_compiling" = yes; then :
35910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35912 as_fn_error $? "cannot run test program while cross compiling
35913 See \`config.log' for more details" "$LINENO" 5; }
35915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35916 /* end confdefs.h. */
35919 $curl_includes_stdlib
35920 $curl_includes_poll
35925 if(0 != poll(0, 0, 10))
35926 exit(1); /* fail */
35935 if ac_fn_c_try_run "$LINENO"; then :
35937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35938 $as_echo "yes" >&6; }
35939 tst_works_poll="yes"
35943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35944 $as_echo "no" >&6; }
35945 tst_works_poll="no"
35948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35949 conftest.$ac_objext conftest.beam conftest.$ac_ext
35954 if test "$tst_compi_poll" = "yes" &&
35955 test "$tst_works_poll" != "no"; then
35956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
35957 $as_echo_n "checking if poll usage allowed... " >&6; }
35958 if test "x$curl_disallow_poll" != "xyes"; then
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35960 $as_echo "yes" >&6; }
35961 tst_allow_poll="yes"
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35964 $as_echo "no" >&6; }
35965 tst_allow_poll="no"
35969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
35970 $as_echo_n "checking if poll might be used... " >&6; }
35971 if test "$tst_links_poll" = "yes" &&
35972 test "$tst_proto_poll" = "yes" &&
35973 test "$tst_compi_poll" = "yes" &&
35974 test "$tst_allow_poll" = "yes" &&
35975 test "$tst_works_poll" != "no"; then
35976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35977 $as_echo "yes" >&6; }
35979 cat >>confdefs.h <<_ACEOF
35980 #define HAVE_POLL 1
35984 cat >>confdefs.h <<_ACEOF
35985 #define HAVE_POLL_FINE 1
35988 ac_cv_func_poll="yes"
35990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35991 $as_echo "no" >&6; }
35992 ac_cv_func_poll="no"
35997 tst_links_setsockopt="unknown"
35998 tst_proto_setsockopt="unknown"
35999 tst_compi_setsockopt="unknown"
36000 tst_allow_setsockopt="unknown"
36002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36003 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36005 /* end confdefs.h. */
36008 $curl_includes_winsock2
36009 $curl_includes_sys_socket
36014 if(0 != setsockopt(0, 0, 0, 0, 0))
36022 if ac_fn_c_try_link "$LINENO"; then :
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36025 $as_echo "yes" >&6; }
36026 tst_links_setsockopt="yes"
36030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36031 $as_echo "no" >&6; }
36032 tst_links_setsockopt="no"
36035 rm -f core conftest.err conftest.$ac_objext \
36036 conftest$ac_exeext conftest.$ac_ext
36038 if test "$tst_links_setsockopt" = "yes"; then
36039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36040 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36042 /* end confdefs.h. */
36044 $curl_includes_winsock2
36045 $curl_includes_sys_socket
36048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36049 $EGREP "setsockopt" >/dev/null 2>&1; then :
36051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36052 $as_echo "yes" >&6; }
36053 tst_proto_setsockopt="yes"
36057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36058 $as_echo "no" >&6; }
36059 tst_proto_setsockopt="no"
36066 if test "$tst_proto_setsockopt" = "yes"; then
36067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36068 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36070 /* end confdefs.h. */
36073 $curl_includes_winsock2
36074 $curl_includes_sys_socket
36079 if(0 != setsockopt(0, 0, 0, 0, 0))
36087 if ac_fn_c_try_compile "$LINENO"; then :
36089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36090 $as_echo "yes" >&6; }
36091 tst_compi_setsockopt="yes"
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36096 $as_echo "no" >&6; }
36097 tst_compi_setsockopt="no"
36100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36103 if test "$tst_compi_setsockopt" = "yes"; then
36104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36105 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36106 if test "x$curl_disallow_setsockopt" != "xyes"; then
36107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36108 $as_echo "yes" >&6; }
36109 tst_allow_setsockopt="yes"
36111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36112 $as_echo "no" >&6; }
36113 tst_allow_setsockopt="no"
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36118 $as_echo_n "checking if setsockopt might be used... " >&6; }
36119 if test "$tst_links_setsockopt" = "yes" &&
36120 test "$tst_proto_setsockopt" = "yes" &&
36121 test "$tst_compi_setsockopt" = "yes" &&
36122 test "$tst_allow_setsockopt" = "yes"; then
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36124 $as_echo "yes" >&6; }
36126 cat >>confdefs.h <<_ACEOF
36127 #define HAVE_SETSOCKOPT 1
36130 ac_cv_func_setsockopt="yes"
36133 tst_compi_setsockopt_so_nonblock="unknown"
36134 tst_allow_setsockopt_so_nonblock="unknown"
36136 if test "$ac_cv_func_setsockopt" = "yes"; then
36137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36138 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36140 /* end confdefs.h. */
36143 $curl_includes_winsock2
36144 $curl_includes_sys_socket
36149 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36157 if ac_fn_c_try_compile "$LINENO"; then :
36159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36160 $as_echo "yes" >&6; }
36161 tst_compi_setsockopt_so_nonblock="yes"
36165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36166 $as_echo "no" >&6; }
36167 tst_compi_setsockopt_so_nonblock="no"
36170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36173 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36175 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36176 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36178 $as_echo "yes" >&6; }
36179 tst_allow_setsockopt_so_nonblock="yes"
36181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36182 $as_echo "no" >&6; }
36183 tst_allow_setsockopt_so_nonblock="no"
36187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36188 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36189 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36190 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36192 $as_echo "yes" >&6; }
36194 cat >>confdefs.h <<_ACEOF
36195 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36198 ac_cv_func_setsockopt_so_nonblock="yes"
36200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36201 $as_echo "no" >&6; }
36202 ac_cv_func_setsockopt_so_nonblock="no"
36206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36207 $as_echo "no" >&6; }
36208 ac_cv_func_setsockopt="no"
36212 curl_includes_signal="\
36213 /* includes start */
36214 #ifdef HAVE_SYS_TYPES_H
36215 # include <sys/types.h>
36217 #ifdef HAVE_SIGNAL_H
36218 # include <signal.h>
36220 /* includes end */"
36221 for ac_header in sys/types.h signal.h
36223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36227 cat >>confdefs.h <<_ACEOF
36228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36238 tst_links_sigaction="unknown"
36239 tst_proto_sigaction="unknown"
36240 tst_compi_sigaction="unknown"
36241 tst_allow_sigaction="unknown"
36243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36244 $as_echo_n "checking if sigaction can be linked... " >&6; }
36245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36246 /* end confdefs.h. */
36249 #define sigaction innocuous_sigaction
36251 # include <limits.h>
36253 # include <assert.h>
36260 #if defined __stub_sigaction || defined __stub___sigaction
36266 return sigaction ();
36272 if ac_fn_c_try_link "$LINENO"; then :
36274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36275 $as_echo "yes" >&6; }
36276 tst_links_sigaction="yes"
36280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36281 $as_echo "no" >&6; }
36282 tst_links_sigaction="no"
36285 rm -f core conftest.err conftest.$ac_objext \
36286 conftest$ac_exeext conftest.$ac_ext
36288 if test "$tst_links_sigaction" = "yes"; then
36289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36290 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36292 /* end confdefs.h. */
36294 $curl_includes_signal
36297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36298 $EGREP "sigaction" >/dev/null 2>&1; then :
36300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36301 $as_echo "yes" >&6; }
36302 tst_proto_sigaction="yes"
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36307 $as_echo "no" >&6; }
36308 tst_proto_sigaction="no"
36315 if test "$tst_proto_sigaction" = "yes"; then
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36317 $as_echo_n "checking if sigaction is compilable... " >&6; }
36318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36319 /* end confdefs.h. */
36322 $curl_includes_signal
36327 if(0 != sigaction(0, 0, 0))
36335 if ac_fn_c_try_compile "$LINENO"; then :
36337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36338 $as_echo "yes" >&6; }
36339 tst_compi_sigaction="yes"
36343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36344 $as_echo "no" >&6; }
36345 tst_compi_sigaction="no"
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36351 if test "$tst_compi_sigaction" = "yes"; then
36352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36353 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36354 if test "x$curl_disallow_sigaction" != "xyes"; then
36355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36356 $as_echo "yes" >&6; }
36357 tst_allow_sigaction="yes"
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360 $as_echo "no" >&6; }
36361 tst_allow_sigaction="no"
36365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36366 $as_echo_n "checking if sigaction might be used... " >&6; }
36367 if test "$tst_links_sigaction" = "yes" &&
36368 test "$tst_proto_sigaction" = "yes" &&
36369 test "$tst_compi_sigaction" = "yes" &&
36370 test "$tst_allow_sigaction" = "yes"; then
36371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36372 $as_echo "yes" >&6; }
36374 cat >>confdefs.h <<_ACEOF
36375 #define HAVE_SIGACTION 1
36378 ac_cv_func_sigaction="yes"
36380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36381 $as_echo "no" >&6; }
36382 ac_cv_func_sigaction="no"
36387 tst_links_siginterrupt="unknown"
36388 tst_proto_siginterrupt="unknown"
36389 tst_compi_siginterrupt="unknown"
36390 tst_allow_siginterrupt="unknown"
36392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36393 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36395 /* end confdefs.h. */
36398 #define siginterrupt innocuous_siginterrupt
36400 # include <limits.h>
36402 # include <assert.h>
36404 #undef siginterrupt
36408 char siginterrupt ();
36409 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36415 return siginterrupt ();
36421 if ac_fn_c_try_link "$LINENO"; then :
36423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36424 $as_echo "yes" >&6; }
36425 tst_links_siginterrupt="yes"
36429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36430 $as_echo "no" >&6; }
36431 tst_links_siginterrupt="no"
36434 rm -f core conftest.err conftest.$ac_objext \
36435 conftest$ac_exeext conftest.$ac_ext
36437 if test "$tst_links_siginterrupt" = "yes"; then
36438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36439 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36441 /* end confdefs.h. */
36443 $curl_includes_signal
36446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36447 $EGREP "siginterrupt" >/dev/null 2>&1; then :
36449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36450 $as_echo "yes" >&6; }
36451 tst_proto_siginterrupt="yes"
36455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36456 $as_echo "no" >&6; }
36457 tst_proto_siginterrupt="no"
36464 if test "$tst_proto_siginterrupt" = "yes"; then
36465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36466 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36468 /* end confdefs.h. */
36471 $curl_includes_signal
36476 if(0 != siginterrupt(0, 0))
36484 if ac_fn_c_try_compile "$LINENO"; then :
36486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36487 $as_echo "yes" >&6; }
36488 tst_compi_siginterrupt="yes"
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36493 $as_echo "no" >&6; }
36494 tst_compi_siginterrupt="no"
36497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36500 if test "$tst_compi_siginterrupt" = "yes"; then
36501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36502 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36503 if test "x$curl_disallow_siginterrupt" != "xyes"; then
36504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36505 $as_echo "yes" >&6; }
36506 tst_allow_siginterrupt="yes"
36508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36509 $as_echo "no" >&6; }
36510 tst_allow_siginterrupt="no"
36514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36515 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36516 if test "$tst_links_siginterrupt" = "yes" &&
36517 test "$tst_proto_siginterrupt" = "yes" &&
36518 test "$tst_compi_siginterrupt" = "yes" &&
36519 test "$tst_allow_siginterrupt" = "yes"; then
36520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36521 $as_echo "yes" >&6; }
36523 cat >>confdefs.h <<_ACEOF
36524 #define HAVE_SIGINTERRUPT 1
36527 ac_cv_func_siginterrupt="yes"
36529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36530 $as_echo "no" >&6; }
36531 ac_cv_func_siginterrupt="no"
36536 tst_links_signal="unknown"
36537 tst_proto_signal="unknown"
36538 tst_compi_signal="unknown"
36539 tst_allow_signal="unknown"
36541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36542 $as_echo_n "checking if signal can be linked... " >&6; }
36543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36544 /* end confdefs.h. */
36547 #define signal innocuous_signal
36549 # include <limits.h>
36551 # include <assert.h>
36558 #if defined __stub_signal || defined __stub___signal
36570 if ac_fn_c_try_link "$LINENO"; then :
36572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36573 $as_echo "yes" >&6; }
36574 tst_links_signal="yes"
36578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36579 $as_echo "no" >&6; }
36580 tst_links_signal="no"
36583 rm -f core conftest.err conftest.$ac_objext \
36584 conftest$ac_exeext conftest.$ac_ext
36586 if test "$tst_links_signal" = "yes"; then
36587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36588 $as_echo_n "checking if signal is prototyped... " >&6; }
36589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36590 /* end confdefs.h. */
36592 $curl_includes_signal
36595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36596 $EGREP "signal" >/dev/null 2>&1; then :
36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36599 $as_echo "yes" >&6; }
36600 tst_proto_signal="yes"
36604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36605 $as_echo "no" >&6; }
36606 tst_proto_signal="no"
36613 if test "$tst_proto_signal" = "yes"; then
36614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36615 $as_echo_n "checking if signal is compilable... " >&6; }
36616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36617 /* end confdefs.h. */
36620 $curl_includes_signal
36625 if(0 != signal(0, 0))
36633 if ac_fn_c_try_compile "$LINENO"; then :
36635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36636 $as_echo "yes" >&6; }
36637 tst_compi_signal="yes"
36641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36642 $as_echo "no" >&6; }
36643 tst_compi_signal="no"
36646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36649 if test "$tst_compi_signal" = "yes"; then
36650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36651 $as_echo_n "checking if signal usage allowed... " >&6; }
36652 if test "x$curl_disallow_signal" != "xyes"; then
36653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36654 $as_echo "yes" >&6; }
36655 tst_allow_signal="yes"
36657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658 $as_echo "no" >&6; }
36659 tst_allow_signal="no"
36663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36664 $as_echo_n "checking if signal might be used... " >&6; }
36665 if test "$tst_links_signal" = "yes" &&
36666 test "$tst_proto_signal" = "yes" &&
36667 test "$tst_compi_signal" = "yes" &&
36668 test "$tst_allow_signal" = "yes"; then
36669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36670 $as_echo "yes" >&6; }
36672 cat >>confdefs.h <<_ACEOF
36673 #define HAVE_SIGNAL 1
36676 ac_cv_func_signal="yes"
36678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36679 $as_echo "no" >&6; }
36680 ac_cv_func_signal="no"
36684 curl_includes_setjmp="\
36685 /* includes start */
36686 #ifdef HAVE_SYS_TYPES_H
36687 # include <sys/types.h>
36689 #ifdef HAVE_SETJMP_H
36690 # include <setjmp.h>
36692 /* includes end */"
36693 for ac_header in sys/types.h setjmp.h
36695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36699 cat >>confdefs.h <<_ACEOF
36700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36710 tst_links_sigsetjmp="unknown"
36711 tst_macro_sigsetjmp="unknown"
36712 tst_proto_sigsetjmp="unknown"
36713 tst_compi_sigsetjmp="unknown"
36714 tst_allow_sigsetjmp="unknown"
36716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36717 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36719 /* end confdefs.h. */
36722 #define sigsetjmp innocuous_sigsetjmp
36724 # include <limits.h>
36726 # include <assert.h>
36733 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36739 return sigsetjmp ();
36745 if ac_fn_c_try_link "$LINENO"; then :
36747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36748 $as_echo "yes" >&6; }
36749 tst_links_sigsetjmp="yes"
36753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36754 $as_echo "no" >&6; }
36755 tst_links_sigsetjmp="no"
36758 rm -f core conftest.err conftest.$ac_objext \
36759 conftest$ac_exeext conftest.$ac_ext
36761 if test "$tst_links_sigsetjmp" = "no"; then
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36763 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36765 /* end confdefs.h. */
36768 $curl_includes_setjmp
36774 if(0 != sigsetjmp(env, 0))
36782 if ac_fn_c_try_link "$LINENO"; then :
36784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36785 $as_echo "yes" >&6; }
36786 tst_macro_sigsetjmp="yes"
36790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36791 $as_echo "no" >&6; }
36792 tst_macro_sigsetjmp="no"
36795 rm -f core conftest.err conftest.$ac_objext \
36796 conftest$ac_exeext conftest.$ac_ext
36799 if test "$tst_links_sigsetjmp" = "yes"; then
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36801 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36803 /* end confdefs.h. */
36805 $curl_includes_setjmp
36808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36809 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36812 $as_echo "yes" >&6; }
36813 tst_proto_sigsetjmp="yes"
36817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36818 $as_echo "no" >&6; }
36819 tst_proto_sigsetjmp="no"
36826 if test "$tst_proto_sigsetjmp" = "yes" ||
36827 test "$tst_macro_sigsetjmp" = "yes"; then
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36829 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36831 /* end confdefs.h. */
36834 $curl_includes_setjmp
36840 if(0 != sigsetjmp(env, 0))
36848 if ac_fn_c_try_compile "$LINENO"; then :
36850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36851 $as_echo "yes" >&6; }
36852 tst_compi_sigsetjmp="yes"
36856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36857 $as_echo "no" >&6; }
36858 tst_compi_sigsetjmp="no"
36861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36864 if test "$tst_compi_sigsetjmp" = "yes"; then
36865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36866 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36867 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36869 $as_echo "yes" >&6; }
36870 tst_allow_sigsetjmp="yes"
36872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36873 $as_echo "no" >&6; }
36874 tst_allow_sigsetjmp="no"
36878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
36879 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
36880 if (test "$tst_proto_sigsetjmp" = "yes" ||
36881 test "$tst_macro_sigsetjmp" = "yes") &&
36882 test "$tst_compi_sigsetjmp" = "yes" &&
36883 test "$tst_allow_sigsetjmp" = "yes"; then
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36885 $as_echo "yes" >&6; }
36887 cat >>confdefs.h <<_ACEOF
36888 #define HAVE_SIGSETJMP 1
36891 ac_cv_func_sigsetjmp="yes"
36893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36894 $as_echo "no" >&6; }
36895 ac_cv_func_sigsetjmp="no"
36900 tst_links_socket="unknown"
36901 tst_proto_socket="unknown"
36902 tst_compi_socket="unknown"
36903 tst_allow_socket="unknown"
36905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
36906 $as_echo_n "checking if socket can be linked... " >&6; }
36907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36908 /* end confdefs.h. */
36911 $curl_includes_winsock2
36912 $curl_includes_sys_socket
36913 $curl_includes_socket
36918 if(0 != socket(0, 0, 0))
36926 if ac_fn_c_try_link "$LINENO"; then :
36928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36929 $as_echo "yes" >&6; }
36930 tst_links_socket="yes"
36934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36935 $as_echo "no" >&6; }
36936 tst_links_socket="no"
36939 rm -f core conftest.err conftest.$ac_objext \
36940 conftest$ac_exeext conftest.$ac_ext
36942 if test "$tst_links_socket" = "yes"; then
36943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
36944 $as_echo_n "checking if socket is prototyped... " >&6; }
36945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36946 /* end confdefs.h. */
36948 $curl_includes_winsock2
36949 $curl_includes_sys_socket
36950 $curl_includes_socket
36953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36954 $EGREP "socket" >/dev/null 2>&1; then :
36956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36957 $as_echo "yes" >&6; }
36958 tst_proto_socket="yes"
36962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36963 $as_echo "no" >&6; }
36964 tst_proto_socket="no"
36971 if test "$tst_proto_socket" = "yes"; then
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
36973 $as_echo_n "checking if socket is compilable... " >&6; }
36974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36975 /* end confdefs.h. */
36978 $curl_includes_winsock2
36979 $curl_includes_sys_socket
36980 $curl_includes_socket
36985 if(0 != socket(0, 0, 0))
36993 if ac_fn_c_try_compile "$LINENO"; then :
36995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36996 $as_echo "yes" >&6; }
36997 tst_compi_socket="yes"
37001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37002 $as_echo "no" >&6; }
37003 tst_compi_socket="no"
37006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37009 if test "$tst_compi_socket" = "yes"; then
37010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37011 $as_echo_n "checking if socket usage allowed... " >&6; }
37012 if test "x$curl_disallow_socket" != "xyes"; then
37013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37014 $as_echo "yes" >&6; }
37015 tst_allow_socket="yes"
37017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37018 $as_echo "no" >&6; }
37019 tst_allow_socket="no"
37023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37024 $as_echo_n "checking if socket might be used... " >&6; }
37025 if test "$tst_links_socket" = "yes" &&
37026 test "$tst_proto_socket" = "yes" &&
37027 test "$tst_compi_socket" = "yes" &&
37028 test "$tst_allow_socket" = "yes"; then
37029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37030 $as_echo "yes" >&6; }
37032 cat >>confdefs.h <<_ACEOF
37033 #define HAVE_SOCKET 1
37036 ac_cv_func_socket="yes"
37038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37039 $as_echo "no" >&6; }
37040 ac_cv_func_socket="no"
37045 tst_links_socketpair="unknown"
37046 tst_proto_socketpair="unknown"
37047 tst_compi_socketpair="unknown"
37048 tst_allow_socketpair="unknown"
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37051 $as_echo_n "checking if socketpair can be linked... " >&6; }
37052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37053 /* end confdefs.h. */
37056 #define socketpair innocuous_socketpair
37058 # include <limits.h>
37060 # include <assert.h>
37066 char socketpair ();
37067 #if defined __stub_socketpair || defined __stub___socketpair
37073 return socketpair ();
37079 if ac_fn_c_try_link "$LINENO"; then :
37081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37082 $as_echo "yes" >&6; }
37083 tst_links_socketpair="yes"
37087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37088 $as_echo "no" >&6; }
37089 tst_links_socketpair="no"
37092 rm -f core conftest.err conftest.$ac_objext \
37093 conftest$ac_exeext conftest.$ac_ext
37095 if test "$tst_links_socketpair" = "yes"; then
37096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37097 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37099 /* end confdefs.h. */
37101 $curl_includes_sys_socket
37102 $curl_includes_socket
37105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37106 $EGREP "socketpair" >/dev/null 2>&1; then :
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37109 $as_echo "yes" >&6; }
37110 tst_proto_socketpair="yes"
37114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37115 $as_echo "no" >&6; }
37116 tst_proto_socketpair="no"
37123 if test "$tst_proto_socketpair" = "yes"; then
37124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37125 $as_echo_n "checking if socketpair is compilable... " >&6; }
37126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37127 /* end confdefs.h. */
37130 $curl_includes_sys_socket
37131 $curl_includes_socket
37137 if(0 != socketpair(0, 0, 0, sv))
37145 if ac_fn_c_try_compile "$LINENO"; then :
37147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37148 $as_echo "yes" >&6; }
37149 tst_compi_socketpair="yes"
37153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37154 $as_echo "no" >&6; }
37155 tst_compi_socketpair="no"
37158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37161 if test "$tst_compi_socketpair" = "yes"; then
37162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37163 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37164 if test "x$curl_disallow_socketpair" != "xyes"; then
37165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37166 $as_echo "yes" >&6; }
37167 tst_allow_socketpair="yes"
37169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37170 $as_echo "no" >&6; }
37171 tst_allow_socketpair="no"
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37176 $as_echo_n "checking if socketpair might be used... " >&6; }
37177 if test "$tst_links_socketpair" = "yes" &&
37178 test "$tst_proto_socketpair" = "yes" &&
37179 test "$tst_compi_socketpair" = "yes" &&
37180 test "$tst_allow_socketpair" = "yes"; then
37181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37182 $as_echo "yes" >&6; }
37184 cat >>confdefs.h <<_ACEOF
37185 #define HAVE_SOCKETPAIR 1
37188 ac_cv_func_socketpair="yes"
37190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37191 $as_echo "no" >&6; }
37192 ac_cv_func_socketpair="no"
37197 tst_links_strcasecmp="unknown"
37198 tst_proto_strcasecmp="unknown"
37199 tst_compi_strcasecmp="unknown"
37200 tst_allow_strcasecmp="unknown"
37202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37203 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37205 /* end confdefs.h. */
37208 #define strcasecmp innocuous_strcasecmp
37210 # include <limits.h>
37212 # include <assert.h>
37218 char strcasecmp ();
37219 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37225 return strcasecmp ();
37231 if ac_fn_c_try_link "$LINENO"; then :
37233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37234 $as_echo "yes" >&6; }
37235 tst_links_strcasecmp="yes"
37239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37240 $as_echo "no" >&6; }
37241 tst_links_strcasecmp="no"
37244 rm -f core conftest.err conftest.$ac_objext \
37245 conftest$ac_exeext conftest.$ac_ext
37247 if test "$tst_links_strcasecmp" = "yes"; then
37248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37249 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37251 /* end confdefs.h. */
37253 $curl_includes_string
37256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37257 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37260 $as_echo "yes" >&6; }
37261 tst_proto_strcasecmp="yes"
37265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37266 $as_echo "no" >&6; }
37267 tst_proto_strcasecmp="no"
37274 if test "$tst_proto_strcasecmp" = "yes"; then
37275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37276 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37278 /* end confdefs.h. */
37281 $curl_includes_string
37286 if(0 != strcasecmp(0, 0))
37294 if ac_fn_c_try_compile "$LINENO"; then :
37296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37297 $as_echo "yes" >&6; }
37298 tst_compi_strcasecmp="yes"
37302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 $as_echo "no" >&6; }
37304 tst_compi_strcasecmp="no"
37307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37310 if test "$tst_compi_strcasecmp" = "yes"; then
37311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37312 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37313 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37315 $as_echo "yes" >&6; }
37316 tst_allow_strcasecmp="yes"
37318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37319 $as_echo "no" >&6; }
37320 tst_allow_strcasecmp="no"
37324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37325 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37326 if test "$tst_links_strcasecmp" = "yes" &&
37327 test "$tst_proto_strcasecmp" = "yes" &&
37328 test "$tst_compi_strcasecmp" = "yes" &&
37329 test "$tst_allow_strcasecmp" = "yes"; then
37330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37331 $as_echo "yes" >&6; }
37333 cat >>confdefs.h <<_ACEOF
37334 #define HAVE_STRCASECMP 1
37337 ac_cv_func_strcasecmp="yes"
37339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37340 $as_echo "no" >&6; }
37341 ac_cv_func_strcasecmp="no"
37346 tst_links_strcmpi="unknown"
37347 tst_proto_strcmpi="unknown"
37348 tst_compi_strcmpi="unknown"
37349 tst_allow_strcmpi="unknown"
37351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37352 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37354 /* end confdefs.h. */
37357 #define strcmpi innocuous_strcmpi
37359 # include <limits.h>
37361 # include <assert.h>
37368 #if defined __stub_strcmpi || defined __stub___strcmpi
37380 if ac_fn_c_try_link "$LINENO"; then :
37382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37383 $as_echo "yes" >&6; }
37384 tst_links_strcmpi="yes"
37388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37389 $as_echo "no" >&6; }
37390 tst_links_strcmpi="no"
37393 rm -f core conftest.err conftest.$ac_objext \
37394 conftest$ac_exeext conftest.$ac_ext
37396 if test "$tst_links_strcmpi" = "yes"; then
37397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37398 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37400 /* end confdefs.h. */
37402 $curl_includes_string
37405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37406 $EGREP "strcmpi" >/dev/null 2>&1; then :
37408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37409 $as_echo "yes" >&6; }
37410 tst_proto_strcmpi="yes"
37414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37415 $as_echo "no" >&6; }
37416 tst_proto_strcmpi="no"
37423 if test "$tst_proto_strcmpi" = "yes"; then
37424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37425 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37427 /* end confdefs.h. */
37430 $curl_includes_string
37435 if(0 != strcmpi(0, 0))
37443 if ac_fn_c_try_compile "$LINENO"; then :
37445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37446 $as_echo "yes" >&6; }
37447 tst_compi_strcmpi="yes"
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37452 $as_echo "no" >&6; }
37453 tst_compi_strcmpi="no"
37456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37459 if test "$tst_compi_strcmpi" = "yes"; then
37460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37461 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37462 if test "x$curl_disallow_strcmpi" != "xyes"; then
37463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37464 $as_echo "yes" >&6; }
37465 tst_allow_strcmpi="yes"
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37468 $as_echo "no" >&6; }
37469 tst_allow_strcmpi="no"
37473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37474 $as_echo_n "checking if strcmpi might be used... " >&6; }
37475 if test "$tst_links_strcmpi" = "yes" &&
37476 test "$tst_proto_strcmpi" = "yes" &&
37477 test "$tst_compi_strcmpi" = "yes" &&
37478 test "$tst_allow_strcmpi" = "yes"; then
37479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37480 $as_echo "yes" >&6; }
37482 cat >>confdefs.h <<_ACEOF
37483 #define HAVE_STRCMPI 1
37486 ac_cv_func_strcmpi="yes"
37488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37489 $as_echo "no" >&6; }
37490 ac_cv_func_strcmpi="no"
37495 tst_links_strdup="unknown"
37496 tst_proto_strdup="unknown"
37497 tst_compi_strdup="unknown"
37498 tst_allow_strdup="unknown"
37500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37501 $as_echo_n "checking if strdup can be linked... " >&6; }
37502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37503 /* end confdefs.h. */
37506 #define strdup innocuous_strdup
37508 # include <limits.h>
37510 # include <assert.h>
37517 #if defined __stub_strdup || defined __stub___strdup
37529 if ac_fn_c_try_link "$LINENO"; then :
37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37532 $as_echo "yes" >&6; }
37533 tst_links_strdup="yes"
37537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37538 $as_echo "no" >&6; }
37539 tst_links_strdup="no"
37542 rm -f core conftest.err conftest.$ac_objext \
37543 conftest$ac_exeext conftest.$ac_ext
37545 if test "$tst_links_strdup" = "yes"; then
37546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37547 $as_echo_n "checking if strdup is prototyped... " >&6; }
37548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37549 /* end confdefs.h. */
37551 $curl_includes_string
37554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37555 $EGREP "strdup" >/dev/null 2>&1; then :
37557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37558 $as_echo "yes" >&6; }
37559 tst_proto_strdup="yes"
37563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37564 $as_echo "no" >&6; }
37565 tst_proto_strdup="no"
37572 if test "$tst_proto_strdup" = "yes"; then
37573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37574 $as_echo_n "checking if strdup is compilable... " >&6; }
37575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37576 /* end confdefs.h. */
37579 $curl_includes_string
37592 if ac_fn_c_try_compile "$LINENO"; then :
37594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37595 $as_echo "yes" >&6; }
37596 tst_compi_strdup="yes"
37600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37601 $as_echo "no" >&6; }
37602 tst_compi_strdup="no"
37605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37608 if test "$tst_compi_strdup" = "yes"; then
37609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37610 $as_echo_n "checking if strdup usage allowed... " >&6; }
37611 if test "x$curl_disallow_strdup" != "xyes"; then
37612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37613 $as_echo "yes" >&6; }
37614 tst_allow_strdup="yes"
37616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37617 $as_echo "no" >&6; }
37618 tst_allow_strdup="no"
37622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37623 $as_echo_n "checking if strdup might be used... " >&6; }
37624 if test "$tst_links_strdup" = "yes" &&
37625 test "$tst_proto_strdup" = "yes" &&
37626 test "$tst_compi_strdup" = "yes" &&
37627 test "$tst_allow_strdup" = "yes"; then
37628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37629 $as_echo "yes" >&6; }
37631 cat >>confdefs.h <<_ACEOF
37632 #define HAVE_STRDUP 1
37635 ac_cv_func_strdup="yes"
37637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37638 $as_echo "no" >&6; }
37639 ac_cv_func_strdup="no"
37644 tst_links_strerror_r="unknown"
37645 tst_proto_strerror_r="unknown"
37646 tst_compi_strerror_r="unknown"
37647 tst_glibc_strerror_r="unknown"
37648 tst_posix_strerror_r="unknown"
37649 tst_allow_strerror_r="unknown"
37650 tst_works_glibc_strerror_r="unknown"
37651 tst_works_posix_strerror_r="unknown"
37652 tst_glibc_strerror_r_type_arg3="unknown"
37653 tst_posix_strerror_r_type_arg3="unknown"
37655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37656 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37658 /* end confdefs.h. */
37661 #define strerror_r innocuous_strerror_r
37663 # include <limits.h>
37665 # include <assert.h>
37671 char strerror_r ();
37672 #if defined __stub_strerror_r || defined __stub___strerror_r
37678 return strerror_r ();
37684 if ac_fn_c_try_link "$LINENO"; then :
37686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37687 $as_echo "yes" >&6; }
37688 tst_links_strerror_r="yes"
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37693 $as_echo "no" >&6; }
37694 tst_links_strerror_r="no"
37697 rm -f core conftest.err conftest.$ac_objext \
37698 conftest$ac_exeext conftest.$ac_ext
37700 if test "$tst_links_strerror_r" = "yes"; then
37701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37702 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37704 /* end confdefs.h. */
37706 $curl_includes_string
37709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37710 $EGREP "strerror_r" >/dev/null 2>&1; then :
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37713 $as_echo "yes" >&6; }
37714 tst_proto_strerror_r="yes"
37718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37719 $as_echo "no" >&6; }
37720 tst_proto_strerror_r="no"
37727 if test "$tst_proto_strerror_r" = "yes"; then
37728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37729 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37731 /* end confdefs.h. */
37734 $curl_includes_string
37739 if(0 != strerror_r(0, 0, 0))
37747 if ac_fn_c_try_compile "$LINENO"; then :
37749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37750 $as_echo "yes" >&6; }
37751 tst_compi_strerror_r="yes"
37755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37756 $as_echo "no" >&6; }
37757 tst_compi_strerror_r="no"
37760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37763 if test "$tst_compi_strerror_r" = "yes"; then
37764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37765 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37766 tst_glibc_strerror_r_type_arg3="unknown"
37767 for arg3 in 'size_t' 'int' 'unsigned int'; do
37768 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37770 /* end confdefs.h. */
37773 $curl_includes_string
37774 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37779 if(0 != strerror_r(0, 0, 0))
37787 if ac_fn_c_try_compile "$LINENO"; then :
37789 tst_glibc_strerror_r_type_arg3="$arg3"
37792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37795 case "$tst_glibc_strerror_r_type_arg3" in
37797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37798 $as_echo "no" >&6; }
37799 tst_glibc_strerror_r="no"
37802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37803 $as_echo "yes" >&6; }
37804 tst_glibc_strerror_r="yes"
37809 if test "x$cross_compiling" != "xyes" &&
37810 test "$tst_glibc_strerror_r" = "yes"; then
37811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37812 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37813 if test "$cross_compiling" = yes; then :
37814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37816 as_fn_error $? "cannot run test program while cross compiling
37817 See \`config.log' for more details" "$LINENO" 5; }
37819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37820 /* end confdefs.h. */
37823 $curl_includes_stdlib
37824 $curl_includes_string
37825 # include <errno.h>
37833 string = strerror_r(EACCES, buffer, sizeof(buffer));
37835 exit(1); /* fail */
37837 exit(1); /* fail */
37846 if ac_fn_c_try_run "$LINENO"; then :
37848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37849 $as_echo "yes" >&6; }
37850 tst_works_glibc_strerror_r="yes"
37854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37855 $as_echo "no" >&6; }
37856 tst_works_glibc_strerror_r="no"
37859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37860 conftest.$ac_objext conftest.beam conftest.$ac_ext
37865 if test "$tst_compi_strerror_r" = "yes" &&
37866 test "$tst_works_glibc_strerror_r" != "yes"; then
37867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37868 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37869 tst_posix_strerror_r_type_arg3="unknown"
37870 for arg3 in 'size_t' 'int' 'unsigned int'; do
37871 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37873 /* end confdefs.h. */
37876 $curl_includes_string
37877 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
37882 if(0 != strerror_r(0, 0, 0))
37890 if ac_fn_c_try_compile "$LINENO"; then :
37892 tst_posix_strerror_r_type_arg3="$arg3"
37895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37898 case "$tst_posix_strerror_r_type_arg3" in
37900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37901 $as_echo "no" >&6; }
37902 tst_posix_strerror_r="no"
37905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37906 $as_echo "yes" >&6; }
37907 tst_posix_strerror_r="yes"
37912 if test "x$cross_compiling" != "xyes" &&
37913 test "$tst_posix_strerror_r" = "yes"; then
37914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37915 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37916 if test "$cross_compiling" = yes; then :
37917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37919 as_fn_error $? "cannot run test program while cross compiling
37920 See \`config.log' for more details" "$LINENO" 5; }
37922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37923 /* end confdefs.h. */
37926 $curl_includes_stdlib
37927 $curl_includes_string
37928 # include <errno.h>
37936 error = strerror_r(EACCES, buffer, sizeof(buffer));
37938 exit(1); /* fail */
37939 if(buffer[0] == '\0')
37940 exit(1); /* fail */
37949 if ac_fn_c_try_run "$LINENO"; then :
37951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37952 $as_echo "yes" >&6; }
37953 tst_works_posix_strerror_r="yes"
37957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37958 $as_echo "no" >&6; }
37959 tst_works_posix_strerror_r="no"
37962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37963 conftest.$ac_objext conftest.beam conftest.$ac_ext
37968 if test "$tst_works_glibc_strerror_r" = "yes"; then
37969 tst_posix_strerror_r="no"
37971 if test "$tst_works_posix_strerror_r" = "yes"; then
37972 tst_glibc_strerror_r="no"
37974 if test "$tst_glibc_strerror_r" = "yes" &&
37975 test "$tst_works_glibc_strerror_r" != "no" &&
37976 test "$tst_posix_strerror_r" != "yes"; then
37977 tst_allow_strerror_r="check"
37979 if test "$tst_posix_strerror_r" = "yes" &&
37980 test "$tst_works_posix_strerror_r" != "no" &&
37981 test "$tst_glibc_strerror_r" != "yes"; then
37982 tst_allow_strerror_r="check"
37984 if test "$tst_allow_strerror_r" = "check"; then
37985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
37986 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
37987 if test "x$curl_disallow_strerror_r" != "xyes"; then
37988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37989 $as_echo "yes" >&6; }
37990 tst_allow_strerror_r="yes"
37992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37993 $as_echo "no" >&6; }
37994 tst_allow_strerror_r="no"
37998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
37999 $as_echo_n "checking if strerror_r might be used... " >&6; }
38000 if test "$tst_links_strerror_r" = "yes" &&
38001 test "$tst_proto_strerror_r" = "yes" &&
38002 test "$tst_compi_strerror_r" = "yes" &&
38003 test "$tst_allow_strerror_r" = "yes"; then
38004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38005 $as_echo "yes" >&6; }
38006 if test "$tst_glibc_strerror_r" = "yes"; then
38008 cat >>confdefs.h <<_ACEOF
38009 #define HAVE_STRERROR_R 1
38013 cat >>confdefs.h <<_ACEOF
38014 #define HAVE_GLIBC_STRERROR_R 1
38018 cat >>confdefs.h <<_ACEOF
38019 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38023 if test "$tst_posix_strerror_r" = "yes"; then
38025 cat >>confdefs.h <<_ACEOF
38026 #define HAVE_STRERROR_R 1
38030 cat >>confdefs.h <<_ACEOF
38031 #define HAVE_POSIX_STRERROR_R 1
38035 cat >>confdefs.h <<_ACEOF
38036 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38040 ac_cv_func_strerror_r="yes"
38042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38043 $as_echo "no" >&6; }
38044 ac_cv_func_strerror_r="no"
38047 if test "$tst_compi_strerror_r" = "yes" &&
38048 test "$tst_allow_strerror_r" = "unknown"; then
38049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38050 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38056 tst_links_stricmp="unknown"
38057 tst_proto_stricmp="unknown"
38058 tst_compi_stricmp="unknown"
38059 tst_allow_stricmp="unknown"
38061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38062 $as_echo_n "checking if stricmp can be linked... " >&6; }
38063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38064 /* end confdefs.h. */
38067 #define stricmp innocuous_stricmp
38069 # include <limits.h>
38071 # include <assert.h>
38078 #if defined __stub_stricmp || defined __stub___stricmp
38090 if ac_fn_c_try_link "$LINENO"; then :
38092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38093 $as_echo "yes" >&6; }
38094 tst_links_stricmp="yes"
38098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38099 $as_echo "no" >&6; }
38100 tst_links_stricmp="no"
38103 rm -f core conftest.err conftest.$ac_objext \
38104 conftest$ac_exeext conftest.$ac_ext
38106 if test "$tst_links_stricmp" = "yes"; then
38107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38108 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38110 /* end confdefs.h. */
38112 $curl_includes_string
38115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38116 $EGREP "stricmp" >/dev/null 2>&1; then :
38118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38119 $as_echo "yes" >&6; }
38120 tst_proto_stricmp="yes"
38124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38125 $as_echo "no" >&6; }
38126 tst_proto_stricmp="no"
38133 if test "$tst_proto_stricmp" = "yes"; then
38134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38135 $as_echo_n "checking if stricmp is compilable... " >&6; }
38136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38137 /* end confdefs.h. */
38140 $curl_includes_string
38145 if(0 != stricmp(0, 0))
38153 if ac_fn_c_try_compile "$LINENO"; then :
38155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38156 $as_echo "yes" >&6; }
38157 tst_compi_stricmp="yes"
38161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38162 $as_echo "no" >&6; }
38163 tst_compi_stricmp="no"
38166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38169 if test "$tst_compi_stricmp" = "yes"; then
38170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38171 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38172 if test "x$curl_disallow_stricmp" != "xyes"; then
38173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38174 $as_echo "yes" >&6; }
38175 tst_allow_stricmp="yes"
38177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38178 $as_echo "no" >&6; }
38179 tst_allow_stricmp="no"
38183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38184 $as_echo_n "checking if stricmp might be used... " >&6; }
38185 if test "$tst_links_stricmp" = "yes" &&
38186 test "$tst_proto_stricmp" = "yes" &&
38187 test "$tst_compi_stricmp" = "yes" &&
38188 test "$tst_allow_stricmp" = "yes"; then
38189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38190 $as_echo "yes" >&6; }
38192 cat >>confdefs.h <<_ACEOF
38193 #define HAVE_STRICMP 1
38196 ac_cv_func_stricmp="yes"
38198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38199 $as_echo "no" >&6; }
38200 ac_cv_func_stricmp="no"
38205 tst_links_strncasecmp="unknown"
38206 tst_proto_strncasecmp="unknown"
38207 tst_compi_strncasecmp="unknown"
38208 tst_allow_strncasecmp="unknown"
38210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38211 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38213 /* end confdefs.h. */
38216 #define strncasecmp innocuous_strncasecmp
38218 # include <limits.h>
38220 # include <assert.h>
38226 char strncasecmp ();
38227 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38233 return strncasecmp ();
38239 if ac_fn_c_try_link "$LINENO"; then :
38241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38242 $as_echo "yes" >&6; }
38243 tst_links_strncasecmp="yes"
38247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38248 $as_echo "no" >&6; }
38249 tst_links_strncasecmp="no"
38252 rm -f core conftest.err conftest.$ac_objext \
38253 conftest$ac_exeext conftest.$ac_ext
38255 if test "$tst_links_strncasecmp" = "yes"; then
38256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38257 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38259 /* end confdefs.h. */
38261 $curl_includes_string
38264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38265 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38268 $as_echo "yes" >&6; }
38269 tst_proto_strncasecmp="yes"
38273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38274 $as_echo "no" >&6; }
38275 tst_proto_strncasecmp="no"
38282 if test "$tst_proto_strncasecmp" = "yes"; then
38283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38284 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38286 /* end confdefs.h. */
38289 $curl_includes_string
38294 if(0 != strncasecmp(0, 0, 0))
38302 if ac_fn_c_try_compile "$LINENO"; then :
38304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38305 $as_echo "yes" >&6; }
38306 tst_compi_strncasecmp="yes"
38310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38311 $as_echo "no" >&6; }
38312 tst_compi_strncasecmp="no"
38315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38318 if test "$tst_compi_strncasecmp" = "yes"; then
38319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38320 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38321 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38323 $as_echo "yes" >&6; }
38324 tst_allow_strncasecmp="yes"
38326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38327 $as_echo "no" >&6; }
38328 tst_allow_strncasecmp="no"
38332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38333 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38334 if test "$tst_links_strncasecmp" = "yes" &&
38335 test "$tst_proto_strncasecmp" = "yes" &&
38336 test "$tst_compi_strncasecmp" = "yes" &&
38337 test "$tst_allow_strncasecmp" = "yes"; then
38338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38339 $as_echo "yes" >&6; }
38341 cat >>confdefs.h <<_ACEOF
38342 #define HAVE_STRNCASECMP 1
38345 ac_cv_func_strncasecmp="yes"
38347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38348 $as_echo "no" >&6; }
38349 ac_cv_func_strncasecmp="no"
38354 tst_links_strncmpi="unknown"
38355 tst_proto_strncmpi="unknown"
38356 tst_compi_strncmpi="unknown"
38357 tst_allow_strncmpi="unknown"
38359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38360 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38362 /* end confdefs.h. */
38365 #define strncmpi innocuous_strncmpi
38367 # include <limits.h>
38369 # include <assert.h>
38376 #if defined __stub_strncmpi || defined __stub___strncmpi
38382 return strncmpi ();
38388 if ac_fn_c_try_link "$LINENO"; then :
38390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38391 $as_echo "yes" >&6; }
38392 tst_links_strncmpi="yes"
38396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38397 $as_echo "no" >&6; }
38398 tst_links_strncmpi="no"
38401 rm -f core conftest.err conftest.$ac_objext \
38402 conftest$ac_exeext conftest.$ac_ext
38404 if test "$tst_links_strncmpi" = "yes"; then
38405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38406 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38408 /* end confdefs.h. */
38410 $curl_includes_string
38413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38414 $EGREP "strncmpi" >/dev/null 2>&1; then :
38416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38417 $as_echo "yes" >&6; }
38418 tst_proto_strncmpi="yes"
38422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38423 $as_echo "no" >&6; }
38424 tst_proto_strncmpi="no"
38431 if test "$tst_proto_strncmpi" = "yes"; then
38432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38433 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38435 /* end confdefs.h. */
38438 $curl_includes_string
38443 if(0 != strncmpi(0, 0))
38451 if ac_fn_c_try_compile "$LINENO"; then :
38453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38454 $as_echo "yes" >&6; }
38455 tst_compi_strncmpi="yes"
38459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38460 $as_echo "no" >&6; }
38461 tst_compi_strncmpi="no"
38464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38467 if test "$tst_compi_strncmpi" = "yes"; then
38468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38469 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38470 if test "x$curl_disallow_strncmpi" != "xyes"; then
38471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38472 $as_echo "yes" >&6; }
38473 tst_allow_strncmpi="yes"
38475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38476 $as_echo "no" >&6; }
38477 tst_allow_strncmpi="no"
38481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38482 $as_echo_n "checking if strncmpi might be used... " >&6; }
38483 if test "$tst_links_strncmpi" = "yes" &&
38484 test "$tst_proto_strncmpi" = "yes" &&
38485 test "$tst_compi_strncmpi" = "yes" &&
38486 test "$tst_allow_strncmpi" = "yes"; then
38487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38488 $as_echo "yes" >&6; }
38490 cat >>confdefs.h <<_ACEOF
38491 #define HAVE_STRNCMPI 1
38494 ac_cv_func_strncmpi="yes"
38496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38497 $as_echo "no" >&6; }
38498 ac_cv_func_strncmpi="no"
38503 tst_links_strnicmp="unknown"
38504 tst_proto_strnicmp="unknown"
38505 tst_compi_strnicmp="unknown"
38506 tst_allow_strnicmp="unknown"
38508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38509 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38511 /* end confdefs.h. */
38514 #define strnicmp innocuous_strnicmp
38516 # include <limits.h>
38518 # include <assert.h>
38525 #if defined __stub_strnicmp || defined __stub___strnicmp
38531 return strnicmp ();
38537 if ac_fn_c_try_link "$LINENO"; then :
38539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38540 $as_echo "yes" >&6; }
38541 tst_links_strnicmp="yes"
38545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38546 $as_echo "no" >&6; }
38547 tst_links_strnicmp="no"
38550 rm -f core conftest.err conftest.$ac_objext \
38551 conftest$ac_exeext conftest.$ac_ext
38553 if test "$tst_links_strnicmp" = "yes"; then
38554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38555 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38557 /* end confdefs.h. */
38559 $curl_includes_string
38562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38563 $EGREP "strnicmp" >/dev/null 2>&1; then :
38565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38566 $as_echo "yes" >&6; }
38567 tst_proto_strnicmp="yes"
38571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38572 $as_echo "no" >&6; }
38573 tst_proto_strnicmp="no"
38580 if test "$tst_proto_strnicmp" = "yes"; then
38581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38582 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38584 /* end confdefs.h. */
38587 $curl_includes_string
38592 if(0 != strnicmp(0, 0))
38600 if ac_fn_c_try_compile "$LINENO"; then :
38602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38603 $as_echo "yes" >&6; }
38604 tst_compi_strnicmp="yes"
38608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38609 $as_echo "no" >&6; }
38610 tst_compi_strnicmp="no"
38613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38616 if test "$tst_compi_strnicmp" = "yes"; then
38617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38618 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38619 if test "x$curl_disallow_strnicmp" != "xyes"; then
38620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38621 $as_echo "yes" >&6; }
38622 tst_allow_strnicmp="yes"
38624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38625 $as_echo "no" >&6; }
38626 tst_allow_strnicmp="no"
38630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38631 $as_echo_n "checking if strnicmp might be used... " >&6; }
38632 if test "$tst_links_strnicmp" = "yes" &&
38633 test "$tst_proto_strnicmp" = "yes" &&
38634 test "$tst_compi_strnicmp" = "yes" &&
38635 test "$tst_allow_strnicmp" = "yes"; then
38636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38637 $as_echo "yes" >&6; }
38639 cat >>confdefs.h <<_ACEOF
38640 #define HAVE_STRNICMP 1
38643 ac_cv_func_strnicmp="yes"
38645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38646 $as_echo "no" >&6; }
38647 ac_cv_func_strnicmp="no"
38652 tst_links_strstr="unknown"
38653 tst_proto_strstr="unknown"
38654 tst_compi_strstr="unknown"
38655 tst_allow_strstr="unknown"
38657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38658 $as_echo_n "checking if strstr can be linked... " >&6; }
38659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38660 /* end confdefs.h. */
38663 #define strstr innocuous_strstr
38665 # include <limits.h>
38667 # include <assert.h>
38674 #if defined __stub_strstr || defined __stub___strstr
38686 if ac_fn_c_try_link "$LINENO"; then :
38688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38689 $as_echo "yes" >&6; }
38690 tst_links_strstr="yes"
38694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38695 $as_echo "no" >&6; }
38696 tst_links_strstr="no"
38699 rm -f core conftest.err conftest.$ac_objext \
38700 conftest$ac_exeext conftest.$ac_ext
38702 if test "$tst_links_strstr" = "yes"; then
38703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38704 $as_echo_n "checking if strstr is prototyped... " >&6; }
38705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38706 /* end confdefs.h. */
38708 $curl_includes_string
38711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38712 $EGREP "strstr" >/dev/null 2>&1; then :
38714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38715 $as_echo "yes" >&6; }
38716 tst_proto_strstr="yes"
38720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38721 $as_echo "no" >&6; }
38722 tst_proto_strstr="no"
38729 if test "$tst_proto_strstr" = "yes"; then
38730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38731 $as_echo_n "checking if strstr is compilable... " >&6; }
38732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38733 /* end confdefs.h. */
38736 $curl_includes_string
38741 if(0 != strstr(0, 0))
38749 if ac_fn_c_try_compile "$LINENO"; then :
38751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38752 $as_echo "yes" >&6; }
38753 tst_compi_strstr="yes"
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38758 $as_echo "no" >&6; }
38759 tst_compi_strstr="no"
38762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38765 if test "$tst_compi_strstr" = "yes"; then
38766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38767 $as_echo_n "checking if strstr usage allowed... " >&6; }
38768 if test "x$curl_disallow_strstr" != "xyes"; then
38769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38770 $as_echo "yes" >&6; }
38771 tst_allow_strstr="yes"
38773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38774 $as_echo "no" >&6; }
38775 tst_allow_strstr="no"
38779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38780 $as_echo_n "checking if strstr might be used... " >&6; }
38781 if test "$tst_links_strstr" = "yes" &&
38782 test "$tst_proto_strstr" = "yes" &&
38783 test "$tst_compi_strstr" = "yes" &&
38784 test "$tst_allow_strstr" = "yes"; then
38785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38786 $as_echo "yes" >&6; }
38788 cat >>confdefs.h <<_ACEOF
38789 #define HAVE_STRSTR 1
38792 ac_cv_func_strstr="yes"
38794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38795 $as_echo "no" >&6; }
38796 ac_cv_func_strstr="no"
38801 tst_links_strtok_r="unknown"
38802 tst_proto_strtok_r="unknown"
38803 tst_compi_strtok_r="unknown"
38804 tst_allow_strtok_r="unknown"
38806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38807 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38809 /* end confdefs.h. */
38812 #define strtok_r innocuous_strtok_r
38814 # include <limits.h>
38816 # include <assert.h>
38823 #if defined __stub_strtok_r || defined __stub___strtok_r
38829 return strtok_r ();
38835 if ac_fn_c_try_link "$LINENO"; then :
38837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38838 $as_echo "yes" >&6; }
38839 tst_links_strtok_r="yes"
38843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38844 $as_echo "no" >&6; }
38845 tst_links_strtok_r="no"
38848 rm -f core conftest.err conftest.$ac_objext \
38849 conftest$ac_exeext conftest.$ac_ext
38851 if test "$tst_links_strtok_r" = "yes"; then
38852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38853 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38855 /* end confdefs.h. */
38857 $curl_includes_string
38860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38861 $EGREP "strtok_r" >/dev/null 2>&1; then :
38863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38864 $as_echo "yes" >&6; }
38865 tst_proto_strtok_r="yes"
38869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38870 $as_echo "no" >&6; }
38871 tst_proto_strtok_r="no"
38878 if test "$tst_proto_strtok_r" = "yes"; then
38879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
38880 $as_echo_n "checking if strtok_r is compilable... " >&6; }
38881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38882 /* end confdefs.h. */
38885 $curl_includes_string
38890 if(0 != strtok_r(0, 0, 0))
38898 if ac_fn_c_try_compile "$LINENO"; then :
38900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38901 $as_echo "yes" >&6; }
38902 tst_compi_strtok_r="yes"
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38907 $as_echo "no" >&6; }
38908 tst_compi_strtok_r="no"
38911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38914 if test "$tst_compi_strtok_r" = "yes"; then
38915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
38916 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
38917 if test "x$curl_disallow_strtok_r" != "xyes"; then
38918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38919 $as_echo "yes" >&6; }
38920 tst_allow_strtok_r="yes"
38922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38923 $as_echo "no" >&6; }
38924 tst_allow_strtok_r="no"
38928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
38929 $as_echo_n "checking if strtok_r might be used... " >&6; }
38930 if test "$tst_links_strtok_r" = "yes" &&
38931 test "$tst_proto_strtok_r" = "yes" &&
38932 test "$tst_compi_strtok_r" = "yes" &&
38933 test "$tst_allow_strtok_r" = "yes"; then
38934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38935 $as_echo "yes" >&6; }
38937 cat >>confdefs.h <<_ACEOF
38938 #define HAVE_STRTOK_R 1
38941 ac_cv_func_strtok_r="yes"
38943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38944 $as_echo "no" >&6; }
38945 ac_cv_func_strtok_r="no"
38950 tst_links_strtoll="unknown"
38951 tst_proto_strtoll="unknown"
38952 tst_compi_strtoll="unknown"
38953 tst_allow_strtoll="unknown"
38955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
38956 $as_echo_n "checking if strtoll can be linked... " >&6; }
38957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38958 /* end confdefs.h. */
38961 #define strtoll innocuous_strtoll
38963 # include <limits.h>
38965 # include <assert.h>
38972 #if defined __stub_strtoll || defined __stub___strtoll
38984 if ac_fn_c_try_link "$LINENO"; then :
38986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38987 $as_echo "yes" >&6; }
38988 tst_links_strtoll="yes"
38992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38993 $as_echo "no" >&6; }
38994 tst_links_strtoll="no"
38997 rm -f core conftest.err conftest.$ac_objext \
38998 conftest$ac_exeext conftest.$ac_ext
39000 if test "$tst_links_strtoll" = "yes"; then
39001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39002 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39004 /* end confdefs.h. */
39006 $curl_includes_stdlib
39009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39010 $EGREP "strtoll" >/dev/null 2>&1; then :
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39013 $as_echo "yes" >&6; }
39014 tst_proto_strtoll="yes"
39018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39019 $as_echo "no" >&6; }
39020 tst_proto_strtoll="no"
39027 if test "$tst_proto_strtoll" = "yes"; then
39028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39029 $as_echo_n "checking if strtoll is compilable... " >&6; }
39030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39031 /* end confdefs.h. */
39034 $curl_includes_stdlib
39039 if(0 != strtoll(0, 0, 0))
39047 if ac_fn_c_try_compile "$LINENO"; then :
39049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39050 $as_echo "yes" >&6; }
39051 tst_compi_strtoll="yes"
39055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39056 $as_echo "no" >&6; }
39057 tst_compi_strtoll="no"
39060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39063 if test "$tst_compi_strtoll" = "yes"; then
39064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39065 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39066 if test "x$curl_disallow_strtoll" != "xyes"; then
39067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39068 $as_echo "yes" >&6; }
39069 tst_allow_strtoll="yes"
39071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39072 $as_echo "no" >&6; }
39073 tst_allow_strtoll="no"
39077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39078 $as_echo_n "checking if strtoll might be used... " >&6; }
39079 if test "$tst_links_strtoll" = "yes" &&
39080 test "$tst_proto_strtoll" = "yes" &&
39081 test "$tst_compi_strtoll" = "yes" &&
39082 test "$tst_allow_strtoll" = "yes"; then
39083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39084 $as_echo "yes" >&6; }
39086 cat >>confdefs.h <<_ACEOF
39087 #define HAVE_STRTOLL 1
39090 ac_cv_func_strtoll="yes"
39092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39093 $as_echo "no" >&6; }
39094 ac_cv_func_strtoll="no"
39098 curl_includes_sys_uio="\
39099 /* includes start */
39100 #ifdef HAVE_SYS_TYPES_H
39101 # include <sys/types.h>
39103 #ifdef HAVE_SYS_UIO_H
39104 # include <sys/uio.h>
39106 /* includes end */"
39107 for ac_header in sys/types.h sys/uio.h
39109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39113 cat >>confdefs.h <<_ACEOF
39114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39124 tst_links_writev="unknown"
39125 tst_proto_writev="unknown"
39126 tst_compi_writev="unknown"
39127 tst_allow_writev="unknown"
39129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39130 $as_echo_n "checking if writev can be linked... " >&6; }
39131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39132 /* end confdefs.h. */
39135 #define writev innocuous_writev
39137 # include <limits.h>
39139 # include <assert.h>
39146 #if defined __stub_writev || defined __stub___writev
39158 if ac_fn_c_try_link "$LINENO"; then :
39160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39161 $as_echo "yes" >&6; }
39162 tst_links_writev="yes"
39166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39167 $as_echo "no" >&6; }
39168 tst_links_writev="no"
39171 rm -f core conftest.err conftest.$ac_objext \
39172 conftest$ac_exeext conftest.$ac_ext
39174 if test "$tst_links_writev" = "yes"; then
39175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39176 $as_echo_n "checking if writev is prototyped... " >&6; }
39177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39178 /* end confdefs.h. */
39180 $curl_includes_sys_uio
39183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39184 $EGREP "writev" >/dev/null 2>&1; then :
39186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39187 $as_echo "yes" >&6; }
39188 tst_proto_writev="yes"
39192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39193 $as_echo "no" >&6; }
39194 tst_proto_writev="no"
39201 if test "$tst_proto_writev" = "yes"; then
39202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39203 $as_echo_n "checking if writev is compilable... " >&6; }
39204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39205 /* end confdefs.h. */
39208 $curl_includes_sys_uio
39213 if(0 != writev(0, 0, 0))
39221 if ac_fn_c_try_compile "$LINENO"; then :
39223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39224 $as_echo "yes" >&6; }
39225 tst_compi_writev="yes"
39229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39230 $as_echo "no" >&6; }
39231 tst_compi_writev="no"
39234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39237 if test "$tst_compi_writev" = "yes"; then
39238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39239 $as_echo_n "checking if writev usage allowed... " >&6; }
39240 if test "x$curl_disallow_writev" != "xyes"; then
39241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39242 $as_echo "yes" >&6; }
39243 tst_allow_writev="yes"
39245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39246 $as_echo "no" >&6; }
39247 tst_allow_writev="no"
39251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39252 $as_echo_n "checking if writev might be used... " >&6; }
39253 if test "$tst_links_writev" = "yes" &&
39254 test "$tst_proto_writev" = "yes" &&
39255 test "$tst_compi_writev" = "yes" &&
39256 test "$tst_allow_writev" = "yes"; then
39257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39258 $as_echo "yes" >&6; }
39260 cat >>confdefs.h <<_ACEOF
39261 #define HAVE_WRITEV 1
39264 ac_cv_func_writev="yes"
39266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39267 $as_echo "no" >&6; }
39268 ac_cv_func_writev="no"
39276 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39277 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39281 for ac_func in fork \
39301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39303 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39304 cat >>confdefs.h <<_ACEOF
39305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39312 eval skipcheck=\$skipcheck_$func
39313 if test "x$skipcheck" != "xyes"; then
39314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39315 $as_echo_n "checking deeper for $func... " >&6; }
39316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39317 /* end confdefs.h. */
39331 if ac_fn_c_try_link "$LINENO"; then :
39333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39334 $as_echo "yes" >&6; }
39335 eval "ac_cv_func_$func=yes"
39337 cat >>confdefs.h <<_ACEOF
39338 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39345 $as_echo "but still no" >&6; }
39348 rm -f core conftest.err conftest.$ac_objext \
39349 conftest$ac_exeext conftest.$ac_ext
39357 for ac_header in sys/types.h sys/socket.h netdb.h
39359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39362 cat >>confdefs.h <<_ACEOF
39363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39372 $as_echo_n "checking for getnameinfo... " >&6; }
39373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39374 /* end confdefs.h. */
39377 #define getnameinfo innocuous_getnameinfo
39379 # include <limits.h>
39381 # include <assert.h>
39387 char getnameinfo ();
39388 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39394 return getnameinfo ();
39400 if ac_fn_c_try_link "$LINENO"; then :
39402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39403 $as_echo "yes" >&6; }
39404 curl_cv_getnameinfo="yes"
39408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39409 $as_echo "no" >&6; }
39410 curl_cv_getnameinfo="no"
39413 rm -f core conftest.err conftest.$ac_objext \
39414 conftest$ac_exeext conftest.$ac_ext
39416 if test "$curl_cv_getnameinfo" != "yes"; then
39417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39418 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39420 /* end confdefs.h. */
39434 if ac_fn_c_try_link "$LINENO"; then :
39436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39437 $as_echo "yes" >&6; }
39438 curl_cv_getnameinfo="yes"
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39443 $as_echo "but still no" >&6; }
39444 curl_cv_getnameinfo="no"
39447 rm -f core conftest.err conftest.$ac_objext \
39448 conftest$ac_exeext conftest.$ac_ext
39451 if test "$curl_cv_getnameinfo" != "yes"; then
39452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39453 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39455 /* end confdefs.h. */
39459 #ifdef HAVE_WINDOWS_H
39460 #ifndef WIN32_LEAN_AND_MEAN
39461 #define WIN32_LEAN_AND_MEAN
39463 #include <windows.h>
39464 #ifdef HAVE_WINSOCK2_H
39465 #include <winsock2.h>
39466 #ifdef HAVE_WS2TCPIP_H
39467 #include <ws2tcpip.h>
39471 #ifdef HAVE_SYS_TYPES_H
39472 #include <sys/types.h>
39474 #ifdef HAVE_SYS_SOCKET_H
39475 #include <sys/socket.h>
39477 #ifdef HAVE_NETDB_H
39485 getnameinfo(0, 0, 0, 0, 0, 0, 0);
39492 if ac_fn_c_try_link "$LINENO"; then :
39494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39495 $as_echo "yes" >&6; }
39496 curl_cv_getnameinfo="yes"
39500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39501 $as_echo "but still no" >&6; }
39502 curl_cv_getnameinfo="no"
39505 rm -f core conftest.err conftest.$ac_objext \
39506 conftest$ac_exeext conftest.$ac_ext
39509 if test "$curl_cv_getnameinfo" = "yes"; then
39510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39511 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39512 if ${curl_cv_func_getnameinfo_args+:} false; then :
39513 $as_echo_n "(cached) " >&6
39516 curl_cv_func_getnameinfo_args="unknown"
39517 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39518 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39519 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39520 for gni_arg7 in 'int' 'unsigned int'; do
39521 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39523 /* end confdefs.h. */
39527 #ifdef HAVE_WINDOWS_H
39528 #ifndef WIN32_LEAN_AND_MEAN
39529 #define WIN32_LEAN_AND_MEAN
39531 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39532 #undef _WIN32_WINNT
39533 #define _WIN32_WINNT 0x0501
39535 #include <windows.h>
39536 #ifdef HAVE_WINSOCK2_H
39537 #include <winsock2.h>
39538 #ifdef HAVE_WS2TCPIP_H
39539 #include <ws2tcpip.h>
39542 #define GNICALLCONV WSAAPI
39544 #ifdef HAVE_SYS_TYPES_H
39545 #include <sys/types.h>
39547 #ifdef HAVE_SYS_SOCKET_H
39548 #include <sys/socket.h>
39550 #ifdef HAVE_NETDB_H
39553 #define GNICALLCONV
39555 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
39556 char *, $gni_arg46,
39557 char *, $gni_arg46,
39564 $gni_arg46 hostlen=0;
39565 $gni_arg46 servlen=0;
39567 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39574 if ac_fn_c_try_compile "$LINENO"; then :
39576 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39588 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39589 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39591 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39593 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39595 gni_prev_IFS=$IFS; IFS=','
39596 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39600 gni_qual_type_arg1=$1
39603 cat >>confdefs.h <<_ACEOF
39604 #define GETNAMEINFO_TYPE_ARG2 $2
39608 cat >>confdefs.h <<_ACEOF
39609 #define GETNAMEINFO_TYPE_ARG46 $3
39613 cat >>confdefs.h <<_ACEOF
39614 #define GETNAMEINFO_TYPE_ARG7 $4
39620 case $prev_sh_opts in
39628 case "$gni_qual_type_arg1" in
39630 gni_qual_arg1=const
39631 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39635 gni_type_arg1=$gni_qual_type_arg1
39640 cat >>confdefs.h <<_ACEOF
39641 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39645 cat >>confdefs.h <<_ACEOF
39646 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39650 case $prev_sh_opts in
39659 cat >>confdefs.h <<_ACEOF
39660 #define HAVE_GETNAMEINFO 1
39663 ac_cv_func_getnameinfo="yes"
39668 if test "$ipv6" = "yes"; then
39669 if test "$ac_cv_func_getaddrinfo" = "yes"; then
39671 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39677 for ac_header in stdio.h sys/types.h sys/socket.h \
39678 netdb.h netinet/in.h arpa/inet.h
39680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39681 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39683 cat >>confdefs.h <<_ACEOF
39684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39693 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39694 if ${ac_cv_working_ni_withscopeid+:} false; then :
39695 $as_echo_n "(cached) " >&6
39698 if test "$cross_compiling" = yes; then :
39700 # Program is not run when cross-compiling. So we assume
39701 # NI_WITHSCOPEID will work if we are able to compile it.
39702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39703 /* end confdefs.h. */
39706 #include <sys/types.h>
39707 #include <sys/socket.h>
39713 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39720 if ac_fn_c_try_compile "$LINENO"; then :
39722 ac_cv_working_ni_withscopeid="yes"
39726 ac_cv_working_ni_withscopeid="no"
39729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39733 /* end confdefs.h. */
39736 #ifdef HAVE_STDLIB_H
39737 #include <stdlib.h>
39739 #ifdef HAVE_STDIO_H
39742 #ifdef HAVE_SYS_TYPES_H
39743 #include <sys/types.h>
39745 #ifdef HAVE_SYS_SOCKET_H
39746 #include <sys/socket.h>
39748 #ifdef HAVE_NETDB_H
39751 #ifdef HAVE_NETINET_IN_H
39752 #include <netinet/in.h>
39754 #ifdef HAVE_ARPA_INET_H
39755 #include <arpa/inet.h>
39761 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39762 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39763 struct sockaddr_storage sa;
39765 unsigned char sa[256];
39767 char hostbuf[NI_MAXHOST];
39769 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39770 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39771 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39772 int fd = socket(AF_INET6, SOCK_STREAM, 0);
39774 perror("socket()");
39775 return 1; /* Error creating socket */
39777 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39779 perror("getsockname()");
39780 return 2; /* Error retrieving socket name */
39782 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39784 printf("rc = %s\n", gai_strerror(rc));
39785 return 3; /* Error translating socket address */
39787 return 0; /* Ok, NI_WITHSCOPEID works */
39789 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39794 } # AC-LANG-PROGRAM
39797 if ac_fn_c_try_run "$LINENO"; then :
39799 # Exit code == 0. Program worked.
39800 ac_cv_working_ni_withscopeid="yes"
39804 # Exit code != 0. Program failed.
39805 ac_cv_working_ni_withscopeid="no"
39808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39809 conftest.$ac_objext conftest.beam conftest.$ac_ext
39814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
39815 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39816 case "$ac_cv_working_ni_withscopeid" in
39819 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39828 tst_method="unknown"
39830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39831 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39832 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
39833 tst_method="fcntl O_NONBLOCK"
39834 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
39835 tst_method="ioctl FIONBIO"
39836 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
39837 tst_method="ioctlsocket FIONBIO"
39838 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39839 tst_method="IoctlSocket FIONBIO"
39840 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
39841 tst_method="setsockopt SO_NONBLOCK"
39843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39844 $as_echo "$tst_method" >&6; }
39845 if test "$tst_method" = "unknown"; then
39846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39847 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39852 # Extract the first word of "perl", so it can be a program name with args.
39853 set dummy perl; ac_word=$2
39854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39855 $as_echo_n "checking for $ac_word... " >&6; }
39856 if ${ac_cv_path_PERL+:} false; then :
39857 $as_echo_n "(cached) " >&6
39861 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39865 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39866 for as_dir in $as_dummy
39869 test -z "$as_dir" && as_dir=.
39870 for ac_exec_ext in '' $ac_executable_extensions; do
39871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39872 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39883 PERL=$ac_cv_path_PERL
39884 if test -n "$PERL"; then
39885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39886 $as_echo "$PERL" >&6; }
39888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39889 $as_echo "no" >&6; }
39895 for ac_prog in gnroff nroff
39897 # Extract the first word of "$ac_prog", so it can be a program name with args.
39898 set dummy $ac_prog; ac_word=$2
39899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39900 $as_echo_n "checking for $ac_word... " >&6; }
39901 if ${ac_cv_path_NROFF+:} false; then :
39902 $as_echo_n "(cached) " >&6
39906 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
39909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39910 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
39911 for as_dir in $as_dummy
39914 test -z "$as_dir" && as_dir=.
39915 for ac_exec_ext in '' $ac_executable_extensions; do
39916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39917 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
39918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39928 NROFF=$ac_cv_path_NROFF
39929 if test -n "$NROFF"; then
39930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
39931 $as_echo "$NROFF" >&6; }
39933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39934 $as_echo "no" >&6; }
39938 test -n "$NROFF" && break
39943 if test -n "$NROFF"; then
39945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
39946 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
39948 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
39949 if test -z "$mancheck"; then
39951 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
39952 if test -z "$mancheck"; then
39954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
39955 $as_echo "failed" >&6; }
39956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
39957 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
39959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39960 $as_echo "$MANOPT" >&6; }
39963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39964 $as_echo "$MANOPT" >&6; }
39969 if test -z "$MANOPT"
39971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
39972 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
39977 if test "$USE_MANUAL" = "1"; then
39979 $as_echo "#define USE_MANUAL 1" >>confdefs.h
39981 curl_manual_msg="enabled"
39984 if test x"$USE_MANUAL" = x1; then
39986 USE_MANUAL_FALSE='#'
39988 USE_MANUAL_TRUE='#'
39997 if test "$want_ares" = "yes"; then
39998 clean_CPPFLAGS="$CPPFLAGS"
39999 clean_LDFLAGS="$LDFLAGS"
40001 embedded_ares="unknown"
40002 configure_runpath=`pwd`
40003 embedded_ares_builddir="$configure_runpath/ares"
40004 if test -n "$want_ares_path"; then
40005 ares_CPPFLAGS="-I$want_ares_path/include"
40006 ares_LDFLAGS="-L$want_ares_path/lib"
40007 ares_LIBS="-lcares"
40009 if test -d "$srcdir/ares"; then
40010 embedded_ares="yes"
40011 subdirs="$subdirs ares"
40014 ares_LDFLAGS="-L$embedded_ares_builddir"
40015 ares_LIBS="-lcares"
40019 ares_LIBS="-lcares"
40023 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
40024 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
40025 LIBS="$ares_LIBS $clean_LIBS"
40027 if test "$embedded_ares" != "yes"; then
40028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40029 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40031 /* end confdefs.h. */
40035 /* set of dummy functions in case c-ares was built with debug */
40036 void curl_dofree() { }
40037 void curl_sclose() { }
40038 void curl_domalloc() { }
40039 void curl_docalloc() { }
40040 void curl_socket() { }
40045 ares_channel channel;
40046 ares_cancel(channel); /* added in 1.2.0 */
40047 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40048 ares_dup(&channel, channel); /* added in 1.6.0 */
40055 if ac_fn_c_try_link "$LINENO"; then :
40057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40058 $as_echo "yes" >&6; }
40062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40063 $as_echo "no" >&6; }
40064 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40065 CPPFLAGS="$clean_CPPFLAGS"
40066 LDFLAGS="$clean_LDFLAGS"
40072 rm -f core conftest.err conftest.$ac_objext \
40073 conftest$ac_exeext conftest.$ac_ext
40075 if test "$want_ares" = "yes"; then
40077 $as_echo "#define USE_ARES 1" >>confdefs.h
40081 curl_res_msg="c-ares"
40085 if test x$embedded_ares = xyes; then
40086 USE_EMBEDDED_ARES_TRUE=
40087 USE_EMBEDDED_ARES_FALSE='#'
40089 USE_EMBEDDED_ARES_TRUE='#'
40090 USE_EMBEDDED_ARES_FALSE=
40094 if test "x$ac_cv_native_windows" != "xyes" &&
40095 test "x$enable_shared" = "xyes"; then
40096 build_libhostname=yes
40098 build_libhostname=no
40100 if test x$build_libhostname = xyes; then
40101 BUILD_LIBHOSTNAME_TRUE=
40102 BUILD_LIBHOSTNAME_FALSE='#'
40104 BUILD_LIBHOSTNAME_TRUE='#'
40105 BUILD_LIBHOSTNAME_FALSE=
40110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40111 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40112 OPT_THRES="default"
40113 # Check whether --enable-threaded_resolver was given.
40114 if test "${enable_threaded_resolver+set}" = set; then :
40115 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40118 case "$OPT_THRES" in
40126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40127 $as_echo "$want_thres" >&6; }
40130 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
40131 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
40134 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no"; then
40135 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40136 if test "x$ac_cv_header_pthread_h" = xyes; then :
40138 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40140 save_CFLAGS="$CFLAGS"
40142 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40143 if test "x$ac_cv_func_pthread_create" = xyes; then :
40144 USE_THREADS_POSIX=1
40148 if test "$USE_THREADS_POSIX" != "1"
40150 CFLAGS="$CFLAGS -pthread"
40151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40152 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40153 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40154 $as_echo_n "(cached) " >&6
40156 ac_check_lib_save_LIBS=$LIBS
40157 LIBS="-lpthread $LIBS"
40158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40159 /* end confdefs.h. */
40165 char pthread_create ();
40168 return pthread_create ();
40173 if ac_fn_c_try_link "$LINENO"; then :
40174 ac_cv_lib_pthread_pthread_create=yes
40176 ac_cv_lib_pthread_pthread_create=no
40178 rm -f core conftest.err conftest.$ac_objext \
40179 conftest$ac_exeext conftest.$ac_ext
40180 LIBS=$ac_check_lib_save_LIBS
40182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40183 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40184 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40185 USE_THREADS_POSIX=1
40187 CFLAGS="$save_CFLAGS"
40192 if test "x$USE_THREADS_POSIX" = "x1"
40195 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40197 curl_res_msg="POSIX threaded"
40207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40208 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40209 # Check whether --enable-verbose was given.
40210 if test "${enable_verbose+set}" = set; then :
40211 enableval=$enable_verbose; case "$enableval" in
40213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40214 $as_echo "no" >&6; }
40216 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40218 curl_verbose_msg="no"
40220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40221 $as_echo "yes" >&6; }
40225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40226 $as_echo "yes" >&6; }
40231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40232 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40233 # Check whether --enable-sspi was given.
40234 if test "${enable_sspi+set}" = set; then :
40235 enableval=$enable_sspi; case "$enableval" in
40237 if test "$ac_cv_native_windows" = "yes"; then
40238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40239 $as_echo "yes" >&6; }
40241 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40245 curl_sspi_msg="enabled"
40247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40248 $as_echo "no" >&6; }
40249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40250 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40254 if test "x$WINSSL_ENABLED" = "x1"; then
40255 # --with-winssl implies --enable-sspi
40256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40257 $as_echo "yes" >&6; }
40259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40260 $as_echo "no" >&6; }
40265 if test "x$WINSSL_ENABLED" = "x1"; then
40266 # --with-winssl implies --enable-sspi
40267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40268 $as_echo "yes" >&6; }
40270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40271 $as_echo "no" >&6; }
40277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40278 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40279 # Check whether --enable-crypto-auth was given.
40280 if test "${enable_crypto_auth+set}" = set; then :
40281 enableval=$enable_crypto_auth; case "$enableval" in
40283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40284 $as_echo "no" >&6; }
40286 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40288 CURL_DISABLE_CRYPTO_AUTH=1
40290 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40291 $as_echo "yes" >&6; }
40295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40296 $as_echo "yes" >&6; }
40302 OPT_NTLM_WB="default"
40303 # Check whether --enable-ntlm-wb was given.
40304 if test "${enable_ntlm_wb+set}" = set; then :
40305 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40308 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40309 case "$OPT_NTLM_WB" in
40318 if test -n "$enableval" && test "$enableval" != "yes"; then
40319 want_ntlm_wb_file="$enableval"
40326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40327 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40328 if test "$ac_cv_native_windows" = "yes" ||
40329 test "x$SSL_ENABLED" = "x"; then
40330 want_ntlm_wb_file=""
40333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40334 $as_echo "$want_ntlm_wb" >&6; }
40335 if test "$want_ntlm_wb" = "yes"; then
40337 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40340 cat >>confdefs.h <<_ACEOF
40341 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40349 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40350 # Check whether --enable-tls-srp was given.
40351 if test "${enable_tls_srp+set}" = set; then :
40352 enableval=$enable_tls_srp; case "$enableval" in
40354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40355 $as_echo "no" >&6; }
40357 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40361 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40362 $as_echo "yes" >&6; }
40367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40368 $as_echo "yes" >&6; }
40374 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40376 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40379 curl_tls_srp_msg="enabled"
40382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40383 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40384 # Check whether --enable-unix-sockets was given.
40385 if test "${enable_unix_sockets+set}" = set; then :
40386 enableval=$enable_unix_sockets; case "$enableval" in
40387 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40388 $as_echo "no" >&6; }
40389 want_unix_sockets=no
40391 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40392 $as_echo "yes" >&6; }
40393 want_unix_sockets=yes
40398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40399 $as_echo "auto" >&6; }
40400 want_unix_sockets=auto
40405 if test "x$want_unix_sockets" != "xno"; then
40406 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40407 #include <sys/un.h>
40410 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40413 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40417 curl_unix_sockets_msg="enabled"
40421 if test "x$want_unix_sockets" = "xyes"; then
40422 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40430 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40431 # Check whether --enable-cookies was given.
40432 if test "${enable_cookies+set}" = set; then :
40433 enableval=$enable_cookies; case "$enableval" in
40435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40436 $as_echo "no" >&6; }
40438 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40441 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40442 $as_echo "yes" >&6; }
40446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40447 $as_echo "yes" >&6; }
40453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40454 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40455 CFLAG_CURL_SYMBOL_HIDING=""
40456 doing_symbol_hiding="no"
40457 if test x"$ac_cv_native_windows" != "xyes" &&
40458 test "$want_symbol_hiding" = "yes" &&
40459 test "$supports_symbol_hiding" = "yes"; then
40460 doing_symbol_hiding="yes"
40461 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40463 cat >>confdefs.h <<_ACEOF
40464 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40468 $as_echo "yes" >&6; }
40470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40471 $as_echo "no" >&6; }
40473 if test x$doing_symbol_hiding = xyes; then
40474 DOING_CURL_SYMBOL_HIDING_TRUE=
40475 DOING_CURL_SYMBOL_HIDING_FALSE='#'
40477 DOING_CURL_SYMBOL_HIDING_TRUE='#'
40478 DOING_CURL_SYMBOL_HIDING_FALSE=
40485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
40486 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
40487 # Check whether --enable-soname-bump was given.
40488 if test "${enable_soname_bump+set}" = set; then :
40489 enableval=$enable_soname_bump; case "$enableval" in
40490 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40491 $as_echo "yes" >&6; }
40495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40496 $as_echo "no" >&6; }
40500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
40501 $as_echo "$soname_bump" >&6; }
40505 if test x$soname_bump = xyes; then
40507 SONAME_BUMP_FALSE='#'
40509 SONAME_BUMP_TRUE='#'
40523 if test x$cross_compiling = xyes; then
40524 CROSSCOMPILING_TRUE=
40525 CROSSCOMPILING_FALSE='#'
40527 CROSSCOMPILING_TRUE='#'
40528 CROSSCOMPILING_FALSE=
40532 ENABLE_SHARED="$enable_shared"
40535 ENABLE_STATIC="$enable_static"
40540 if test "x$OPENSSL_ENABLED" = "x1"; then
40541 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40542 elif test -n "$SSL_ENABLED"; then
40543 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40545 if test "x$IPV6_ENABLED" = "x1"; then
40546 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40548 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40549 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40551 if test "x$HAVE_LIBZ" = "x1"; then
40552 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40554 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
40555 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40557 if test "x$IDN_ENABLED" = "x1"; then
40558 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40560 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40561 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40564 if test "x$HAVE_GSSAPI" = "x1"; then
40565 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40568 if test "x$curl_psl_msg" = "xyes"; then
40569 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40572 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40573 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40574 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40577 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40578 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40579 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40582 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40583 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40584 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
40585 -o "x$DARWINSSL_ENABLED" = "x1"; then
40586 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40588 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40589 "x$NTLM_WB_ENABLED" = "x1"; then
40590 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40595 if test "x$USE_TLS_SRP" = "x1"; then
40596 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40599 if test "x$USE_NGHTTP2" = "x1"; then
40600 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40605 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40606 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40607 if test "x$SSL_ENABLED" = "x1"; then
40608 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40611 if test "x$CURL_DISABLE_FTP" != "x1"; then
40612 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40613 if test "x$SSL_ENABLED" = "x1"; then
40614 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40617 if test "x$CURL_DISABLE_FILE" != "x1"; then
40618 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40620 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40621 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40623 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40624 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40625 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40626 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40627 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
40628 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40632 if test "x$CURL_DISABLE_DICT" != "x1"; then
40633 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40635 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40636 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40638 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40639 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40641 if test "x$CURL_DISABLE_POP3" != "x1"; then
40642 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40643 if test "x$SSL_ENABLED" = "x1"; then
40644 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40647 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40648 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40649 if test "x$SSL_ENABLED" = "x1"; then
40650 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40653 if test "x$CURL_DISABLE_SMB" != "x1" \
40654 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40655 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40656 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
40657 -o "x$DARWINSSL_ENABLED" = "x1" \); then
40658 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40659 if test "x$SSL_ENABLED" = "x1"; then
40660 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40663 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40664 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40665 if test "x$SSL_ENABLED" = "x1"; then
40666 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40669 if test "x$USE_LIBSSH2" = "x1"; then
40670 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40671 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40673 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40674 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40676 if test "x$USE_LIBRTMP" = "x1"; then
40677 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40680 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40691 squeeze LIBCURL_LIBS
40692 squeeze CURL_NETWORK_LIBS
40693 squeeze CURL_NETWORK_AND_TIME_LIBS
40695 squeeze SUPPORT_FEATURES
40696 squeeze SUPPORT_PROTOCOLS
40701 for xc_word in $LIBS; do
40707 xc_bad_var_libs=yes
40711 if test $xc_bad_var_libs = yes; then
40712 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40713 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40714 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40715 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40719 xc_bad_var_ldflags=no
40720 for xc_word in $LDFLAGS; do
40723 xc_bad_var_ldflags=yes
40726 xc_bad_var_ldflags=yes
40729 xc_bad_var_ldflags=yes
40732 xc_bad_var_ldflags=yes
40736 if test $xc_bad_var_ldflags = yes; then
40737 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40738 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40739 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40740 for xc_word in $LDFLAGS; do
40743 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40744 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40747 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40748 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40752 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40756 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40763 xc_bad_var_cppflags=no
40764 for xc_word in $CPPFLAGS; do
40767 xc_bad_var_cppflags=yes
40769 -L* | --library-path=*)
40770 xc_bad_var_cppflags=yes
40773 xc_bad_var_cppflags=yes
40777 if test $xc_bad_var_cppflags = yes; then
40778 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40779 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40780 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40781 for xc_word in $CPPFLAGS; do
40784 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40785 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40787 -L* | --library-path=*)
40788 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40789 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40792 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40793 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40800 xc_bad_var_cflags=no
40801 for xc_word in $CFLAGS; do
40804 xc_bad_var_cflags=yes
40807 xc_bad_var_cflags=yes
40810 xc_bad_var_cflags=yes
40813 xc_bad_var_cflags=yes
40815 -L* | --library-path=*)
40816 xc_bad_var_cflags=yes
40819 xc_bad_var_cflags=yes
40823 if test $xc_bad_var_cflags = yes; then
40824 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40825 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40826 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40827 for xc_word in $CFLAGS; do
40830 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40831 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40834 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40835 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40838 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40839 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40842 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40843 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40845 -L* | --library-path=*)
40846 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40847 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40850 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40851 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40857 if test $xc_bad_var_libs = yes ||
40858 test $xc_bad_var_cflags = yes ||
40859 test $xc_bad_var_ldflags = yes ||
40860 test $xc_bad_var_cppflags = yes; then
40861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
40862 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
40866 if test "x$want_curldebug_assumed" = "xyes" &&
40867 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
40868 ac_configure_args="$ac_configure_args --enable-curldebug"
40871 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"
40873 cat >confcache <<\_ACEOF
40874 # This file is a shell script that caches the results of configure
40875 # tests run on this system so they can be shared between configure
40876 # scripts and configure runs, see configure's option --config-cache.
40877 # It is not useful on other systems. If it contains results you don't
40878 # want to keep, you may remove or edit it.
40880 # config.status only pays attention to the cache file if you give it
40881 # the --recheck option to rerun configure.
40883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40885 # following values.
40889 # The following way of writing the cache mishandles newlines in values,
40890 # but we know of no workaround that is simple, portable, and efficient.
40891 # So, we kill variables containing newlines.
40892 # Ultrix sh set writes to stderr and can't be redirected directly,
40893 # and sets the high bit in the cache file unless we assign to the vars.
40895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40896 eval ac_val=\$$ac_var
40900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40901 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40904 _ | IFS | as_nl) ;; #(
40905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40906 *) { eval $ac_var=; unset $ac_var;} ;;
40912 case $as_nl`(ac_space=' '; set) 2>&1` in #(
40913 *${as_nl}ac_space=\ *)
40914 # `set' does not quote correctly, so add quotes: double-quote
40915 # substitution turns \\\\ into \\, and sed turns \\ into \.
40918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40921 # `set' quotes correctly as required by POSIX, so do not add quotes.
40922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40933 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40935 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40936 if test -w "$cache_file"; then
40937 if test "x$cache_file" != "x/dev/null"; then
40938 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40939 $as_echo "$as_me: updating cache $cache_file" >&6;}
40940 if test ! -f "$cache_file" || test -h "$cache_file"; then
40941 cat confcache >"$cache_file"
40943 case $cache_file in #(
40945 mv -f confcache "$cache_file"$$ &&
40946 mv -f "$cache_file"$$ "$cache_file" ;; #(
40948 mv -f confcache "$cache_file" ;;
40953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40954 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40960 # Let make expand exec_prefix.
40961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40963 DEFS=-DHAVE_CONFIG_H
40968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40969 # 1. Remove the extension, and $U if already installed.
40970 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40971 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
40972 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
40973 # will be set to the directory where LIBOBJS objects are built.
40974 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40975 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40977 LIBOBJS=$ac_libobjs
40979 LTLIBOBJS=$ac_ltlibobjs
40982 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
40983 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
40984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
40987 $as_echo_n "checking that generated files are newer than configure... " >&6; }
40988 if test -n "$am_sleep_pid"; then
40989 # Hide warnings about reused PIDs.
40990 wait $am_sleep_pid 2>/dev/null
40992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
40993 $as_echo "done" >&6; }
40994 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40995 as_fn_error $? "conditional \"AMDEP\" was never defined.
40996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40998 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40999 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41002 if test -n "$EXEEXT"; then
41004 am__EXEEXT_FALSE='#'
41006 am__EXEEXT_TRUE='#'
41010 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41011 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41014 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41015 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41018 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41019 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41022 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41023 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41026 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41027 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41030 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41031 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41034 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41035 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41038 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41039 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41042 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41043 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41046 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41047 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41050 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41051 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41054 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41055 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41058 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41059 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41062 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41063 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41066 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41067 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41070 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
41071 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
41072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41074 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41075 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41079 : "${CONFIG_STATUS=./config.status}"
41081 ac_clean_files_save=$ac_clean_files
41082 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41084 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41086 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41088 # Generated by $as_me.
41089 # Run this file to recreate the current configuration.
41090 # Compiler output produced by configure, useful for debugging
41091 # configure, is in config.log if it exists.
41094 ac_cs_recheck=false
41097 SHELL=\${CONFIG_SHELL-$SHELL}
41100 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41101 ## -------------------- ##
41102 ## M4sh Initialization. ##
41103 ## -------------------- ##
41105 # Be more Bourne compatible
41106 DUALCASE=1; export DUALCASE # for MKS sh
41107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41110 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41111 # is contrary to our usage. Disable this feature.
41112 alias -g '${1+"$@"}'='"$@"'
41113 setopt NO_GLOB_SUBST
41115 case `(set -o) 2>/dev/null` in #(
41127 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41128 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41129 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41131 # Prefer a ksh shell builtin over an external printf program on Solaris,
41132 # but without wasting forks for bash or zsh.
41133 if test -z "$BASH_VERSION$ZSH_VERSION" \
41134 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41135 as_echo='print -r --'
41136 as_echo_n='print -rn --'
41137 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41138 as_echo='printf %s\n'
41139 as_echo_n='printf %s'
41141 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41142 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41143 as_echo_n='/usr/ucb/echo -n'
41145 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41146 as_echo_n_body='eval
41150 expr "X$arg" : "X\\(.*\\)$as_nl";
41151 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41153 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41155 export as_echo_n_body
41156 as_echo_n='sh -c $as_echo_n_body as_echo'
41158 export as_echo_body
41159 as_echo='sh -c $as_echo_body as_echo'
41165 # We need space, tab and new line, in precisely that order. Quoting is
41166 # there to prevent editors from complaining about space-tab.
41167 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41168 # splitting by setting IFS to empty value.)
41171 # Find who we are. Look in the path if we contain no directory separator.
41174 *[\\/]* ) as_myself=$0 ;;
41175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41176 for as_dir in $PATH
41179 test -z "$as_dir" && as_dir=.
41180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41186 # We did not find ourselves, most probably we were run as `sh COMMAND'
41187 # in which case we are not to be found in the path.
41188 if test "x$as_myself" = x; then
41191 if test ! -f "$as_myself"; then
41192 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41196 # Unset variables that we do not need and which cause bugs (e.g. in
41197 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41198 # suppresses any "Segmentation fault" message there. '((' could
41199 # trigger a bug in pdksh 5.2.14.
41200 for as_var in BASH_ENV ENV MAIL MAILPATH
41201 do eval test x\${$as_var+set} = xset \
41202 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41218 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41219 # ----------------------------------------
41220 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41221 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41222 # script with STATUS, using 1 if that was 0.
41225 as_status=$1; test $as_status -eq 0 && as_status=1
41227 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41228 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41230 $as_echo "$as_me: error: $2" >&2
41231 as_fn_exit $as_status
41235 # as_fn_set_status STATUS
41236 # -----------------------
41237 # Set $? to STATUS, without forking.
41238 as_fn_set_status ()
41241 } # as_fn_set_status
41243 # as_fn_exit STATUS
41244 # -----------------
41245 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41249 as_fn_set_status $1
41255 # Portably unset VAR.
41258 { eval $1=; unset $1;}
41260 as_unset=as_fn_unset
41261 # as_fn_append VAR VALUE
41262 # ----------------------
41263 # Append the text in VALUE to the end of the definition contained in VAR. Take
41264 # advantage of any shell optimizations that allow amortized linear growth over
41265 # repeated appends, instead of the typical quadratic growth present in naive
41267 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41268 eval 'as_fn_append ()
41279 # as_fn_arith ARG...
41280 # ------------------
41281 # Perform arithmetic evaluation on the ARGs, and store the result in the
41282 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41283 # must be portable across $(()) and expr.
41284 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41285 eval 'as_fn_arith ()
41292 as_val=`expr "$@" || test $? -eq 1`
41297 if expr a : '\(a\)' >/dev/null 2>&1 &&
41298 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41304 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41305 as_basename=basename
41310 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41316 as_me=`$as_basename -- "$0" ||
41317 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41318 X"$0" : 'X\(//\)$' \| \
41319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41321 sed '/^.*\/\([^/][^/]*\)\/*$/{
41335 # Avoid depending upon Character Ranges.
41336 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41337 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41338 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41339 as_cr_digits='0123456789'
41340 as_cr_alnum=$as_cr_Letters$as_cr_digits
41342 ECHO_C= ECHO_N= ECHO_T=
41343 case `echo -n x` in #(((((
41345 case `echo 'xy\c'` in
41346 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41348 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41355 rm -f conf$$ conf$$.exe conf$$.file
41356 if test -d conf$$.dir; then
41357 rm -f conf$$.dir/conf$$.file
41360 mkdir conf$$.dir 2>/dev/null
41362 if (echo >conf$$.file) 2>/dev/null; then
41363 if ln -s conf$$.file conf$$ 2>/dev/null; then
41365 # ... but there are two gotchas:
41366 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41367 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41368 # In both cases, we have to default to `cp -pR'.
41369 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41371 elif ln conf$$.file conf$$ 2>/dev/null; then
41379 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41380 rmdir conf$$.dir 2>/dev/null
41385 # Create "$as_dir" as a directory, including parents if necessary.
41390 -*) as_dir=./$as_dir;;
41392 test -d "$as_dir" || eval $as_mkdir_p || {
41396 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41397 *) as_qdir=$as_dir;;
41399 as_dirs="'$as_qdir' $as_dirs"
41400 as_dir=`$as_dirname -- "$as_dir" ||
41401 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41402 X"$as_dir" : 'X\(//\)[^/]' \| \
41403 X"$as_dir" : 'X\(//\)$' \| \
41404 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41405 $as_echo X"$as_dir" |
41406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41410 /^X\(\/\/\)[^/].*/{
41423 test -d "$as_dir" && break
41425 test -z "$as_dirs" || eval "mkdir $as_dirs"
41426 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41430 if mkdir -p . 2>/dev/null; then
41431 as_mkdir_p='mkdir -p "$as_dir"'
41433 test -d ./-p && rmdir ./-p
41438 # as_fn_executable_p FILE
41439 # -----------------------
41440 # Test if FILE is an executable regular file.
41441 as_fn_executable_p ()
41443 test -f "$1" && test -x "$1"
41444 } # as_fn_executable_p
41445 as_test_x='test -x'
41446 as_executable_p=as_fn_executable_p
41448 # Sed expression to map a string onto a valid CPP name.
41449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41451 # Sed expression to map a string onto a valid variable name.
41452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41456 ## ----------------------------------- ##
41457 ## Main body of $CONFIG_STATUS script. ##
41458 ## ----------------------------------- ##
41460 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41463 # Save the log message, to keep $0 and so on meaningful, and to
41464 # report actual input values of CONFIG_FILES etc. instead of their
41465 # values after options handling.
41467 This file was extended by curl $as_me -, which was
41468 generated by GNU Autoconf 2.69. Invocation command line was
41470 CONFIG_FILES = $CONFIG_FILES
41471 CONFIG_HEADERS = $CONFIG_HEADERS
41472 CONFIG_LINKS = $CONFIG_LINKS
41473 CONFIG_COMMANDS = $CONFIG_COMMANDS
41476 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41481 case $ac_config_files in *"
41482 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41485 case $ac_config_headers in *"
41486 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41491 # Files that config.status was made for.
41492 config_files="$ac_config_files"
41493 config_headers="$ac_config_headers"
41494 config_commands="$ac_config_commands"
41498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41500 \`$as_me' instantiates files and other configuration actions
41501 from templates according to the current configuration. Unless the files
41502 and actions are specified as TAGs, all are instantiated by default.
41504 Usage: $0 [OPTION]... [TAG]...
41506 -h, --help print this help, then exit
41507 -V, --version print version number and configuration settings, then exit
41508 --config print configuration, then exit
41509 -q, --quiet, --silent
41510 do not print progress messages
41511 -d, --debug don't remove temporary files
41512 --recheck update $as_me by reconfiguring in the same conditions
41513 --file=FILE[:TEMPLATE]
41514 instantiate the configuration file FILE
41515 --header=FILE[:TEMPLATE]
41516 instantiate the configuration header FILE
41518 Configuration files:
41521 Configuration headers:
41524 Configuration commands:
41527 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41531 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41533 curl config.status -
41534 configured by $0, generated by GNU Autoconf 2.69,
41535 with options \\"\$ac_cs_config\\"
41537 Copyright (C) 2012 Free Software Foundation, Inc.
41538 This config.status script is free software; the Free Software Foundation
41539 gives unlimited permission to copy, distribute and modify it."
41546 test -n "\$AWK" || AWK=awk
41549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41550 # The default lists apply if the user does not specify any file.
41556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41573 # Handling of the options.
41574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41577 $as_echo "$ac_cs_version"; exit ;;
41578 --config | --confi | --conf | --con | --co | --c )
41579 $as_echo "$ac_cs_config"; exit ;;
41580 --debug | --debu | --deb | --de | --d | -d )
41582 --file | --fil | --fi | --f )
41585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41586 '') as_fn_error $? "missing file argument" ;;
41588 as_fn_append CONFIG_FILES " '$ac_optarg'"
41589 ac_need_defaults=false;;
41590 --header | --heade | --head | --hea )
41593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41595 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41596 ac_need_defaults=false;;
41598 # Conflict between --help and --header
41599 as_fn_error $? "ambiguous option: \`$1'
41600 Try \`$0 --help' for more information.";;
41601 --help | --hel | -h )
41602 $as_echo "$ac_cs_usage"; exit ;;
41603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41607 # This is an error.
41608 -*) as_fn_error $? "unrecognized option: \`$1'
41609 Try \`$0 --help' for more information." ;;
41611 *) as_fn_append ac_config_targets " $1"
41612 ac_need_defaults=false ;;
41618 ac_configure_extra_args=
41620 if $ac_cs_silent; then
41622 ac_configure_extra_args="$ac_configure_extra_args --silent"
41626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41627 if \$ac_cs_recheck; then
41628 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41631 CONFIG_SHELL='$SHELL'
41632 export CONFIG_SHELL
41637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41642 ## Running $as_me. ##
41648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41655 # The HP-UX ksh and POSIX shell print the target directory to stdout
41656 # if CDPATH is set.
41657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41659 sed_quote_subst='$sed_quote_subst'
41660 double_quote_subst='$double_quote_subst'
41661 delay_variable_subst='$delay_variable_subst'
41662 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41663 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41664 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41665 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41666 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41667 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41668 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41669 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41670 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41671 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41672 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41673 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41674 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41675 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41676 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41677 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41678 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41679 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41680 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41681 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41682 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41683 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41684 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41685 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41686 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41687 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41688 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41689 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41690 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41691 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41692 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41693 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41694 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41695 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41696 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41697 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41698 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41699 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41700 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41701 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41702 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41703 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41704 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41705 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41706 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41707 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41708 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41709 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41710 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41711 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41712 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41713 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41714 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41715 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41716 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41717 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41718 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41719 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41720 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41721 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"`'
41722 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41723 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41724 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41725 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41726 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41727 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41728 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41729 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41730 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41731 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41732 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41733 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41734 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41735 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41736 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41737 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41738 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41739 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41740 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41741 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41742 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41743 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41744 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41745 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41746 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41747 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41748 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41749 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41750 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41751 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41752 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41753 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41754 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41755 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41756 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41757 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41758 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41759 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41760 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41761 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41762 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41763 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41764 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41765 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41766 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41767 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41768 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41769 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41770 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41771 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41772 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41773 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41774 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41775 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41776 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41777 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41778 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41779 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41780 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41781 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41782 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41783 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41784 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41785 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41786 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41787 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41788 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41789 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41790 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41791 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41792 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41793 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41794 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41795 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41796 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41797 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41800 LTCFLAGS='$LTCFLAGS'
41801 compiler='$compiler_DEFAULT'
41803 # A function that is used when there is no print builtin or printf.
41804 func_fallback_echo ()
41806 eval 'cat <<_LTECHO_EOF
41811 # Quote evaled strings.
41828 deplibs_check_method \
41832 sharedlib_from_linklib_cmd \
41835 archiver_list_spec \
41841 lt_cv_sys_global_symbol_pipe \
41842 lt_cv_sys_global_symbol_to_cdecl \
41843 lt_cv_sys_global_symbol_to_import \
41844 lt_cv_sys_global_symbol_to_c_name_address \
41845 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41846 lt_cv_nm_interface \
41847 nm_file_list_spec \
41848 lt_cv_truncate_bin \
41849 lt_prog_compiler_no_builtin_flag \
41850 lt_prog_compiler_pic \
41851 lt_prog_compiler_wl \
41852 lt_prog_compiler_static \
41853 lt_cv_prog_compiler_c_o \
41862 export_dynamic_flag_spec \
41863 whole_archive_flag_spec \
41864 compiler_needs_object \
41866 allow_undefined_flag \
41867 no_undefined_flag \
41868 hardcode_libdir_flag_spec \
41869 hardcode_libdir_separator \
41873 variables_saved_for_relink \
41875 library_names_spec \
41877 install_override_mode \
41881 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41882 *[\\\\\\\`\\"\\\$]*)
41883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41891 # Double-quote double-evaled strings.
41892 for var in reload_cmds \
41893 old_postinstall_cmds \
41894 old_postuninstall_cmds \
41896 extract_expsyms_cmds \
41897 old_archive_from_new_cmds \
41898 old_archive_from_expsyms_cmds \
41900 archive_expsym_cmds \
41902 module_expsym_cmds \
41903 export_symbols_cmds \
41907 postuninstall_cmds \
41909 sys_lib_search_path_spec \
41910 configure_time_dlsearch_path \
41911 configure_time_lt_sys_library_path; do
41912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41913 *[\\\\\\\`\\"\\\$]*)
41914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41922 ac_aux_dir='$ac_aux_dir'
41924 # See if we are running on zsh, and set the options that allow our
41925 # commands through without removal of \ escapes INIT.
41926 if test -n "\${ZSH_VERSION+set}"; then
41927 setopt NO_GLOB_SUBST
41941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41943 # Handling of arguments.
41944 for ac_config_target in $ac_config_targets
41946 case $ac_config_target in
41947 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
41948 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
41949 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41950 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
41951 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41952 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
41953 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
41954 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
41955 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
41956 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
41957 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
41958 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41959 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
41960 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
41961 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
41962 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41963 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
41964 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
41965 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
41966 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
41967 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
41968 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
41969 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
41970 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
41971 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
41972 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
41973 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
41974 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
41975 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
41976 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
41977 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
41978 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
41979 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
41980 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
41981 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
41982 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
41983 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
41984 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
41986 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41991 # If the user did not use the arguments to specify the items to instantiate,
41992 # then the envvar interface is used. Set only those that are not.
41993 # We use the long form for the default assignment because of an extremely
41994 # bizarre bug on SunOS 4.1.3.
41995 if $ac_need_defaults; then
41996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42001 # Have a temporary directory for convenience. Make it in the build tree
42002 # simply because there is no reason against having it here, and in addition,
42003 # creating and moving files from /tmp can sometimes cause problems.
42004 # Hook for its removal unless debugging.
42005 # Note that there is a small window in which the directory will not be cleaned:
42006 # after its creation but before its name has been assigned to `$tmp'.
42010 trap 'exit_status=$?
42011 : "${ac_tmp:=$tmp}"
42012 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42014 trap 'as_fn_exit 1' 1 2 13 15
42016 # Create a (secure) tmp directory for tmp files.
42019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42023 tmp=./conf$$-$RANDOM
42024 (umask 077 && mkdir "$tmp")
42025 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42028 # Set up the scripts for CONFIG_FILES section.
42029 # No need to generate them if there are no CONFIG_FILES.
42030 # This happens for instance with `./config.status config.h'.
42031 if test -n "$CONFIG_FILES"; then
42034 ac_cr=`echo X | tr X '\015'`
42035 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42036 # But we know of no other shell where ac_cr would be empty at this
42037 # point, so we can use a bashism as a fallback.
42038 if test "x$ac_cr" = x; then
42039 eval ac_cr=\$\'\\r\'
42041 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42042 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42045 ac_cs_awk_cr=$ac_cr
42048 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42053 echo "cat >conf$$subs.awk <<_ACEOF" &&
42054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42056 } >conf$$subs.sh ||
42057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42058 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42060 for ac_last_try in false false false false false :; do
42061 . ./conf$$subs.sh ||
42062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42064 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42065 if test $ac_delim_n = $ac_delim_num; then
42067 elif $ac_last_try; then
42068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42073 rm -f conf$$subs.sh
42075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42076 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42080 s/^/S["/; s/!.*/"]=/
42090 s/\(.\{148\}\)..*/\1/
42092 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42097 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42104 s/\(.\{148\}\)..*/\1/
42106 s/["\\]/\\&/g; s/^/"/; s/$/"/
42110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42115 ' <conf$$subs.awk | sed '
42120 ' >>$CONFIG_STATUS || ac_write_fail=1
42121 rm -f conf$$subs.awk
42122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42124 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42125 for (key in S) S_is_set[key] = 1
42131 nfields = split(line, field, "@")
42133 len = length(field[1])
42134 for (i = 2; i < nfields; i++) {
42136 keylen = length(key)
42137 if (S_is_set[key]) {
42139 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42140 len += length(value) + length(field[++i])
42151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42152 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42153 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42156 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42157 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42160 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42161 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42162 # trailing colons and then remove the whole line if VPATH becomes empty
42163 # (actually we leave an empty line to preserve line numbers).
42164 if test "x$srcdir" = x.; then
42165 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42184 fi # test -n "$CONFIG_FILES"
42186 # Set up the scripts for CONFIG_HEADERS section.
42187 # No need to generate them if there are no CONFIG_HEADERS.
42188 # This happens for instance with `./config.status Makefile'.
42189 if test -n "$CONFIG_HEADERS"; then
42190 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42194 # Transform confdefs.h into an awk script `defines.awk', embedded as
42195 # here-document in config.status, that substitutes the proper values into
42196 # config.h.in to produce config.h.
42198 # Create a delimiter string that does not exist in confdefs.h, to ease
42199 # handling of long lines.
42201 for ac_last_try in false false :; do
42202 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42203 if test -z "$ac_tt"; then
42205 elif $ac_last_try; then
42206 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42212 # For the awk script, D is an array of macro values keyed by name,
42213 # likewise P contains macro parameters if any. Preserve backslash
42214 # newline sequences.
42216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42218 s/.\{148\}/&'"$ac_delim"'/g
42221 s/^[ ]*#[ ]*define[ ][ ]*/ /
42228 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42235 D["\1"]=" \3\\\\\\n"\\/p
42237 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42242 s/.\{148\}/&'"$ac_delim"'/g
42247 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42250 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42252 ' <confdefs.h | sed '
42253 s/'"$ac_delim"'/"\\\
42254 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42257 for (key in D) D_is_set[key] = 1
42260 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42262 split(line, arg, " ")
42263 if (arg[1] == "#") {
42267 defundef = substr(arg[1], 2)
42270 split(mac1, mac2, "(") #)
42272 prefix = substr(line, 1, index(line, defundef) - 1)
42273 if (D_is_set[macro]) {
42274 # Preserve the white space surrounding the "#".
42275 print prefix "define", macro P[macro] D[macro]
42278 # Replace #undef with comments. This is necessary, for example,
42279 # in the case of _POSIX_SOURCE, which is predefined and required
42280 # on some systems where configure will not decide to define it.
42281 if (defundef == "undef") {
42282 print "/*", prefix defundef, macro, "*/"
42290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42291 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42292 fi # test -n "$CONFIG_HEADERS"
42295 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42300 :[FHLC]) ac_mode=$ac_tag; continue;;
42302 case $ac_mode$ac_tag in
42304 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42305 :[FH]-) ac_tag=-:-;;
42306 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42323 -) ac_f="$ac_tmp/stdin";;
42324 *) # Look for the file first in the build tree, then in the source tree
42325 # (if the path is not absolute). The absolute path cannot be DOS-style,
42326 # because $ac_f cannot contain `:'.
42330 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42332 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42334 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42335 as_fn_append ac_file_inputs " '$ac_f'"
42338 # Let's still pretend it is `configure' which instantiates (i.e., don't
42339 # use $as_me), people would be surprised to read:
42340 # /* config.h. Generated by config.status. */
42341 configure_input='Generated from '`
42342 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42344 if test x"$ac_file" != x-; then
42345 configure_input="$ac_file. $configure_input"
42346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42347 $as_echo "$as_me: creating $ac_file" >&6;}
42349 # Neutralize special characters interpreted by sed in replacement strings.
42350 case $configure_input in #(
42351 *\&* | *\|* | *\\* )
42352 ac_sed_conf_input=`$as_echo "$configure_input" |
42353 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42354 *) ac_sed_conf_input=$configure_input;;
42358 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42364 ac_dir=`$as_dirname -- "$ac_file" ||
42365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42366 X"$ac_file" : 'X\(//\)[^/]' \| \
42367 X"$ac_file" : 'X\(//\)$' \| \
42368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42369 $as_echo X"$ac_file" |
42370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42374 /^X\(\/\/\)[^/].*/{
42387 as_dir="$ac_dir"; as_fn_mkdir_p
42391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42394 # A ".." for each directory in $ac_dir_suffix.
42395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42396 case $ac_top_builddir_sub in
42397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42401 ac_abs_top_builddir=$ac_pwd
42402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42403 # for backward compatibility:
42404 ac_top_builddir=$ac_top_build_prefix
42407 .) # We are building in place.
42409 ac_top_srcdir=$ac_top_builddir_sub
42410 ac_abs_top_srcdir=$ac_pwd ;;
42411 [\\/]* | ?:[\\/]* ) # Absolute name.
42412 ac_srcdir=$srcdir$ac_dir_suffix;
42413 ac_top_srcdir=$srcdir
42414 ac_abs_top_srcdir=$srcdir ;;
42415 *) # Relative name.
42416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42417 ac_top_srcdir=$ac_top_build_prefix$srcdir
42418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42430 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42431 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42433 ac_MKDIR_P=$MKDIR_P
42435 [\\/$]* | ?:[\\/]* ) ;;
42436 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42441 # If the template does not know about datarootdir, expand it.
42442 # FIXME: This hack should be removed a few years after 2.60.
42443 ac_datarootdir_hack=; ac_datarootdir_seen=
42454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42455 *datarootdir*) ac_datarootdir_seen=yes;;
42456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42458 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42461 ac_datarootdir_hack='
42462 s&@datadir@&$datadir&g
42463 s&@docdir@&$docdir&g
42464 s&@infodir@&$infodir&g
42465 s&@localedir@&$localedir&g
42466 s&@mandir@&$mandir&g
42467 s&\\\${datarootdir}&$datarootdir&g' ;;
42471 # Neutralize VPATH when `$srcdir' = `.'.
42472 # Shell code in configure.ac might set extrasub.
42473 # FIXME: do we really want to maintain this feature?
42474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42475 ac_sed_extra="$ac_vpsub
42478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42481 s|@configure_input@|$ac_sed_conf_input|;t t
42482 s&@top_builddir@&$ac_top_builddir_sub&;t t
42483 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42484 s&@srcdir@&$ac_srcdir&;t t
42485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42486 s&@top_srcdir@&$ac_top_srcdir&;t t
42487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42488 s&@builddir@&$ac_builddir&;t t
42489 s&@abs_builddir@&$ac_abs_builddir&;t t
42490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42491 s&@INSTALL@&$ac_INSTALL&;t t
42492 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42493 $ac_datarootdir_hack
42495 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42496 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42501 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42503 which seems to be undefined. Please make sure it is defined" >&5
42504 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42505 which seems to be undefined. Please make sure it is defined" >&2;}
42507 rm -f "$ac_tmp/stdin"
42509 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42510 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42518 if test x"$ac_file" != x-; then
42520 $as_echo "/* $configure_input */" \
42521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42522 } >"$ac_tmp/config.h" \
42523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42525 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42529 mv "$ac_tmp/config.h" "$ac_file" \
42530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42533 $as_echo "/* $configure_input */" \
42534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42535 || as_fn_error $? "could not create -" "$LINENO" 5
42537 # Compute "$ac_file"'s index in $config_headers.
42540 for _am_header in $config_headers :; do
42541 case $_am_header in
42542 $_am_arg | $_am_arg:* )
42545 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42548 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42549 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42550 X"$_am_arg" : 'X\(//\)[^/]' \| \
42551 X"$_am_arg" : 'X\(//\)$' \| \
42552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42553 $as_echo X"$_am_arg" |
42554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42558 /^X\(\/\/\)[^/].*/{
42570 s/.*/./; q'`/stamp-h$_am_stamp_count
42573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42574 $as_echo "$as_me: executing $ac_file commands" >&6;}
42579 case $ac_file$ac_mode in
42580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42581 # Older Autoconf quotes --file arguments for eval, but not when files
42582 # are listed without --file. Let's play safe and only enable the eval
42583 # if we detect the quoting.
42584 case $CONFIG_FILES in
42585 *\'*) eval set x "$CONFIG_FILES" ;;
42586 *) set x $CONFIG_FILES ;;
42591 # Strip MF so we end up with the name of the file.
42592 mf=`echo "$mf" | sed -e 's/:.*$//'`
42593 # Check whether this is an Automake generated Makefile or not.
42594 # We used to match only the files named 'Makefile.in', but
42595 # some people rename them; so instead we look at the file content.
42596 # Grep'ing the first line is not enough: some people post-process
42597 # each Makefile.in and add a new line on top of each file to say so.
42598 # Grep'ing the whole file is not good either: AIX grep has a line
42599 # limit of 2048, but all sed's we know have understand at least 4000.
42600 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42601 dirpart=`$as_dirname -- "$mf" ||
42602 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42603 X"$mf" : 'X\(//\)[^/]' \| \
42604 X"$mf" : 'X\(//\)$' \| \
42605 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42611 /^X\(\/\/\)[^/].*/{
42627 # Extract the definition of DEPDIR, am__include, and am__quote
42628 # from the Makefile without running 'make'.
42629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42630 test -z "$DEPDIR" && continue
42631 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42632 test -z "$am__include" && continue
42633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42634 # Find all dependency output files, they are included files with
42635 # $(DEPDIR) in their names. We invoke sed twice because it is the
42636 # simplest approach to changing $(DEPDIR) to its actual value in the
42638 for file in `sed -n "
42639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42641 # Make sure the directory exists.
42642 test -f "$dirpart/$file" && continue
42643 fdir=`$as_dirname -- "$file" ||
42644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42645 X"$file" : 'X\(//\)[^/]' \| \
42646 X"$file" : 'X\(//\)$' \| \
42647 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42648 $as_echo X"$file" |
42649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42653 /^X\(\/\/\)[^/].*/{
42666 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42667 # echo "creating $dirpart/$file"
42668 echo '# dummy' > "$dirpart/$file"
42675 # See if we are running on zsh, and set the options that allow our
42676 # commands through without removal of \ escapes.
42677 if test -n "${ZSH_VERSION+set}"; then
42678 setopt NO_GLOB_SUBST
42682 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42685 cat <<_LT_EOF >> "$cfgfile"
42687 # Generated automatically by $as_me ($PACKAGE) $VERSION
42688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42689 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42691 # Provide generalized library-building support services.
42692 # Written by Gordon Matzigkeit, 1996
42694 # Copyright (C) 2014 Free Software Foundation, Inc.
42695 # This is free software; see the source for copying conditions. There is NO
42696 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42698 # GNU Libtool is free software; you can redistribute it and/or modify
42699 # it under the terms of the GNU General Public License as published by
42700 # the Free Software Foundation; either version 2 of of the License, or
42701 # (at your option) any later version.
42703 # As a special exception to the GNU General Public License, if you
42704 # distribute this file as part of a program or library that is built
42705 # using GNU Libtool, you may include this file under the same
42706 # distribution terms that you use for the rest of that program.
42708 # GNU Libtool is distributed in the hope that it will be useful, but
42709 # WITHOUT ANY WARRANTY; without even the implied warranty of
42710 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42711 # GNU General Public License for more details.
42713 # You should have received a copy of the GNU General Public License
42714 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42717 # The names of the tagged configurations supported by this script.
42720 # Configured defaults for sys_lib_dlsearch_path munging.
42721 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42723 # ### BEGIN LIBTOOL CONFIG
42725 # Which release of libtool.m4 was used?
42726 macro_version=$macro_version
42727 macro_revision=$macro_revision
42729 # Assembler program.
42732 # DLL creation program.
42733 DLLTOOL=$lt_DLLTOOL
42735 # Object dumper program.
42736 OBJDUMP=$lt_OBJDUMP
42738 # Whether or not to build shared libraries.
42739 build_libtool_libs=$enable_shared
42741 # Whether or not to build static libraries.
42742 build_old_libs=$enable_static
42744 # What type of objects to build.
42747 # Whether or not to optimize for fast installation.
42748 fast_install=$enable_fast_install
42750 # Shared archive member basename,for filename based shared library versioning on AIX.
42751 shared_archive_member_spec=$shared_archive_member_spec
42753 # Shell to use when invoking shell scripts.
42756 # An echo program that protects backslashes.
42759 # The PATH separator for the build system.
42760 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42763 host_alias=$host_alias
42767 # The build system.
42768 build_alias=$build_alias
42772 # A sed program that does not truncate output.
42775 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42776 Xsed="\$SED -e 1s/^X//"
42778 # A grep program that handles long lines.
42784 # A literal string matcher.
42787 # A BSD- or MS-compatible name lister.
42790 # Whether we need soft or hard links.
42793 # What is the maximum length of a command?
42794 max_cmd_len=$max_cmd_len
42796 # Object file suffix (normally "o").
42799 # Executable file suffix (normally "").
42802 # whether the shell understands "unset".
42805 # turn spaces into newlines.
42808 # turn newlines into spaces.
42811 # convert \$build file names to \$host format.
42812 to_host_file_cmd=$lt_cv_to_host_file_cmd
42814 # convert \$build files to toolchain format.
42815 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42817 # Method to check whether dependent libraries are shared objects.
42818 deplibs_check_method=$lt_deplibs_check_method
42820 # Command to use when deplibs_check_method = "file_magic".
42821 file_magic_cmd=$lt_file_magic_cmd
42823 # How to find potential files when deplibs_check_method = "file_magic".
42824 file_magic_glob=$lt_file_magic_glob
42826 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42827 want_nocaseglob=$lt_want_nocaseglob
42829 # Command to associate shared and link libraries.
42830 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42835 # Flags to create an archive.
42836 AR_FLAGS=$lt_AR_FLAGS
42838 # How to feed a file listing to the archiver.
42839 archiver_list_spec=$lt_archiver_list_spec
42841 # A symbol stripping program.
42844 # Commands used to install an old-style archive.
42846 old_postinstall_cmds=$lt_old_postinstall_cmds
42847 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42849 # Whether to use a lock for old archive extraction.
42850 lock_old_archive_extraction=$lock_old_archive_extraction
42855 # LTCC compiler flags.
42856 LTCFLAGS=$lt_CFLAGS
42858 # Take the output of nm and produce a listing of raw symbols and C names.
42859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42861 # Transform the output of nm in a proper C declaration.
42862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42864 # Transform the output of nm into a list of symbols to manually relocate.
42865 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42867 # Transform the output of nm in a C name address pair.
42868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42870 # Transform the output of nm in a C name address pair when lib prefix is needed.
42871 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42873 # The name lister interface.
42874 nm_interface=$lt_lt_cv_nm_interface
42876 # Specify filename containing input files for \$NM.
42877 nm_file_list_spec=$lt_nm_file_list_spec
42879 # The root where to search for dependent libraries,and where our libraries should be installed.
42880 lt_sysroot=$lt_sysroot
42882 # Command to truncate a binary pipe.
42883 lt_truncate_bin=$lt_lt_cv_truncate_bin
42885 # The name of the directory that contains temporary libtool files.
42888 # Used to examine libraries when file_magic_cmd begins with "file".
42889 MAGIC_CMD=$MAGIC_CMD
42891 # Must we lock files when doing compilation?
42892 need_locks=$lt_need_locks
42895 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42897 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42898 DSYMUTIL=$lt_DSYMUTIL
42900 # Tool to change global to local symbols on Mac OS X.
42903 # Tool to manipulate fat objects and archives on Mac OS X.
42906 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42909 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42910 OTOOL64=$lt_OTOOL64
42912 # Old archive suffix (normally "a").
42915 # Shared library suffix (normally ".so").
42916 shrext_cmds=$lt_shrext_cmds
42918 # The commands to extract the exported symbol list from a shared archive.
42919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42921 # Variables whose values should be saved in libtool wrapper scripts and
42922 # restored at link time.
42923 variables_saved_for_relink=$lt_variables_saved_for_relink
42925 # Do we need the "lib" prefix for modules?
42926 need_lib_prefix=$need_lib_prefix
42928 # Do we need a version for libraries?
42929 need_version=$need_version
42931 # Library versioning type.
42932 version_type=$version_type
42934 # Shared library runtime path variable.
42935 runpath_var=$runpath_var
42937 # Shared library path variable.
42938 shlibpath_var=$shlibpath_var
42940 # Is shlibpath searched before the hard-coded library search path?
42941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42943 # Format of library name prefix.
42944 libname_spec=$lt_libname_spec
42946 # List of archive names. First name is the real one, the rest are links.
42947 # The last name is the one that the linker finds with -lNAME
42948 library_names_spec=$lt_library_names_spec
42950 # The coded name of the library, if different from the real name.
42951 soname_spec=$lt_soname_spec
42953 # Permission mode override for installation of shared libraries.
42954 install_override_mode=$lt_install_override_mode
42956 # Command to use after installation of a shared archive.
42957 postinstall_cmds=$lt_postinstall_cmds
42959 # Command to use after uninstallation of a shared archive.
42960 postuninstall_cmds=$lt_postuninstall_cmds
42962 # Commands used to finish a libtool library installation in a directory.
42963 finish_cmds=$lt_finish_cmds
42965 # As "finish_cmds", except a single script fragment to be evaled but
42967 finish_eval=$lt_finish_eval
42969 # Whether we should hardcode library paths into libraries.
42970 hardcode_into_libs=$hardcode_into_libs
42972 # Compile-time system search path for libraries.
42973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42975 # Detected run-time system search path for libraries.
42976 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
42978 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
42979 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
42981 # Whether dlopen is supported.
42982 dlopen_support=$enable_dlopen
42984 # Whether dlopen of programs is supported.
42985 dlopen_self=$enable_dlopen_self
42987 # Whether dlopen of statically linked programs is supported.
42988 dlopen_self_static=$enable_dlopen_self_static
42990 # Commands to strip libraries.
42991 old_striplib=$lt_old_striplib
42992 striplib=$lt_striplib
42995 # The linker used to build libraries.
42998 # How to create reloadable object files.
42999 reload_flag=$lt_reload_flag
43000 reload_cmds=$lt_reload_cmds
43002 # Commands used to build an old-style archive.
43003 old_archive_cmds=$lt_old_archive_cmds
43005 # A language specific compiler.
43008 # Is the compiler the GNU compiler?
43011 # Compiler flag to turn off builtin functions.
43012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43014 # Additional compiler flags for building library objects.
43015 pic_flag=$lt_lt_prog_compiler_pic
43017 # How to pass a linker flag through the compiler.
43018 wl=$lt_lt_prog_compiler_wl
43020 # Compiler flag to prevent dynamic linking.
43021 link_static_flag=$lt_lt_prog_compiler_static
43023 # Does compiler simultaneously support -c and -o options?
43024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43026 # Whether or not to add -lc for building shared libraries.
43027 build_libtool_need_lc=$archive_cmds_need_lc
43029 # Whether or not to disallow shared libs when runtime libs are static.
43030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43032 # Compiler flag to allow reflexive dlopens.
43033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43035 # Compiler flag to generate shared objects directly from archives.
43036 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43038 # Whether the compiler copes with passing no objects directly.
43039 compiler_needs_object=$lt_compiler_needs_object
43041 # Create an old-style archive from a shared archive.
43042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43044 # Create a temporary old-style archive to link instead of a shared archive.
43045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43047 # Commands used to build a shared archive.
43048 archive_cmds=$lt_archive_cmds
43049 archive_expsym_cmds=$lt_archive_expsym_cmds
43051 # Commands used to build a loadable module if different from building
43052 # a shared archive.
43053 module_cmds=$lt_module_cmds
43054 module_expsym_cmds=$lt_module_expsym_cmds
43056 # Whether we are building with GNU ld or not.
43057 with_gnu_ld=$lt_with_gnu_ld
43059 # Flag that allows shared libraries with undefined symbols to be built.
43060 allow_undefined_flag=$lt_allow_undefined_flag
43062 # Flag that enforces no undefined symbols.
43063 no_undefined_flag=$lt_no_undefined_flag
43065 # Flag to hardcode \$libdir into a binary during linking.
43066 # This must work even if \$libdir does not exist
43067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43069 # Whether we need a single "-rpath" flag with a separated argument.
43070 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43072 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43073 # DIR into the resulting binary.
43074 hardcode_direct=$hardcode_direct
43076 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43077 # DIR into the resulting binary and the resulting library dependency is
43078 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43079 # library is relocated.
43080 hardcode_direct_absolute=$hardcode_direct_absolute
43082 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43083 # into the resulting binary.
43084 hardcode_minus_L=$hardcode_minus_L
43086 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43087 # into the resulting binary.
43088 hardcode_shlibpath_var=$hardcode_shlibpath_var
43090 # Set to "yes" if building a shared library automatically hardcodes DIR
43091 # into the library and all subsequent libraries and executables linked
43093 hardcode_automatic=$hardcode_automatic
43095 # Set to yes if linker adds runtime paths of dependent libraries
43096 # to runtime path list.
43097 inherit_rpath=$inherit_rpath
43099 # Whether libtool must link a program against all its dependency libraries.
43100 link_all_deplibs=$link_all_deplibs
43102 # Set to "yes" if exported symbols are required.
43103 always_export_symbols=$always_export_symbols
43105 # The commands to list exported symbols.
43106 export_symbols_cmds=$lt_export_symbols_cmds
43108 # Symbols that should not be listed in the preloaded symbols.
43109 exclude_expsyms=$lt_exclude_expsyms
43111 # Symbols that must always be exported.
43112 include_expsyms=$lt_include_expsyms
43114 # Commands necessary for linking programs (against libraries) with templates.
43115 prelink_cmds=$lt_prelink_cmds
43117 # Commands necessary for finishing linking programs.
43118 postlink_cmds=$lt_postlink_cmds
43120 # Specify filename containing input files.
43121 file_list_spec=$lt_file_list_spec
43123 # How to hardcode a shared library path into an executable.
43124 hardcode_action=$hardcode_action
43126 # ### END LIBTOOL CONFIG
43130 cat <<'_LT_EOF' >> "$cfgfile"
43132 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43134 # func_munge_path_list VARIABLE PATH
43135 # -----------------------------------
43136 # VARIABLE is name of variable containing _space_ separated list of
43137 # directories to be munged by the contents of PATH, which is string
43140 # string "DIR[ DIR]" will be prepended to VARIABLE
43142 # string "DIR[ DIR]" will be appended to VARIABLE
43143 # "DIRP[:DIRP]::[DIRA:]DIRA"
43144 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43145 # "DIRA[ DIRA]" will be appended to VARIABLE
43147 # VARIABLE will be replaced by "DIR[ DIR]"
43148 func_munge_path_list ()
43154 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43157 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43160 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43161 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43164 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43170 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43171 func_cc_basename ()
43173 for cc_temp in $*""; do
43175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43181 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43185 # ### END FUNCTIONS SHARED WITH CONFIGURE
43191 cat <<\_LT_EOF >> "$cfgfile"
43192 # AIX sometimes has problems with the GCC collect2 program. For some
43193 # reason, if we set the COLLECT_NAMES environment variable, the problems
43194 # vanish in a puff of smoke.
43195 if test set != "${COLLECT_NAMES+set}"; then
43197 export COLLECT_NAMES
43204 ltmain=$ac_aux_dir/ltmain.sh
43207 # We use sed instead of cat because bash on DJGPP gets confused if
43208 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43209 # text mode, it properly converts lines to CR/LF. This bash problem
43210 # is reportedly fixed, but why not run on old versions too?
43211 sed '$q' "$ltmain" >> "$cfgfile" \
43212 || (rm -f "$cfgfile"; exit 1)
43214 mv -f "$cfgfile" "$ofile" ||
43215 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43226 ac_clean_files=$ac_clean_files_save
43228 test $ac_write_fail = 0 ||
43229 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43232 # configure is writing to config.log, and then calls config.status.
43233 # config.status does its own redirection, appending to config.log.
43234 # Unfortunately, on DOS this fails, as config.log is still kept open
43235 # by configure, so config.status won't be able to write to it; its
43236 # output is simply discarded. So we exec the FD to /dev/null,
43237 # effectively closing config.log, so it can be properly (re)opened and
43238 # appended to by config.status. When coming back to configure, we
43239 # need to make the FD available again.
43240 if test "$no_create" != yes; then
43242 ac_config_status_args=
43243 test "$silent" = yes &&
43244 ac_config_status_args="$ac_config_status_args --quiet"
43246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43249 # would make configure fail if this is the last instruction.
43250 $ac_cs_success || as_fn_exit 1
43254 # CONFIG_SUBDIRS section.
43256 if test "$no_recursion" != yes; then
43258 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43259 # so they do not pile up.
43260 ac_sub_configure_args=
43262 eval "set x $ac_configure_args"
43266 if test -n "$ac_prev"; then
43271 -cache-file | --cache-file | --cache-fil | --cache-fi \
43272 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43273 ac_prev=cache_file ;;
43274 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43275 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43278 --config-cache | -C)
43280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43288 --disable-option-checking)
43292 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43294 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43298 # Always prepend --prefix to ensure using the same prefix
43299 # in subdir configurations.
43300 ac_arg="--prefix=$prefix"
43302 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43304 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43307 if test "$silent" = yes; then
43308 ac_sub_configure_args="--silent $ac_sub_configure_args"
43311 # Always prepend --disable-option-checking to silence warnings, since
43312 # different subdirs can have different --enable and --with options.
43313 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43316 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43318 # Do not complain, so a configure script can configure whichever
43319 # parts of a large source tree are present.
43320 test -d "$srcdir/$ac_dir" || continue
43322 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43323 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43324 $as_echo "$ac_msg" >&6
43325 as_dir="$ac_dir"; as_fn_mkdir_p
43329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43332 # A ".." for each directory in $ac_dir_suffix.
43333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43334 case $ac_top_builddir_sub in
43335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43339 ac_abs_top_builddir=$ac_pwd
43340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43341 # for backward compatibility:
43342 ac_top_builddir=$ac_top_build_prefix
43345 .) # We are building in place.
43347 ac_top_srcdir=$ac_top_builddir_sub
43348 ac_abs_top_srcdir=$ac_pwd ;;
43349 [\\/]* | ?:[\\/]* ) # Absolute name.
43350 ac_srcdir=$srcdir$ac_dir_suffix;
43351 ac_top_srcdir=$srcdir
43352 ac_abs_top_srcdir=$srcdir ;;
43353 *) # Relative name.
43354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43355 ac_top_srcdir=$ac_top_build_prefix$srcdir
43356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43363 # Check for guested configure; otherwise get Cygnus style configure.
43364 if test -f "$ac_srcdir/configure.gnu"; then
43365 ac_sub_configure=$ac_srcdir/configure.gnu
43366 elif test -f "$ac_srcdir/configure"; then
43367 ac_sub_configure=$ac_srcdir/configure
43368 elif test -f "$ac_srcdir/configure.in"; then
43369 # This should be Cygnus configure.
43370 ac_sub_configure=$ac_aux_dir/configure
43372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43377 # The recursion is here.
43378 if test -n "$ac_sub_configure"; then
43379 # Make the cache file name correct relative to the subdirectory.
43380 case $cache_file in
43381 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43382 *) # Relative name.
43383 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43386 { $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
43387 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43388 # The eval makes quoting arguments work.
43389 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43390 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43391 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43397 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43399 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43404 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43405 if test -z "$tmp_cpp"; then
43408 cat >./tests/configurehelp.pm <<_EOF
43409 # This is a generated file. Do not edit.
43411 package configurehelp;
43423 @ISA = qw(Exporter);
43429 \$Cpreprocessor = '$tmp_cpp';
43436 ## ---------------------------------- ##
43437 ## Start of distclean amending code ##
43438 ## ---------------------------------- ##
43440 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43443 if test ! -f "$xc_subdir/Makefile"; then
43444 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43448 # Fetch dependency tracking file list from Makefile include lines.
43450 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43451 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43453 # --disable-dependency-tracking might have been used, consequently
43454 # there is nothing to amend without a dependency tracking file list.
43456 if test $xc_cnt_words -gt 0; then
43458 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43459 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43461 # Build Makefile specific patch hunk.
43463 xc_p="$xc_subdir/xc_patch.tmp"
43465 xc_rm_depfiles=`echo "$xc_inc_lines" \
43466 | $SED 's%include% -rm -f%' 2>/dev/null`
43468 xc_dep_subdirs=`echo "$xc_inc_lines" \
43469 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43470 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43473 echo "$xc_rm_depfiles" >$xc_p
43475 for xc_dep_dir in $xc_dep_subdirs; do
43476 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
43477 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
43478 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
43479 echo "${xc_tab}fi" >>$xc_p
43482 # Build Makefile patching sed scripts.
43484 xc_s1="$xc_subdir/xc_script_1.tmp"
43485 xc_s2="$xc_subdir/xc_script_2.tmp"
43486 xc_s3="$xc_subdir/xc_script_3.tmp"
43488 cat >$xc_s1 <<\_EOT
43489 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
43490 s/^.*(DEPDIR)/___xc_depdir_line___/
43492 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
43493 s/^.*(DEPDIR)/___xc_depdir_line___/
43497 cat >$xc_s2 <<\_EOT
43498 /___xc_depdir_line___$/{
43500 /___xc_depdir_line___$/D
43505 /^___xc_depdir_line___/{
43511 # Apply patch to Makefile and cleanup.
43513 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
43514 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43515 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43517 if test -f "$xc_subdir/Makefile.tmp3"; then
43518 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43521 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43522 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43523 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43525 test -f "$xc_p" && rm -f "$xc_p"
43526 test -f "$xc_s1" && rm -f "$xc_s1"
43527 test -f "$xc_s2" && rm -f "$xc_s2"
43528 test -f "$xc_s3" && rm -f "$xc_s3"
43534 ## -------------------------------- ##
43535 ## End of distclean amending code ##
43536 ## -------------------------------- ##
43540 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43542 curl version: ${CURLVERSION}
43543 Host setup: ${host}
43544 Install prefix: ${prefix}
43546 SSL support: ${curl_ssl_msg}
43547 SSH support: ${curl_ssh_msg}
43548 zlib support: ${curl_zlib_msg}
43549 GSS-API support: ${curl_gss_msg}
43550 TLS-SRP support: ${curl_tls_srp_msg}
43551 resolver: ${curl_res_msg}
43552 IPv6 support: ${curl_ipv6_msg}
43553 Unix sockets support: ${curl_unix_sockets_msg}
43554 IDN support: ${curl_idn_msg}
43555 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43556 Built-in manual: ${curl_manual_msg}
43557 --libcurl option: ${curl_libcurl_msg}
43558 Verbose errors: ${curl_verbose_msg}
43559 SSPI support: ${curl_sspi_msg}
43560 ca cert bundle: ${ca}${ca_warning}
43561 ca cert path: ${capath}${capath_warning}
43562 ca fallback: ${with_ca_fallback}
43563 LDAP support: ${curl_ldap_msg}
43564 LDAPS support: ${curl_ldaps_msg}
43565 RTSP support: ${curl_rtsp_msg}
43566 RTMP support: ${curl_rtmp_msg}
43567 metalink support: ${curl_mtlnk_msg}
43568 PSL support: ${curl_psl_msg}
43569 HTTP2 support: ${curl_h2_msg}
43570 Protocols: ${SUPPORT_PROTOCOLS}
43572 $as_echo "$as_me: Configured to build curl/libcurl:
43574 curl version: ${CURLVERSION}
43575 Host setup: ${host}
43576 Install prefix: ${prefix}
43578 SSL support: ${curl_ssl_msg}
43579 SSH support: ${curl_ssh_msg}
43580 zlib support: ${curl_zlib_msg}
43581 GSS-API support: ${curl_gss_msg}
43582 TLS-SRP support: ${curl_tls_srp_msg}
43583 resolver: ${curl_res_msg}
43584 IPv6 support: ${curl_ipv6_msg}
43585 Unix sockets support: ${curl_unix_sockets_msg}
43586 IDN support: ${curl_idn_msg}
43587 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43588 Built-in manual: ${curl_manual_msg}
43589 --libcurl option: ${curl_libcurl_msg}
43590 Verbose errors: ${curl_verbose_msg}
43591 SSPI support: ${curl_sspi_msg}
43592 ca cert bundle: ${ca}${ca_warning}
43593 ca cert path: ${capath}${capath_warning}
43594 ca fallback: ${with_ca_fallback}
43595 LDAP support: ${curl_ldap_msg}
43596 LDAPS support: ${curl_ldaps_msg}
43597 RTSP support: ${curl_rtsp_msg}
43598 RTMP support: ${curl_rtmp_msg}
43599 metalink support: ${curl_mtlnk_msg}
43600 PSL support: ${curl_psl_msg}
43601 HTTP2 support: ${curl_h2_msg}
43602 Protocols: ${SUPPORT_PROTOCOLS}
43605 if test "x$soname_bump" = "xyes"; then
43608 SONAME bump: yes - WARNING: this library will be built with the SONAME
43609 number bumped due to (a detected) ABI breakage.
43610 See lib/README.curl_off_t for details on this.