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: http://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 - 2014 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: http://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: http://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
908 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
909 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
910 CURL_LT_SHLIB_VERSIONED_FLAVOUR
954 DOING_NATIVE_WINDOWS_FALSE
955 DOING_NATIVE_WINDOWS_TRUE
956 BUILD_UNITTESTS_FALSE
960 USE_EXPLICIT_LIB_DEPS_FALSE
961 USE_EXPLICIT_LIB_DEPS_TRUE
963 CPPFLAG_CURL_STATICLIB
964 USE_CPPFLAG_CURL_STATICLIB_FALSE
965 USE_CPPFLAG_CURL_STATICLIB_TRUE
966 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
967 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
968 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
969 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
970 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
971 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1004 AM_DEFAULT_VERBOSITY
1025 INSTALL_STRIP_PROGRAM
1056 MAINTAINER_MODE_FALSE
1057 MAINTAINER_MODE_TRUE
1085 program_transform_name
1098 enable_option_checking
1099 enable_maintainer_mode
1105 enable_symbol_hiding
1106 enable_hidden_symbols
1109 enable_dependency_tracking
1135 enable_libcurl_option
1141 with_gssapi_includes
1159 enable_versioned_symbols
1163 enable_threaded_resolver
1173 ac_precious_vars='build_alias
1182 ac_subdirs_all='ares'
1184 # Initialize some variables set by options.
1186 ac_init_version=false
1187 ac_unrecognized_opts=
1188 ac_unrecognized_sep=
1189 # The variables have the same names as the options, with
1190 # dashes changed to underlines.
1191 cache_file=/dev/null
1198 program_transform_name=s,x,x,
1206 # Installation directory options.
1207 # These are left unexpanded so users can "make install exec_prefix=/foo"
1208 # and all the variables that are supposed to be based on exec_prefix
1209 # by default will actually change.
1210 # Use braces instead of parens because sh, perl, etc. also accept them.
1211 # (The list follows the same order as the GNU Coding Standards.)
1212 bindir='${exec_prefix}/bin'
1213 sbindir='${exec_prefix}/sbin'
1214 libexecdir='${exec_prefix}/libexec'
1215 datarootdir='${prefix}/share'
1216 datadir='${datarootdir}'
1217 sysconfdir='${prefix}/etc'
1218 sharedstatedir='${prefix}/com'
1219 localstatedir='${prefix}/var'
1220 includedir='${prefix}/include'
1221 oldincludedir='/usr/include'
1222 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1223 infodir='${datarootdir}/info'
1228 libdir='${exec_prefix}/lib'
1229 localedir='${datarootdir}/locale'
1230 mandir='${datarootdir}/man'
1236 # If the previous option needs an argument, assign it.
1237 if test -n "$ac_prev"; then
1238 eval $ac_prev=\$ac_option
1244 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1249 # Accept the important Cygnus configure options, so we can diagnose typos.
1251 case $ac_dashdash$ac_option in
1255 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1257 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1258 bindir=$ac_optarg ;;
1260 -build | --build | --buil | --bui | --bu)
1261 ac_prev=build_alias ;;
1262 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1263 build_alias=$ac_optarg ;;
1265 -cache-file | --cache-file | --cache-fil | --cache-fi \
1266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1267 ac_prev=cache_file ;;
1268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1270 cache_file=$ac_optarg ;;
1272 --config-cache | -C)
1273 cache_file=config.cache ;;
1275 -datadir | --datadir | --datadi | --datad)
1277 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1278 datadir=$ac_optarg ;;
1280 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1281 | --dataroo | --dataro | --datar)
1282 ac_prev=datarootdir ;;
1283 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1284 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1285 datarootdir=$ac_optarg ;;
1287 -disable-* | --disable-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error $? "invalid feature name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1296 "enable_$ac_useropt"
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1301 eval enable_$ac_useropt=no ;;
1303 -docdir | --docdir | --docdi | --doc | --do)
1305 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1306 docdir=$ac_optarg ;;
1308 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1310 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1311 dvidir=$ac_optarg ;;
1313 -enable-* | --enable-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error $? "invalid feature name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "enable_$ac_useropt"
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1327 eval enable_$ac_useropt=\$ac_optarg ;;
1329 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1330 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1331 | --exec | --exe | --ex)
1332 ac_prev=exec_prefix ;;
1333 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1334 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1335 | --exec=* | --exe=* | --ex=*)
1336 exec_prefix=$ac_optarg ;;
1338 -gas | --gas | --ga | --g)
1339 # Obsolete; use --with-gas.
1342 -help | --help | --hel | --he | -h)
1343 ac_init_help=long ;;
1344 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1345 ac_init_help=recursive ;;
1346 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1347 ac_init_help=short ;;
1349 -host | --host | --hos | --ho)
1350 ac_prev=host_alias ;;
1351 -host=* | --host=* | --hos=* | --ho=*)
1352 host_alias=$ac_optarg ;;
1354 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1356 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1358 htmldir=$ac_optarg ;;
1360 -includedir | --includedir | --includedi | --included | --include \
1361 | --includ | --inclu | --incl | --inc)
1362 ac_prev=includedir ;;
1363 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1364 | --includ=* | --inclu=* | --incl=* | --inc=*)
1365 includedir=$ac_optarg ;;
1367 -infodir | --infodir | --infodi | --infod | --info | --inf)
1369 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1370 infodir=$ac_optarg ;;
1372 -libdir | --libdir | --libdi | --libd)
1374 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1375 libdir=$ac_optarg ;;
1377 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1378 | --libexe | --libex | --libe)
1379 ac_prev=libexecdir ;;
1380 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1381 | --libexe=* | --libex=* | --libe=*)
1382 libexecdir=$ac_optarg ;;
1384 -localedir | --localedir | --localedi | --localed | --locale)
1385 ac_prev=localedir ;;
1386 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1387 localedir=$ac_optarg ;;
1389 -localstatedir | --localstatedir | --localstatedi | --localstated \
1390 | --localstate | --localstat | --localsta | --localst | --locals)
1391 ac_prev=localstatedir ;;
1392 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1393 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1394 localstatedir=$ac_optarg ;;
1396 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1398 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1399 mandir=$ac_optarg ;;
1401 -nfp | --nfp | --nf)
1402 # Obsolete; use --without-fp.
1405 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1406 | --no-cr | --no-c | -n)
1409 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1410 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1413 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1414 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1415 | --oldin | --oldi | --old | --ol | --o)
1416 ac_prev=oldincludedir ;;
1417 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1418 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1419 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1420 oldincludedir=$ac_optarg ;;
1422 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1424 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1425 prefix=$ac_optarg ;;
1427 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1428 | --program-pre | --program-pr | --program-p)
1429 ac_prev=program_prefix ;;
1430 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1431 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1432 program_prefix=$ac_optarg ;;
1434 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1435 | --program-suf | --program-su | --program-s)
1436 ac_prev=program_suffix ;;
1437 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1438 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1439 program_suffix=$ac_optarg ;;
1441 -program-transform-name | --program-transform-name \
1442 | --program-transform-nam | --program-transform-na \
1443 | --program-transform-n | --program-transform- \
1444 | --program-transform | --program-transfor \
1445 | --program-transfo | --program-transf \
1446 | --program-trans | --program-tran \
1447 | --progr-tra | --program-tr | --program-t)
1448 ac_prev=program_transform_name ;;
1449 -program-transform-name=* | --program-transform-name=* \
1450 | --program-transform-nam=* | --program-transform-na=* \
1451 | --program-transform-n=* | --program-transform-=* \
1452 | --program-transform=* | --program-transfor=* \
1453 | --program-transfo=* | --program-transf=* \
1454 | --program-trans=* | --program-tran=* \
1455 | --progr-tra=* | --program-tr=* | --program-t=*)
1456 program_transform_name=$ac_optarg ;;
1458 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1460 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1461 pdfdir=$ac_optarg ;;
1463 -psdir | --psdir | --psdi | --psd | --ps)
1465 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1469 | -silent | --silent | --silen | --sile | --sil)
1472 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1474 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1476 sbindir=$ac_optarg ;;
1478 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1479 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1480 | --sharedst | --shareds | --shared | --share | --shar \
1482 ac_prev=sharedstatedir ;;
1483 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1484 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1485 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1487 sharedstatedir=$ac_optarg ;;
1489 -site | --site | --sit)
1491 -site=* | --site=* | --sit=*)
1494 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1496 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1497 srcdir=$ac_optarg ;;
1499 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1500 | --syscon | --sysco | --sysc | --sys | --sy)
1501 ac_prev=sysconfdir ;;
1502 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1503 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1504 sysconfdir=$ac_optarg ;;
1506 -target | --target | --targe | --targ | --tar | --ta | --t)
1507 ac_prev=target_alias ;;
1508 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1509 target_alias=$ac_optarg ;;
1511 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1514 -version | --version | --versio | --versi | --vers | -V)
1515 ac_init_version=: ;;
1518 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1519 # Reject names that are not valid shell variable names.
1520 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1521 as_fn_error $? "invalid package name: $ac_useropt"
1522 ac_useropt_orig=$ac_useropt
1523 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1524 case $ac_user_opts in
1528 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1529 ac_unrecognized_sep=', ';;
1531 eval with_$ac_useropt=\$ac_optarg ;;
1533 -without-* | --without-*)
1534 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1535 # Reject names that are not valid shell variable names.
1536 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1537 as_fn_error $? "invalid package name: $ac_useropt"
1538 ac_useropt_orig=$ac_useropt
1539 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1540 case $ac_user_opts in
1544 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1545 ac_unrecognized_sep=', ';;
1547 eval with_$ac_useropt=no ;;
1550 # Obsolete; use --with-x.
1553 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1554 | --x-incl | --x-inc | --x-in | --x-i)
1555 ac_prev=x_includes ;;
1556 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1557 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1558 x_includes=$ac_optarg ;;
1560 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1561 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1562 ac_prev=x_libraries ;;
1563 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1564 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1565 x_libraries=$ac_optarg ;;
1567 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1568 Try \`$0 --help' for more information"
1572 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1573 # Reject names that are not valid shell variable names.
1574 case $ac_envvar in #(
1575 '' | [0-9]* | *[!_$as_cr_alnum]* )
1576 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1578 eval $ac_envvar=\$ac_optarg
1579 export $ac_envvar ;;
1582 # FIXME: should be removed in autoconf 3.0.
1583 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1584 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1585 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1586 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1592 if test -n "$ac_prev"; then
1593 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1594 as_fn_error $? "missing argument to $ac_option"
1597 if test -n "$ac_unrecognized_opts"; then
1598 case $enable_option_checking in
1600 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1601 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1605 # Check all directory arguments for consistency.
1606 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1607 datadir sysconfdir sharedstatedir localstatedir includedir \
1608 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1609 libdir localedir mandir
1611 eval ac_val=\$$ac_var
1612 # Remove trailing slashes.
1615 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1616 eval $ac_var=\$ac_val;;
1618 # Be sure to have absolute directory names.
1620 [\\/$]* | ?:[\\/]* ) continue;;
1621 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1623 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1626 # There might be people who depend on the old broken behavior: `$host'
1627 # used to hold the argument of --host etc.
1628 # FIXME: To remove some day.
1631 target=$target_alias
1633 # FIXME: To remove some day.
1634 if test "x$host_alias" != x; then
1635 if test "x$build_alias" = x; then
1636 cross_compiling=maybe
1637 elif test "x$build_alias" != "x$host_alias"; then
1643 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1645 test "$silent" = yes && exec 6>/dev/null
1648 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1649 ac_ls_di=`ls -di .` &&
1650 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1651 as_fn_error $? "working directory cannot be determined"
1652 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1653 as_fn_error $? "pwd does not report name of working directory"
1656 # Find the source files, if location was not specified.
1657 if test -z "$srcdir"; then
1658 ac_srcdir_defaulted=yes
1659 # Try the directory containing this script, then the parent directory.
1660 ac_confdir=`$as_dirname -- "$as_myself" ||
1661 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1662 X"$as_myself" : 'X\(//\)[^/]' \| \
1663 X"$as_myself" : 'X\(//\)$' \| \
1664 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1665 $as_echo X"$as_myself" |
1666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1684 if test ! -r "$srcdir/$ac_unique_file"; then
1688 ac_srcdir_defaulted=no
1690 if test ! -r "$srcdir/$ac_unique_file"; then
1691 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1692 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1694 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1696 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1698 # When building in place, set srcdir=.
1699 if test "$ac_abs_confdir" = "$ac_pwd"; then
1702 # Remove unnecessary trailing slashes from srcdir.
1703 # Double slashes in file names in object file debugging info
1704 # mess up M-x gdb in Emacs.
1706 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1708 for ac_var in $ac_precious_vars; do
1709 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1710 eval ac_env_${ac_var}_value=\$${ac_var}
1711 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1712 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1716 # Report the --help message.
1718 if test "$ac_init_help" = "long"; then
1719 # Omit some internal or obsolete options to make the list less imposing.
1720 # This message is too long to be a string in the A/UX 3.1 sh.
1722 \`configure' configures curl - to adapt to many kinds of systems.
1724 Usage: $0 [OPTION]... [VAR=VALUE]...
1726 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1727 VAR=VALUE. See below for descriptions of some of the useful variables.
1729 Defaults for the options are specified in brackets.
1732 -h, --help display this help and exit
1733 --help=short display options specific to this package
1734 --help=recursive display the short help of all the included packages
1735 -V, --version display version information and exit
1736 -q, --quiet, --silent do not print \`checking ...' messages
1737 --cache-file=FILE cache test results in FILE [disabled]
1738 -C, --config-cache alias for \`--cache-file=config.cache'
1739 -n, --no-create do not create output files
1740 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1742 Installation directories:
1743 --prefix=PREFIX install architecture-independent files in PREFIX
1744 [$ac_default_prefix]
1745 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1748 By default, \`make install' will install all the files in
1749 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1750 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1751 for instance \`--prefix=\$HOME'.
1753 For better control, use the options below.
1755 Fine tuning of the installation directories:
1756 --bindir=DIR user executables [EPREFIX/bin]
1757 --sbindir=DIR system admin executables [EPREFIX/sbin]
1758 --libexecdir=DIR program executables [EPREFIX/libexec]
1759 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1760 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1761 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1762 --libdir=DIR object code libraries [EPREFIX/lib]
1763 --includedir=DIR C header files [PREFIX/include]
1764 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1765 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1766 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1767 --infodir=DIR info documentation [DATAROOTDIR/info]
1768 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1769 --mandir=DIR man documentation [DATAROOTDIR/man]
1770 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1771 --htmldir=DIR html documentation [DOCDIR]
1772 --dvidir=DIR dvi documentation [DOCDIR]
1773 --pdfdir=DIR pdf documentation [DOCDIR]
1774 --psdir=DIR ps documentation [DOCDIR]
1780 --program-prefix=PREFIX prepend PREFIX to installed program names
1781 --program-suffix=SUFFIX append SUFFIX to installed program names
1782 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1785 --build=BUILD configure for building on BUILD [guessed]
1786 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1790 if test -n "$ac_init_help"; then
1791 case $ac_init_help in
1792 short | recursive ) echo "Configuration of curl -:";;
1797 --disable-option-checking ignore unrecognized --enable/--with options
1798 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1799 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1800 --enable-maintainer-mode
1801 enable make rules and dependencies not useful (and
1802 sometimes confusing) to the casual installer
1803 --enable-debug Enable debug build options
1804 --disable-debug Disable debug build options
1805 --enable-optimize Enable compiler optimizations
1806 --disable-optimize Disable compiler optimizations
1807 --enable-warnings Enable strict compiler warnings
1808 --disable-warnings Disable strict compiler warnings
1809 --enable-werror Enable compiler warnings as errors
1810 --disable-werror Disable compiler warnings as errors
1811 --enable-curldebug Enable curl debug memory tracking
1812 --disable-curldebug Disable curl debug memory tracking
1813 --enable-symbol-hiding Enable hiding of library internal symbols
1814 --disable-symbol-hiding Disable hiding of library internal symbols
1815 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1816 --disable-hidden-symbols
1817 To be deprecated, use --disable-symbol-hiding
1818 --enable-ares[=PATH] Enable c-ares for DNS lookups
1819 --disable-ares Disable c-ares for DNS lookups
1820 --disable-rt disable dependency on -lrt
1821 --enable-dependency-tracking
1822 do not reject slow dependency extractors
1823 --disable-dependency-tracking
1824 speeds up one-time build
1825 --enable-silent-rules less verbose build output (undo: "make V=1")
1826 --disable-silent-rules verbose build output (undo: "make V=0")
1827 --disable-largefile omit support for large files
1828 --enable-shared[=PKGS] build shared libraries [default=yes]
1829 --enable-static[=PKGS] build static libraries [default=yes]
1830 --enable-fast-install[=PKGS]
1831 optimize for fast installation [default=yes]
1832 --disable-libtool-lock avoid locking (might break parallel builds)
1833 --enable-http Enable HTTP support
1834 --disable-http Disable HTTP support
1835 --enable-ftp Enable FTP support
1836 --disable-ftp Disable FTP support
1837 --enable-file Enable FILE support
1838 --disable-file Disable FILE support
1839 --enable-ldap Enable LDAP support
1840 --disable-ldap Disable LDAP support
1841 --enable-ldaps Enable LDAPS support
1842 --disable-ldaps Disable LDAPS support
1843 --enable-rtsp Enable RTSP support
1844 --disable-rtsp Disable RTSP support
1845 --enable-proxy Enable proxy support
1846 --disable-proxy Disable proxy support
1847 --enable-dict Enable DICT support
1848 --disable-dict Disable DICT support
1849 --enable-telnet Enable TELNET support
1850 --disable-telnet Disable TELNET support
1851 --enable-tftp Enable TFTP support
1852 --disable-tftp Disable TFTP support
1853 --enable-pop3 Enable POP3 support
1854 --disable-pop3 Disable POP3 support
1855 --enable-imap Enable IMAP support
1856 --disable-imap Disable IMAP support
1857 --enable-smb Enable SMB/CIFS support
1858 --disable-smb Disable SMB/CIFS support
1859 --enable-smtp Enable SMTP support
1860 --disable-smtp Disable SMTP support
1861 --enable-gopher Enable Gopher support
1862 --disable-gopher Disable Gopher support
1863 --enable-manual Enable built-in manual
1864 --disable-manual Disable built-in manual
1865 --enable-libcurl-option Enable --libcurl C code generation support
1866 --disable-libcurl-option
1867 Disable --libcurl C code generation support
1868 --enable-libgcc use libgcc when linking
1869 --enable-ipv6 Enable IPv6 (with IPv4) support
1870 --disable-ipv6 Disable IPv6 support
1871 --enable-versioned-symbols
1872 Enable versioned symbols in shared library
1873 --disable-versioned-symbols
1874 Disable versioned symbols in shared library
1875 --enable-threaded-resolver
1876 Enable threaded resolver
1877 --disable-threaded-resolver
1878 Disable threaded resolver
1879 --enable-verbose Enable verbose strings
1880 --disable-verbose Disable verbose strings
1881 --enable-sspi Enable SSPI
1882 --disable-sspi Disable SSPI
1883 --enable-crypto-auth Enable cryptographic authentication
1884 --disable-crypto-auth Disable cryptographic authentication
1885 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1886 helper, where FILE is ntlm_auth's absolute filename
1887 (default: /usr/bin/ntlm_auth)
1888 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1890 --enable-tls-srp Enable TLS-SRP authentication
1891 --disable-tls-srp Disable TLS-SRP authentication
1892 --enable-unix-sockets Enable Unix domain sockets
1893 --disable-unix-sockets Disable Unix domain sockets
1894 --enable-cookies Enable cookies support
1895 --disable-cookies Disable cookies support
1896 --enable-soname-bump Enable enforced SONAME bump
1897 --disable-soname-bump Disable enforced SONAME bump
1900 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1901 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1902 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1904 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1905 --with-sysroot=DIR Search for dependent libraries within DIR
1906 (or the compiler's sysroot if not specified).
1907 --with-zlib=PATH search for zlib in PATH
1908 --without-zlib disable use of zlib
1909 --with-ldap-lib=libname Specify name of ldap lib file
1910 --with-lber-lib=libname Specify name of lber lib file
1911 --with-gssapi-includes=DIR
1912 Specify location of GSS-API headers
1913 --with-gssapi-libs=DIR Specify location of GSS-API libs
1914 --with-gssapi=DIR Where to look for GSS-API
1915 --with-winssl enable Windows native SSL/TLS
1916 --without-winssl disable Windows native SSL/TLS
1917 --with-darwinssl enable iOS/Mac OS X native SSL/TLS
1918 --without-darwinssl disable iOS/Mac OS X native SSL/TLS
1919 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1920 installation (default: /usr/local/ssl); when
1921 possible, set the PKG_CONFIG_PATH environment
1922 variable instead of using this option
1923 --without-ssl disable OpenSSL
1924 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1925 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1926 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1928 --without-gnutls disable GnuTLS detection
1929 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1931 --without-polarssl disable PolarSSL detection
1932 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1933 installation root (default: system lib default)
1934 --without-cyassl disable CyaSSL detection
1935 --with-nss=PATH where to look for NSS, PATH points to the
1937 --without-nss disable NSS detection
1938 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
1939 installation prefix (default: /usr/local). Ignored
1940 if another SSL engine is selected.
1941 --without-axtls disable axTLS
1942 --with-ca-bundle=FILE File name to use as CA bundle
1943 --without-ca-bundle Don't use a default CA bundle
1944 --with-ca-path=DIRECTORY
1945 Directory to use as CA path
1946 --without-ca-path Don't use a default CA path
1947 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1949 --without-libmetalink disable libmetalink detection
1950 --with-libssh2=PATH Where to look for libssh2, PATH points to the
1951 LIBSSH2 installation; when possible, set the
1952 PKG_CONFIG_PATH environment variable instead of
1954 --without-libssh2 disable LIBSSH2
1955 --with-librtmp=PATH Where to look for librtmp, PATH points to the
1956 LIBRTMP installation; when possible, set the
1957 PKG_CONFIG_PATH environment variable instead of
1959 --without-librtmp disable LIBRTMP
1960 --with-winidn=PATH enable Windows native IDN
1961 --without-winidn disable Windows native IDN
1962 --with-libidn=PATH Enable libidn usage
1963 --without-libidn Disable libidn usage
1964 --with-nghttp2=PATH Enable nghttp2 usage
1965 --without-nghttp2 Disable nghttp2 usage
1967 Some influential environment variables:
1968 CC C compiler command
1969 CFLAGS C compiler flags
1970 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1971 nonstandard directory <lib dir>
1972 LIBS libraries to pass to the linker, e.g. -l<library>
1973 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1974 you have headers in a nonstandard directory <include dir>
1977 Use these variables to override the choices made by `configure' or to help
1978 it to find libraries and programs with nonstandard names/locations.
1980 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1985 if test "$ac_init_help" = "recursive"; then
1986 # If there are subdirs, report their specific --help.
1987 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1988 test -d "$ac_dir" ||
1989 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1994 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1996 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1997 # A ".." for each directory in $ac_dir_suffix.
1998 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1999 case $ac_top_builddir_sub in
2000 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2001 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2004 ac_abs_top_builddir=$ac_pwd
2005 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2006 # for backward compatibility:
2007 ac_top_builddir=$ac_top_build_prefix
2010 .) # We are building in place.
2012 ac_top_srcdir=$ac_top_builddir_sub
2013 ac_abs_top_srcdir=$ac_pwd ;;
2014 [\\/]* | ?:[\\/]* ) # Absolute name.
2015 ac_srcdir=$srcdir$ac_dir_suffix;
2016 ac_top_srcdir=$srcdir
2017 ac_abs_top_srcdir=$srcdir ;;
2019 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2020 ac_top_srcdir=$ac_top_build_prefix$srcdir
2021 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2023 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2025 cd "$ac_dir" || { ac_status=$?; continue; }
2026 # Check for guested configure.
2027 if test -f "$ac_srcdir/configure.gnu"; then
2029 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2030 elif test -f "$ac_srcdir/configure"; then
2032 $SHELL "$ac_srcdir/configure" --help=recursive
2034 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2036 cd "$ac_pwd" || { ac_status=$?; break; }
2040 test -n "$ac_init_help" && exit $ac_status
2041 if $ac_init_version; then
2044 generated by GNU Autoconf 2.69
2046 Copyright (C) 2012 Free Software Foundation, Inc.
2047 This configure script is free software; the Free Software Foundation
2048 gives unlimited permission to copy, distribute and modify it.
2050 Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
2051 This configure script may be copied, distributed and modified under the
2052 terms of the curl license; see COPYING for more details
2057 ## ------------------------ ##
2058 ## Autoconf initialization. ##
2059 ## ------------------------ ##
2061 # ac_fn_c_try_compile LINENO
2062 # --------------------------
2063 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_c_try_compile ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 rm -f conftest.$ac_objext
2068 if { { ac_try="$ac_compile"
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_compile") 2>conftest.err
2077 if test -s conftest.err; then
2078 grep -v '^ *+' conftest.err >conftest.er1
2079 cat conftest.er1 >&5
2080 mv -f conftest.er1 conftest.err
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && {
2084 test -z "$ac_c_werror_flag" ||
2085 test ! -s conftest.err
2086 } && test -s conftest.$ac_objext; then :
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 as_fn_set_status $ac_retval
2097 } # ac_fn_c_try_compile
2099 # ac_fn_c_try_cpp LINENO
2100 # ----------------------
2101 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if { { ac_try="$ac_cpp conftest.$ac_ext"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } > conftest.i && {
2121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2122 test ! -s conftest.err
2126 $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 as_fn_set_status $ac_retval
2136 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2137 # -------------------------------------------------------
2138 # Tests whether HEADER exists and can be compiled using the include files in
2139 # INCLUDES, setting the cache variable VAR accordingly.
2140 ac_fn_c_check_header_compile ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2153 if ac_fn_c_try_compile "$LINENO"; then :
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } # ac_fn_c_check_header_compile
2167 # ac_fn_c_try_run LINENO
2168 # ----------------------
2169 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2170 # that executables *can* be run.
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 if { { ac_try="$ac_link"
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181 (eval "$ac_link") 2>&5
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2185 { { case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_try") 2>&5
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; }; }; then :
2197 $as_echo "$as_me: program exited with status $ac_status" >&5
2198 $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 ac_retval=$ac_status
2203 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval
2209 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2210 # --------------------------------------------
2211 # Tries to find the compile-time value of EXPR in a program that includes
2212 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2214 ac_fn_c_compute_int ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 if test "$cross_compiling" = yes; then
2218 # Depending upon the size, compute the lo and hi bounds.
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) >= 0)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_hi=$ac_mid; break
2251 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2252 if test $ac_lo -le $ac_mid; then
2256 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) < 0)];
2268 return test_array [0];
2274 if ac_fn_c_try_compile "$LINENO"; then :
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2282 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2284 return test_array [0];
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 ac_lo=$ac_mid; break
2293 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2294 if test $ac_mid -le $ac_hi; then
2298 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 # Binary search between lo and hi bounds.
2309 while test "x$ac_lo" != "x$ac_hi"; do
2310 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2316 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 return test_array [0];
2324 if ac_fn_c_try_compile "$LINENO"; then :
2327 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2339 static long int longval () { return $2; }
2340 static unsigned long int ulongval () { return $2; }
2346 FILE *f = fopen ("conftest.val", "w");
2351 long int i = longval ();
2354 fprintf (f, "%ld", i);
2358 unsigned long int i = ulongval ();
2361 fprintf (f, "%lu", i);
2363 /* Do not output a trailing newline, as this causes \r\n confusion
2364 on some platforms. */
2365 return ferror (f) || fclose (f) != 0;
2371 if ac_fn_c_try_run "$LINENO"; then :
2372 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2377 conftest.$ac_objext conftest.beam conftest.$ac_ext
2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 as_fn_set_status $ac_retval
2384 } # ac_fn_c_compute_int
2386 # ac_fn_c_try_link LINENO
2387 # -----------------------
2388 # Try to link conftest.$ac_ext, and return whether this succeeded.
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 rm -f conftest.$ac_objext conftest$ac_exeext
2393 if { { ac_try="$ac_link"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399 $as_echo "$ac_try_echo"; } >&5
2400 (eval "$ac_link") 2>conftest.err
2402 if test -s conftest.err; then
2403 grep -v '^ *+' conftest.err >conftest.er1
2404 cat conftest.er1 >&5
2405 mv -f conftest.er1 conftest.err
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest$ac_exeext && {
2412 test "$cross_compiling" = yes ||
2413 test -x conftest$ac_exeext
2417 $as_echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2422 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2423 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2424 # interfere with the next link command; also delete a directory that is
2425 # left behind by Apple's compiler. We do this before executing the actions.
2426 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428 as_fn_set_status $ac_retval
2430 } # ac_fn_c_try_link
2432 # ac_fn_c_check_func LINENO FUNC VAR
2433 # ----------------------------------
2434 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2435 ac_fn_c_check_func ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if eval \${$3+:} false; then :
2441 $as_echo_n "(cached) " >&6
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2446 #define $2 innocuous_$2
2448 # include <limits.h>
2450 # include <assert.h>
2457 #if defined __stub_$2 || defined __stub___$2
2468 if ac_fn_c_try_link "$LINENO"; then :
2473 rm -f core conftest.err conftest.$ac_objext \
2474 conftest$ac_exeext conftest.$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481 } # ac_fn_c_check_func
2483 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2484 # -------------------------------------------------------
2485 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2486 # the include files in INCLUDES and setting the cache variable VAR
2488 ac_fn_c_check_header_mongrel ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 if eval \${$3+:} false; then :
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493 $as_echo_n "checking for $2... " >&6; }
2494 if eval \${$3+:} false; then :
2495 $as_echo_n "(cached) " >&6
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2501 # Is the header compilable?
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2503 $as_echo_n "checking $2 usability... " >&6; }
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510 ac_header_compiler=yes
2512 ac_header_compiler=no
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2516 $as_echo "$ac_header_compiler" >&6; }
2518 # Is the header present?
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2520 $as_echo_n "checking $2 presence... " >&6; }
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2525 if ac_fn_c_try_cpp "$LINENO"; then :
2526 ac_header_preproc=yes
2528 ac_header_preproc=no
2530 rm -f conftest.err conftest.i conftest.$ac_ext
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2532 $as_echo "$ac_header_preproc" >&6; }
2534 # So? What about this header?
2535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2538 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2544 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2546 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2548 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2550 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2552 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2553 ( $as_echo "## ---------------------------------------------------------------------- ##
2554 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2555 ## ---------------------------------------------------------------------- ##"
2556 ) | sed "s/^/$as_me: WARNING: /" >&2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560 $as_echo_n "checking for $2... " >&6; }
2561 if eval \${$3+:} false; then :
2562 $as_echo_n "(cached) " >&6
2564 eval "$3=\$ac_header_compiler"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 } # ac_fn_c_check_header_mongrel
2574 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2575 # -------------------------------------------
2576 # Tests whether TYPE exists after having included INCLUDES, setting cache
2577 # variable VAR accordingly.
2578 ac_fn_c_check_type ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582 $as_echo_n "checking for $2... " >&6; }
2583 if eval \${$3+:} false; then :
2584 $as_echo_n "(cached) " >&6
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2598 if ac_fn_c_try_compile "$LINENO"; then :
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2610 if ac_fn_c_try_compile "$LINENO"; then :
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2624 } # ac_fn_c_check_type
2626 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2627 # ----------------------------------------------------
2628 # Tries to find if the field MEMBER exists in type AGGR, after including
2629 # INCLUDES, setting cache variable VAR accordingly.
2630 ac_fn_c_check_member ()
2632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2634 $as_echo_n "checking for $2.$3... " >&6; }
2635 if eval \${$4+:} false; then :
2636 $as_echo_n "(cached) " >&6
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2650 if ac_fn_c_try_compile "$LINENO"; then :
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2659 if (sizeof ac_aggr.$3)
2665 if ac_fn_c_try_compile "$LINENO"; then :
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2679 } # ac_fn_c_check_member
2680 cat >config.log <<_ACEOF
2681 This file contains any messages produced by compilers while
2682 running configure, to aid debugging if configure makes a mistake.
2684 It was created by curl $as_me -, which was
2685 generated by GNU Autoconf 2.69. Invocation command line was
2697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 $as_echo "PATH: $as_dir"
2737 # Keep a trace of the command line.
2738 # Strip out --no-create and --no-recursion so they do not pile up.
2739 # Strip out --silent because we don't want to record it for future runs.
2740 # Also quote any args containing shell meta-characters.
2741 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_must_keep_next=false
2751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2753 | -silent | --silent | --silen | --sile | --sil)
2756 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2759 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2761 as_fn_append ac_configure_args1 " '$ac_arg'"
2762 if test $ac_must_keep_next = true; then
2763 ac_must_keep_next=false # Got value, back to normal.
2766 *=* | --config-cache | -C | -disable-* | --disable-* \
2767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2769 | -with-* | --with-* | -without-* | --without-* | --x)
2770 case "$ac_configure_args0 " in
2771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2774 -* ) ac_must_keep_next=true ;;
2777 as_fn_append ac_configure_args " '$ac_arg'"
2782 { ac_configure_args0=; unset ac_configure_args0;}
2783 { ac_configure_args1=; unset ac_configure_args1;}
2785 # When interrupted or exit'd, cleanup temporary files, and complete
2786 # config.log. We remove comments because anyway the quotes in there
2787 # would cause problems or look ugly.
2788 # WARNING: Use '\'' to represent an apostrophe within the trap.
2789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2790 trap 'exit_status=$?
2791 # Save into config.log some information that might help in debugging.
2795 $as_echo "## ---------------- ##
2796 ## Cache variables. ##
2797 ## ---------------- ##"
2799 # The following way of writing the cache mishandles newlines in values,
2801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2802 eval ac_val=\$$ac_var
2806 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2810 _ | IFS | as_nl) ;; #(
2811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2812 *) { eval $ac_var=; unset $ac_var;} ;;
2817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2818 *${as_nl}ac_space=\ *)
2820 "s/'\''/'\''\\\\'\'''\''/g;
2821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2831 $as_echo "## ----------------- ##
2832 ## Output variables. ##
2833 ## ----------------- ##"
2835 for ac_var in $ac_subst_vars
2837 eval ac_val=\$$ac_var
2839 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2841 $as_echo "$ac_var='\''$ac_val'\''"
2845 if test -n "$ac_subst_files"; then
2846 $as_echo "## ------------------- ##
2847 ## File substitutions. ##
2848 ## ------------------- ##"
2850 for ac_var in $ac_subst_files
2852 eval ac_val=\$$ac_var
2854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2856 $as_echo "$ac_var='\''$ac_val'\''"
2861 if test -s confdefs.h; then
2862 $as_echo "## ----------- ##
2869 test "$ac_signal" != 0 &&
2870 $as_echo "$as_me: caught signal $ac_signal"
2871 $as_echo "$as_me: exit $exit_status"
2873 rm -f core *.core core.conftest.* &&
2874 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2877 for ac_signal in 1 2 13 15; do
2878 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2883 rm -f -r conftest* confdefs.h
2885 $as_echo "/* confdefs.h */" > confdefs.h
2887 # Predefined preprocessor variables.
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_NAME "$PACKAGE_NAME"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_STRING "$PACKAGE_STRING"
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_URL "$PACKAGE_URL"
2914 # Let the site file select an alternate cache file if it wants to.
2915 # Prefer an explicitly selected file to automatically selected ones.
2918 if test -n "$CONFIG_SITE"; then
2919 # We do not want a PATH search for config.site.
2920 case $CONFIG_SITE in #((
2921 -*) ac_site_file1=./$CONFIG_SITE;;
2922 */*) ac_site_file1=$CONFIG_SITE;;
2923 *) ac_site_file1=./$CONFIG_SITE;;
2925 elif test "x$prefix" != xNONE; then
2926 ac_site_file1=$prefix/share/config.site
2927 ac_site_file2=$prefix/etc/config.site
2929 ac_site_file1=$ac_default_prefix/share/config.site
2930 ac_site_file2=$ac_default_prefix/etc/config.site
2932 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2934 test "x$ac_site_file" = xNONE && continue
2935 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2937 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2938 sed 's/^/| /' "$ac_site_file" >&5
2940 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 as_fn_error $? "failed to load site script $ac_site_file
2943 See \`config.log' for more details" "$LINENO" 5; }
2947 if test -r "$cache_file"; then
2948 # Some versions of bash will fail to source /dev/null (special files
2949 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2950 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2952 $as_echo "$as_me: loading cache $cache_file" >&6;}
2954 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2955 *) . "./$cache_file";;
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2960 $as_echo "$as_me: creating cache $cache_file" >&6;}
2964 # Check that the precious variables saved in the cache have kept the same
2966 ac_cache_corrupted=false
2967 for ac_var in $ac_precious_vars; do
2968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2969 eval ac_new_set=\$ac_env_${ac_var}_set
2970 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2971 eval ac_new_val=\$ac_env_${ac_var}_value
2972 case $ac_old_set,$ac_new_set in
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2975 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2976 ac_cache_corrupted=: ;;
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2979 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2980 ac_cache_corrupted=: ;;
2983 if test "x$ac_old_val" != "x$ac_new_val"; then
2984 # differences in whitespace do not lead to failure.
2985 ac_old_val_w=`echo x $ac_old_val`
2986 ac_new_val_w=`echo x $ac_new_val`
2987 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2989 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2990 ac_cache_corrupted=:
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2993 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2994 eval $ac_var=\$ac_old_val
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2997 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2999 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 # Pass precious variables to config.status.
3003 if test "$ac_new_set" = set; then
3005 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3006 *) ac_arg=$ac_var=$ac_new_val ;;
3008 case " $ac_configure_args " in
3009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3010 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3014 if $ac_cache_corrupted; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3018 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3019 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3021 ## -------------------- ##
3022 ## Main body of script. ##
3023 ## -------------------- ##
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 # using curl-override.m4
3043 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3048 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3049 # Check whether --enable-maintainer-mode was given.
3050 if test "${enable_maintainer_mode+set}" = set; then :
3051 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3053 USE_MAINTAINER_MODE=no
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3057 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3058 if test $USE_MAINTAINER_MODE = yes; then
3059 MAINTAINER_MODE_TRUE=
3060 MAINTAINER_MODE_FALSE='#'
3062 MAINTAINER_MODE_TRUE='#'
3063 MAINTAINER_MODE_FALSE=
3066 MAINT=$MAINTAINER_MODE_TRUE
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3072 $as_echo_n "checking whether to enable debug build options... " >&6; }
3073 OPT_DEBUG_BUILD="default"
3074 # Check whether --enable-debug was given.
3075 if test "${enable_debug+set}" = set; then :
3076 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3079 case "$OPT_DEBUG_BUILD" in
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3091 $as_echo "$want_debug" >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3095 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3096 OPT_COMPILER_OPTIMIZE="default"
3097 # Check whether --enable-optimize was given.
3098 if test "${enable_optimize+set}" = set; then :
3099 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3102 case "$OPT_COMPILER_OPTIMIZE" in
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3109 if test "$want_debug" = "yes"; then
3110 want_optimize="assume_no"
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3112 $as_echo "(assumed) no" >&6; }
3114 want_optimize="assume_yes"
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3116 $as_echo "(assumed) yes" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 $as_echo "yes" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3128 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3129 OPT_COMPILER_WARNINGS="default"
3130 # Check whether --enable-warnings was given.
3131 if test "${enable_warnings+set}" = set; then :
3132 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3135 case "$OPT_COMPILER_WARNINGS" in
3140 want_warnings="$want_debug"
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3147 $as_echo "$want_warnings" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3151 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3152 OPT_COMPILER_WERROR="default"
3153 # Check whether --enable-werror was given.
3154 if test "${enable_werror+set}" = set; then :
3155 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3158 case "$OPT_COMPILER_WERROR" in
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3170 $as_echo "$want_werror" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3174 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3175 OPT_CURLDEBUG_BUILD="default"
3176 # Check whether --enable-curldebug was given.
3177 if test "${enable_curldebug+set}" = set; then :
3178 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3181 case "$OPT_CURLDEBUG_BUILD" in
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3188 if test "$want_debug" = "yes"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3190 $as_echo "(assumed) yes" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3195 want_curldebug_assumed="yes"
3196 want_curldebug="$want_debug"
3199 want_curldebug="yes"
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3207 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3208 OPT_SYMBOL_HIDING="default"
3209 # Check whether --enable-symbol-hiding was given.
3210 if test "${enable_symbol_hiding+set}" = set; then :
3211 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3214 # Check whether --enable-hidden-symbols was given.
3215 if test "${enable_hidden_symbols+set}" = set; then :
3216 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3219 case "$OPT_SYMBOL_HIDING" in
3221 want_symbol_hiding="no"
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3226 want_symbol_hiding="yes"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3231 want_symbol_hiding="yes"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3239 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3241 # Check whether --enable-ares was given.
3242 if test "${enable_ares+set}" = set; then :
3243 enableval=$enable_ares; OPT_ARES=$enableval
3255 if test -n "$enableval" && test "$enableval" != "yes"; then
3256 want_ares_path="$enableval"
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3261 $as_echo "$want_ares" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3265 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3267 # Check whether --enable-rt was given.
3268 if test "${enable_rt+set}" = set; then :
3269 enableval=$enable_rt; OPT_RT=$enableval
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)
3283 $as_echo "(assumed no)
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3291 if test "$dontwant_rt" = "yes" && test "$want_thres" = "yes" ; then
3292 as_fn_error $? "options --disable-rt and --enable-thread-resolver are mutually exclusive, at most one can be selected." "$LINENO" 5
3297 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3300 if test -z "$xc_configure_preamble_result"; then
3301 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3305 # Check that 'PATH_SEPARATOR' has already been set.
3308 if test -z "$xc_PATH_SEPARATOR"; then
3309 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3311 if test -z "$PATH_SEPARATOR"; then
3312 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3315 $as_echo_n "checking for path separator... " >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3317 $as_echo "$PATH_SEPARATOR" >&6; }
3318 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3320 $as_echo_n "checking for initial path separator... " >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3322 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3323 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3328 # save the configure arguments
3330 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3333 CURL_CFLAG_EXTRAS=""
3334 if test X"$want_werror" = Xyes; then
3335 CURL_CFLAG_EXTRAS="-Werror"
3339 if test -z "$SED"; then
3340 # Extract the first word of "sed", so it can be a program name with args.
3341 set dummy sed; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_path_SED+:} false; then :
3345 $as_echo_n "(cached) " >&6
3349 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3354 for as_dir in $as_dummy
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3373 if test -n "$SED"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3375 $as_echo "$SED" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3382 if test -z "$SED" || test "$SED" = "not_found"; then
3383 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3388 if test -z "$GREP"; then
3389 # Extract the first word of "grep", so it can be a program name with args.
3390 set dummy grep; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_path_GREP+:} false; then :
3394 $as_echo_n "(cached) " >&6
3398 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3403 for as_dir in $as_dummy
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3421 GREP=$ac_cv_path_GREP
3422 if test -n "$GREP"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3424 $as_echo "$GREP" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 if test -z "$GREP" || test "$GREP" = "not_found"; then
3432 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3437 if test -z "$EGREP"; then
3438 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3440 $as_echo_n "checking for egrep... " >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3443 $as_echo "$EGREP" >&6; }
3445 # Extract the first word of "egrep", so it can be a program name with args.
3446 set dummy egrep; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if ${ac_cv_path_EGREP+:} false; then :
3450 $as_echo_n "(cached) " >&6
3454 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3459 for as_dir in $as_dummy
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3477 EGREP=$ac_cv_path_EGREP
3478 if test -n "$EGREP"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3480 $as_echo "$EGREP" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3489 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3490 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3494 if test -z "$AR"; then
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}ar; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_path_AR+:} false; then :
3501 $as_echo_n "(cached) " >&6
3505 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3510 for as_dir in $as_dummy
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 if test -n "$AR"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3530 $as_echo "$AR" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3538 if test -z "$ac_cv_path_AR"; then
3540 # Extract the first word of "ar", so it can be a program name with args.
3541 set dummy ar; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_path_ac_pt_AR+:} false; then :
3545 $as_echo_n "(cached) " >&6
3549 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3554 for as_dir in $as_dummy
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 ac_pt_AR=$ac_cv_path_ac_pt_AR
3572 if test -n "$ac_pt_AR"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3574 $as_echo "$ac_pt_AR" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3580 if test "x$ac_pt_AR" = x; then
3583 case $cross_compiling:$ac_tool_warned in
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3595 if test -z "$AR" || test "$AR" = "not_found"; then
3596 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3603 if test -f ${srcdir}/include/curl/curlbuild.h; then
3604 rm -f ${srcdir}/include/curl/curlbuild.h
3607 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3609 xc_prog_cc_prev_IFS=$IFS
3610 xc_prog_cc_prev_LIBS=$LIBS
3611 xc_prog_cc_prev_CFLAGS=$CFLAGS
3612 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3613 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3618 for xc_word in $LIBS; do
3628 if test $xc_bad_var_libs = yes; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3630 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3632 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3636 xc_bad_var_ldflags=no
3637 for xc_word in $LDFLAGS; do
3640 xc_bad_var_ldflags=yes
3643 xc_bad_var_ldflags=yes
3646 xc_bad_var_ldflags=yes
3649 xc_bad_var_ldflags=yes
3653 if test $xc_bad_var_ldflags = yes; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3655 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3656 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3657 for xc_word in $LDFLAGS; do
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3661 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3665 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3669 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3673 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3680 xc_bad_var_cppflags=no
3681 for xc_word in $CPPFLAGS; do
3684 xc_bad_var_cppflags=yes
3686 -L* | --library-path=*)
3687 xc_bad_var_cppflags=yes
3690 xc_bad_var_cppflags=yes
3694 if test $xc_bad_var_cppflags = yes; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3696 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3697 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3698 for xc_word in $CPPFLAGS; do
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3702 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3704 -L* | --library-path=*)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3706 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3710 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3717 xc_bad_var_cflags=no
3718 for xc_word in $CFLAGS; do
3721 xc_bad_var_cflags=yes
3724 xc_bad_var_cflags=yes
3727 xc_bad_var_cflags=yes
3730 xc_bad_var_cflags=yes
3732 -L* | --library-path=*)
3733 xc_bad_var_cflags=yes
3736 xc_bad_var_cflags=yes
3740 if test $xc_bad_var_cflags = yes; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3742 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3743 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3744 for xc_word in $CFLAGS; do
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3748 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3752 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3756 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3760 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3762 -L* | --library-path=*)
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3764 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3768 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3774 if test $xc_bad_var_libs = yes ||
3775 test $xc_bad_var_cflags = yes ||
3776 test $xc_bad_var_ldflags = yes ||
3777 test $xc_bad_var_cppflags = yes; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3779 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3783 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3784 if test -f "$ac_dir/install-sh"; then
3786 ac_install_sh="$ac_aux_dir/install-sh -c"
3788 elif test -f "$ac_dir/install.sh"; then
3790 ac_install_sh="$ac_aux_dir/install.sh -c"
3792 elif test -f "$ac_dir/shtool"; then
3794 ac_install_sh="$ac_aux_dir/shtool install -c"
3798 if test -z "$ac_aux_dir"; then
3799 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3802 # These three variables are undocumented and unsupported,
3803 # and are intended to be withdrawn in a future Autoconf release.
3804 # They can cause serious problems if a builder's source tree is in a directory
3805 # whose full name contains unusual characters.
3806 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3807 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3808 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3811 # Find a good install program. We prefer a C program (faster),
3812 # so one script is as good as another. But avoid the broken or
3813 # incompatible versions:
3814 # SysV /etc/install, /usr/sbin/install
3815 # SunOS /usr/etc/install
3816 # IRIX /sbin/install
3818 # AmigaOS /C/install, which installs bootblocks on floppy discs
3819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3822 # OS/2's system install, which has a completely different semantic
3823 # ./install, which can be erroneously created by make from ./install.sh.
3824 # Reject install programs that cannot install multiple files.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3827 if test -z "$INSTALL"; then
3828 if ${ac_cv_path_install+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 # Account for people who put trailing slashes in PATH elements.
3837 case $as_dir/ in #((
3838 ./ | .// | /[cC]/* | \
3839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3843 # OSF1 and SCO ODT 3.0 have their own names for install.
3844 # Don't use installbsd from OSF since it installs stuff as root
3846 for ac_prog in ginstall scoinst install; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3849 if test $ac_prog = install &&
3850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851 # AIX install. It has an incompatible calling convention.
3853 elif test $ac_prog = install &&
3854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3855 # program-specific install script used by HP pwplus--don't use.
3858 rm -rf conftest.one conftest.two conftest.dir
3859 echo one > conftest.one
3860 echo two > conftest.two
3862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3863 test -s conftest.one && test -s conftest.two &&
3864 test -s conftest.dir/conftest.one &&
3865 test -s conftest.dir/conftest.two
3867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3880 rm -rf conftest.one conftest.two conftest.dir
3883 if test "${ac_cv_path_install+set}" = set; then
3884 INSTALL=$ac_cv_path_install
3886 # As a last resort, use the slow shell script. Don't cache a
3887 # value for INSTALL within a source directory, because that will
3888 # break other packages using the cache if that directory is
3889 # removed, or if the value is a relative name.
3890 INSTALL=$ac_install_sh
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3894 $as_echo "$INSTALL" >&6; }
3896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3897 # It thinks the first close brace ends the variable substitution.
3898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3904 # Expand $ac_aux_dir to an absolute path.
3905 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if ${ac_cv_prog_CC+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 if test -n "$CC"; then
3921 ac_cv_prog_CC="$CC" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 if test -n "$CC"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3943 $as_echo "$CC" >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3951 if test -z "$ac_cv_prog_CC"; then
3953 # Extract the first word of "gcc", so it can be a program name with args.
3954 set dummy gcc; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_ac_ct_CC="gcc"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3989 if test "x$ac_ct_CC" = x; then
3992 case $cross_compiling:$ac_tool_warned in
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996 ac_tool_warned=yes ;;
4004 if test -z "$CC"; then
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}cc; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_CC+:} false; then :
4011 $as_echo_n "(cached) " >&6
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_CC="${ac_tool_prefix}cc"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 if test -n "$CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036 $as_echo "$CC" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4045 if test -z "$CC"; then
4046 # Extract the first word of "cc", so it can be a program name with args.
4047 set dummy cc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_CC+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4065 ac_prog_rejected=yes
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 if test $ac_prog_rejected = yes; then
4077 # We found a bogon in the path, so make sure we never use it.
4078 set dummy $ac_cv_prog_CC
4080 if test $# != 0; then
4081 # We chose a different compiler from the bogus one.
4082 # However, it has the same basename, so the bogon will be chosen
4083 # first if we set CC to just the basename; use the full file name.
4085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4091 if test -n "$CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093 $as_echo "$CC" >&6; }
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4101 if test -z "$CC"; then
4102 if test -n "$ac_tool_prefix"; then
4103 for ac_prog in cl.exe
4105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if ${ac_cv_prog_CC+:} false; then :
4110 $as_echo_n "(cached) " >&6
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 if test -n "$CC"; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135 $as_echo "$CC" >&6; }
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4142 test -n "$CC" && break
4145 if test -z "$CC"; then
4147 for ac_prog in cl.exe
4149 # Extract the first word of "$ac_prog", so it can be a program name with args.
4150 set dummy $ac_prog; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 if test -n "$ac_ct_CC"; then
4157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_ac_ct_CC="$ac_prog"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4177 if test -n "$ac_ct_CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4179 $as_echo "$ac_ct_CC" >&6; }
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4186 test -n "$ac_ct_CC" && break
4189 if test "x$ac_ct_CC" = x; then
4192 case $cross_compiling:$ac_tool_warned in
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196 ac_tool_warned=yes ;;
4205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "no acceptable C compiler found in \$PATH
4208 See \`config.log' for more details" "$LINENO" 5; }
4210 # Provide some information about the compiler.
4211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4214 for ac_option in --version -v -V -qversion; do
4215 { { ac_try="$ac_compiler $ac_option >&5"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 $as_echo "$ac_try_echo"; } >&5
4222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4224 if test -s conftest.err; then
4226 ... rest of stderr output deleted ...
4227 10q' conftest.err >conftest.er1
4228 cat conftest.er1 >&5
4230 rm -f conftest.er1 conftest.err
4231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4245 ac_clean_files_save=$ac_clean_files
4246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4247 # Try to create an executable without -o first, disregard a.out.
4248 # It will help us diagnose broken compilers, and finding out an intuition
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4251 $as_echo_n "checking whether the C compiler works... " >&6; }
4252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4254 # The possible output files:
4255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4258 for ac_file in $ac_files
4261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4267 if { { ac_try="$ac_link_default"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_link_default") 2>&5
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4281 # so that the user can short-circuit this test for compilers unknown to
4283 for ac_file in $ac_files ''
4285 test -f "$ac_file" || continue
4287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4290 # We found the default executable, but exeext='' is most
4294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4298 # We set ac_cv_exeext here because the later test for it is not
4299 # safe: cross compilers may not add the suffix if given an `-o'
4300 # argument, so we may need to know it at that point already.
4301 # Even if this section looks crufty: it has the advantage of
4308 test "$ac_cv_exeext" = no && ac_cv_exeext=
4313 if test -z "$ac_file"; then :
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 $as_echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error 77 "C compiler cannot create executables
4322 See \`config.log' for more details" "$LINENO" 5; }
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4325 $as_echo "yes" >&6; }
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4328 $as_echo_n "checking for C compiler default output file name... " >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4330 $as_echo "$ac_file" >&6; }
4331 ac_exeext=$ac_cv_exeext
4333 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4334 ac_clean_files=$ac_clean_files_save
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4336 $as_echo_n "checking for suffix of executables... " >&6; }
4337 if { { ac_try="$ac_link"
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_link") 2>&5
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }; then :
4348 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4349 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4350 # work properly (i.e., refer to `conftest.exe'), while it won't with
4352 for ac_file in conftest.exe conftest conftest.*; do
4353 test -f "$ac_file" || continue
4355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4365 See \`config.log' for more details" "$LINENO" 5; }
4367 rm -f conftest conftest$ac_cv_exeext
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4369 $as_echo "$ac_cv_exeext" >&6; }
4371 rm -f conftest.$ac_ext
4372 EXEEXT=$ac_cv_exeext
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4379 FILE *f = fopen ("conftest.out", "w");
4380 return ferror (f) || fclose (f) != 0;
4386 ac_clean_files="$ac_clean_files conftest.out"
4387 # Check that the compiler produces executables we can run. If not, either
4388 # the compiler is broken, or we cross compile.
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4390 $as_echo_n "checking whether we are cross compiling... " >&6; }
4391 if test "$cross_compiling" != yes; then
4392 { { ac_try="$ac_link"
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399 (eval "$ac_link") 2>&5
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }
4403 if { ac_try='./conftest$ac_cv_exeext'
4404 { { case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410 (eval "$ac_try") 2>&5
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }; }; then
4416 if test "$cross_compiling" = maybe; then
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "cannot run C compiled programs.
4422 If you meant to cross compile, use \`--host'.
4423 See \`config.log' for more details" "$LINENO" 5; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4428 $as_echo "$cross_compiling" >&6; }
4430 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4431 ac_clean_files=$ac_clean_files_save
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4433 $as_echo_n "checking for suffix of object files... " >&6; }
4434 if ${ac_cv_objext+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4447 rm -f conftest.o conftest.obj
4448 if { { ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_compile") 2>&5
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
4459 for ac_file in conftest.o conftest.obj conftest.*; do
4460 test -f "$ac_file" || continue;
4462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4468 $as_echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error $? "cannot compute suffix of object files: cannot compile
4474 See \`config.log' for more details" "$LINENO" 5; }
4476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4479 $as_echo "$ac_cv_objext" >&6; }
4480 OBJEXT=$ac_cv_objext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4484 if ${ac_cv_c_compiler_gnu+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4500 if ac_fn_c_try_compile "$LINENO"; then :
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4511 if test $ac_compiler_gnu = yes; then
4516 ac_test_CFLAGS=${CFLAGS+set}
4517 ac_save_CFLAGS=$CFLAGS
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4520 if ${ac_cv_prog_cc_g+:} false; then :
4521 $as_echo_n "(cached) " >&6
4523 ac_save_c_werror_flag=$ac_c_werror_flag
4524 ac_c_werror_flag=yes
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4537 if ac_fn_c_try_compile "$LINENO"; then :
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4551 if ac_fn_c_try_compile "$LINENO"; then :
4554 ac_c_werror_flag=$ac_save_c_werror_flag
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4566 if ac_fn_c_try_compile "$LINENO"; then :
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_c_werror_flag=$ac_save_c_werror_flag
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4577 $as_echo "$ac_cv_prog_cc_g" >&6; }
4578 if test "$ac_test_CFLAGS" = set; then
4579 CFLAGS=$ac_save_CFLAGS
4580 elif test $ac_cv_prog_cc_g = yes; then
4581 if test "$GCC" = yes; then
4587 if test "$GCC" = yes; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4595 if ${ac_cv_prog_cc_c89+:} false; then :
4596 $as_echo_n "(cached) " >&6
4598 ac_cv_prog_cc_c89=no
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4606 struct buf { int x; };
4607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4608 static char *e (p, i)
4614 static char *f (char * (*g) (char **, int), char **p, ...)
4619 s = g (p, va_arg (v,int));
4624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4625 function prototypes and stuff, but not '\xHH' hex character constants.
4626 These don't provoke an error unfortunately, instead are silently treated
4627 as 'x'. The following induces an error, until -std is added to get
4628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4629 array size at least. It's necessary to write '\x00'==0 to get something
4630 that's true only with -std. */
4631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4634 inside strings and character constants. */
4636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4638 int test (int i, double x);
4639 struct s1 {int (*f) (int a);};
4640 struct s2 {int (*f) (double a);};
4641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4654 CC="$ac_save_CC $ac_arg"
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_cv_prog_cc_c89=$ac_arg
4658 rm -f core conftest.err conftest.$ac_objext
4659 test "x$ac_cv_prog_cc_c89" != "xno" && break
4661 rm -f conftest.$ac_ext
4666 case "x$ac_cv_prog_cc_c89" in
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4669 $as_echo "none needed" >&6; } ;;
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4672 $as_echo "unsupported" >&6; } ;;
4674 CC="$CC $ac_cv_prog_cc_c89"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4676 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4678 if test "x$ac_cv_prog_cc_c89" != xno; then :
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4694 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4695 if ${am_cv_prog_cc_c_o+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4708 # Make sure it works both with $CC and with simple cc.
4709 # Following AC_PROG_CC_C_O, we do the test twice because some
4710 # compilers refuse to overwrite an existing .o file with -o,
4711 # though they will create one.
4712 am_cv_prog_cc_c_o=yes
4714 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4715 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } \
4719 && test -f conftest2.$ac_objext; then
4722 am_cv_prog_cc_c_o=no
4726 rm -f core conftest*
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4730 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4731 if test "$am_cv_prog_cc_c_o" != yes; then
4732 # Losing compiler, so override with the script.
4733 # FIXME: It is wrong to rewrite CC.
4734 # But if we don't then we get into trouble of one sort or another.
4735 # A longer-term fix would be to have automake use am__CC in this case,
4736 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4737 CC="$am_aux_dir/compile $CC"
4740 ac_cpp='$CPP $CPPFLAGS'
4741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748 ac_cpp='$CPP $CPPFLAGS'
4749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4753 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4754 # On Suns, sometimes $CPP names a directory.
4755 if test -n "$CPP" && test -d "$CPP"; then
4758 if test -z "$CPP"; then
4759 if ${ac_cv_prog_CPP+:} false; then :
4760 $as_echo_n "(cached) " >&6
4762 # Double quotes because CPP needs to be expanded
4763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4766 for ac_c_preproc_warn_flag in '' yes
4768 # Use a header file that comes with gcc, so configuring glibc
4769 # with a fresh cross-compiler works.
4770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771 # <limits.h> exists even on freestanding compilers.
4772 # On the NeXT, cc -E runs the code through the compiler's parser,
4773 # not just through cpp. "Syntax error" is here to catch this case.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4777 # include <limits.h>
4779 # include <assert.h>
4783 if ac_fn_c_try_cpp "$LINENO"; then :
4786 # Broken: fails on valid input.
4789 rm -f conftest.err conftest.i conftest.$ac_ext
4791 # OK, works on sane cases. Now check whether nonexistent headers
4792 # can be detected and how.
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <ac_nonexistent.h>
4797 if ac_fn_c_try_cpp "$LINENO"; then :
4798 # Broken: success on invalid input.
4801 # Passes both tests.
4805 rm -f conftest.err conftest.i conftest.$ac_ext
4808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809 rm -f conftest.i conftest.err conftest.$ac_ext
4810 if $ac_preproc_ok; then :
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4823 $as_echo "$CPP" >&6; }
4825 for ac_c_preproc_warn_flag in '' yes
4827 # Use a header file that comes with gcc, so configuring glibc
4828 # with a fresh cross-compiler works.
4829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830 # <limits.h> exists even on freestanding compilers.
4831 # On the NeXT, cc -E runs the code through the compiler's parser,
4832 # not just through cpp. "Syntax error" is here to catch this case.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4836 # include <limits.h>
4838 # include <assert.h>
4842 if ac_fn_c_try_cpp "$LINENO"; then :
4845 # Broken: fails on valid input.
4848 rm -f conftest.err conftest.i conftest.$ac_ext
4850 # OK, works on sane cases. Now check whether nonexistent headers
4851 # can be detected and how.
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 #include <ac_nonexistent.h>
4856 if ac_fn_c_try_cpp "$LINENO"; then :
4857 # Broken: success on invalid input.
4860 # Passes both tests.
4864 rm -f conftest.err conftest.i conftest.$ac_ext
4867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4868 rm -f conftest.i conftest.err conftest.$ac_ext
4869 if $ac_preproc_ok; then :
4872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4874 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4875 See \`config.log' for more details" "$LINENO" 5; }
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 IFS=$xc_prog_cc_prev_IFS
4886 LIBS=$xc_prog_cc_prev_LIBS
4887 CFLAGS=$xc_prog_cc_prev_CFLAGS
4888 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4889 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4895 am__api_version='1.15'
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4898 $as_echo_n "checking whether build environment is sane... " >&6; }
4899 # Reject unsafe characters in $srcdir or the absolute working directory
4900 # name. Accept space and tab only in the latter.
4904 *[\\\"\#\$\&\'\`$am_lf]*)
4905 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4908 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4909 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4912 # Do 'set' in a subshell so we don't clobber the current shell's
4913 # arguments. Must try -L first in case configure is actually a
4914 # symlink; some systems play weird games with the mod time of symlinks
4915 # (eg FreeBSD returns the mod time of the symlink's containing
4919 for am_try in 1 2; do
4920 echo "timestamp, slept: $am_has_slept" > conftest.file
4921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4922 if test "$*" = "X"; then
4924 set X `ls -t "$srcdir/configure" conftest.file`
4926 if test "$*" != "X $srcdir/configure conftest.file" \
4927 && test "$*" != "X conftest.file $srcdir/configure"; then
4929 # If neither matched, then we have a broken ls. This can happen
4930 # if, for instance, CONFIG_SHELL is bash and it inherits a
4931 # broken ls alias from the environment. This has actually
4932 # happened. Such a system could not be considered "sane".
4933 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4934 alias in your environment" "$LINENO" 5
4936 if test "$2" = conftest.file || test $am_try -eq 2; then
4943 test "$2" = conftest.file
4949 as_fn_error $? "newly created file is older than distributed files!
4950 Check your system clock" "$LINENO" 5
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953 $as_echo "yes" >&6; }
4954 # If we didn't sleep, we still need to ensure time stamps of config.status and
4955 # generated files are strictly newer.
4957 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4964 test "$program_prefix" != NONE &&
4965 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4966 # Use a double $ so make ignores it.
4967 test "$program_suffix" != NONE &&
4968 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4969 # Double any \ or $.
4970 # By default was `s,x,x', remove it if useless.
4971 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4972 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4974 if test x"${MISSING+set}" != xset; then
4977 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4979 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4982 # Use eval to expand $SHELL
4983 if eval "$MISSING --is-lightweight"; then
4984 am_missing_run="$MISSING "
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4988 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4991 if test x"${install_sh+set}" != xset; then
4994 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4996 install_sh="\${SHELL} $am_aux_dir/install-sh"
5000 # Installed binaries are usually stripped using 'strip' when the user
5001 # run "make install-strip". However 'strip' might not be the right
5002 # tool to use in cross-compilation environments, therefore Automake
5003 # will honor the 'STRIP' environment variable to overrule this program.
5004 if test "$cross_compiling" != no; then
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}strip; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_STRIP+:} false; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -n "$STRIP"; then
5014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 STRIP=$ac_cv_prog_STRIP
5034 if test -n "$STRIP"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5036 $as_echo "$STRIP" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5044 if test -z "$ac_cv_prog_STRIP"; then
5046 # Extract the first word of "strip", so it can be a program name with args.
5047 set dummy strip; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$ac_ct_STRIP"; then
5054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_ac_ct_STRIP="strip"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5074 if test -n "$ac_ct_STRIP"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5076 $as_echo "$ac_ct_STRIP" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5082 if test "x$ac_ct_STRIP" = x; then
5085 case $cross_compiling:$ac_tool_warned in
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5094 STRIP="$ac_cv_prog_STRIP"
5098 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5102 if test -z "$MKDIR_P"; then
5103 if ${ac_cv_path_mkdir+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5110 test -z "$as_dir" && as_dir=.
5111 for ac_prog in mkdir gmkdir; do
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5114 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5115 'mkdir (GNU coreutils) '* | \
5116 'mkdir (coreutils) '* | \
5117 'mkdir (fileutils) '4.1*)
5118 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5128 test -d ./--version && rmdir ./--version
5129 if test "${ac_cv_path_mkdir+set}" = set; then
5130 MKDIR_P="$ac_cv_path_mkdir -p"
5132 # As a last resort, use the slow shell script. Don't cache a
5133 # value for MKDIR_P within a source directory, because that will
5134 # break other packages using the cache if that directory is
5135 # removed, or if the value is a relative name.
5136 MKDIR_P="$ac_install_sh -d"
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5140 $as_echo "$MKDIR_P" >&6; }
5142 for ac_prog in gawk mawk nawk awk
5144 # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_AWK+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 if test -n "$AWK"; then
5152 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_AWK="$ac_prog"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 if test -n "$AWK"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5174 $as_echo "$AWK" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 test -n "$AWK" && break
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5185 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5187 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5188 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5189 $as_echo_n "(cached) " >&6
5191 cat >conftest.make <<\_ACEOF
5194 @echo '@@@%%%=$(MAKE)=@@@%%%'
5196 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5197 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5199 eval ac_cv_prog_make_${ac_make}_set=yes;;
5201 eval ac_cv_prog_make_${ac_make}_set=no;;
5205 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 SET_MAKE="MAKE=${MAKE-make}"
5215 rm -rf .tst 2>/dev/null
5216 mkdir .tst 2>/dev/null
5217 if test -d .tst; then
5222 rmdir .tst 2>/dev/null
5224 DEPDIR="${am__leading_dot}deps"
5226 ac_config_commands="$ac_config_commands depfiles"
5229 am_make=${MAKE-make}
5230 cat > confinc << 'END'
5232 @echo this is the am__doit target
5235 # If we don't find an include directive, just comment out the code.
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5237 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5241 # First try GNU make style include.
5242 echo "include confinc" > confmf
5243 # Ignore all kinds of additional output from 'make'.
5244 case `$am_make -s -f confmf 2> /dev/null` in #(
5245 *the\ am__doit\ target*)
5251 # Now try BSD make style include.
5252 if test "$am__include" = "#"; then
5253 echo '.include "confinc"' > confmf
5254 case `$am_make -s -f confmf 2> /dev/null` in #(
5255 *the\ am__doit\ target*)
5256 am__include=.include
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5265 $as_echo "$_am_result" >&6; }
5266 rm -f confinc confmf
5268 # Check whether --enable-dependency-tracking was given.
5269 if test "${enable_dependency_tracking+set}" = set; then :
5270 enableval=$enable_dependency_tracking;
5273 if test "x$enable_dependency_tracking" != xno; then
5274 am_depcomp="$ac_aux_dir/depcomp"
5278 if test "x$enable_dependency_tracking" != xno; then
5287 # Check whether --enable-silent-rules was given.
5288 if test "${enable_silent_rules+set}" = set; then :
5289 enableval=$enable_silent_rules;
5292 case $enable_silent_rules in # (((
5293 yes) AM_DEFAULT_VERBOSITY=0;;
5294 no) AM_DEFAULT_VERBOSITY=1;;
5295 *) AM_DEFAULT_VERBOSITY=1;;
5297 am_make=${MAKE-make}
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5299 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5300 if ${am_cv_make_support_nested_variables+:} false; then :
5301 $as_echo_n "(cached) " >&6
5303 if $as_echo 'TRUE=$(BAR$(V))
5309 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5310 am_cv_make_support_nested_variables=yes
5312 am_cv_make_support_nested_variables=no
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5316 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5317 if test $am_cv_make_support_nested_variables = yes; then
5319 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5321 AM_V=$AM_DEFAULT_VERBOSITY
5322 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5326 ## --------------------------------------- ##
5327 ## Start of automake initialization code ##
5328 ## --------------------------------------- ##
5330 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5331 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5332 # is not polluted with repeated "-I."
5333 am__isrc=' -I$(srcdir)'
5334 # test to see if srcdir already configured
5335 if test -f $srcdir/config.status; then
5336 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5340 # test whether we have cygpath
5341 if test -z "$CYGPATH_W"; then
5342 if (cygpath --version) >/dev/null 2>/dev/null; then
5343 CYGPATH_W='cygpath -w'
5350 # Define the identity of the package.
5355 cat >>confdefs.h <<_ACEOF
5356 #define PACKAGE "$PACKAGE"
5360 cat >>confdefs.h <<_ACEOF
5361 #define VERSION "$VERSION"
5364 # Some tools Automake needs.
5366 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5369 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5372 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5375 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5378 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5380 # For better backward compatibility. To be removed once Automake 1.9.x
5381 # dies out for good. For more background, see:
5382 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5383 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5384 mkdir_p='$(MKDIR_P)'
5386 # We need awk for the "check" target (and possibly the TAP driver). The
5387 # system "awk" is bad on some platforms.
5388 # Always define AMTAR for backward compatibility. Yes, it's still used
5389 # in the wild :-( We should find a proper way to deprecate it ...
5393 # We'll loop over all known methods to create a tar archive until one works.
5394 _am_tools='gnutar pax cpio none'
5396 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5402 depcc="$CC" am_compiler_list=
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5405 $as_echo_n "checking dependency style of $depcc... " >&6; }
5406 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5410 # We make a subdir and do the tests there. Otherwise we can end up
5411 # making bogus files that we don't know about and never remove. For
5412 # instance it was reported that on HP-UX the gcc test will end up
5413 # making a dummy file named 'D' -- because '-MD' means "put the output
5417 # Copy depcomp to subdir because otherwise we won't find it if we're
5418 # using a relative directory.
5419 cp "$am_depcomp" conftest.dir
5421 # We will build objects and dependencies in a subdirectory because
5422 # it helps to detect inapplicable dependency modes. For instance
5423 # both Tru64's cc and ICC support -MD to output dependencies as a
5424 # side effect of compilation, but ICC will put the dependencies in
5425 # the current directory while Tru64 will put them in the object
5429 am_cv_CC_dependencies_compiler_type=none
5430 if test "$am_compiler_list" = ""; then
5431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5434 case " $depcc " in #(
5435 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5438 for depmode in $am_compiler_list; do
5439 # Setup a source with many dependencies, because some compilers
5440 # like to wrap large dependency lists on column 80 (with \), and
5441 # we should not choose a depcomp mode which is confused by this.
5443 # We need to recreate these files for each test, as the compiler may
5444 # overwrite some of them when testing with obscure command lines.
5445 # This happens at least with the AIX C compiler.
5447 for i in 1 2 3 4 5 6; do
5448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5449 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5450 # Solaris 10 /bin/sh.
5451 echo '/* dummy */' > sub/conftst$i.h
5453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5455 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5456 # mode. It turns out that the SunPro C++ compiler does not properly
5457 # handle '-M -o', and we need to detect this. Also, some Intel
5458 # versions had trouble with output in subdirs.
5459 am__obj=sub/conftest.${OBJEXT-o}
5460 am__minus_obj="-o $am__obj"
5463 # This depmode causes a compiler race in universal mode.
5464 test "$am__universal" = false || continue
5467 # After this tag, mechanisms are not by side-effect, so they'll
5468 # only be used when explicitly requested.
5469 if test "x$enable_dependency_tracking" = xyes; then
5475 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5476 # This compiler won't grok '-c -o', but also, the minuso test has
5477 # not run yet. These depmodes are late enough in the game, and
5478 # so weak that their functioning should not be impacted.
5479 am__obj=conftest.${OBJEXT-o}
5484 if depmode=$depmode \
5485 source=sub/conftest.c object=$am__obj \
5486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5487 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5488 >/dev/null 2>conftest.err &&
5489 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5490 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5491 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5493 # icc doesn't choke on unknown options, it will just issue warnings
5494 # or remarks (even with -Werror). So we grep stderr for any message
5495 # that says an option was ignored or not supported.
5496 # When given -MP, icc 7.0 and 7.1 complain thusly:
5497 # icc: Command line warning: ignoring option '-M'; no argument required
5498 # The diagnosis changed in icc 8.0:
5499 # icc: Command line remark: option '-MP' not supported
5500 if (grep 'ignoring option' conftest.err ||
5501 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5502 am_cv_CC_dependencies_compiler_type=$depmode
5511 am_cv_CC_dependencies_compiler_type=none
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5516 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5517 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5520 test "x$enable_dependency_tracking" != xno \
5521 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5523 am__fastdepCC_FALSE='#'
5525 am__fastdepCC_TRUE='#'
5526 am__fastdepCC_FALSE=
5531 # POSIX will say in a future version that running "rm -f" with no argument
5532 # is OK; and we want to be able to make that assumption in our Makefile
5533 # recipes. So use an aggressive probe to check that the usage we want is
5534 # actually supported "in the wild" to an acceptable degree.
5535 # See automake bug#10828.
5536 # To make any issue more visible, cause the running configure to be aborted
5537 # by default if the 'rm' program in use doesn't match our expectations; the
5538 # user can still override this though.
5539 if rm -f && rm -fr && rm -rf; then : OK; else
5543 Your 'rm' program seems unable to run without file operands specified
5544 on the command line, even when the '-f' option is present. This is contrary
5545 to the behaviour of most rm programs out there, and not conforming with
5546 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5548 Please tell bug-automake@gnu.org about your system, including the value
5549 of your $PATH and any error possibly output before this message. This
5550 can help us improve future automake versions.
5553 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5554 echo 'Configuration will proceed anyway, since you have set the' >&2
5555 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5559 Aborting the configuration process, to ensure you take notice of the issue.
5561 You can download and install GNU coreutils to get an 'rm' implementation
5562 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5564 If you want to complete the configuration process using your problematic
5565 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5566 to "yes", and re-run configure.
5569 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5573 ## ------------------------------------- ##
5574 ## End of automake initialization code ##
5575 ## ------------------------------------- ##
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5579 $as_echo_n "checking curl version... " >&6; }
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5581 $as_echo "$CURLVERSION" >&6; }
5585 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5588 PKGADD_PKG="HAXXcurl"
5589 PKGADD_NAME="cURL - a client that groks URLs"
5590 PKGADD_VENDOR="curl.haxx.se"
5595 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
5596 curl_ssh_msg="no (--with-libssh2)"
5597 curl_zlib_msg="no (--with-zlib)"
5598 curl_gss_msg="no (--with-gssapi)"
5599 curl_tls_srp_msg="no (--enable-tls-srp)"
5600 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5601 curl_ipv6_msg="no (--enable-ipv6)"
5602 curl_unix_sockets_msg="no (--enable-unix-sockets)"
5603 curl_idn_msg="no (--with-{libidn,winidn})"
5604 curl_manual_msg="no (--enable-manual)"
5605 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5606 curl_verbose_msg="enabled (--disable-verbose)"
5607 curl_sspi_msg="no (--enable-sspi)"
5608 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5609 curl_ldaps_msg="no (--enable-ldaps)"
5610 curl_rtsp_msg="no (--enable-rtsp)"
5611 curl_rtmp_msg="no (--with-librtmp)"
5612 curl_mtlnk_msg="no (--with-libmetalink)"
5614 init_ssl_msg=${curl_ssl_msg}
5616 INITIAL_LDFLAGS=$LDFLAGS
5620 # Make sure we can run config.sub.
5621 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5622 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5625 $as_echo_n "checking build system type... " >&6; }
5626 if ${ac_cv_build+:} false; then :
5627 $as_echo_n "(cached) " >&6
5629 ac_build_alias=$build_alias
5630 test "x$ac_build_alias" = x &&
5631 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5632 test "x$ac_build_alias" = x &&
5633 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5634 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5639 $as_echo "$ac_cv_build" >&6; }
5640 case $ac_cv_build in
5642 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5645 ac_save_IFS=$IFS; IFS='-'
5651 # Remember, the first character of IFS is used to create $*,
5652 # except with old shells:
5655 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5659 $as_echo_n "checking host system type... " >&6; }
5660 if ${ac_cv_host+:} false; then :
5661 $as_echo_n "(cached) " >&6
5663 if test "x$host_alias" = x; then
5664 ac_cv_host=$ac_cv_build
5666 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5672 $as_echo "$ac_cv_host" >&6; }
5675 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5678 ac_save_IFS=$IFS; IFS='-'
5684 # Remember, the first character of IFS is used to create $*,
5685 # except with old shells:
5688 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5692 cat >>confdefs.h <<_ACEOF
5693 #define OS "${host}"
5700 curl_includes_inttypes="\
5701 /* includes start */
5702 #ifdef HAVE_SYS_TYPES_H
5703 # include <sys/types.h>
5705 #ifdef HAVE_STDINT_H
5706 # include <stdint.h>
5708 #ifdef HAVE_INTTYPES_H
5709 # include <inttypes.h>
5714 ac_cv_header_stdint_h="no"
5717 for ac_header in sys/types.h stdint.h inttypes.h
5719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5723 cat >>confdefs.h <<_ACEOF
5724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5735 if ${ac_cv_path_GREP+:} false; then :
5736 $as_echo_n "(cached) " >&6
5738 if test -z "$GREP"; then
5739 ac_path_GREP_found=false
5740 # Loop through the user's path and test for each of PROGNAME-LIST
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5745 test -z "$as_dir" && as_dir=.
5746 for ac_prog in grep ggrep; do
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5749 as_fn_executable_p "$ac_path_GREP" || continue
5750 # Check for GNU ac_path_GREP and select it if it is found.
5751 # Check for GNU $ac_path_GREP
5752 case `"$ac_path_GREP" --version 2>&1` in
5754 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5757 $as_echo_n 0123456789 >"conftest.in"
5760 cat "conftest.in" "conftest.in" >"conftest.tmp"
5761 mv "conftest.tmp" "conftest.in"
5762 cp "conftest.in" "conftest.nl"
5763 $as_echo 'GREP' >> "conftest.nl"
5764 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5766 as_fn_arith $ac_count + 1 && ac_count=$as_val
5767 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5768 # Best one so far, save it but keep looking for a better one
5769 ac_cv_path_GREP="$ac_path_GREP"
5770 ac_path_GREP_max=$ac_count
5772 # 10*(2^10) chars as input seems more than enough
5773 test $ac_count -gt 10 && break
5775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5778 $ac_path_GREP_found && break 3
5783 if test -z "$ac_cv_path_GREP"; then
5784 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5787 ac_cv_path_GREP=$GREP
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5792 $as_echo "$ac_cv_path_GREP" >&6; }
5793 GREP="$ac_cv_path_GREP"
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5797 $as_echo_n "checking for egrep... " >&6; }
5798 if ${ac_cv_path_EGREP+:} false; then :
5799 $as_echo_n "(cached) " >&6
5801 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5802 then ac_cv_path_EGREP="$GREP -E"
5804 if test -z "$EGREP"; then
5805 ac_path_EGREP_found=false
5806 # Loop through the user's path and test for each of PROGNAME-LIST
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5811 test -z "$as_dir" && as_dir=.
5812 for ac_prog in egrep; do
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5815 as_fn_executable_p "$ac_path_EGREP" || continue
5816 # Check for GNU ac_path_EGREP and select it if it is found.
5817 # Check for GNU $ac_path_EGREP
5818 case `"$ac_path_EGREP" --version 2>&1` in
5820 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5823 $as_echo_n 0123456789 >"conftest.in"
5826 cat "conftest.in" "conftest.in" >"conftest.tmp"
5827 mv "conftest.tmp" "conftest.in"
5828 cp "conftest.in" "conftest.nl"
5829 $as_echo 'EGREP' >> "conftest.nl"
5830 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5832 as_fn_arith $ac_count + 1 && ac_count=$as_val
5833 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5834 # Best one so far, save it but keep looking for a better one
5835 ac_cv_path_EGREP="$ac_path_EGREP"
5836 ac_path_EGREP_max=$ac_count
5838 # 10*(2^10) chars as input seems more than enough
5839 test $ac_count -gt 10 && break
5841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5844 $ac_path_EGREP_found && break 3
5849 if test -z "$ac_cv_path_EGREP"; then
5850 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5853 ac_cv_path_EGREP=$EGREP
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5859 $as_echo "$ac_cv_path_EGREP" >&6; }
5860 EGREP="$ac_cv_path_EGREP"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5864 $as_echo_n "checking for ANSI C header files... " >&6; }
5865 if ${ac_cv_header_stdc+:} false; then :
5866 $as_echo_n "(cached) " >&6
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 ac_cv_header_stdc=yes
5885 ac_cv_header_stdc=no
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 if test $ac_cv_header_stdc = yes; then
5890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897 $EGREP "memchr" >/dev/null 2>&1; then :
5900 ac_cv_header_stdc=no
5906 if test $ac_cv_header_stdc = yes; then
5907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5914 $EGREP "free" >/dev/null 2>&1; then :
5917 ac_cv_header_stdc=no
5923 if test $ac_cv_header_stdc = yes; then
5924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5925 if test "$cross_compiling" = yes; then :
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5932 #if ((' ' & 0x0FF) == 0x020)
5933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5936 # define ISLOWER(c) \
5937 (('a' <= (c) && (c) <= 'i') \
5938 || ('j' <= (c) && (c) <= 'r') \
5939 || ('s' <= (c) && (c) <= 'z'))
5940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5948 for (i = 0; i < 256; i++)
5949 if (XOR (islower (i), ISLOWER (i))
5950 || toupper (i) != TOUPPER (i))
5955 if ac_fn_c_try_run "$LINENO"; then :
5958 ac_cv_header_stdc=no
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5961 conftest.$ac_objext conftest.beam conftest.$ac_ext
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5967 $as_echo "$ac_cv_header_stdc" >&6; }
5968 if test $ac_cv_header_stdc = yes; then
5970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5976 inttypes.h stdint.h unistd.h
5978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5982 cat >>confdefs.h <<_ACEOF
5983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5994 if test -z "$SED"; then
5995 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5998 # The cast to long int works around a bug in the HP C Compiler
5999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6001 # This bug is HP SR number 8606223364.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6003 $as_echo_n "checking size of long... " >&6; }
6004 if ${ac_cv_sizeof_long+:} false; then :
6005 $as_echo_n "(cached) " >&6
6007 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6010 if test "$ac_cv_type_long" = yes; then
6011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6013 as_fn_error 77 "cannot compute sizeof (long)
6014 See \`config.log' for more details" "$LINENO" 5; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6022 $as_echo "$ac_cv_sizeof_long" >&6; }
6026 cat >>confdefs.h <<_ACEOF
6027 #define SIZEOF_LONG $ac_cv_sizeof_long
6031 # The cast to long int works around a bug in the HP C Compiler
6032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6034 # This bug is HP SR number 8606223364.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6036 $as_echo_n "checking size of void*... " >&6; }
6037 if ${ac_cv_sizeof_voidp+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6043 if test "$ac_cv_type_voidp" = yes; then
6044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6046 as_fn_error 77 "cannot compute sizeof (void*)
6047 See \`config.log' for more details" "$LINENO" 5; }
6049 ac_cv_sizeof_voidp=0
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6055 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6059 cat >>confdefs.h <<_ACEOF
6060 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6065 if test -z "$ac_cv_sizeof_long" ||
6066 test "$ac_cv_sizeof_long" -eq "0"; then
6067 as_fn_error $? "cannot find out size of long." "$LINENO" 5
6069 if test -z "$ac_cv_sizeof_voidp" ||
6070 test "$ac_cv_sizeof_voidp" -eq "0"; then
6071 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6078 if test "$ac_cv_sizeof_long" -eq "8" &&
6079 test "$ac_cv_sizeof_voidp" -ge "8"; then
6081 elif test "$ac_cv_sizeof_long" -eq "4" &&
6082 test "$ac_cv_sizeof_voidp" -ge "4"; then
6084 elif test "$ac_cv_sizeof_long" -eq "2" &&
6085 test "$ac_cv_sizeof_voidp" -ge "2"; then
6090 curl_typeof_curl_off_t="unknown"
6091 curl_sizeof_curl_off_t="unknown"
6092 curl_format_curl_off_t="unknown"
6093 curl_format_curl_off_tu="unknown"
6095 if test "$curl_typeof_curl_off_t" = "unknown"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6097 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6106 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6110 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6112 tmp_includes="$curl_includes_inttypes"
6113 tmp_source="char f[] = PRId64;"
6117 tmp_includes="$curl_includes_inttypes"
6118 tmp_source="char f[] = PRId32;"
6122 tmp_includes="$curl_includes_inttypes"
6123 tmp_source="char f[] = PRId16;"
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6132 typedef $t8 curl_off_t;
6133 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6146 if ac_fn_c_try_compile "$LINENO"; then :
6148 if test -z "$tmp_fmt"; then
6149 curl_typeof_curl_off_t="$t8"
6150 curl_sizeof_curl_off_t="8"
6153 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6154 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6155 if test -z "$SED"; then
6156 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6158 if test -z "$GREP"; then
6159 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6166 $curl_includes_inttypes
6168 CURL_DEF_TOKEN $tmp_fmt
6173 if ac_fn_c_try_cpp "$LINENO"; then :
6175 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6176 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6177 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6178 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6179 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6184 rm -f conftest.err conftest.i conftest.$ac_ext
6185 if test -z "$tmp_exp"; then
6186 eval "$as_ac_HaveDef=no"
6189 eval "$as_ac_HaveDef=yes"
6190 eval "$as_ac_Def=\$tmp_exp"
6194 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6195 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6196 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6197 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6198 curl_typeof_curl_off_t="$t8"
6199 curl_sizeof_curl_off_t="8"
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6209 $as_echo "$curl_typeof_curl_off_t" >&6; }
6211 if test "$curl_typeof_curl_off_t" = "unknown"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6213 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6220 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6224 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6226 tmp_includes="$curl_includes_inttypes"
6227 tmp_source="char f[] = PRId64;"
6231 tmp_includes="$curl_includes_inttypes"
6232 tmp_source="char f[] = PRId32;"
6236 tmp_includes="$curl_includes_inttypes"
6237 tmp_source="char f[] = PRId16;"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6246 typedef $t4 curl_off_t;
6247 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6260 if ac_fn_c_try_compile "$LINENO"; then :
6262 if test -z "$tmp_fmt"; then
6263 curl_typeof_curl_off_t="$t4"
6264 curl_sizeof_curl_off_t="4"
6267 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6268 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6269 if test -z "$SED"; then
6270 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6272 if test -z "$GREP"; then
6273 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6280 $curl_includes_inttypes
6282 CURL_DEF_TOKEN $tmp_fmt
6287 if ac_fn_c_try_cpp "$LINENO"; then :
6289 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6290 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6291 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6292 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6293 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6298 rm -f conftest.err conftest.i conftest.$ac_ext
6299 if test -z "$tmp_exp"; then
6300 eval "$as_ac_HaveDef=no"
6303 eval "$as_ac_HaveDef=yes"
6304 eval "$as_ac_Def=\$tmp_exp"
6308 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6309 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6310 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6311 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6312 curl_typeof_curl_off_t="$t4"
6313 curl_sizeof_curl_off_t="4"
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6323 $as_echo "$curl_typeof_curl_off_t" >&6; }
6325 if test "$curl_typeof_curl_off_t" = "unknown"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
6327 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
6334 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6338 case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6340 tmp_includes="$curl_includes_inttypes"
6341 tmp_source="char f[] = PRId64;"
6345 tmp_includes="$curl_includes_inttypes"
6346 tmp_source="char f[] = PRId32;"
6350 tmp_includes="$curl_includes_inttypes"
6351 tmp_source="char f[] = PRId16;"
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6360 typedef $t2 curl_off_t;
6361 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6374 if ac_fn_c_try_compile "$LINENO"; then :
6376 if test -z "$tmp_fmt"; then
6377 curl_typeof_curl_off_t="$t2"
6378 curl_sizeof_curl_off_t="2"
6381 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6382 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6383 if test -z "$SED"; then
6384 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6386 if test -z "$GREP"; then
6387 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6394 $curl_includes_inttypes
6396 CURL_DEF_TOKEN $tmp_fmt
6401 if ac_fn_c_try_cpp "$LINENO"; then :
6403 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6404 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6405 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6406 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6407 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6412 rm -f conftest.err conftest.i conftest.$ac_ext
6413 if test -z "$tmp_exp"; then
6414 eval "$as_ac_HaveDef=no"
6417 eval "$as_ac_HaveDef=yes"
6418 eval "$as_ac_Def=\$tmp_exp"
6422 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6423 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6424 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6425 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6426 curl_typeof_curl_off_t="$t2"
6427 curl_sizeof_curl_off_t="2"
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6437 $as_echo "$curl_typeof_curl_off_t" >&6; }
6439 if test "$curl_typeof_curl_off_t" = "unknown"; then
6440 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6444 $as_echo_n "checking size of curl_off_t... " >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6446 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6449 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6450 if test "$curl_format_curl_off_t" != "unknown"; then
6451 x_pull_headers="yes"
6452 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6453 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6454 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6455 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6458 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6459 long_long | __longlong | __longlong_t)
6460 curl_format_curl_off_t="lld"
6461 curl_format_curl_off_tu="llu"
6464 curl_format_curl_off_t="ld"
6465 curl_format_curl_off_tu="lu"
6468 curl_format_curl_off_t="d"
6469 curl_format_curl_off_tu="u"
6472 curl_format_curl_off_t="I64d"
6473 curl_format_curl_off_tu="I64u"
6476 curl_format_curl_off_t="I32d"
6477 curl_format_curl_off_tu="I32u"
6480 curl_format_curl_off_t="I16d"
6481 curl_format_curl_off_tu="I16u"
6484 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6489 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6492 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6494 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6498 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6500 curl_suffix_curl_off_t="unknown"
6501 curl_suffix_curl_off_tu="unknown"
6503 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6504 long_long | __longlong | __longlong_t)
6514 tst_suffixes="LL:i64::"
6517 tst_suffixes="L:i32::"
6520 tst_suffixes="L:i16::"
6523 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6527 old_IFS=$IFS; IFS=':'
6528 for tmp_ssuf in $tst_suffixes ; do
6530 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6533 tmp_usuf="u$tmp_ssuf"
6536 tmp_usuf="U$tmp_ssuf"
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6546 $curl_includes_inttypes
6547 typedef $curl_typeof_curl_off_t new_t;
6564 if ac_fn_c_try_compile "$LINENO"; then :
6566 curl_suffix_curl_off_t="$tmp_ssuf"
6567 curl_suffix_curl_off_tu="$tmp_usuf"
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6576 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6579 $as_echo "$curl_suffix_curl_off_t" >&6; }
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6581 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6583 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6588 if test "$x_pull_headers" = "yes"; then
6589 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6591 cat >>confdefs.h <<_EOF
6592 #define CURL_PULL_SYS_TYPES_H 1
6596 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6598 cat >>confdefs.h <<_EOF
6599 #define CURL_PULL_STDINT_H 1
6603 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6605 cat >>confdefs.h <<_EOF
6606 #define CURL_PULL_INTTYPES_H 1
6613 cat >>confdefs.h <<_EOF
6614 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6618 cat >>confdefs.h <<_EOF
6619 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6623 cat >>confdefs.h <<_EOF
6624 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6628 cat >>confdefs.h <<_EOF
6629 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6633 cat >>confdefs.h <<_EOF
6634 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6638 cat >>confdefs.h <<_EOF
6639 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6643 cat >>confdefs.h <<_EOF
6644 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6653 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6666 $as_echo "yes" >&6; }
6667 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6683 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6695 force compilation error
6703 if ac_fn_c_try_compile "$LINENO"; then :
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6706 $as_echo "yes" >&6; }
6707 tmp_thread_safe_initially_defined="yes"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 tmp_thread_safe_initially_defined="no"
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 if test "$tmp_thread_safe_initially_defined" = "no"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6720 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6723 aix[123].* | aix4.[012].*)
6724 tmp_need_thread_safe="no"
6727 tmp_need_thread_safe="yes"
6730 tmp_need_thread_safe="no"
6734 if test "$tmp_need_thread_safe" = "yes"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6736 $as_echo "yes" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6744 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6745 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6746 test "$tmp_need_thread_safe" = "yes"; then
6749 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6751 cat >>confdefs.h <<_EOF
6752 #ifndef _THREAD_SAFE
6753 # define _THREAD_SAFE
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6758 $as_echo "yes" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6768 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6780 force compilation error
6788 if ac_fn_c_try_compile "$LINENO"; then :
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6791 $as_echo "yes" >&6; }
6792 tmp_reentrant_initially_defined="yes"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798 tmp_reentrant_initially_defined="no"
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 if test "$tmp_reentrant_initially_defined" = "no"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6805 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6809 tmp_need_reentrant="yes"
6812 tmp_need_reentrant="no"
6816 if test "$tmp_need_reentrant" = "no"; then
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6835 if ac_fn_c_try_compile "$LINENO"; then :
6844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 if test "$tmp_errno" = "yes"; then
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6858 force compilation error
6866 if ac_fn_c_try_compile "$LINENO"; then :
6868 tmp_errno="errno_macro_defined"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6885 force compilation error
6893 if ac_fn_c_try_compile "$LINENO"; then :
6895 tmp_errno="errno_macro_needs_reentrant"
6896 tmp_need_reentrant="yes"
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 if test "$tmp_need_reentrant" = "no"; then
6908 if test "$tmp_need_reentrant" = "no"; then
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6914 #define gmtime_r innocuous_gmtime_r
6916 # include <limits.h>
6918 # include <assert.h>
6925 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6937 if ac_fn_c_try_link "$LINENO"; then :
6946 rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 if test "$tmp_gmtime_r" = "yes"; then
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6952 #include <sys/types.h>
6956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6957 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6959 tmp_gmtime_r="proto_declared"
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6967 #include <sys/types.h>
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6974 tmp_gmtime_r="proto_needs_reentrant"
6975 tmp_need_reentrant="yes"
6987 if test "$tmp_need_reentrant" = "no"; then
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6993 #define localtime_r innocuous_localtime_r
6995 # include <limits.h>
6997 # include <assert.h>
7003 char localtime_r ();
7004 #if defined __stub_localtime_r || defined __stub___localtime_r
7010 return localtime_r ();
7016 if ac_fn_c_try_link "$LINENO"; then :
7018 tmp_localtime_r="yes"
7022 tmp_localtime_r="no"
7025 rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7027 if test "$tmp_localtime_r" = "yes"; then
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7031 #include <sys/types.h>
7035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7036 $EGREP "localtime_r" >/dev/null 2>&1; then :
7038 tmp_localtime_r="proto_declared"
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7046 #include <sys/types.h>
7050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7051 $EGREP "localtime_r" >/dev/null 2>&1; then :
7053 tmp_localtime_r="proto_needs_reentrant"
7054 tmp_need_reentrant="yes"
7066 if test "$tmp_need_reentrant" = "no"; then
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7072 #define strerror_r innocuous_strerror_r
7074 # include <limits.h>
7076 # include <assert.h>
7083 #if defined __stub_strerror_r || defined __stub___strerror_r
7089 return strerror_r ();
7095 if ac_fn_c_try_link "$LINENO"; then :
7097 tmp_strerror_r="yes"
7104 rm -f core conftest.err conftest.$ac_objext \
7105 conftest$ac_exeext conftest.$ac_ext
7106 if test "$tmp_strerror_r" = "yes"; then
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7110 #include <sys/types.h>
7114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7115 $EGREP "strerror_r" >/dev/null 2>&1; then :
7117 tmp_strerror_r="proto_declared"
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7125 #include <sys/types.h>
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130 $EGREP "strerror_r" >/dev/null 2>&1; then :
7132 tmp_strerror_r="proto_needs_reentrant"
7133 tmp_need_reentrant="yes"
7145 if test "$tmp_need_reentrant" = "no"; then
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7151 #define strtok_r innocuous_strtok_r
7153 # include <limits.h>
7155 # include <assert.h>
7162 #if defined __stub_strtok_r || defined __stub___strtok_r
7174 if ac_fn_c_try_link "$LINENO"; then :
7183 rm -f core conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 if test "$tmp_strtok_r" = "yes"; then
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7189 #include <sys/types.h>
7193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7194 $EGREP "strtok_r" >/dev/null 2>&1; then :
7196 tmp_strtok_r="proto_declared"
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7204 #include <sys/types.h>
7208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7209 $EGREP "strtok_r" >/dev/null 2>&1; then :
7211 tmp_strtok_r="proto_needs_reentrant"
7212 tmp_need_reentrant="yes"
7224 if test "$tmp_need_reentrant" = "no"; then
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7230 #define inet_ntoa_r innocuous_inet_ntoa_r
7232 # include <limits.h>
7234 # include <assert.h>
7240 char inet_ntoa_r ();
7241 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7247 return inet_ntoa_r ();
7253 if ac_fn_c_try_link "$LINENO"; then :
7255 tmp_inet_ntoa_r="yes"
7259 tmp_inet_ntoa_r="no"
7262 rm -f core conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 if test "$tmp_inet_ntoa_r" = "yes"; then
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7268 #include <sys/types.h>
7269 #include <sys/socket.h>
7270 #include <netinet/in.h>
7271 #include <arpa/inet.h>
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7277 tmp_inet_ntoa_r="proto_declared"
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7285 #include <sys/types.h>
7286 #include <sys/socket.h>
7287 #include <netinet/in.h>
7288 #include <arpa/inet.h>
7291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7294 tmp_inet_ntoa_r="proto_needs_reentrant"
7295 tmp_need_reentrant="yes"
7307 if test "$tmp_need_reentrant" = "no"; then
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7313 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7315 # include <limits.h>
7317 # include <assert.h>
7319 #undef gethostbyaddr_r
7323 char gethostbyaddr_r ();
7324 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7330 return gethostbyaddr_r ();
7336 if ac_fn_c_try_link "$LINENO"; then :
7338 tmp_gethostbyaddr_r="yes"
7342 tmp_gethostbyaddr_r="no"
7345 rm -f core conftest.err conftest.$ac_objext \
7346 conftest$ac_exeext conftest.$ac_ext
7347 if test "$tmp_gethostbyaddr_r" = "yes"; then
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7351 #include <sys/types.h>
7355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7356 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7358 tmp_gethostbyaddr_r="proto_declared"
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7366 #include <sys/types.h>
7370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7371 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7373 tmp_gethostbyaddr_r="proto_needs_reentrant"
7374 tmp_need_reentrant="yes"
7386 if test "$tmp_need_reentrant" = "no"; then
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7392 #define gethostbyname_r innocuous_gethostbyname_r
7394 # include <limits.h>
7396 # include <assert.h>
7398 #undef gethostbyname_r
7402 char gethostbyname_r ();
7403 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7409 return gethostbyname_r ();
7415 if ac_fn_c_try_link "$LINENO"; then :
7417 tmp_gethostbyname_r="yes"
7421 tmp_gethostbyname_r="no"
7424 rm -f core conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7426 if test "$tmp_gethostbyname_r" = "yes"; then
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7430 #include <sys/types.h>
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7437 tmp_gethostbyname_r="proto_declared"
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7445 #include <sys/types.h>
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7452 tmp_gethostbyname_r="proto_needs_reentrant"
7453 tmp_need_reentrant="yes"
7465 if test "$tmp_need_reentrant" = "no"; then
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7471 #define getprotobyname_r innocuous_getprotobyname_r
7473 # include <limits.h>
7475 # include <assert.h>
7477 #undef getprotobyname_r
7481 char getprotobyname_r ();
7482 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7488 return getprotobyname_r ();
7494 if ac_fn_c_try_link "$LINENO"; then :
7496 tmp_getprotobyname_r="yes"
7500 tmp_getprotobyname_r="no"
7503 rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
7505 if test "$tmp_getprotobyname_r" = "yes"; then
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7509 #include <sys/types.h>
7513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7514 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7516 tmp_getprotobyname_r="proto_declared"
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7524 #include <sys/types.h>
7528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7529 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7531 tmp_getprotobyname_r="proto_needs_reentrant"
7532 tmp_need_reentrant="yes"
7544 if test "$tmp_need_reentrant" = "no"; then
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7550 #define getservbyport_r innocuous_getservbyport_r
7552 # include <limits.h>
7554 # include <assert.h>
7556 #undef getservbyport_r
7560 char getservbyport_r ();
7561 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7567 return getservbyport_r ();
7573 if ac_fn_c_try_link "$LINENO"; then :
7575 tmp_getservbyport_r="yes"
7579 tmp_getservbyport_r="no"
7582 rm -f core conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584 if test "$tmp_getservbyport_r" = "yes"; then
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7588 #include <sys/types.h>
7592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7593 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7595 tmp_getservbyport_r="proto_declared"
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7603 #include <sys/types.h>
7607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7608 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7610 tmp_getservbyport_r="proto_needs_reentrant"
7611 tmp_need_reentrant="yes"
7625 if test "$tmp_need_reentrant" = "yes"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7627 $as_echo "yes" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7635 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7636 if test "$tmp_reentrant_initially_defined" = "yes" ||
7637 test "$tmp_need_reentrant" = "yes"; then
7640 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7642 cat >>confdefs.h <<_EOF
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7649 $as_echo "yes" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7657 # Check whether --enable-largefile was given.
7658 if test "${enable_largefile+set}" = set; then :
7659 enableval=$enable_largefile;
7662 if test "$enable_largefile" != no; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7665 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7666 if ${ac_cv_sys_largefile_CC+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 ac_cv_sys_largefile_CC=no
7670 if test "$GCC" != yes; then
7673 # IRIX 6.2 and later do not support large files by default,
7674 # so use the C compiler's -n32 option if that helps.
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <sys/types.h>
7678 /* Check that off_t can represent 2**63 - 1 correctly.
7679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7680 since some C++ compilers masquerading as C compilers
7681 incorrectly reject 9223372036854775807. */
7682 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7684 && LARGE_OFF_T % 2147483647 == 1)
7693 if ac_fn_c_try_compile "$LINENO"; then :
7696 rm -f core conftest.err conftest.$ac_objext
7698 if ac_fn_c_try_compile "$LINENO"; then :
7699 ac_cv_sys_largefile_CC=' -n32'; break
7701 rm -f core conftest.err conftest.$ac_objext
7705 rm -f conftest.$ac_ext
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7709 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7710 if test "$ac_cv_sys_largefile_CC" != no; then
7711 CC=$CC$ac_cv_sys_largefile_CC
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7715 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7716 if ${ac_cv_sys_file_offset_bits+:} false; then :
7717 $as_echo_n "(cached) " >&6
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <sys/types.h>
7723 /* Check that off_t can represent 2**63 - 1 correctly.
7724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7725 since some C++ compilers masquerading as C compilers
7726 incorrectly reject 9223372036854775807. */
7727 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7729 && LARGE_OFF_T % 2147483647 == 1)
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739 ac_cv_sys_file_offset_bits=no; break
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #define _FILE_OFFSET_BITS 64
7745 #include <sys/types.h>
7746 /* Check that off_t can represent 2**63 - 1 correctly.
7747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7748 since some C++ compilers masquerading as C compilers
7749 incorrectly reject 9223372036854775807. */
7750 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7752 && LARGE_OFF_T % 2147483647 == 1)
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762 ac_cv_sys_file_offset_bits=64; break
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 ac_cv_sys_file_offset_bits=unknown
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7770 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7771 case $ac_cv_sys_file_offset_bits in #(
7774 cat >>confdefs.h <<_ACEOF
7775 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7780 if test $ac_cv_sys_file_offset_bits = unknown; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7782 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7783 if ${ac_cv_sys_large_files+:} false; then :
7784 $as_echo_n "(cached) " >&6
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 #include <sys/types.h>
7790 /* Check that off_t can represent 2**63 - 1 correctly.
7791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7792 since some C++ compilers masquerading as C compilers
7793 incorrectly reject 9223372036854775807. */
7794 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7796 && LARGE_OFF_T % 2147483647 == 1)
7805 if ac_fn_c_try_compile "$LINENO"; then :
7806 ac_cv_sys_large_files=no; break
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811 #define _LARGE_FILES 1
7812 #include <sys/types.h>
7813 /* Check that off_t can represent 2**63 - 1 correctly.
7814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7815 since some C++ compilers masquerading as C compilers
7816 incorrectly reject 9223372036854775807. */
7817 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7819 && LARGE_OFF_T % 2147483647 == 1)
7828 if ac_fn_c_try_compile "$LINENO"; then :
7829 ac_cv_sys_large_files=1; break
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 ac_cv_sys_large_files=unknown
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7837 $as_echo "$ac_cv_sys_large_files" >&6; }
7838 case $ac_cv_sys_large_files in #(
7841 cat >>confdefs.h <<_ACEOF
7842 #define _LARGE_FILES $ac_cv_sys_large_files
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7861 macro_version='2.4.2'
7862 macro_revision='1.3337'
7876 ltmain="$ac_aux_dir/ltmain.sh"
7878 # Backslashify metacharacters that are still active within
7879 # double-quoted strings.
7880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7882 # Same as above, but do not quote variable references.
7883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7885 # Sed substitution to delay expansion of an escaped shell variable in a
7886 # double_quote_subst'ed string.
7887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7889 # Sed substitution to delay expansion of an escaped single quote.
7890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7895 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7900 $as_echo_n "checking how to print strings... " >&6; }
7901 # Test print first, because it will be a builtin if present.
7902 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7903 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7905 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7908 # Use this function as a fallback that always works.
7909 func_fallback_echo ()
7911 eval 'cat <<_LTECHO_EOF
7915 ECHO='func_fallback_echo'
7918 # func_echo_all arg...
7919 # Invoke $ECHO with all args, space-separated.
7926 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7927 $as_echo "printf" >&6; } ;;
7928 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7929 $as_echo "print -r" >&6; } ;;
7930 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7931 $as_echo "cat" >&6; } ;;
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7948 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7949 if ${ac_cv_path_SED+:} false; then :
7950 $as_echo_n "(cached) " >&6
7952 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7953 for ac_i in 1 2 3 4 5 6 7; do
7954 ac_script="$ac_script$as_nl$ac_script"
7956 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7957 { ac_script=; unset ac_script;}
7958 if test -z "$SED"; then
7959 ac_path_SED_found=false
7960 # Loop through the user's path and test for each of PROGNAME-LIST
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 test -z "$as_dir" && as_dir=.
7966 for ac_prog in sed gsed; do
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7969 as_fn_executable_p "$ac_path_SED" || continue
7970 # Check for GNU ac_path_SED and select it if it is found.
7971 # Check for GNU $ac_path_SED
7972 case `"$ac_path_SED" --version 2>&1` in
7974 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7977 $as_echo_n 0123456789 >"conftest.in"
7980 cat "conftest.in" "conftest.in" >"conftest.tmp"
7981 mv "conftest.tmp" "conftest.in"
7982 cp "conftest.in" "conftest.nl"
7983 $as_echo '' >> "conftest.nl"
7984 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7986 as_fn_arith $ac_count + 1 && ac_count=$as_val
7987 if test $ac_count -gt ${ac_path_SED_max-0}; then
7988 # Best one so far, save it but keep looking for a better one
7989 ac_cv_path_SED="$ac_path_SED"
7990 ac_path_SED_max=$ac_count
7992 # 10*(2^10) chars as input seems more than enough
7993 test $ac_count -gt 10 && break
7995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7998 $ac_path_SED_found && break 3
8003 if test -z "$ac_cv_path_SED"; then
8004 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8012 $as_echo "$ac_cv_path_SED" >&6; }
8013 SED="$ac_cv_path_SED"
8016 test -z "$SED" && SED=sed
8017 Xsed="$SED -e 1s/^X//"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8030 $as_echo_n "checking for fgrep... " >&6; }
8031 if ${ac_cv_path_FGREP+:} false; then :
8032 $as_echo_n "(cached) " >&6
8034 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8035 then ac_cv_path_FGREP="$GREP -F"
8037 if test -z "$FGREP"; then
8038 ac_path_FGREP_found=false
8039 # Loop through the user's path and test for each of PROGNAME-LIST
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8044 test -z "$as_dir" && as_dir=.
8045 for ac_prog in fgrep; do
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8048 as_fn_executable_p "$ac_path_FGREP" || continue
8049 # Check for GNU ac_path_FGREP and select it if it is found.
8050 # Check for GNU $ac_path_FGREP
8051 case `"$ac_path_FGREP" --version 2>&1` in
8053 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8056 $as_echo_n 0123456789 >"conftest.in"
8059 cat "conftest.in" "conftest.in" >"conftest.tmp"
8060 mv "conftest.tmp" "conftest.in"
8061 cp "conftest.in" "conftest.nl"
8062 $as_echo 'FGREP' >> "conftest.nl"
8063 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8065 as_fn_arith $ac_count + 1 && ac_count=$as_val
8066 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8067 # Best one so far, save it but keep looking for a better one
8068 ac_cv_path_FGREP="$ac_path_FGREP"
8069 ac_path_FGREP_max=$ac_count
8071 # 10*(2^10) chars as input seems more than enough
8072 test $ac_count -gt 10 && break
8074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8077 $ac_path_FGREP_found && break 3
8082 if test -z "$ac_cv_path_FGREP"; then
8083 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8086 ac_cv_path_FGREP=$FGREP
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8092 $as_echo "$ac_cv_path_FGREP" >&6; }
8093 FGREP="$ac_cv_path_FGREP"
8096 test -z "$GREP" && GREP=grep
8116 # Check whether --with-gnu-ld was given.
8117 if test "${with_gnu_ld+set}" = set; then :
8118 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8124 if test "$GCC" = yes; then
8125 # Check if gcc -print-prog-name=ld gives a path.
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8127 $as_echo_n "checking for ld used by $CC... " >&6; }
8130 # gcc leaves a trailing carriage return which upsets mingw
8131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8136 # Accept absolute paths.
8138 re_direlt='/[^/][^/]*/\.\./'
8139 # Canonicalize the pathname of ld
8140 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8141 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8142 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8144 test -z "$LD" && LD="$ac_prog"
8147 # If it fails, then pretend we aren't using GCC.
8151 # If it is relative, then search for the first ld in PATH.
8155 elif test "$with_gnu_ld" = yes; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8157 $as_echo_n "checking for GNU ld... " >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8160 $as_echo_n "checking for non-GNU ld... " >&6; }
8162 if ${lt_cv_path_LD+:} false; then :
8163 $as_echo_n "(cached) " >&6
8165 if test -z "$LD"; then
8166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8167 for ac_dir in $PATH; do
8169 test -z "$ac_dir" && ac_dir=.
8170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8171 lt_cv_path_LD="$ac_dir/$ac_prog"
8172 # Check to see if the program is GNU ld. I'd rather use --version,
8173 # but apparently some variants of GNU ld only accept -v.
8174 # Break only if it was the GNU/non-GNU ld that we prefer.
8175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8176 *GNU* | *'with BFD'*)
8177 test "$with_gnu_ld" != no && break
8180 test "$with_gnu_ld" != yes && break
8187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8192 if test -n "$LD"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8194 $as_echo "$LD" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8199 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8201 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8202 if ${lt_cv_prog_gnu_ld+:} false; then :
8203 $as_echo_n "(cached) " >&6
8205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8206 case `$LD -v 2>&1 </dev/null` in
8207 *GNU* | *'with BFD'*)
8208 lt_cv_prog_gnu_ld=yes
8211 lt_cv_prog_gnu_ld=no
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8216 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8217 with_gnu_ld=$lt_cv_prog_gnu_ld
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8228 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8229 if ${lt_cv_path_NM+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$NM"; then
8233 # Let the user override the test.
8236 lt_nm_to_check="${ac_tool_prefix}nm"
8237 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8238 lt_nm_to_check="$lt_nm_to_check nm"
8240 for lt_tmp_nm in $lt_nm_to_check; do
8241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8242 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8244 test -z "$ac_dir" && ac_dir=.
8245 tmp_nm="$ac_dir/$lt_tmp_nm"
8246 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8247 # Check to see if the nm accepts a BSD-compat flag.
8248 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8249 # nm: unknown option "B" ignored
8250 # Tru64's nm complains that /dev/null is an invalid object file
8251 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8252 */dev/null* | *'Invalid file or object type'*)
8253 lt_cv_path_NM="$tmp_nm -B"
8257 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8259 lt_cv_path_NM="$tmp_nm -p"
8263 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8264 continue # so that we can try to find one that supports BSD flags
8273 : ${lt_cv_path_NM=no}
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8277 $as_echo "$lt_cv_path_NM" >&6; }
8278 if test "$lt_cv_path_NM" != "no"; then
8281 # Didn't find any BSD compatible name lister, look for dumpbin.
8282 if test -n "$DUMPBIN"; then :
8283 # Let the user override the test.
8285 if test -n "$ac_tool_prefix"; then
8286 for ac_prog in dumpbin "link -dump"
8288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_prog_DUMPBIN+:} false; then :
8293 $as_echo_n "(cached) " >&6
8295 if test -n "$DUMPBIN"; then
8296 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 DUMPBIN=$ac_cv_prog_DUMPBIN
8316 if test -n "$DUMPBIN"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8318 $as_echo "$DUMPBIN" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8325 test -n "$DUMPBIN" && break
8328 if test -z "$DUMPBIN"; then
8329 ac_ct_DUMPBIN=$DUMPBIN
8330 for ac_prog in dumpbin "link -dump"
8332 # Extract the first word of "$ac_prog", so it can be a program name with args.
8333 set dummy $ac_prog; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8337 $as_echo_n "(cached) " >&6
8339 if test -n "$ac_ct_DUMPBIN"; then
8340 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8360 if test -n "$ac_ct_DUMPBIN"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8362 $as_echo "$ac_ct_DUMPBIN" >&6; }
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8369 test -n "$ac_ct_DUMPBIN" && break
8372 if test "x$ac_ct_DUMPBIN" = x; then
8375 case $cross_compiling:$ac_tool_warned in
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8381 DUMPBIN=$ac_ct_DUMPBIN
8385 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8387 DUMPBIN="$DUMPBIN -symbols"
8395 if test "$DUMPBIN" != ":"; then
8399 test -z "$NM" && NM=nm
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8407 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8408 if ${lt_cv_nm_interface+:} false; then :
8409 $as_echo_n "(cached) " >&6
8411 lt_cv_nm_interface="BSD nm"
8412 echo "int some_variable = 0;" > conftest.$ac_ext
8413 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8414 (eval "$ac_compile" 2>conftest.err)
8415 cat conftest.err >&5
8416 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8417 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8418 cat conftest.err >&5
8419 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8420 cat conftest.out >&5
8421 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8422 lt_cv_nm_interface="MS dumpbin"
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8427 $as_echo "$lt_cv_nm_interface" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8430 $as_echo_n "checking whether ln -s works... " >&6; }
8432 if test "$LN_S" = "ln -s"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8434 $as_echo "yes" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8437 $as_echo "no, using $LN_S" >&6; }
8440 # find the maximum length of command line arguments
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8442 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8443 if ${lt_cv_sys_max_cmd_len+:} false; then :
8444 $as_echo_n "(cached) " >&6
8451 # On DJGPP, this test can blow up pretty badly due to problems in libc
8452 # (any single argument exceeding 2000 bytes causes a buffer overrun
8453 # during glob expansion). Even if it were fixed, the result of this
8454 # check would be larger than it should be.
8455 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8459 # Under GNU Hurd, this test is not required because there is
8460 # no limit to the length of command line arguments.
8461 # Libtool will interpret -1 as no limit whatsoever
8462 lt_cv_sys_max_cmd_len=-1;
8465 cygwin* | mingw* | cegcc*)
8466 # On Win9x/ME, this test blows up -- it succeeds, but takes
8467 # about 5 minutes as the teststring grows exponentially.
8468 # Worse, since 9x/ME are not pre-emptively multitasking,
8469 # you end up with a "frozen" computer, even though with patience
8470 # the test eventually succeeds (with a max line length of 256k).
8471 # Instead, let's just punt: use the minimum linelength reported by
8472 # all of the supported platforms: 8192 (on NT/2K/XP).
8473 lt_cv_sys_max_cmd_len=8192;
8477 # On MiNT this can take a long time and run out of memory.
8478 lt_cv_sys_max_cmd_len=8192;
8482 # On AmigaOS with pdksh, this test takes hours, literally.
8483 # So we just punt and use a minimum line length of 8192.
8484 lt_cv_sys_max_cmd_len=8192;
8487 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8488 # This has been around since 386BSD, at least. Likely further.
8489 if test -x /sbin/sysctl; then
8490 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8491 elif test -x /usr/sbin/sysctl; then
8492 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8494 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8496 # And add a safety zone
8497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8502 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8503 lt_cv_sys_max_cmd_len=196608
8507 # The test takes a long time on OS/2.
8508 lt_cv_sys_max_cmd_len=8192
8512 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8513 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8514 # nice to cause kernel panics so lets avoid the loop below.
8515 # First set a reasonable default.
8516 lt_cv_sys_max_cmd_len=16384
8518 if test -x /sbin/sysconfig; then
8519 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8520 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8525 lt_cv_sys_max_cmd_len=102400
8527 sysv5* | sco5v6* | sysv4.2uw2*)
8528 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8529 if test -n "$kargmax"; then
8530 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8532 lt_cv_sys_max_cmd_len=32768
8536 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8537 if test -n "$lt_cv_sys_max_cmd_len" && \
8538 test undefined != "$lt_cv_sys_max_cmd_len"; then
8539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8542 # Make teststring a little bigger before we do anything with it.
8543 # a 1K string should be a reasonable start.
8544 for i in 1 2 3 4 5 6 7 8 ; do
8545 teststring=$teststring$teststring
8547 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8548 # If test is not a shell built-in, we'll probably end up computing a
8549 # maximum length that is only half of the actual maximum length, but
8551 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8552 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8553 test $i != 17 # 1/2 MB should be enough
8556 teststring=$teststring$teststring
8558 # Only check the string length outside the loop.
8559 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8561 # Add a significant safety factor because C++ compilers can tack on
8562 # massive amounts of additional arguments before passing them to the
8563 # linker. It appears as though 1/2 is a usable value.
8564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8571 if test -n $lt_cv_sys_max_cmd_len ; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8573 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8576 $as_echo "none" >&6; }
8578 max_cmd_len=$lt_cv_sys_max_cmd_len
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8590 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8591 # Try some XSI features
8594 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8596 && eval 'test $(( 1 + 1 )) -eq 2 \
8597 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8600 $as_echo "$xsi_shell" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8604 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8606 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8608 && lt_shell_append=yes
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8610 $as_echo "$lt_shell_append" >&6; }
8613 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8623 # test EBCDIC or ASCII
8624 case `echo X|tr X '\101'` in
8625 A) # ASCII based system
8626 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8627 lt_SP2NL='tr \040 \012'
8628 lt_NL2SP='tr \015\012 \040\040'
8630 *) # EBCDIC based system
8631 lt_SP2NL='tr \100 \n'
8632 lt_NL2SP='tr \r\n \100\100'
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8645 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8646 if ${lt_cv_to_host_file_cmd+:} false; then :
8647 $as_echo_n "(cached) " >&6
8652 *-*-mingw* ) # actually msys
8653 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8656 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8658 * ) # otherwise, assume *nix
8659 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8665 *-*-mingw* ) # actually msys
8666 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8669 lt_cv_to_host_file_cmd=func_convert_file_noop
8671 * ) # otherwise, assume *nix
8672 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8676 * ) # unhandled hosts (and "normal" native builds)
8677 lt_cv_to_host_file_cmd=func_convert_file_noop
8683 to_host_file_cmd=$lt_cv_to_host_file_cmd
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8685 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8692 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8693 if ${lt_cv_to_tool_file_cmd+:} false; then :
8694 $as_echo_n "(cached) " >&6
8696 #assume ordinary cross tools, or native build.
8697 lt_cv_to_tool_file_cmd=func_convert_file_noop
8701 *-*-mingw* ) # actually msys
8702 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8710 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8712 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8719 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8720 if ${lt_cv_ld_reload_flag+:} false; then :
8721 $as_echo_n "(cached) " >&6
8723 lt_cv_ld_reload_flag='-r'
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8726 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8727 reload_flag=$lt_cv_ld_reload_flag
8728 case $reload_flag in
8730 *) reload_flag=" $reload_flag" ;;
8732 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8734 cygwin* | mingw* | pw32* | cegcc*)
8735 if test "$GCC" != yes; then
8740 if test "$GCC" = yes; then
8741 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8743 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8756 if test -n "$ac_tool_prefix"; then
8757 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8758 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if ${ac_cv_prog_OBJDUMP+:} false; then :
8762 $as_echo_n "(cached) " >&6
8764 if test -n "$OBJDUMP"; then
8765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8774 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 OBJDUMP=$ac_cv_prog_OBJDUMP
8785 if test -n "$OBJDUMP"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8787 $as_echo "$OBJDUMP" >&6; }
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8795 if test -z "$ac_cv_prog_OBJDUMP"; then
8796 ac_ct_OBJDUMP=$OBJDUMP
8797 # Extract the first word of "objdump", so it can be a program name with args.
8798 set dummy objdump; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 if test -n "$ac_ct_OBJDUMP"; then
8805 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8825 if test -n "$ac_ct_OBJDUMP"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8827 $as_echo "$ac_ct_OBJDUMP" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8833 if test "x$ac_ct_OBJDUMP" = x; then
8836 case $cross_compiling:$ac_tool_warned in
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8840 ac_tool_warned=yes ;;
8842 OBJDUMP=$ac_ct_OBJDUMP
8845 OBJDUMP="$ac_cv_prog_OBJDUMP"
8848 test -z "$OBJDUMP" && OBJDUMP=objdump
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8856 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8857 if ${lt_cv_deplibs_check_method+:} false; then :
8858 $as_echo_n "(cached) " >&6
8860 lt_cv_file_magic_cmd='$MAGIC_CMD'
8861 lt_cv_file_magic_test_file=
8862 lt_cv_deplibs_check_method='unknown'
8863 # Need to set the preceding variable on all platforms that support
8864 # interlibrary dependencies.
8865 # 'none' -- dependencies not supported.
8866 # `unknown' -- same as none, but documents that we really don't know.
8867 # 'pass_all' -- all dependencies passed with no checks.
8868 # 'test_compile' -- check by making test program.
8869 # 'file_magic [[regex]]' -- check by looking for files in library path
8870 # which responds to the $file_magic_cmd with a given extended regex.
8871 # If you have `file' or equivalent on your system and you're not sure
8872 # whether `pass_all' will *always* work, you probably want this one.
8876 lt_cv_deplibs_check_method=pass_all
8880 lt_cv_deplibs_check_method=pass_all
8884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8885 lt_cv_file_magic_cmd='/usr/bin/file -L'
8886 lt_cv_file_magic_test_file=/shlib/libc.so
8890 # func_win32_libid is a shell function defined in ltmain.sh
8891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8892 lt_cv_file_magic_cmd='func_win32_libid'
8896 # Base MSYS/MinGW do not provide the 'file' command needed by
8897 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8898 # unless we find 'file', for example because we are cross-compiling.
8899 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8900 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8902 lt_cv_file_magic_cmd='func_win32_libid'
8904 # Keep this pattern in sync with the one in func_win32_libid.
8905 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8906 lt_cv_file_magic_cmd='$OBJDUMP -f'
8911 # use the weaker test based on 'objdump'. See mingw*.
8912 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8913 lt_cv_file_magic_cmd='$OBJDUMP -f'
8916 darwin* | rhapsody*)
8917 lt_cv_deplibs_check_method=pass_all
8920 freebsd* | dragonfly*)
8921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8924 # Not sure whether the presence of OpenBSD here was a mistake.
8925 # Let's accept both of them until this is cleared up.
8926 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8927 lt_cv_file_magic_cmd=/usr/bin/file
8928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8932 lt_cv_deplibs_check_method=pass_all
8937 lt_cv_deplibs_check_method=pass_all
8940 hpux10.20* | hpux11*)
8941 lt_cv_file_magic_cmd=/usr/bin/file
8944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8945 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8948 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]'
8949 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8953 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8959 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8963 irix5* | irix6* | nonstopux*)
8965 *-32|*"-32 ") libmagic=32-bit;;
8966 *-n32|*"-n32 ") libmagic=N32;;
8967 *-64|*"-64 ") libmagic=64-bit;;
8968 *) libmagic=never-match;;
8970 lt_cv_deplibs_check_method=pass_all
8973 # This must be glibc/ELF.
8974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8975 lt_cv_deplibs_check_method=pass_all
8978 netbsd* | netbsdelf*-gnu)
8979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8988 lt_cv_file_magic_cmd=/usr/bin/file
8989 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8993 lt_cv_deplibs_check_method=pass_all
8997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9004 osf3* | osf4* | osf5*)
9005 lt_cv_deplibs_check_method=pass_all
9009 lt_cv_deplibs_check_method=pass_all
9013 lt_cv_deplibs_check_method=pass_all
9016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9017 lt_cv_deplibs_check_method=pass_all
9021 case $host_vendor in
9023 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]'
9024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9027 lt_cv_deplibs_check_method=pass_all
9030 lt_cv_file_magic_cmd='/bin/file'
9031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9034 lt_cv_file_magic_cmd='/bin/file'
9035 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9036 lt_cv_file_magic_test_file=/lib/libc.so
9039 lt_cv_deplibs_check_method=pass_all
9042 lt_cv_deplibs_check_method=pass_all
9048 lt_cv_deplibs_check_method=pass_all
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9054 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9058 if test "$build" = "$host"; then
9061 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9064 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9070 file_magic_cmd=$lt_cv_file_magic_cmd
9071 deplibs_check_method=$lt_cv_deplibs_check_method
9072 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9095 if test -n "$ac_tool_prefix"; then
9096 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9097 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if ${ac_cv_prog_DLLTOOL+:} false; then :
9101 $as_echo_n "(cached) " >&6
9103 if test -n "$DLLTOOL"; then
9104 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123 DLLTOOL=$ac_cv_prog_DLLTOOL
9124 if test -n "$DLLTOOL"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9126 $as_echo "$DLLTOOL" >&6; }
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9134 if test -z "$ac_cv_prog_DLLTOOL"; then
9135 ac_ct_DLLTOOL=$DLLTOOL
9136 # Extract the first word of "dlltool", so it can be a program name with args.
9137 set dummy dlltool; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9141 $as_echo_n "(cached) " >&6
9143 if test -n "$ac_ct_DLLTOOL"; then
9144 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 test -z "$as_dir" && as_dir=.
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9164 if test -n "$ac_ct_DLLTOOL"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9166 $as_echo "$ac_ct_DLLTOOL" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9172 if test "x$ac_ct_DLLTOOL" = x; then
9175 case $cross_compiling:$ac_tool_warned in
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9179 ac_tool_warned=yes ;;
9181 DLLTOOL=$ac_ct_DLLTOOL
9184 DLLTOOL="$ac_cv_prog_DLLTOOL"
9187 test -z "$DLLTOOL" && DLLTOOL=dlltool
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9196 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9197 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9198 $as_echo_n "(cached) " >&6
9200 lt_cv_sharedlib_from_linklib_cmd='unknown'
9203 cygwin* | mingw* | pw32* | cegcc*)
9204 # two different shell functions defined in ltmain.sh
9205 # decide which to use based on capabilities of $DLLTOOL
9206 case `$DLLTOOL --help 2>&1` in
9207 *--identify-strict*)
9208 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9211 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9216 # fallback: assume linklib IS sharedlib
9217 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9223 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9224 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9225 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9233 if test -n "$ac_tool_prefix"; then
9236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if ${ac_cv_prog_AR+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 if test -n "$AR"; then
9244 ac_cv_prog_AR="$AR" # Let the user override the test.
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 if test -n "$AR"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9266 $as_echo "$AR" >&6; }
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9273 test -n "$AR" && break
9276 if test -z "$AR"; then
9280 # Extract the first word of "$ac_prog", so it can be a program name with args.
9281 set dummy $ac_prog; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9285 $as_echo_n "(cached) " >&6
9287 if test -n "$ac_ct_AR"; then
9288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297 ac_cv_prog_ac_ct_AR="$ac_prog"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9308 if test -n "$ac_ct_AR"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9310 $as_echo "$ac_ct_AR" >&6; }
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9317 test -n "$ac_ct_AR" && break
9320 if test "x$ac_ct_AR" = x; then
9323 case $cross_compiling:$ac_tool_warned in
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9327 ac_tool_warned=yes ;;
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9347 $as_echo_n "checking for archiver @FILE support... " >&6; }
9348 if ${lt_cv_ar_at_file+:} false; then :
9349 $as_echo_n "(cached) " >&6
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9362 if ac_fn_c_try_compile "$LINENO"; then :
9363 echo conftest.$ac_objext > conftest.lst
9364 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9366 (eval $lt_ar_try) 2>&5
9368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9369 test $ac_status = 0; }
9370 if test "$ac_status" -eq 0; then
9371 # Ensure the archiver fails upon bogus file names.
9372 rm -f conftest.$ac_objext libconftest.a
9373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9374 (eval $lt_ar_try) 2>&5
9376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9377 test $ac_status = 0; }
9378 if test "$ac_status" -ne 0; then
9382 rm -f conftest.* libconftest.a
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9389 $as_echo "$lt_cv_ar_at_file" >&6; }
9391 if test "x$lt_cv_ar_at_file" = xno; then
9394 archiver_list_spec=$lt_cv_ar_at_file
9403 if test -n "$ac_tool_prefix"; then
9404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9405 set dummy ${ac_tool_prefix}strip; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if ${ac_cv_prog_STRIP+:} false; then :
9409 $as_echo_n "(cached) " >&6
9411 if test -n "$STRIP"; then
9412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 STRIP=$ac_cv_prog_STRIP
9432 if test -n "$STRIP"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9434 $as_echo "$STRIP" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9442 if test -z "$ac_cv_prog_STRIP"; then
9444 # Extract the first word of "strip", so it can be a program name with args.
9445 set dummy strip; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9449 $as_echo_n "(cached) " >&6
9451 if test -n "$ac_ct_STRIP"; then
9452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 test -z "$as_dir" && as_dir=.
9459 for ac_exec_ext in '' $ac_executable_extensions; do
9460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9461 ac_cv_prog_ac_ct_STRIP="strip"
9462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9472 if test -n "$ac_ct_STRIP"; then
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9474 $as_echo "$ac_ct_STRIP" >&6; }
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 $as_echo "no" >&6; }
9480 if test "x$ac_ct_STRIP" = x; then
9483 case $cross_compiling:$ac_tool_warned in
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9487 ac_tool_warned=yes ;;
9492 STRIP="$ac_cv_prog_STRIP"
9495 test -z "$STRIP" && STRIP=:
9502 if test -n "$ac_tool_prefix"; then
9503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if ${ac_cv_prog_RANLIB+:} false; then :
9508 $as_echo_n "(cached) " >&6
9510 if test -n "$RANLIB"; then
9511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9530 RANLIB=$ac_cv_prog_RANLIB
9531 if test -n "$RANLIB"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9533 $as_echo "$RANLIB" >&6; }
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9541 if test -z "$ac_cv_prog_RANLIB"; then
9542 ac_ct_RANLIB=$RANLIB
9543 # Extract the first word of "ranlib", so it can be a program name with args.
9544 set dummy ranlib; ac_word=$2
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9546 $as_echo_n "checking for $ac_word... " >&6; }
9547 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9548 $as_echo_n "(cached) " >&6
9550 if test -n "$ac_ct_RANLIB"; then
9551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9560 ac_cv_prog_ac_ct_RANLIB="ranlib"
9561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9571 if test -n "$ac_ct_RANLIB"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9573 $as_echo "$ac_ct_RANLIB" >&6; }
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9579 if test "x$ac_ct_RANLIB" = x; then
9582 case $cross_compiling:$ac_tool_warned in
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9586 ac_tool_warned=yes ;;
9588 RANLIB=$ac_ct_RANLIB
9591 RANLIB="$ac_cv_prog_RANLIB"
9594 test -z "$RANLIB" && RANLIB=:
9601 # Determine commands to create old-style static archives.
9602 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9603 old_postinstall_cmds='chmod 644 $oldlib'
9604 old_postuninstall_cmds=
9606 if test -n "$RANLIB"; then
9609 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9612 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9620 lock_old_archive_extraction=yes ;;
9622 lock_old_archive_extraction=no ;;
9663 # If no C compiler was specified, use CC.
9666 # If no C compiler flags were specified, use CFLAGS.
9667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9669 # Allow CC to be a program name with arguments.
9673 # Check for command to grab the raw symbol name followed by C symbol from nm.
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9675 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9676 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9677 $as_echo_n "(cached) " >&6
9680 # These are sane defaults that work on at least a few old systems.
9681 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9683 # Character class describing NM global symbol codes.
9684 symcode='[BCDEGRST]'
9686 # Regexp to match symbols that can be accessed directly from C.
9687 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9689 # Define system-specific variables.
9694 cygwin* | mingw* | pw32* | cegcc*)
9695 symcode='[ABCDGISTW]'
9698 if test "$host_cpu" = ia64; then
9699 symcode='[ABCDEGRST]'
9703 symcode='[BCDEGRST]'
9706 symcode='[BCDEGQRST]'
9717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9725 # If we're using GNU nm, then use its standard symbol codes.
9726 case `$NM -V 2>&1` in
9727 *GNU* | *'with BFD'*)
9728 symcode='[ABCDGIRSTW]' ;;
9731 # Transform an extracted symbol line into a proper C declaration.
9732 # Some systems (esp. on ia64) link data and code symbols differently,
9733 # so use this general approach.
9734 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9736 # Transform an extracted symbol line into symbol name and symbol address
9737 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9740 # Handle CRLF in mingw tool chain
9744 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9748 # Try without a prefix underscore, then with it.
9749 for ac_symprfx in "" "_"; do
9751 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9752 symxfrm="\\1 $ac_symprfx\\2 \\2"
9754 # Write the raw and C identifiers.
9755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9756 # Fake it for dumpbin and say T for any non-static function
9757 # and D for any global variable.
9758 # Also find C++ and __fastcall symbols from MSVC++,
9759 # which start with @ or ?.
9760 lt_cv_sys_global_symbol_pipe="$AWK '"\
9761 " {last_section=section; section=\$ 3};"\
9762 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9763 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9764 " \$ 0!~/External *\|/{next};"\
9765 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9766 " {if(hide[section]) next};"\
9767 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9768 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9769 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9770 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9771 " ' prfx=^$ac_symprfx"
9773 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9775 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9777 # Check to see that the pipe works correctly.
9781 cat > conftest.$ac_ext <<_LT_EOF
9786 void nm_test_func(void);
9787 void nm_test_func(void){}
9791 int main(){nm_test_var='a';nm_test_func();return(0);}
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; }; then
9799 # Now try to grab the symbols.
9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9802 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; } && test -s "$nlist"; then
9806 # Try sorting and uniquifying the output.
9807 if sort "$nlist" | uniq > "$nlist"T; then
9808 mv -f "$nlist"T "$nlist"
9813 # Make sure that we snagged all the symbols we need.
9814 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9815 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9816 cat <<_LT_EOF > conftest.$ac_ext
9817 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9818 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9819 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9820 relocations are performed -- see ld's documentation on pseudo-relocs. */
9821 # define LT_DLSYM_CONST
9822 #elif defined(__osf__)
9823 /* This system does not cope well with relocations in const data. */
9824 # define LT_DLSYM_CONST
9826 # define LT_DLSYM_CONST const
9834 # Now generate the symbol file.
9835 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9837 cat <<_LT_EOF >> conftest.$ac_ext
9839 /* The mapping between symbol names and symbols. */
9840 LT_DLSYM_CONST struct {
9844 lt__PROGRAM__LTX_preloaded_symbols[] =
9846 { "@PROGRAM@", (void *) 0 },
9848 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9849 cat <<\_LT_EOF >> conftest.$ac_ext
9853 /* This works around a problem in FreeBSD linker */
9854 #ifdef FREEBSD_WORKAROUND
9855 static const void *lt_preloaded_setup() {
9856 return lt__PROGRAM__LTX_preloaded_symbols;
9864 # Now try linking the two files.
9865 mv -f conftest.$ac_objext conftstm.$ac_objext
9866 lt_globsym_save_LIBS=$LIBS
9867 lt_globsym_save_CFLAGS=$CFLAGS
9868 LIBS="conftstm.$ac_objext"
9869 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9871 (eval $ac_link) 2>&5
9873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9874 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9877 LIBS=$lt_globsym_save_LIBS
9878 CFLAGS=$lt_globsym_save_CFLAGS
9880 echo "cannot find nm_test_func in $nlist" >&5
9883 echo "cannot find nm_test_var in $nlist" >&5
9886 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9889 echo "$progname: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9892 rm -rf conftest* conftst*
9894 # Do not use the global_symbol_pipe unless it works.
9895 if test "$pipe_works" = yes; then
9898 lt_cv_sys_global_symbol_pipe=
9904 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9905 lt_cv_sys_global_symbol_to_cdecl=
9907 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9909 $as_echo "failed" >&6; }
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9912 $as_echo "ok" >&6; }
9915 # Response file support.
9916 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9917 nm_file_list_spec='@'
9918 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9919 nm_file_list_spec='@'
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9949 $as_echo_n "checking for sysroot... " >&6; }
9951 # Check whether --with-sysroot was given.
9952 if test "${with_sysroot+set}" = set; then :
9953 withval=$with_sysroot;
9960 case ${with_sysroot} in #(
9962 if test "$GCC" = yes; then
9963 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9967 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9973 $as_echo "${with_sysroot}" >&6; }
9974 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9979 $as_echo "${lt_sysroot:-no}" >&6; }
9985 # Check whether --enable-libtool-lock was given.
9986 if test "${enable_libtool_lock+set}" = set; then :
9987 enableval=$enable_libtool_lock;
9990 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9992 # Some flags need to be propagated to the compiler or linker for good
9996 # Find out which ABI we are using.
9997 echo 'int i;' > conftest.$ac_ext
9998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9999 (eval $ac_compile) 2>&5
10001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10002 test $ac_status = 0; }; then
10003 case `/usr/bin/file conftest.$ac_objext` in
10005 HPUX_IA64_MODE="32"
10008 HPUX_IA64_MODE="64"
10015 # Find out which ABI we are using.
10016 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10018 (eval $ac_compile) 2>&5
10020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10021 test $ac_status = 0; }; then
10022 if test "$lt_cv_prog_gnu_ld" = yes; then
10023 case `/usr/bin/file conftest.$ac_objext` in
10025 LD="${LD-ld} -melf32bsmip"
10028 LD="${LD-ld} -melf32bmipn32"
10031 LD="${LD-ld} -melf64bmip"
10035 case `/usr/bin/file conftest.$ac_objext` in
10051 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10052 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10053 # Find out which ABI we are using.
10054 echo 'int i;' > conftest.$ac_ext
10055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10056 (eval $ac_compile) 2>&5
10058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10059 test $ac_status = 0; }; then
10060 case `/usr/bin/file conftest.o` in
10063 x86_64-*kfreebsd*-gnu)
10064 LD="${LD-ld} -m elf_i386_fbsd"
10067 case `/usr/bin/file conftest.o` in
10069 LD="${LD-ld} -m elf32_x86_64"
10072 LD="${LD-ld} -m elf_i386"
10077 LD="${LD-ld} -m elf32lppclinux"
10080 LD="${LD-ld} -m elf32ppclinux"
10083 LD="${LD-ld} -m elf_s390"
10086 LD="${LD-ld} -m elf32_sparc"
10092 x86_64-*kfreebsd*-gnu)
10093 LD="${LD-ld} -m elf_x86_64_fbsd"
10096 LD="${LD-ld} -m elf_x86_64"
10099 LD="${LD-ld} -m elf64lppc"
10102 LD="${LD-ld} -m elf64ppc"
10104 s390*-*linux*|s390*-*tpf*)
10105 LD="${LD-ld} -m elf64_s390"
10108 LD="${LD-ld} -m elf64_sparc"
10118 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10119 SAVE_CFLAGS="$CFLAGS"
10120 CFLAGS="$CFLAGS -belf"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10122 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10123 if ${lt_cv_cc_needs_belf+:} false; then :
10124 $as_echo_n "(cached) " >&6
10127 ac_cpp='$CPP $CPPFLAGS'
10128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10142 if ac_fn_c_try_link "$LINENO"; then :
10143 lt_cv_cc_needs_belf=yes
10145 lt_cv_cc_needs_belf=no
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10150 ac_cpp='$CPP $CPPFLAGS'
10151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10157 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10158 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10159 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10160 CFLAGS="$SAVE_CFLAGS"
10164 # Find out which ABI we are using.
10165 echo 'int i;' > conftest.$ac_ext
10166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10167 (eval $ac_compile) 2>&5
10169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10170 test $ac_status = 0; }; then
10171 case `/usr/bin/file conftest.o` in
10173 case $lt_cv_prog_gnu_ld in
10177 LD="${LD-ld} -m elf_x86_64"
10180 LD="${LD-ld} -m elf64_sparc"
10183 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10184 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10189 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10201 need_locks="$enable_libtool_lock"
10203 if test -n "$ac_tool_prefix"; then
10204 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10205 set dummy ${ac_tool_prefix}mt; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10209 $as_echo_n "(cached) " >&6
10211 if test -n "$MANIFEST_TOOL"; then
10212 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10221 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10232 if test -n "$MANIFEST_TOOL"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10234 $as_echo "$MANIFEST_TOOL" >&6; }
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10242 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10243 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10244 # Extract the first word of "mt", so it can be a program name with args.
10245 set dummy mt; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10249 $as_echo_n "(cached) " >&6
10251 if test -n "$ac_ct_MANIFEST_TOOL"; then
10252 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10272 if test -n "$ac_ct_MANIFEST_TOOL"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10274 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10280 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10283 case $cross_compiling:$ac_tool_warned in
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10287 ac_tool_warned=yes ;;
10289 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10292 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10295 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10297 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10298 if ${lt_cv_path_mainfest_tool+:} false; then :
10299 $as_echo_n "(cached) " >&6
10301 lt_cv_path_mainfest_tool=no
10302 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10303 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10304 cat conftest.err >&5
10305 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10306 lt_cv_path_mainfest_tool=yes
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10311 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10312 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10322 rhapsody* | darwin*)
10323 if test -n "$ac_tool_prefix"; then
10324 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10329 $as_echo_n "(cached) " >&6
10331 if test -n "$DSYMUTIL"; then
10332 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10352 if test -n "$DSYMUTIL"; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10354 $as_echo "$DSYMUTIL" >&6; }
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10362 if test -z "$ac_cv_prog_DSYMUTIL"; then
10363 ac_ct_DSYMUTIL=$DSYMUTIL
10364 # Extract the first word of "dsymutil", so it can be a program name with args.
10365 set dummy dsymutil; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10369 $as_echo_n "(cached) " >&6
10371 if test -n "$ac_ct_DSYMUTIL"; then
10372 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10392 if test -n "$ac_ct_DSYMUTIL"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10400 if test "x$ac_ct_DSYMUTIL" = x; then
10403 case $cross_compiling:$ac_tool_warned in
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10407 ac_tool_warned=yes ;;
10409 DSYMUTIL=$ac_ct_DSYMUTIL
10412 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10415 if test -n "$ac_tool_prefix"; then
10416 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if ${ac_cv_prog_NMEDIT+:} false; then :
10421 $as_echo_n "(cached) " >&6
10423 if test -n "$NMEDIT"; then
10424 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 NMEDIT=$ac_cv_prog_NMEDIT
10444 if test -n "$NMEDIT"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10446 $as_echo "$NMEDIT" >&6; }
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10454 if test -z "$ac_cv_prog_NMEDIT"; then
10455 ac_ct_NMEDIT=$NMEDIT
10456 # Extract the first word of "nmedit", so it can be a program name with args.
10457 set dummy nmedit; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10461 $as_echo_n "(cached) " >&6
10463 if test -n "$ac_ct_NMEDIT"; then
10464 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10473 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10484 if test -n "$ac_ct_NMEDIT"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10486 $as_echo "$ac_ct_NMEDIT" >&6; }
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10492 if test "x$ac_ct_NMEDIT" = x; then
10495 case $cross_compiling:$ac_tool_warned in
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10499 ac_tool_warned=yes ;;
10501 NMEDIT=$ac_ct_NMEDIT
10504 NMEDIT="$ac_cv_prog_NMEDIT"
10507 if test -n "$ac_tool_prefix"; then
10508 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if ${ac_cv_prog_LIPO+:} false; then :
10513 $as_echo_n "(cached) " >&6
10515 if test -n "$LIPO"; then
10516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519 for as_dir in $PATH
10522 test -z "$as_dir" && as_dir=.
10523 for ac_exec_ext in '' $ac_executable_extensions; do
10524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10525 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 LIPO=$ac_cv_prog_LIPO
10536 if test -n "$LIPO"; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10538 $as_echo "$LIPO" >&6; }
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10546 if test -z "$ac_cv_prog_LIPO"; then
10548 # Extract the first word of "lipo", so it can be a program name with args.
10549 set dummy lipo; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10553 $as_echo_n "(cached) " >&6
10555 if test -n "$ac_ct_LIPO"; then
10556 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10565 ac_cv_prog_ac_ct_LIPO="lipo"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10576 if test -n "$ac_ct_LIPO"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10578 $as_echo "$ac_ct_LIPO" >&6; }
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10584 if test "x$ac_ct_LIPO" = x; then
10587 case $cross_compiling:$ac_tool_warned in
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10591 ac_tool_warned=yes ;;
10596 LIPO="$ac_cv_prog_LIPO"
10599 if test -n "$ac_tool_prefix"; then
10600 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10601 set dummy ${ac_tool_prefix}otool; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_prog_OTOOL+:} false; then :
10605 $as_echo_n "(cached) " >&6
10607 if test -n "$OTOOL"; then
10608 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 OTOOL=$ac_cv_prog_OTOOL
10628 if test -n "$OTOOL"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10630 $as_echo "$OTOOL" >&6; }
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10638 if test -z "$ac_cv_prog_OTOOL"; then
10640 # Extract the first word of "otool", so it can be a program name with args.
10641 set dummy otool; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10645 $as_echo_n "(cached) " >&6
10647 if test -n "$ac_ct_OTOOL"; then
10648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_ac_ct_OTOOL="otool"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10668 if test -n "$ac_ct_OTOOL"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10670 $as_echo "$ac_ct_OTOOL" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10676 if test "x$ac_ct_OTOOL" = x; then
10679 case $cross_compiling:$ac_tool_warned in
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10683 ac_tool_warned=yes ;;
10688 OTOOL="$ac_cv_prog_OTOOL"
10691 if test -n "$ac_tool_prefix"; then
10692 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if ${ac_cv_prog_OTOOL64+:} false; then :
10697 $as_echo_n "(cached) " >&6
10699 if test -n "$OTOOL64"; then
10700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 OTOOL64=$ac_cv_prog_OTOOL64
10720 if test -n "$OTOOL64"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10722 $as_echo "$OTOOL64" >&6; }
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10730 if test -z "$ac_cv_prog_OTOOL64"; then
10731 ac_ct_OTOOL64=$OTOOL64
10732 # Extract the first word of "otool64", so it can be a program name with args.
10733 set dummy otool64; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10737 $as_echo_n "(cached) " >&6
10739 if test -n "$ac_ct_OTOOL64"; then
10740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_prog_ac_ct_OTOOL64="otool64"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10760 if test -n "$ac_ct_OTOOL64"; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10762 $as_echo "$ac_ct_OTOOL64" >&6; }
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10768 if test "x$ac_ct_OTOOL64" = x; then
10771 case $cross_compiling:$ac_tool_warned in
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10775 ac_tool_warned=yes ;;
10777 OTOOL64=$ac_ct_OTOOL64
10780 OTOOL64="$ac_cv_prog_OTOOL64"
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10810 $as_echo_n "checking for -single_module linker flag... " >&6; }
10811 if ${lt_cv_apple_cc_single_mod+:} false; then :
10812 $as_echo_n "(cached) " >&6
10814 lt_cv_apple_cc_single_mod=no
10815 if test -z "${LT_MULTI_MODULE}"; then
10816 # By default we will add the -single_module flag. You can override
10817 # by either setting the environment variable LT_MULTI_MODULE
10818 # non-empty at configure time, or by adding -multi_module to the
10820 rm -rf libconftest.dylib*
10821 echo "int foo(void){return 1;}" > conftest.c
10822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10823 -dynamiclib -Wl,-single_module conftest.c" >&5
10824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10827 # If there is a non-empty error log, and "single_module"
10828 # appears in it, assume the flag caused a linker warning
10829 if test -s conftest.err && $GREP single_module conftest.err; then
10830 cat conftest.err >&5
10831 # Otherwise, if the output was created with a 0 exit code from
10832 # the compiler, it worked.
10833 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10834 lt_cv_apple_cc_single_mod=yes
10836 cat conftest.err >&5
10838 rm -rf libconftest.dylib*
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10843 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10846 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10847 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10848 $as_echo_n "(cached) " >&6
10850 lt_cv_ld_exported_symbols_list=no
10851 save_LDFLAGS=$LDFLAGS
10852 echo "_main" > conftest.sym
10853 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10864 if ac_fn_c_try_link "$LINENO"; then :
10865 lt_cv_ld_exported_symbols_list=yes
10867 lt_cv_ld_exported_symbols_list=no
10869 rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 LDFLAGS="$save_LDFLAGS"
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10875 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10878 $as_echo_n "checking for -force_load linker flag... " >&6; }
10879 if ${lt_cv_ld_force_load+:} false; then :
10880 $as_echo_n "(cached) " >&6
10882 lt_cv_ld_force_load=no
10883 cat > conftest.c << _LT_EOF
10884 int forced_loaded() { return 2;}
10886 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10887 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10888 echo "$AR cru libconftest.a conftest.o" >&5
10889 $AR cru libconftest.a conftest.o 2>&5
10890 echo "$RANLIB libconftest.a" >&5
10891 $RANLIB libconftest.a 2>&5
10892 cat > conftest.c << _LT_EOF
10893 int main() { return 0;}
10895 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10896 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10898 if test -s conftest.err && $GREP force_load conftest.err; then
10899 cat conftest.err >&5
10900 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10901 lt_cv_ld_force_load=yes
10903 cat conftest.err >&5
10905 rm -f conftest.err libconftest.a conftest conftest.c
10906 rm -rf conftest.dSYM
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10910 $as_echo "$lt_cv_ld_force_load" >&6; }
10912 rhapsody* | darwin1.[012])
10913 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10915 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10916 darwin*) # darwin 5.x on
10917 # if running on 10.5 or later, the deployment target defaults
10918 # to the OS version, if on x86, and 10.4, the deployment
10919 # target defaults to 10.4. Don't you love it?
10920 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10921 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10922 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10924 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10926 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10930 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10931 _lt_dar_single_mod='$single_module'
10933 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10934 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10936 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10938 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10939 _lt_dsymutil='~$DSYMUTIL $lib || :'
10946 for ac_header in dlfcn.h
10948 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10950 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10951 cat >>confdefs.h <<_ACEOF
10952 #define HAVE_DLFCN_H 1
10959 # ------------------------------------ #
10960 # Determine libtool default behavior #
10961 # ------------------------------------ #
10964 # Default behavior is to enable shared and static libraries on systems
10965 # where libtool knows how to build both library versions, and does not
10966 # require separate configuration and build runs for each flavor.
10969 xc_lt_want_enable_shared='yes'
10970 xc_lt_want_enable_static='yes'
10973 # User may have disabled shared or static libraries.
10975 case "x$enable_shared" in # (
10977 xc_lt_want_enable_shared='no'
10980 case "x$enable_static" in # (
10982 xc_lt_want_enable_static='no'
10985 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10986 test "x$xc_lt_want_enable_static" = 'xno'; then
10987 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10991 # Default behavior on systems that require independent configuration
10992 # and build runs for shared and static is to enable shared libraries
10993 # and disable static ones. On these systems option '--disable-shared'
10994 # must be used in order to build a proper static library.
10997 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10998 test "x$xc_lt_want_enable_static" = 'xyes'; then
10999 case $host_os in # (
11000 mingw* | pw32* | cegcc* | os2* | aix*)
11001 xc_lt_want_enable_static='no'
11007 # Make libtool aware of current shared and static library preferences
11008 # taking in account that, depending on host characteristics, libtool
11009 # may modify these option preferences later in this configure script.
11012 enable_shared=$xc_lt_want_enable_shared
11013 enable_static=$xc_lt_want_enable_static
11016 # Default behavior is to build PIC objects for shared libraries and
11017 # non-PIC objects for static libraries.
11020 xc_lt_want_with_pic='default'
11023 # User may have specified PIC preference.
11026 case "x$with_pic" in # ((
11028 xc_lt_want_with_pic='no'
11031 xc_lt_want_with_pic='yes'
11036 # Default behavior on some systems where building a shared library out
11037 # of non-PIC compiled objects will fail with following linker error
11038 # "relocation R_X86_64_32 can not be used when making a shared object"
11039 # is to build PIC objects even for static libraries. This behavior may
11040 # be overriden using 'configure --disable-shared --without-pic'.
11043 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11044 case $host_cpu in # (
11045 x86_64 | amd64 | ia64)
11046 case $host_os in # (
11048 xc_lt_want_with_pic='yes'
11056 # Make libtool aware of current PIC preference taking in account that,
11057 # depending on host characteristics, libtool may modify PIC default
11058 # behavior to fit host system idiosyncrasies later in this script.
11061 with_pic=$xc_lt_want_with_pic
11063 ## ----------------------- ##
11064 ## Start of libtool code ##
11065 ## ----------------------- ##
11071 enable_win32_dll=yes
11074 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11075 if test -n "$ac_tool_prefix"; then
11076 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11077 set dummy ${ac_tool_prefix}as; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_prog_AS+:} false; then :
11081 $as_echo_n "(cached) " >&6
11083 if test -n "$AS"; then
11084 ac_cv_prog_AS="$AS" # Let the user override the test.
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_prog_AS="${ac_tool_prefix}as"
11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 if test -n "$AS"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11106 $as_echo "$AS" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11114 if test -z "$ac_cv_prog_AS"; then
11116 # Extract the first word of "as", so it can be a program name with args.
11117 set dummy as; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 $as_echo_n "checking for $ac_word... " >&6; }
11120 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11121 $as_echo_n "(cached) " >&6
11123 if test -n "$ac_ct_AS"; then
11124 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133 ac_cv_prog_ac_ct_AS="as"
11134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11144 if test -n "$ac_ct_AS"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11146 $as_echo "$ac_ct_AS" >&6; }
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11152 if test "x$ac_ct_AS" = x; then
11155 case $cross_compiling:$ac_tool_warned in
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11159 ac_tool_warned=yes ;;
11164 AS="$ac_cv_prog_AS"
11167 if test -n "$ac_tool_prefix"; then
11168 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11169 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if ${ac_cv_prog_DLLTOOL+:} false; then :
11173 $as_echo_n "(cached) " >&6
11175 if test -n "$DLLTOOL"; then
11176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11185 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 DLLTOOL=$ac_cv_prog_DLLTOOL
11196 if test -n "$DLLTOOL"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11198 $as_echo "$DLLTOOL" >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11206 if test -z "$ac_cv_prog_DLLTOOL"; then
11207 ac_ct_DLLTOOL=$DLLTOOL
11208 # Extract the first word of "dlltool", so it can be a program name with args.
11209 set dummy dlltool; ac_word=$2
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11211 $as_echo_n "checking for $ac_word... " >&6; }
11212 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11213 $as_echo_n "(cached) " >&6
11215 if test -n "$ac_ct_DLLTOOL"; then
11216 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11222 test -z "$as_dir" && as_dir=.
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11225 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11235 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11236 if test -n "$ac_ct_DLLTOOL"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11238 $as_echo "$ac_ct_DLLTOOL" >&6; }
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11244 if test "x$ac_ct_DLLTOOL" = x; then
11247 case $cross_compiling:$ac_tool_warned in
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11251 ac_tool_warned=yes ;;
11253 DLLTOOL=$ac_ct_DLLTOOL
11256 DLLTOOL="$ac_cv_prog_DLLTOOL"
11259 if test -n "$ac_tool_prefix"; then
11260 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11261 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if ${ac_cv_prog_OBJDUMP+:} false; then :
11265 $as_echo_n "(cached) " >&6
11267 if test -n "$OBJDUMP"; then
11268 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11277 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 OBJDUMP=$ac_cv_prog_OBJDUMP
11288 if test -n "$OBJDUMP"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11290 $as_echo "$OBJDUMP" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11298 if test -z "$ac_cv_prog_OBJDUMP"; then
11299 ac_ct_OBJDUMP=$OBJDUMP
11300 # Extract the first word of "objdump", so it can be a program name with args.
11301 set dummy objdump; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11305 $as_echo_n "(cached) " >&6
11307 if test -n "$ac_ct_OBJDUMP"; then
11308 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11328 if test -n "$ac_ct_OBJDUMP"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11330 $as_echo "$ac_ct_OBJDUMP" >&6; }
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11336 if test "x$ac_ct_OBJDUMP" = x; then
11339 case $cross_compiling:$ac_tool_warned in
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11343 ac_tool_warned=yes ;;
11345 OBJDUMP=$ac_ct_OBJDUMP
11348 OBJDUMP="$ac_cv_prog_OBJDUMP"
11354 test -z "$AS" && AS=as
11360 test -z "$DLLTOOL" && DLLTOOL=dlltool
11366 test -z "$OBJDUMP" && OBJDUMP=objdump
11378 # Check whether --enable-shared was given.
11379 if test "${enable_shared+set}" = set; then :
11380 enableval=$enable_shared; p=${PACKAGE-default}
11382 yes) enable_shared=yes ;;
11383 no) enable_shared=no ;;
11386 # Look at the argument we got. We use all the common list separators.
11387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11388 for pkg in $enableval; do
11390 if test "X$pkg" = "X$p"; then
11409 # Check whether --enable-static was given.
11410 if test "${enable_static+set}" = set; then :
11411 enableval=$enable_static; p=${PACKAGE-default}
11413 yes) enable_static=yes ;;
11414 no) enable_static=no ;;
11417 # Look at the argument we got. We use all the common list separators.
11418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11419 for pkg in $enableval; do
11421 if test "X$pkg" = "X$p"; then
11441 # Check whether --with-pic was given.
11442 if test "${with_pic+set}" = set; then :
11443 withval=$with_pic; lt_p=${PACKAGE-default}
11445 yes|no) pic_mode=$withval ;;
11448 # Look at the argument we got. We use all the common list separators.
11449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11450 for lt_pkg in $withval; do
11452 if test "X$lt_pkg" = "X$lt_p"; then
11464 test -z "$pic_mode" && pic_mode=default
11472 # Check whether --enable-fast-install was given.
11473 if test "${enable_fast_install+set}" = set; then :
11474 enableval=$enable_fast_install; p=${PACKAGE-default}
11476 yes) enable_fast_install=yes ;;
11477 no) enable_fast_install=no ;;
11479 enable_fast_install=no
11480 # Look at the argument we got. We use all the common list separators.
11481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11482 for pkg in $enableval; do
11484 if test "X$pkg" = "X$p"; then
11485 enable_fast_install=yes
11492 enable_fast_install=yes
11505 # This can be used to rebuild libtool when needed
11506 LIBTOOL_DEPS="$ltmain"
11508 # Always use our own libtool.
11509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11540 test -z "$LN_S" && LN_S="ln -s"
11555 if test -n "${ZSH_VERSION+set}" ; then
11556 setopt NO_GLOB_SUBST
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11560 $as_echo_n "checking for objdir... " >&6; }
11561 if ${lt_cv_objdir+:} false; then :
11562 $as_echo_n "(cached) " >&6
11564 rm -f .libs 2>/dev/null
11565 mkdir .libs 2>/dev/null
11566 if test -d .libs; then
11569 # MS-DOS does not allow filenames that begin with a dot.
11572 rmdir .libs 2>/dev/null
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11575 $as_echo "$lt_cv_objdir" >&6; }
11576 objdir=$lt_cv_objdir
11582 cat >>confdefs.h <<_ACEOF
11583 #define LT_OBJDIR "$lt_cv_objdir/"
11591 # AIX sometimes has problems with the GCC collect2 program. For some
11592 # reason, if we set the COLLECT_NAMES environment variable, the problems
11593 # vanish in a puff of smoke.
11594 if test "X${COLLECT_NAMES+set}" != Xset; then
11596 export COLLECT_NAMES
11601 # Global variables:
11603 can_build_shared=yes
11605 # All known linkers require a `.a' archive for static linking (except MSVC,
11606 # which needs '.lib').
11609 with_gnu_ld="$lt_cv_prog_gnu_ld"
11612 old_CFLAGS="$CFLAGS"
11614 # Set sane defaults for various variables
11615 test -z "$CC" && CC=cc
11616 test -z "$LTCC" && LTCC=$CC
11617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11618 test -z "$LD" && LD=ld
11619 test -z "$ac_objext" && ac_objext=o
11621 for cc_temp in $compiler""; do
11623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11629 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11632 # Only perform the check for file, if the check method requires it
11633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11634 case $deplibs_check_method in
11636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11638 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11639 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11640 $as_echo_n "(cached) " >&6
11644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11647 lt_save_MAGIC_CMD="$MAGIC_CMD"
11648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11650 for ac_dir in $ac_dummy; do
11652 test -z "$ac_dir" && ac_dir=.
11653 if test -f $ac_dir/${ac_tool_prefix}file; then
11654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11655 if test -n "$file_magic_test_file"; then
11656 case $deplibs_check_method in
11658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11661 $EGREP "$file_magic_regex" > /dev/null; then
11666 *** Warning: the command libtool uses to detect shared libraries,
11667 *** $file_magic_cmd, produces output that libtool cannot recognize.
11668 *** The result is that libtool may fail to recognize shared libraries
11669 *** as such. This will affect the creation of libtool libraries that
11670 *** depend on shared libraries, but programs linked with such libtool
11671 *** libraries will work regardless of this problem. Nevertheless, you
11672 *** may want to report the problem to your system manager and/or to
11673 *** bug-libtool@gnu.org
11683 MAGIC_CMD="$lt_save_MAGIC_CMD"
11688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11689 if test -n "$MAGIC_CMD"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11691 $as_echo "$MAGIC_CMD" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11701 if test -z "$lt_cv_path_MAGIC_CMD"; then
11702 if test -n "$ac_tool_prefix"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11704 $as_echo_n "checking for file... " >&6; }
11705 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11706 $as_echo_n "(cached) " >&6
11710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11713 lt_save_MAGIC_CMD="$MAGIC_CMD"
11714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11716 for ac_dir in $ac_dummy; do
11718 test -z "$ac_dir" && ac_dir=.
11719 if test -f $ac_dir/file; then
11720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11721 if test -n "$file_magic_test_file"; then
11722 case $deplibs_check_method in
11724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11727 $EGREP "$file_magic_regex" > /dev/null; then
11732 *** Warning: the command libtool uses to detect shared libraries,
11733 *** $file_magic_cmd, produces output that libtool cannot recognize.
11734 *** The result is that libtool may fail to recognize shared libraries
11735 *** as such. This will affect the creation of libtool libraries that
11736 *** depend on shared libraries, but programs linked with such libtool
11737 *** libraries will work regardless of this problem. Nevertheless, you
11738 *** may want to report the problem to your system manager and/or to
11739 *** bug-libtool@gnu.org
11749 MAGIC_CMD="$lt_save_MAGIC_CMD"
11754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11755 if test -n "$MAGIC_CMD"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11757 $as_echo "$MAGIC_CMD" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11773 # Use C for the default configuration in the libtool script
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783 # Source file extension for C test sources.
11786 # Object file extension for compiled C test sources.
11790 # Code to be used in simple compile tests
11791 lt_simple_compile_test_code="int some_variable = 0;"
11793 # Code to be used in simple link tests
11794 lt_simple_link_test_code='int main(){return(0);}'
11802 # If no C compiler was specified, use CC.
11805 # If no C compiler flags were specified, use CFLAGS.
11806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11808 # Allow CC to be a program name with arguments.
11811 # Save the default compiler, since it gets overwritten when the other
11812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11813 compiler_DEFAULT=$CC
11815 # save warnings/boilerplate of simple test code
11816 ac_outfile=conftest.$ac_objext
11817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11819 _lt_compiler_boilerplate=`cat conftest.err`
11822 ac_outfile=conftest.$ac_objext
11823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11825 _lt_linker_boilerplate=`cat conftest.err`
11830 ## There is no encapsulation within the following macros, do not change
11831 ## the running order or otherwise move them around unless you know exactly
11832 ## what you are doing...
11833 if test -n "$compiler"; then
11835 lt_prog_compiler_no_builtin_flag=
11837 if test "$GCC" = yes; then
11838 case $cc_basename in
11840 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11842 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11846 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11847 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11848 $as_echo_n "(cached) " >&6
11850 lt_cv_prog_compiler_rtti_exceptions=no
11851 ac_outfile=conftest.$ac_objext
11852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11853 lt_compiler_flag="-fno-rtti -fno-exceptions"
11854 # Insert the option either (1) after the last *FLAGS variable, or
11855 # (2) before a word containing "conftest.", or (3) at the end.
11856 # Note that $ac_compile itself does not contain backslashes and begins
11857 # with a dollar sign (not a hyphen), so the echo should work correctly.
11858 # The option is referenced via a variable to avoid confusing sed.
11859 lt_compile=`echo "$ac_compile" | $SED \
11860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11862 -e 's:$: $lt_compiler_flag:'`
11863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11864 (eval "$lt_compile" 2>conftest.err)
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 if (exit $ac_status) && test -s "$ac_outfile"; then
11869 # The compiler can only warn and ignore the option if not recognized
11870 # So say no if there are warnings other than the usual output.
11871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11874 lt_cv_prog_compiler_rtti_exceptions=yes
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11881 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11883 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11884 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11896 lt_prog_compiler_wl=
11897 lt_prog_compiler_pic=
11898 lt_prog_compiler_static=
11901 if test "$GCC" = yes; then
11902 lt_prog_compiler_wl='-Wl,'
11903 lt_prog_compiler_static='-static'
11907 # All AIX code is PIC.
11908 if test "$host_cpu" = ia64; then
11909 # AIX 5 now supports IA64 processor
11910 lt_prog_compiler_static='-Bstatic'
11917 # see comment about AmigaOS4 .so support
11918 lt_prog_compiler_pic='-fPIC'
11921 # FIXME: we need at least 68020 code to build shared libraries, but
11922 # adding the `-m68020' flag to GCC prevents building anything better,
11924 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11929 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11930 # PIC is the default for these OSes.
11933 mingw* | cygwin* | pw32* | os2* | cegcc*)
11934 # This hack is so that the source file can tell whether it is being
11935 # built for inclusion in a dll (and should export symbols for example).
11936 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11937 # (--disable-auto-import) libraries
11938 lt_prog_compiler_pic='-DDLL_EXPORT'
11941 darwin* | rhapsody*)
11942 # PIC is the default on this platform
11943 # Common symbols not allowed in MH_DYLIB files
11944 lt_prog_compiler_pic='-fno-common'
11948 # PIC is the default for Haiku.
11949 # The "-static" flag exists, but is broken.
11950 lt_prog_compiler_static=
11954 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11955 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11956 # sets the default TLS model and affects inlining.
11962 lt_prog_compiler_pic='-fPIC'
11968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11969 # Instead, we relocate shared libraries at runtime.
11973 # Just because we use GCC doesn't mean we suddenly get shared libraries
11974 # on systems that don't support them.
11975 lt_prog_compiler_can_build_shared=no
11980 # QNX uses GNU C++, but need to define -shared option too, otherwise
11981 # it will coredump.
11982 lt_prog_compiler_pic='-fPIC -shared'
11986 if test -d /usr/nec; then
11987 lt_prog_compiler_pic=-Kconform_pic
11992 lt_prog_compiler_pic='-fPIC'
11996 case $cc_basename in
11997 nvcc*) # Cuda Compiler Driver 2.2
11998 lt_prog_compiler_wl='-Xlinker '
11999 if test -n "$lt_prog_compiler_pic"; then
12000 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12005 # PORTME Check for flag to pass linker flags through the system compiler.
12008 lt_prog_compiler_wl='-Wl,'
12009 if test "$host_cpu" = ia64; then
12010 # AIX 5 now supports IA64 processor
12011 lt_prog_compiler_static='-Bstatic'
12013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12017 mingw* | cygwin* | pw32* | os2* | cegcc*)
12018 # This hack is so that the source file can tell whether it is being
12019 # built for inclusion in a dll (and should export symbols for example).
12020 lt_prog_compiler_pic='-DDLL_EXPORT'
12023 hpux9* | hpux10* | hpux11*)
12024 lt_prog_compiler_wl='-Wl,'
12025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12026 # not for PA HP-UX.
12032 lt_prog_compiler_pic='+Z'
12035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12036 lt_prog_compiler_static='${wl}-a ${wl}archive'
12039 irix5* | irix6* | nonstopux*)
12040 lt_prog_compiler_wl='-Wl,'
12041 # PIC (with -KPIC) is the default.
12042 lt_prog_compiler_static='-non_shared'
12045 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12046 case $cc_basename in
12047 # old Intel for x86_64 which still supported -KPIC.
12049 lt_prog_compiler_wl='-Wl,'
12050 lt_prog_compiler_pic='-KPIC'
12051 lt_prog_compiler_static='-static'
12053 # icc used to be incompatible with GCC.
12054 # ICC 10 doesn't accept -KPIC any more.
12056 lt_prog_compiler_wl='-Wl,'
12057 lt_prog_compiler_pic='-fPIC'
12058 lt_prog_compiler_static='-static'
12060 # Lahey Fortran 8.1.
12062 lt_prog_compiler_wl='-Wl,'
12063 lt_prog_compiler_pic='--shared'
12064 lt_prog_compiler_static='--static'
12067 # NAG Fortran compiler
12068 lt_prog_compiler_wl='-Wl,-Wl,,'
12069 lt_prog_compiler_pic='-PIC'
12070 lt_prog_compiler_static='-Bstatic'
12072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12073 # Portland Group compilers (*not* the Pentium gcc compiler,
12074 # which looks to be a dead project)
12075 lt_prog_compiler_wl='-Wl,'
12076 lt_prog_compiler_pic='-fpic'
12077 lt_prog_compiler_static='-Bstatic'
12080 lt_prog_compiler_wl='-Wl,'
12081 # All Alpha code is PIC.
12082 lt_prog_compiler_static='-non_shared'
12084 xl* | bgxl* | bgf* | mpixl*)
12085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12086 lt_prog_compiler_wl='-Wl,'
12087 lt_prog_compiler_pic='-qpic'
12088 lt_prog_compiler_static='-qstaticlink'
12091 case `$CC -V 2>&1 | sed 5q` in
12092 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12093 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12094 lt_prog_compiler_pic='-KPIC'
12095 lt_prog_compiler_static='-Bstatic'
12096 lt_prog_compiler_wl=''
12098 *Sun\ F* | *Sun*Fortran*)
12099 lt_prog_compiler_pic='-KPIC'
12100 lt_prog_compiler_static='-Bstatic'
12101 lt_prog_compiler_wl='-Qoption ld '
12105 lt_prog_compiler_pic='-KPIC'
12106 lt_prog_compiler_static='-Bstatic'
12107 lt_prog_compiler_wl='-Wl,'
12109 *Intel*\ [CF]*Compiler*)
12110 lt_prog_compiler_wl='-Wl,'
12111 lt_prog_compiler_pic='-fPIC'
12112 lt_prog_compiler_static='-static'
12115 lt_prog_compiler_wl='-Wl,'
12116 lt_prog_compiler_pic='-fpic'
12117 lt_prog_compiler_static='-Bstatic'
12125 lt_prog_compiler_pic='-KPIC'
12126 lt_prog_compiler_static='-Bstatic'
12130 # QNX uses GNU C++, but need to define -shared option too, otherwise
12131 # it will coredump.
12132 lt_prog_compiler_pic='-fPIC -shared'
12135 osf3* | osf4* | osf5*)
12136 lt_prog_compiler_wl='-Wl,'
12137 # All OSF/1 code is PIC.
12138 lt_prog_compiler_static='-non_shared'
12142 lt_prog_compiler_static='-non_shared'
12146 lt_prog_compiler_pic='-KPIC'
12147 lt_prog_compiler_static='-Bstatic'
12148 case $cc_basename in
12149 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12150 lt_prog_compiler_wl='-Qoption ld ';;
12152 lt_prog_compiler_wl='-Wl,';;
12157 lt_prog_compiler_wl='-Qoption ld '
12158 lt_prog_compiler_pic='-PIC'
12159 lt_prog_compiler_static='-Bstatic'
12162 sysv4 | sysv4.2uw2* | sysv4.3*)
12163 lt_prog_compiler_wl='-Wl,'
12164 lt_prog_compiler_pic='-KPIC'
12165 lt_prog_compiler_static='-Bstatic'
12169 if test -d /usr/nec ;then
12170 lt_prog_compiler_pic='-Kconform_pic'
12171 lt_prog_compiler_static='-Bstatic'
12175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12176 lt_prog_compiler_wl='-Wl,'
12177 lt_prog_compiler_pic='-KPIC'
12178 lt_prog_compiler_static='-Bstatic'
12182 lt_prog_compiler_wl='-Wl,'
12183 lt_prog_compiler_can_build_shared=no
12187 lt_prog_compiler_pic='-pic'
12188 lt_prog_compiler_static='-Bstatic'
12192 lt_prog_compiler_can_build_shared=no
12198 # For platforms which do not support PIC, -DPIC is meaningless:
12200 lt_prog_compiler_pic=
12203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12208 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12209 if ${lt_cv_prog_compiler_pic+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12215 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12216 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12219 # Check to make sure the PIC flag actually works.
12221 if test -n "$lt_prog_compiler_pic"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12223 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12224 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12225 $as_echo_n "(cached) " >&6
12227 lt_cv_prog_compiler_pic_works=no
12228 ac_outfile=conftest.$ac_objext
12229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12230 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12231 # Insert the option either (1) after the last *FLAGS variable, or
12232 # (2) before a word containing "conftest.", or (3) at the end.
12233 # Note that $ac_compile itself does not contain backslashes and begins
12234 # with a dollar sign (not a hyphen), so the echo should work correctly.
12235 # The option is referenced via a variable to avoid confusing sed.
12236 lt_compile=`echo "$ac_compile" | $SED \
12237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12239 -e 's:$: $lt_compiler_flag:'`
12240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12241 (eval "$lt_compile" 2>conftest.err)
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 if (exit $ac_status) && test -s "$ac_outfile"; then
12246 # The compiler can only warn and ignore the option if not recognized
12247 # So say no if there are warnings other than the usual output.
12248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12251 lt_cv_prog_compiler_pic_works=yes
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12258 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12260 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12261 case $lt_prog_compiler_pic in
12263 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12266 lt_prog_compiler_pic=
12267 lt_prog_compiler_can_build_shared=no
12283 # Check to make sure the static flag actually works.
12285 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12287 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12288 if ${lt_cv_prog_compiler_static_works+:} false; then :
12289 $as_echo_n "(cached) " >&6
12291 lt_cv_prog_compiler_static_works=no
12292 save_LDFLAGS="$LDFLAGS"
12293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12296 # The linker can only warn and ignore the option if not recognized
12297 # So say no if there are warnings
12298 if test -s conftest.err; then
12299 # Append any errors to the config.log.
12300 cat conftest.err 1>&5
12301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303 if diff conftest.exp conftest.er2 >/dev/null; then
12304 lt_cv_prog_compiler_static_works=yes
12307 lt_cv_prog_compiler_static_works=yes
12311 LDFLAGS="$save_LDFLAGS"
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12315 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12317 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12320 lt_prog_compiler_static=
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12331 if ${lt_cv_prog_compiler_c_o+:} false; then :
12332 $as_echo_n "(cached) " >&6
12334 lt_cv_prog_compiler_c_o=no
12335 $RM -r conftest 2>/dev/null
12339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12341 lt_compiler_flag="-o out/conftest2.$ac_objext"
12342 # Insert the option either (1) after the last *FLAGS variable, or
12343 # (2) before a word containing "conftest.", or (3) at the end.
12344 # Note that $ac_compile itself does not contain backslashes and begins
12345 # with a dollar sign (not a hyphen), so the echo should work correctly.
12346 lt_compile=`echo "$ac_compile" | $SED \
12347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12349 -e 's:$: $lt_compiler_flag:'`
12350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12351 (eval "$lt_compile" 2>out/conftest.err)
12353 cat out/conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12357 # The compiler can only warn and ignore the option if not recognized
12358 # So say no if there are warnings
12359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12362 lt_cv_prog_compiler_c_o=yes
12367 # SGI C++ compiler will create directory out/ii_files/ for
12368 # template instantiation
12369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12370 $RM out/* && rmdir out
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12386 if ${lt_cv_prog_compiler_c_o+:} false; then :
12387 $as_echo_n "(cached) " >&6
12389 lt_cv_prog_compiler_c_o=no
12390 $RM -r conftest 2>/dev/null
12394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12396 lt_compiler_flag="-o out/conftest2.$ac_objext"
12397 # Insert the option either (1) after the last *FLAGS variable, or
12398 # (2) before a word containing "conftest.", or (3) at the end.
12399 # Note that $ac_compile itself does not contain backslashes and begins
12400 # with a dollar sign (not a hyphen), so the echo should work correctly.
12401 lt_compile=`echo "$ac_compile" | $SED \
12402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12404 -e 's:$: $lt_compiler_flag:'`
12405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12406 (eval "$lt_compile" 2>out/conftest.err)
12408 cat out/conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12412 # The compiler can only warn and ignore the option if not recognized
12413 # So say no if there are warnings
12414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12417 lt_cv_prog_compiler_c_o=yes
12422 # SGI C++ compiler will create directory out/ii_files/ for
12423 # template instantiation
12424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12425 $RM out/* && rmdir out
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12432 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12437 hard_links="nottested"
12438 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12439 # do not overwrite the value of need_locks provided by the user
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12441 $as_echo_n "checking if we can lock with hard links... " >&6; }
12444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446 ln conftest.a conftest.b 2>&5 || hard_links=no
12447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12449 $as_echo "$hard_links" >&6; }
12450 if test "$hard_links" = no; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12452 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12465 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12468 allow_undefined_flag=
12469 always_export_symbols=no
12471 archive_expsym_cmds=
12472 compiler_needs_object=no
12473 enable_shared_with_static_runtimes=no
12474 export_dynamic_flag_spec=
12475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12476 hardcode_automatic=no
12478 hardcode_direct_absolute=no
12479 hardcode_libdir_flag_spec=
12480 hardcode_libdir_separator=
12481 hardcode_minus_L=no
12482 hardcode_shlibpath_var=unsupported
12484 link_all_deplibs=unknown
12486 module_expsym_cmds=
12487 old_archive_from_new_cmds=
12488 old_archive_from_expsyms_cmds=
12489 thread_safe_flag_spec=
12490 whole_archive_flag_spec=
12491 # include_expsyms should be a list of space-separated symbols to be *always*
12492 # included in the symbol list
12494 # exclude_expsyms can be an extended regexp of symbols to exclude
12495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12497 # as well as any symbol that contains `d'.
12498 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12500 # platforms (ab)use it in PIC code, but their linkers get confused if
12501 # the symbol is explicitly referenced. Since portable code cannot
12502 # rely on this symbol name, it's probably fine to never include it in
12503 # preloaded symbol tables.
12504 # Exclude shared library initialization/finalization symbols.
12505 extract_expsyms_cmds=
12508 cygwin* | mingw* | pw32* | cegcc*)
12509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12510 # When not using gcc, we currently assume that we are using
12511 # Microsoft Visual C++.
12512 if test "$GCC" != yes; then
12517 # we just hope/assume this is gcc and not c89 (= MSVC++)
12523 linux* | k*bsd*-gnu | gnu*)
12524 link_all_deplibs=no
12530 # On some targets, GNU ld is compatible enough with the native linker
12531 # that we're better off using the native interface for both.
12532 lt_use_gnu_ld_interface=no
12533 if test "$with_gnu_ld" = yes; then
12536 # The AIX port of GNU ld has always aspired to compatibility
12537 # with the native linker. However, as the warning in the GNU ld
12538 # block says, versions before 2.19.5* couldn't really create working
12539 # shared libraries, regardless of the interface used.
12540 case `$LD -v 2>&1` in
12541 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12542 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12543 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12545 lt_use_gnu_ld_interface=yes
12550 lt_use_gnu_ld_interface=yes
12555 if test "$lt_use_gnu_ld_interface" = yes; then
12556 # If archive_cmds runs LD, not CC, wlarc should be empty
12559 # Set some defaults for GNU ld with shared library support. These
12560 # are reset later if shared libraries are not supported. Putting them
12561 # here allows them to be overridden if necessary.
12562 runpath_var=LD_RUN_PATH
12563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12564 export_dynamic_flag_spec='${wl}--export-dynamic'
12565 # ancient GNU ld didn't support --whole-archive et. al.
12566 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12567 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12569 whole_archive_flag_spec=
12571 supports_anon_versioning=no
12572 case `$LD -v 2>&1` in
12573 *GNU\ gold*) supports_anon_versioning=yes ;;
12574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12577 *\ 2.11.*) ;; # other 2.11 versions
12578 *) supports_anon_versioning=yes ;;
12581 # See if GNU ld supports shared libraries.
12584 # On AIX/PPC, the GNU linker is very broken
12585 if test "$host_cpu" != ia64; then
12589 *** Warning: the GNU linker, at least up to release 2.19, is reported
12590 *** to be unable to reliably create shared libraries on AIX.
12591 *** Therefore, libtool is disabling shared libraries support. If you
12592 *** really care for shared libraries, you may want to install binutils
12593 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12594 *** You will then need to restart the configuration process.
12603 # see comment about AmigaOS4 .so support
12604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12605 archive_expsym_cmds=''
12608 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)'
12609 hardcode_libdir_flag_spec='-L$libdir'
12610 hardcode_minus_L=yes
12616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12617 allow_undefined_flag=unsupported
12618 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12619 # support --undefined. This deserves some investigation. FIXME
12620 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12626 cygwin* | mingw* | pw32* | cegcc*)
12627 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12628 # as there is no search path for DLLs.
12629 hardcode_libdir_flag_spec='-L$libdir'
12630 export_dynamic_flag_spec='${wl}--export-all-symbols'
12631 allow_undefined_flag=unsupported
12632 always_export_symbols=no
12633 enable_shared_with_static_runtimes=yes
12634 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'
12635 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12637 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12639 # If the export-symbols file already is a .def file (1st line
12640 # is EXPORTS), use it as is; otherwise, prepend...
12641 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12642 cp $export_symbols $output_objdir/$soname.def;
12644 echo EXPORTS > $output_objdir/$soname.def;
12645 cat $export_symbols >> $output_objdir/$soname.def;
12647 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655 link_all_deplibs=yes
12660 hardcode_shlibpath_var=no
12661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12662 export_dynamic_flag_spec='${wl}-E'
12663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12664 # Instead, shared libraries are loaded at an image base (0x10000000 by
12665 # default) and relocated if they conflict, which is a slow very memory
12666 # consuming and fragmenting process. To avoid this, we pick a random,
12667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12670 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'
12673 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12675 if test "$host_os" = linux-dietlibc; then
12676 case $cc_basename in
12677 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12680 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12681 && test "$tmp_diet" = no
12683 tmp_addflag=' $pic_flag'
12684 tmp_sharedflag='-shared'
12685 case $cc_basename,$host_cpu in
12686 pgcc*) # Portland Group C compiler
12687 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'
12688 tmp_addflag=' $pic_flag'
12690 pgf77* | pgf90* | pgf95* | pgfortran*)
12691 # Portland Group f77 and f90 compilers
12692 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'
12693 tmp_addflag=' $pic_flag -Mnomain' ;;
12694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12695 tmp_addflag=' -i_dynamic' ;;
12696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12697 tmp_addflag=' -i_dynamic -nofor_main' ;;
12698 ifc* | ifort*) # Intel Fortran compiler
12699 tmp_addflag=' -nofor_main' ;;
12700 lf95*) # Lahey Fortran 8.1
12701 whole_archive_flag_spec=
12702 tmp_sharedflag='--shared' ;;
12703 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12704 tmp_sharedflag='-qmkshrobj'
12706 nvcc*) # Cuda Compiler Driver 2.2
12707 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'
12708 compiler_needs_object=yes
12711 case `$CC -V 2>&1 | sed 5q` in
12712 *Sun\ C*) # Sun C 5.9
12713 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'
12714 compiler_needs_object=yes
12715 tmp_sharedflag='-G' ;;
12716 *Sun\ F*) # Sun Fortran 8.3
12717 tmp_sharedflag='-G' ;;
12719 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721 if test "x$supports_anon_versioning" = xyes; then
12722 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12724 echo "local: *; };" >> $output_objdir/$libname.ver~
12725 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12728 case $cc_basename in
12729 xlf* | bgf* | bgxlf* | mpixlf*)
12730 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12731 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12733 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12734 if test "x$supports_anon_versioning" = xyes; then
12735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12737 echo "local: *; };" >> $output_objdir/$libname.ver~
12738 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12747 netbsd* | netbsdelf*-gnu)
12748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12752 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12758 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12763 *** create shared libraries on Solaris systems. Therefore, libtool
12764 *** is disabling shared libraries support. We urge you to upgrade GNU
12765 *** binutils to release 2.9.1 or newer. Another option is to modify
12766 *** your PATH or compiler configuration so that the native linker is
12767 *** used, and then restart.
12770 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12779 case `$LD -v 2>&1` in
12780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12785 *** reliably create shared libraries on SCO systems. Therefore, libtool
12786 *** is disabling shared libraries support. We urge you to upgrade GNU
12787 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12788 *** your PATH or compiler configuration so that the native linker is
12789 *** used, and then restart.
12794 # For security reasons, it is highly recommended that you always
12795 # use absolute paths for naming shared libraries, and exclude the
12796 # DT_RUNPATH tag from executables and libraries. But doing so
12797 # requires that you compile everything twice, which is a pain.
12798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12812 hardcode_direct=yes
12813 hardcode_shlibpath_var=no
12817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12818 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12819 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12826 if test "$ld_shlibs" = no; then
12828 hardcode_libdir_flag_spec=
12829 export_dynamic_flag_spec=
12830 whole_archive_flag_spec=
12833 # PORTME fill in a description of your system's linker (not GNU ld)
12836 allow_undefined_flag=unsupported
12837 always_export_symbols=yes
12838 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'
12839 # Note: this linker hardcodes the directories in LIBPATH if there
12840 # are no directories specified by -L.
12841 hardcode_minus_L=yes
12842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12843 # Neither direct hardcoding nor static linking is supported with a
12845 hardcode_direct=unsupported
12850 if test "$host_cpu" = ia64; then
12851 # On IA64, the linker does run time linking by default, so we don't
12852 # have to do anything special.
12853 aix_use_runtimelinking=no
12854 exp_sym_flag='-Bexport'
12857 # If we're using GNU nm, then we don't want the "-C" option.
12858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12859 # Also, AIX nm treats weak defined symbols like other global
12860 # defined symbols, whereas GNU nm marks them as "W".
12861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12862 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12864 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12866 aix_use_runtimelinking=no
12868 # Test if we are trying to use run time linking or normal
12869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12870 # need to do runtime linking.
12871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12872 for ld_flag in $LDFLAGS; do
12873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12874 aix_use_runtimelinking=yes
12881 exp_sym_flag='-bexport'
12882 no_entry_flag='-bnoentry'
12885 # When large executables or shared objects are built, AIX ld can
12886 # have problems creating the table of contents. If linking a library
12887 # or program results in "error TOC overflow" add -mminimal-toc to
12888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12892 hardcode_direct=yes
12893 hardcode_direct_absolute=yes
12894 hardcode_libdir_separator=':'
12895 link_all_deplibs=yes
12896 file_list_spec='${wl}-f,'
12898 if test "$GCC" = yes; then
12899 case $host_os in aix4.[012]|aix4.[012].*)
12900 # We only want to do this on AIX 4.2 and lower, the check
12901 # below for broken collect2 doesn't work under 4.3+
12902 collect2name=`${CC} -print-prog-name=collect2`
12903 if test -f "$collect2name" &&
12904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12906 # We have reworked collect2
12909 # We have old collect2
12910 hardcode_direct=unsupported
12911 # It fails to find uninstalled libraries when the uninstalled
12912 # path is not listed in the libpath. Setting hardcode_minus_L
12913 # to unsupported forces relinking
12914 hardcode_minus_L=yes
12915 hardcode_libdir_flag_spec='-L$libdir'
12916 hardcode_libdir_separator=
12920 shared_flag='-shared'
12921 if test "$aix_use_runtimelinking" = yes; then
12922 shared_flag="$shared_flag "'${wl}-G'
12924 link_all_deplibs=no
12927 if test "$host_cpu" = ia64; then
12928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12929 # chokes on -Wl,-G. The following line is correct:
12932 if test "$aix_use_runtimelinking" = yes; then
12933 shared_flag='${wl}-G'
12935 shared_flag='${wl}-bM:SRE'
12940 export_dynamic_flag_spec='${wl}-bexpall'
12941 # It seems that -bexpall does not export symbols beginning with
12942 # underscore (_), so it is better to generate a list of symbols to export.
12943 always_export_symbols=yes
12944 if test "$aix_use_runtimelinking" = yes; then
12945 # Warning - without using the other runtime loading flags (-brtl),
12946 # -berok will link without error, but may produce a broken library.
12947 allow_undefined_flag='-berok'
12948 # Determine the default libpath from the value encoded in an
12949 # empty executable.
12950 if test "${lt_cv_aix_libpath+set}" = set; then
12951 aix_libpath=$lt_cv_aix_libpath
12953 if ${lt_cv_aix_libpath_+:} false; then :
12954 $as_echo_n "(cached) " >&6
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12966 if ac_fn_c_try_link "$LINENO"; then :
12968 lt_aix_libpath_sed='
12969 /Import File Strings/,/^$/ {
12971 s/^0 *\([^ ]*\) *$/\1/
12975 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12976 # Check for a 64-bit object if we didn't find anything.
12977 if test -z "$lt_cv_aix_libpath_"; then
12978 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 if test -z "$lt_cv_aix_libpath_"; then
12984 lt_cv_aix_libpath_="/usr/lib:/lib"
12989 aix_libpath=$lt_cv_aix_libpath_
12992 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12993 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12995 if test "$host_cpu" = ia64; then
12996 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12997 allow_undefined_flag="-z nodefs"
12998 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"
13000 # Determine the default libpath from the value encoded in an
13001 # empty executable.
13002 if test "${lt_cv_aix_libpath+set}" = set; then
13003 aix_libpath=$lt_cv_aix_libpath
13005 if ${lt_cv_aix_libpath_+:} false; then :
13006 $as_echo_n "(cached) " >&6
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13018 if ac_fn_c_try_link "$LINENO"; then :
13020 lt_aix_libpath_sed='
13021 /Import File Strings/,/^$/ {
13023 s/^0 *\([^ ]*\) *$/\1/
13027 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028 # Check for a 64-bit object if we didn't find anything.
13029 if test -z "$lt_cv_aix_libpath_"; then
13030 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13033 rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035 if test -z "$lt_cv_aix_libpath_"; then
13036 lt_cv_aix_libpath_="/usr/lib:/lib"
13041 aix_libpath=$lt_cv_aix_libpath_
13044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13045 # Warning - without using the other run time loading flags,
13046 # -berok will link without error, but may produce a broken library.
13047 no_undefined_flag=' ${wl}-bernotok'
13048 allow_undefined_flag=' ${wl}-berok'
13049 if test "$with_gnu_ld" = yes; then
13050 # We only use this code for GNU lds that support --whole-archive.
13051 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13053 # Exported symbols can be pulled into shared objects from archives
13054 whole_archive_flag_spec='$convenience'
13056 archive_cmds_need_lc=yes
13057 # This is similar to how AIX traditionally builds its shared libraries.
13058 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13066 # see comment about AmigaOS4 .so support
13067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068 archive_expsym_cmds=''
13071 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)'
13072 hardcode_libdir_flag_spec='-L$libdir'
13073 hardcode_minus_L=yes
13079 export_dynamic_flag_spec=-rdynamic
13082 cygwin* | mingw* | pw32* | cegcc*)
13083 # When not using gcc, we currently assume that we are using
13084 # Microsoft Visual C++.
13085 # hardcode_libdir_flag_spec is actually meaningless, as there is
13086 # no search path for DLLs.
13087 case $cc_basename in
13090 hardcode_libdir_flag_spec=' '
13091 allow_undefined_flag=unsupported
13092 always_export_symbols=yes
13094 # Tell ltmain to make .lib files, not .a files.
13096 # Tell ltmain to make .dll files, not .so files.
13098 # FIXME: Setting linknames here is a bad hack.
13099 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13100 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13101 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13103 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13105 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13107 # The linker will not automatically build a static lib if we build a DLL.
13108 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13109 enable_shared_with_static_runtimes=yes
13110 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13113 old_postinstall_cmds='chmod 644 $oldlib'
13114 postlink_cmds='lt_outputfile="@OUTPUT@"~
13115 lt_tool_outputfile="@TOOL_OUTPUT@"~
13116 case $lt_outputfile in
13119 lt_outputfile="$lt_outputfile.exe"
13120 lt_tool_outputfile="$lt_tool_outputfile.exe"
13123 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13124 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13125 $RM "$lt_outputfile.manifest";
13129 # Assume MSVC wrapper
13130 hardcode_libdir_flag_spec=' '
13131 allow_undefined_flag=unsupported
13132 # Tell ltmain to make .lib files, not .a files.
13134 # Tell ltmain to make .dll files, not .so files.
13136 # FIXME: Setting linknames here is a bad hack.
13137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13138 # The linker will automatically build a .lib file if we build a DLL.
13139 old_archive_from_new_cmds='true'
13140 # FIXME: Should let the user specify the lib program.
13141 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13142 enable_shared_with_static_runtimes=yes
13147 darwin* | rhapsody*)
13150 archive_cmds_need_lc=no
13152 hardcode_automatic=yes
13153 hardcode_shlibpath_var=unsupported
13154 if test "$lt_cv_ld_force_load" = "yes"; then
13155 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\"`'
13158 whole_archive_flag_spec=''
13160 link_all_deplibs=yes
13161 allow_undefined_flag="$_lt_dar_allow_undefined"
13162 case $cc_basename in
13163 ifort*) _lt_dar_can_shared=yes ;;
13164 *) _lt_dar_can_shared=$GCC ;;
13166 if test "$_lt_dar_can_shared" = "yes"; then
13167 output_verbose_link_cmd=func_echo_all
13168 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13169 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13170 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}"
13171 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}"
13180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13181 hardcode_libdir_flag_spec='-L$libdir'
13182 hardcode_shlibpath_var=no
13185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13186 # support. Future versions do this automatically, but an explicit c++rt0.o
13187 # does not break anything, and helps significantly (at the cost of a little
13190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13191 hardcode_libdir_flag_spec='-R$libdir'
13192 hardcode_direct=yes
13193 hardcode_shlibpath_var=no
13196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13199 hardcode_direct=yes
13200 hardcode_minus_L=yes
13201 hardcode_shlibpath_var=no
13204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13205 freebsd* | dragonfly*)
13206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13207 hardcode_libdir_flag_spec='-R$libdir'
13208 hardcode_direct=yes
13209 hardcode_shlibpath_var=no
13213 if test "$GCC" = yes; then
13214 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13216 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13219 hardcode_libdir_separator=:
13220 hardcode_direct=yes
13222 # hardcode_minus_L: Not really in the search PATH,
13223 # but as the default location of the library.
13224 hardcode_minus_L=yes
13225 export_dynamic_flag_spec='${wl}-E'
13229 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13230 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13234 if test "$with_gnu_ld" = no; then
13235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13236 hardcode_libdir_separator=:
13237 hardcode_direct=yes
13238 hardcode_direct_absolute=yes
13239 export_dynamic_flag_spec='${wl}-E'
13240 # hardcode_minus_L: Not really in the search PATH,
13241 # but as the default location of the library.
13242 hardcode_minus_L=yes
13247 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13250 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13256 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13262 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13265 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13269 # Older versions of the 11.00 compiler do not understand -b yet
13270 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13272 $as_echo_n "checking if $CC understands -b... " >&6; }
13273 if ${lt_cv_prog_compiler__b+:} false; then :
13274 $as_echo_n "(cached) " >&6
13276 lt_cv_prog_compiler__b=no
13277 save_LDFLAGS="$LDFLAGS"
13278 LDFLAGS="$LDFLAGS -b"
13279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13281 # The linker can only warn and ignore the option if not recognized
13282 # So say no if there are warnings
13283 if test -s conftest.err; then
13284 # Append any errors to the config.log.
13285 cat conftest.err 1>&5
13286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13288 if diff conftest.exp conftest.er2 >/dev/null; then
13289 lt_cv_prog_compiler__b=yes
13292 lt_cv_prog_compiler__b=yes
13296 LDFLAGS="$save_LDFLAGS"
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13300 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13302 if test x"$lt_cv_prog_compiler__b" = xyes; then
13303 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13311 if test "$with_gnu_ld" = no; then
13312 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13313 hardcode_libdir_separator=:
13318 hardcode_shlibpath_var=no
13321 hardcode_direct=yes
13322 hardcode_direct_absolute=yes
13323 export_dynamic_flag_spec='${wl}-E'
13325 # hardcode_minus_L: Not really in the search PATH,
13326 # but as the default location of the library.
13327 hardcode_minus_L=yes
13333 irix5* | irix6* | nonstopux*)
13334 if test "$GCC" = yes; then
13335 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'
13336 # Try to use the -exported_symbol ld option, if it does not
13337 # work, assume that -exports_file does not work either and
13338 # implicitly export all symbols.
13339 # This should be the same for all languages, so no per-tag cache variable.
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13341 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13342 if ${lt_cv_irix_exported_symbol+:} false; then :
13343 $as_echo_n "(cached) " >&6
13345 save_LDFLAGS="$LDFLAGS"
13346 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 int foo (void) { return 0; }
13351 if ac_fn_c_try_link "$LINENO"; then :
13352 lt_cv_irix_exported_symbol=yes
13354 lt_cv_irix_exported_symbol=no
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LDFLAGS="$save_LDFLAGS"
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13361 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13362 if test "$lt_cv_irix_exported_symbol" = yes; then
13363 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'
13366 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'
13367 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'
13369 archive_cmds_need_lc='no'
13370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13371 hardcode_libdir_separator=:
13373 link_all_deplibs=yes
13376 netbsd* | netbsdelf*-gnu)
13377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13382 hardcode_libdir_flag_spec='-R$libdir'
13383 hardcode_direct=yes
13384 hardcode_shlibpath_var=no
13388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13389 hardcode_direct=yes
13390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13391 hardcode_libdir_separator=:
13392 hardcode_shlibpath_var=no
13399 if test -f /usr/libexec/ld.so; then
13400 hardcode_direct=yes
13401 hardcode_shlibpath_var=no
13402 hardcode_direct_absolute=yes
13403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13407 export_dynamic_flag_spec='${wl}-E'
13410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13412 hardcode_libdir_flag_spec='-R$libdir'
13415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13426 hardcode_libdir_flag_spec='-L$libdir'
13427 hardcode_minus_L=yes
13428 allow_undefined_flag=unsupported
13429 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13434 if test "$GCC" = yes; then
13435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13436 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'
13438 allow_undefined_flag=' -expect_unresolved \*'
13439 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'
13441 archive_cmds_need_lc='no'
13442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13443 hardcode_libdir_separator=:
13446 osf4* | osf5*) # as osf3* with the addition of -msym flag
13447 if test "$GCC" = yes; then
13448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13449 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'
13450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13452 allow_undefined_flag=' -expect_unresolved \*'
13453 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'
13454 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~
13455 $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'
13457 # Both c and cxx compiler support -rpath directly
13458 hardcode_libdir_flag_spec='-rpath $libdir'
13460 archive_cmds_need_lc='no'
13461 hardcode_libdir_separator=:
13465 no_undefined_flag=' -z defs'
13466 if test "$GCC" = yes; then
13468 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13470 $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'
13472 case `$CC -V 2>&1` in
13475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13487 hardcode_libdir_flag_spec='-R$libdir'
13488 hardcode_shlibpath_var=no
13490 solaris2.[0-5] | solaris2.[0-5].*) ;;
13492 # The compiler driver will combine and reorder linker options,
13493 # but understands `-z linker_flag'. GCC discards it without `$wl',
13494 # but is careful enough not to reorder.
13495 # Supported since Solaris 2.6 (maybe 2.5.1?)
13496 if test "$GCC" = yes; then
13497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13503 link_all_deplibs=yes
13507 if test "x$host_vendor" = xsequent; then
13508 # Use $CC to link under sequent, because it throws in some extra .o
13509 # files that make .init and .fini sections work.
13510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_libdir_flag_spec='-L$libdir'
13515 hardcode_direct=yes
13516 hardcode_minus_L=yes
13517 hardcode_shlibpath_var=no
13521 case $host_vendor in
13523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct=yes # is this really true???
13527 ## LD is ld it makes a PLAMLIB
13528 ## CC just makes a GrossModule.
13529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13530 reload_cmds='$CC -r -o $output$reload_objs'
13534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13538 runpath_var='LD_RUN_PATH'
13539 hardcode_shlibpath_var=no
13543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_shlibpath_var=no
13545 export_dynamic_flag_spec='-Bexport'
13549 if test -d /usr/nec; then
13550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13551 hardcode_shlibpath_var=no
13552 runpath_var=LD_RUN_PATH
13553 hardcode_runpath_var=yes
13558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13559 no_undefined_flag='${wl}-z,text'
13560 archive_cmds_need_lc=no
13561 hardcode_shlibpath_var=no
13562 runpath_var='LD_RUN_PATH'
13564 if test "$GCC" = yes; then
13565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 sysv5* | sco3.2v5* | sco5v6*)
13574 # Note: We can NOT use -z defs as we might desire, because we do not
13575 # link with -lc, and that would cause any symbols used from libc to
13576 # always be unresolved, which means just about no library would
13577 # ever link correctly. If we're not using GNU ld we use -z text
13578 # though, which does catch some bad symbols but isn't as heavy-handed
13580 no_undefined_flag='${wl}-z,text'
13581 allow_undefined_flag='${wl}-z,nodefs'
13582 archive_cmds_need_lc=no
13583 hardcode_shlibpath_var=no
13584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13585 hardcode_libdir_separator=':'
13586 link_all_deplibs=yes
13587 export_dynamic_flag_spec='${wl}-Bexport'
13588 runpath_var='LD_RUN_PATH'
13590 if test "$GCC" = yes; then
13591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601 hardcode_libdir_flag_spec='-L$libdir'
13602 hardcode_shlibpath_var=no
13610 if test x$host_vendor = xsni; then
13612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13613 export_dynamic_flag_spec='${wl}-Blargedynsym'
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13620 $as_echo "$ld_shlibs" >&6; }
13621 test "$ld_shlibs" = no && can_build_shared=no
13623 with_gnu_ld=$with_gnu_ld
13640 # Do we need to explicitly link libc?
13642 case "x$archive_cmds_need_lc" in
13644 # Assume -lc should be added
13645 archive_cmds_need_lc=yes
13647 if test "$enable_shared" = yes && test "$GCC" = yes; then
13648 case $archive_cmds in
13650 # FIXME: we may have to deal with multi-command sequences.
13653 # Test whether the compiler implicitly links with -lc since on some
13654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13655 # to ld, don't add -lc before -lgcc.
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13658 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13659 $as_echo_n "(cached) " >&6
13662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13665 (eval $ac_compile) 2>&5
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13668 test $ac_status = 0; } 2>conftest.err; then
13671 libobjs=conftest.$ac_objext
13673 wl=$lt_prog_compiler_wl
13674 pic_flag=$lt_prog_compiler_pic
13680 lt_save_allow_undefined_flag=$allow_undefined_flag
13681 allow_undefined_flag=
13682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13686 test $ac_status = 0; }
13688 lt_cv_archive_cmds_need_lc=no
13690 lt_cv_archive_cmds_need_lc=yes
13692 allow_undefined_flag=$lt_save_allow_undefined_flag
13694 cat conftest.err 1>&5
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13700 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13860 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13862 if test "$GCC" = yes; then
13864 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13865 *) lt_awk_arg="/^libraries:/" ;;
13868 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13869 *) lt_sed_strip_eq="s,=/,/,g" ;;
13871 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13872 case $lt_search_path_spec in
13874 # if the path contains ";" then we assume it to be the separator
13875 # otherwise default to the standard path separator (i.e. ":") - it is
13876 # assumed that no part of a normal pathname contains ";" but that should
13877 # okay in the real world where ";" in dirpaths is itself problematic.
13878 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13884 # Ok, now we have the path, separated by spaces, we can step through it
13885 # and add multilib dir if necessary.
13886 lt_tmp_lt_search_path_spec=
13887 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13888 for lt_sys_path in $lt_search_path_spec; do
13889 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13892 test -d "$lt_sys_path" && \
13893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13896 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13897 BEGIN {RS=" "; FS="/|\n";} {
13900 for (lt_i = NF; lt_i > 0; lt_i--) {
13901 if ($lt_i != "" && $lt_i != ".") {
13902 if ($lt_i == "..") {
13905 if (lt_count == 0) {
13906 lt_foo="/" $lt_i lt_foo;
13913 if (lt_foo != "") { lt_freq[lt_foo]++; }
13914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13916 # AWK program above erroneously prepends '/' to C:/dos/paths
13919 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13920 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13922 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13926 library_names_spec=
13927 libname_spec='lib$name'
13931 postuninstall_cmds=
13935 shlibpath_overrides_runpath=unknown
13937 dynamic_linker="$host_os ld.so"
13938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13939 need_lib_prefix=unknown
13940 hardcode_into_libs=no
13942 # when you set need_version to no, make sure it does not cause -set_version
13943 # flags to be left without arguments
13944 need_version=unknown
13948 version_type=linux # correct to gnu/linux during the next big refactor
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13950 shlibpath_var=LIBPATH
13952 # AIX 3 has no versioning support, so we append a major version to the name.
13953 soname_spec='${libname}${release}${shared_ext}$major'
13957 version_type=linux # correct to gnu/linux during the next big refactor
13960 hardcode_into_libs=yes
13961 if test "$host_cpu" = ia64; then
13962 # AIX 5 supports IA64
13963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13964 shlibpath_var=LD_LIBRARY_PATH
13966 # With GCC up to 2.95.x, collect2 would create an import file
13967 # for dependence libraries. The import file would start with
13968 # the line `#! .'. This would cause the generated library to
13969 # depend on `.', always an invalid library. This was fixed in
13970 # development snapshots of GCC prior to 3.0.
13972 aix4 | aix4.[01] | aix4.[01].*)
13973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13975 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13978 can_build_shared=no
13982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13983 # soname into executable. Probably we can add versioning support to
13984 # collect2, so additional links can be useful in future.
13985 if test "$aix_use_runtimelinking" = yes; then
13986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13987 # instead of lib<name>.a to let people know that these are not
13988 # typical AIX shared libraries.
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13991 # We preserve .a as extension for shared libraries through AIX4.2
13992 # and later when we are not doing run time linking.
13993 library_names_spec='${libname}${release}.a $libname.a'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13996 shlibpath_var=LIBPATH
14003 # Since July 2007 AmigaOS4 officially supports .so libraries.
14004 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 library_names_spec='$libname.ixlibrary $libname.a'
14009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14010 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
14016 library_names_spec='${libname}${shared_ext}'
14017 dynamic_linker="$host_os ld.so"
14018 shlibpath_var=LIBRARY_PATH
14022 version_type=linux # correct to gnu/linux during the next big refactor
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14030 # the default ld.so.conf also contains /usr/contrib/lib and
14031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14032 # libtool to hard-code these into programs
14035 cygwin* | mingw* | pw32* | cegcc*)
14036 version_type=windows
14041 case $GCC,$cc_basename in
14044 library_names_spec='$libname.dll.a'
14045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14046 postinstall_cmds='base_file=`basename \${file}`~
14047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14048 dldir=$destdir/`dirname \$dlpath`~
14049 test -d \$dldir || mkdir -p \$dldir~
14050 $install_prog $dir/$dlname \$dldir/$dlname~
14051 chmod a+x \$dldir/$dlname~
14052 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14053 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14056 dlpath=$dir/\$dldll~
14058 shlibpath_overrides_runpath=yes
14062 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14063 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14065 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14068 # MinGW DLLs use traditional 'lib' prefix
14069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14072 # pw32 DLLs use 'pw' prefix rather than 'lib'
14073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14076 dynamic_linker='Win32 ld.exe'
14081 libname_spec='$name'
14082 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14083 library_names_spec='${libname}.dll.lib'
14087 sys_lib_search_path_spec=
14090 for lt_path in $LIB
14093 # Let DOS variable expansion print the short 8.3 style file name.
14094 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14095 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14098 # Convert to MSYS style.
14099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14102 # Convert to unix form, then to dos form, then back to unix form
14103 # but this time dos style (no spaces!) so that the unix form looks
14104 # like /cygdrive/c/PROGRA~1:/cygdr...
14105 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14106 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14107 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14110 sys_lib_search_path_spec="$LIB"
14111 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14112 # It is most probably a Windows format PATH.
14113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14115 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14117 # FIXME: find the short name or the path components, as spaces are
14118 # common. (e.g. "Program Files" -> "PROGRA~1")
14122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14123 postinstall_cmds='base_file=`basename \${file}`~
14124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14125 dldir=$destdir/`dirname \$dlpath`~
14126 test -d \$dldir || mkdir -p \$dldir~
14127 $install_prog $dir/$dlname \$dldir/$dlname'
14128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14129 dlpath=$dir/\$dldll~
14131 shlibpath_overrides_runpath=yes
14132 dynamic_linker='Win32 link.exe'
14136 # Assume MSVC wrapper
14137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14138 dynamic_linker='Win32 ld.exe'
14141 # FIXME: first we should search . and the directory the executable is in
14145 darwin* | rhapsody*)
14146 dynamic_linker="$host_os dyld"
14147 version_type=darwin
14150 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14151 soname_spec='${libname}${release}${major}$shared_ext'
14152 shlibpath_overrides_runpath=yes
14153 shlibpath_var=DYLD_LIBRARY_PATH
14154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14161 version_type=linux # correct to gnu/linux during the next big refactor
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 shlibpath_var=LD_LIBRARY_PATH
14169 freebsd* | dragonfly*)
14170 # DragonFly does not have aout. When/if they implement a new
14171 # versioning mechanism, adjust this.
14172 if test -x /usr/bin/objformat; then
14173 objformat=`/usr/bin/objformat`
14176 freebsd[23].*) objformat=aout ;;
14177 *) objformat=elf ;;
14180 version_type=freebsd-$objformat
14181 case $version_type in
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14192 shlibpath_var=LD_LIBRARY_PATH
14195 shlibpath_overrides_runpath=yes
14197 freebsd3.[01]* | freebsdelf3.[01]*)
14198 shlibpath_overrides_runpath=yes
14199 hardcode_into_libs=yes
14201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14203 shlibpath_overrides_runpath=no
14204 hardcode_into_libs=yes
14206 *) # from 4.6 on, and DragonFly
14207 shlibpath_overrides_runpath=yes
14208 hardcode_into_libs=yes
14214 version_type=linux # correct to gnu/linux during the next big refactor
14217 dynamic_linker="$host_os runtime_loader"
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 shlibpath_var=LIBRARY_PATH
14221 shlibpath_overrides_runpath=yes
14222 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14223 hardcode_into_libs=yes
14226 hpux9* | hpux10* | hpux11*)
14227 # Give a soname corresponding to the major version so that dld.sl refuses to
14228 # link against other versions.
14235 hardcode_into_libs=yes
14236 dynamic_linker="$host_os dld.so"
14237 shlibpath_var=LD_LIBRARY_PATH
14238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240 soname_spec='${libname}${release}${shared_ext}$major'
14241 if test "X$HPUX_IA64_MODE" = X32; then
14242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14250 hardcode_into_libs=yes
14251 dynamic_linker="$host_os dld.sl"
14252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14261 dynamic_linker="$host_os dld.sl"
14262 shlibpath_var=SHLIB_PATH
14263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14268 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14269 postinstall_cmds='chmod 555 $lib'
14270 # or fails outright, so override atomically:
14271 install_override_mode=555
14275 version_type=linux # correct to gnu/linux during the next big refactor
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14279 soname_spec='${libname}${release}${shared_ext}$major'
14280 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=no
14283 hardcode_into_libs=yes
14286 irix5* | irix6* | nonstopux*)
14288 nonstopux*) version_type=nonstopux ;;
14290 if test "$lt_cv_prog_gnu_ld" = yes; then
14291 version_type=linux # correct to gnu/linux during the next big refactor
14298 soname_spec='${libname}${release}${shared_ext}$major'
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14301 irix5* | nonstopux*)
14302 libsuff= shlibsuff=
14305 case $LD in # libtool.m4 will add one of these switches to LD
14306 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14307 libsuff= shlibsuff= libmagic=32-bit;;
14308 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14309 libsuff=32 shlibsuff=N32 libmagic=N32;;
14310 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14311 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14312 *) libsuff= shlibsuff= libmagic=never-match;;
14316 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14317 shlibpath_overrides_runpath=no
14318 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14319 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14320 hardcode_into_libs=yes
14323 # No shared lib support for Linux oldld, aout, or coff.
14324 linux*oldld* | linux*aout* | linux*coff*)
14328 # This must be glibc/ELF.
14329 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14330 version_type=linux # correct to gnu/linux during the next big refactor
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 soname_spec='${libname}${release}${shared_ext}$major'
14335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 shlibpath_overrides_runpath=no
14339 # Some binutils ld are patched to set DT_RUNPATH
14340 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14341 $as_echo_n "(cached) " >&6
14343 lt_cv_shlibpath_overrides_runpath=no
14344 save_LDFLAGS=$LDFLAGS
14345 save_libdir=$libdir
14346 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14347 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14358 if ac_fn_c_try_link "$LINENO"; then :
14359 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14360 lt_cv_shlibpath_overrides_runpath=yes
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 LDFLAGS=$save_LDFLAGS
14366 libdir=$save_libdir
14370 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14372 # This implies no fast_install, which is unacceptable.
14373 # Some rework will be needed to allow for fast_install
14374 # before this can be enabled.
14375 hardcode_into_libs=yes
14377 # Append ld.so.conf contents to the search path
14378 if test -f /etc/ld.so.conf; then
14379 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' ' '`
14380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14383 # We used to test for /lib/ld.so.1 and disable shared libraries on
14384 # powerpc, because MkLinux only supported shared libraries with the
14385 # GNU dynamic linker. Since this was broken with cross compilers,
14386 # most powerpc-linux boxes support dynamic linking these days and
14387 # people can always --disable-shared, the test was removed, and we
14388 # assume the GNU/Linux dynamic linker is in use.
14389 dynamic_linker='GNU/Linux ld.so'
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 shlibpath_var=LD_LIBRARY_PATH
14399 shlibpath_overrides_runpath=no
14400 hardcode_into_libs=yes
14401 dynamic_linker='NetBSD ld.elf_so'
14408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14411 dynamic_linker='NetBSD (a.out) ld.so'
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 dynamic_linker='NetBSD ld.elf_so'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 shlibpath_overrides_runpath=yes
14419 hardcode_into_libs=yes
14423 version_type=linux # correct to gnu/linux during the next big refactor
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 shlibpath_overrides_runpath=yes
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=no
14437 hardcode_into_libs=yes
14438 dynamic_linker='ldqnx.so'
14443 sys_lib_dlsearch_path_spec="/usr/lib"
14445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14447 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14448 *) need_version=no ;;
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14455 openbsd2.[89] | openbsd2.[89].*)
14456 shlibpath_overrides_runpath=no
14459 shlibpath_overrides_runpath=yes
14463 shlibpath_overrides_runpath=yes
14468 libname_spec='$name'
14471 library_names_spec='$libname${shared_ext} $libname.a'
14472 dynamic_linker='OS/2 ld.exe'
14473 shlibpath_var=LIBPATH
14476 osf3* | osf4* | osf5*)
14480 soname_spec='${libname}${release}${shared_ext}$major'
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14492 version_type=linux # correct to gnu/linux during the next big refactor
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=yes
14499 hardcode_into_libs=yes
14500 # ldd complains unless libraries are executable
14501 postinstall_cmds='chmod +x $lib'
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 shlibpath_overrides_runpath=yes
14510 if test "$with_gnu_ld" = yes; then
14517 version_type=linux # correct to gnu/linux during the next big refactor
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 case $host_vendor in
14523 shlibpath_overrides_runpath=no
14525 runpath_var=LD_RUN_PATH
14533 shlibpath_overrides_runpath=no
14534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14540 if test -d /usr/nec ;then
14541 version_type=linux # correct to gnu/linux during the next big refactor
14542 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14543 soname_spec='$libname${shared_ext}.$major'
14544 shlibpath_var=LD_LIBRARY_PATH
14548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14549 version_type=freebsd-elf
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes
14556 hardcode_into_libs=yes
14557 if test "$with_gnu_ld" = yes; then
14558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14567 sys_lib_dlsearch_path_spec='/usr/lib'
14571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14572 version_type=linux # correct to gnu/linux during the next big refactor
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576 shlibpath_var=LD_LIBRARY_PATH
14577 shlibpath_overrides_runpath=no
14578 hardcode_into_libs=yes
14582 version_type=linux # correct to gnu/linux during the next big refactor
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 shlibpath_var=LD_LIBRARY_PATH
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14593 $as_echo "$dynamic_linker" >&6; }
14594 test "$dynamic_linker" = no && can_build_shared=no
14596 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14597 if test "$GCC" = yes; then
14598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14601 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14602 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14604 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14700 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14702 if test -n "$hardcode_libdir_flag_spec" ||
14703 test -n "$runpath_var" ||
14704 test "X$hardcode_automatic" = "Xyes" ; then
14706 # We can hardcode non-existent directories.
14707 if test "$hardcode_direct" != no &&
14708 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14709 # have to relink, otherwise we might link with an installed library
14710 # when we should be linking with a yet-to-be-installed one
14711 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14712 test "$hardcode_minus_L" != no; then
14713 # Linking always hardcodes the temporary library directory.
14714 hardcode_action=relink
14716 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14717 hardcode_action=immediate
14720 # We cannot hardcode anything, or else we can only hardcode existing
14722 hardcode_action=unsupported
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14725 $as_echo "$hardcode_action" >&6; }
14727 if test "$hardcode_action" = relink ||
14728 test "$inherit_rpath" = yes; then
14729 # Fast installation is not supported
14730 enable_fast_install=no
14731 elif test "$shlibpath_overrides_runpath" = yes ||
14732 test "$enable_shared" = no; then
14733 # Fast installation is not necessary
14734 enable_fast_install=needless
14742 if test "x$enable_dlopen" != xyes; then
14743 enable_dlopen=unknown
14744 enable_dlopen_self=unknown
14745 enable_dlopen_self_static=unknown
14752 lt_cv_dlopen="load_add_on"
14754 lt_cv_dlopen_self=yes
14757 mingw* | pw32* | cegcc*)
14758 lt_cv_dlopen="LoadLibrary"
14763 lt_cv_dlopen="dlopen"
14768 # if libdl is installed we need to link against it
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14770 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14771 if ${ac_cv_lib_dl_dlopen+:} false; then :
14772 $as_echo_n "(cached) " >&6
14774 ac_check_lib_save_LIBS=$LIBS
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14791 if ac_fn_c_try_link "$LINENO"; then :
14792 ac_cv_lib_dl_dlopen=yes
14794 ac_cv_lib_dl_dlopen=no
14796 rm -f core conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14798 LIBS=$ac_check_lib_save_LIBS
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14801 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14802 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14806 lt_cv_dlopen="dyld"
14808 lt_cv_dlopen_self=yes
14815 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14816 if test "x$ac_cv_func_shl_load" = xyes; then :
14817 lt_cv_dlopen="shl_load"
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14820 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14821 if ${ac_cv_lib_dld_shl_load+:} false; then :
14822 $as_echo_n "(cached) " >&6
14824 ac_check_lib_save_LIBS=$LIBS
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14836 return shl_load ();
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_lib_dld_shl_load=yes
14844 ac_cv_lib_dld_shl_load=no
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_check_lib_save_LIBS
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14851 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14852 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14855 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14856 if test "x$ac_cv_func_dlopen" = xyes; then :
14857 lt_cv_dlopen="dlopen"
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14861 if ${ac_cv_lib_dl_dlopen+:} false; then :
14862 $as_echo_n "(cached) " >&6
14864 ac_check_lib_save_LIBS=$LIBS
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14881 if ac_fn_c_try_link "$LINENO"; then :
14882 ac_cv_lib_dl_dlopen=yes
14884 ac_cv_lib_dl_dlopen=no
14886 rm -f core conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14888 LIBS=$ac_check_lib_save_LIBS
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14891 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14892 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14896 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14897 if ${ac_cv_lib_svld_dlopen+:} false; then :
14898 $as_echo_n "(cached) " >&6
14900 ac_check_lib_save_LIBS=$LIBS
14901 LIBS="-lsvld $LIBS"
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14917 if ac_fn_c_try_link "$LINENO"; then :
14918 ac_cv_lib_svld_dlopen=yes
14920 ac_cv_lib_svld_dlopen=no
14922 rm -f core conftest.err conftest.$ac_objext \
14923 conftest$ac_exeext conftest.$ac_ext
14924 LIBS=$ac_check_lib_save_LIBS
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14927 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14928 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14932 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14933 if ${ac_cv_lib_dld_dld_link+:} false; then :
14934 $as_echo_n "(cached) " >&6
14936 ac_check_lib_save_LIBS=$LIBS
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14948 return dld_link ();
14953 if ac_fn_c_try_link "$LINENO"; then :
14954 ac_cv_lib_dld_dld_link=yes
14956 ac_cv_lib_dld_dld_link=no
14958 rm -f core conftest.err conftest.$ac_objext \
14959 conftest$ac_exeext conftest.$ac_ext
14960 LIBS=$ac_check_lib_save_LIBS
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14963 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14964 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14965 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14986 if test "x$lt_cv_dlopen" != xno; then
14992 case $lt_cv_dlopen in
14994 save_CPPFLAGS="$CPPFLAGS"
14995 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14997 save_LDFLAGS="$LDFLAGS"
14998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15001 LIBS="$lt_cv_dlopen_libs $LIBS"
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15004 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15005 if ${lt_cv_dlopen_self+:} false; then :
15006 $as_echo_n "(cached) " >&6
15008 if test "$cross_compiling" = yes; then :
15009 lt_cv_dlopen_self=cross
15011 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15012 lt_status=$lt_dlunknown
15013 cat > conftest.$ac_ext <<_LT_EOF
15014 #line $LINENO "configure"
15015 #include "confdefs.h"
15024 # define LT_DLGLOBAL RTLD_GLOBAL
15027 # define LT_DLGLOBAL DL_GLOBAL
15029 # define LT_DLGLOBAL 0
15033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15034 find out it does not work in some platform. */
15035 #ifndef LT_DLLAZY_OR_NOW
15037 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15040 # define LT_DLLAZY_OR_NOW DL_LAZY
15043 # define LT_DLLAZY_OR_NOW RTLD_NOW
15046 # define LT_DLLAZY_OR_NOW DL_NOW
15048 # define LT_DLLAZY_OR_NOW 0
15055 /* When -fvisbility=hidden is used, assume the code has been annotated
15056 correspondingly for the symbols needed. */
15057 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15058 int fnord () __attribute__((visibility("default")));
15061 int fnord () { return 42; }
15064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15065 int status = $lt_dlunknown;
15069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15072 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15073 else puts (dlerror ());
15075 /* dlclose (self); */
15083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15084 (eval $ac_link) 2>&5
15086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15087 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15088 (./conftest; exit; ) >&5 2>/dev/null
15090 case x$lt_status in
15091 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15092 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15093 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15096 # compilation failed
15097 lt_cv_dlopen_self=no
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15105 $as_echo "$lt_cv_dlopen_self" >&6; }
15107 if test "x$lt_cv_dlopen_self" = xyes; then
15108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15110 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15111 if ${lt_cv_dlopen_self_static+:} false; then :
15112 $as_echo_n "(cached) " >&6
15114 if test "$cross_compiling" = yes; then :
15115 lt_cv_dlopen_self_static=cross
15117 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15118 lt_status=$lt_dlunknown
15119 cat > conftest.$ac_ext <<_LT_EOF
15120 #line $LINENO "configure"
15121 #include "confdefs.h"
15130 # define LT_DLGLOBAL RTLD_GLOBAL
15133 # define LT_DLGLOBAL DL_GLOBAL
15135 # define LT_DLGLOBAL 0
15139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15140 find out it does not work in some platform. */
15141 #ifndef LT_DLLAZY_OR_NOW
15143 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15146 # define LT_DLLAZY_OR_NOW DL_LAZY
15149 # define LT_DLLAZY_OR_NOW RTLD_NOW
15152 # define LT_DLLAZY_OR_NOW DL_NOW
15154 # define LT_DLLAZY_OR_NOW 0
15161 /* When -fvisbility=hidden is used, assume the code has been annotated
15162 correspondingly for the symbols needed. */
15163 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15164 int fnord () __attribute__((visibility("default")));
15167 int fnord () { return 42; }
15170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15171 int status = $lt_dlunknown;
15175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15178 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15179 else puts (dlerror ());
15181 /* dlclose (self); */
15189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15190 (eval $ac_link) 2>&5
15192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15194 (./conftest; exit; ) >&5 2>/dev/null
15196 case x$lt_status in
15197 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15198 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15199 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15202 # compilation failed
15203 lt_cv_dlopen_self_static=no
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15211 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15214 CPPFLAGS="$save_CPPFLAGS"
15215 LDFLAGS="$save_LDFLAGS"
15220 case $lt_cv_dlopen_self in
15221 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15222 *) enable_dlopen_self=unknown ;;
15225 case $lt_cv_dlopen_self_static in
15226 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15227 *) enable_dlopen_self_static=unknown ;;
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15250 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15251 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15252 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15253 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15255 $as_echo "yes" >&6; }
15257 # FIXME - insert some real tests, host_os isn't really good enough
15260 if test -n "$STRIP" ; then
15261 striplib="$STRIP -x"
15262 old_striplib="$STRIP -S"
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15264 $as_echo "yes" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15267 $as_echo "no" >&6; }
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272 $as_echo "no" >&6; }
15288 # Report which library types will actually be built
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15290 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15292 $as_echo "$can_build_shared" >&6; }
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15295 $as_echo_n "checking whether to build shared libraries... " >&6; }
15296 test "$can_build_shared" = "no" && enable_shared=no
15298 # On AIX, shared libraries and static libraries use the same namespace, and
15299 # are all built from PIC.
15302 test "$enable_shared" = yes && enable_static=no
15303 if test -n "$RANLIB"; then
15304 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15305 postinstall_cmds='$RANLIB $lib'
15310 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15311 test "$enable_shared" = yes && enable_static=no
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15316 $as_echo "$enable_shared" >&6; }
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15319 $as_echo_n "checking whether to build static libraries... " >&6; }
15320 # Make sure either enable_shared or enable_static is yes.
15321 test "$enable_shared" = yes || enable_static=yes
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15323 $as_echo "$enable_static" >&6; }
15330 ac_cpp='$CPP $CPPFLAGS'
15331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15351 ac_config_commands="$ac_config_commands libtool"
15356 # Only expand once:
15359 ## --------------------- ##
15360 ## End of libtool code ##
15361 ## --------------------- ##
15364 # Verify if finally libtool shared libraries will be built
15367 case "x$enable_shared" in # ((
15369 xc_lt_build_shared=$enable_shared
15372 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15377 # Verify if finally libtool static libraries will be built
15380 case "x$enable_static" in # ((
15382 xc_lt_build_static=$enable_static
15385 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15390 # Verify if libtool shared libraries should be linked using flag -version-info
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15394 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15395 xc_lt_shlib_use_version_info='yes'
15396 if test "x$version_type" = 'xnone'; then
15397 xc_lt_shlib_use_version_info='no'
15399 case $host_os in # (
15401 xc_lt_shlib_use_version_info='yes'
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15405 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15408 # Verify if libtool shared libraries should be linked using flag -no-undefined
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15412 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15413 xc_lt_shlib_use_no_undefined='no'
15414 if test "x$allow_undefined" = 'xno'; then
15415 xc_lt_shlib_use_no_undefined='yes'
15416 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15417 xc_lt_shlib_use_no_undefined='yes'
15419 case $host_os in # (
15420 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15421 xc_lt_shlib_use_no_undefined='yes'
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15425 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15428 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15432 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15433 xc_lt_shlib_use_mimpure_text='no'
15434 case $host_os in # (
15436 if test "x$GCC" = 'xyes'; then
15437 xc_lt_shlib_use_mimpure_text='yes'
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15442 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15445 # Find out wether libtool libraries would be built wit PIC
15448 case "x$pic_mode" in # ((((
15450 xc_lt_build_shared_with_pic='yes'
15451 xc_lt_build_static_with_pic='no'
15454 xc_lt_build_shared_with_pic='yes'
15455 xc_lt_build_static_with_pic='yes'
15458 xc_lt_build_shared_with_pic='no'
15459 xc_lt_build_static_with_pic='no'
15462 xc_lt_build_shared_with_pic='unknown'
15463 xc_lt_build_static_with_pic='unknown'
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15465 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15469 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15471 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15473 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15475 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15478 # Verify if libtool shared libraries will be built while static not built
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15482 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15483 if test "$xc_lt_build_shared" = 'yes' &&
15484 test "$xc_lt_build_static" = 'no'; then
15485 xc_lt_build_shared_only='yes'
15487 xc_lt_build_shared_only='no'
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15490 $as_echo "$xc_lt_build_shared_only" >&6; }
15493 # Verify if libtool static libraries will be built while shared not built
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15497 $as_echo_n "checking whether to build static libraries only... " >&6; }
15498 if test "$xc_lt_build_static" = 'yes' &&
15499 test "$xc_lt_build_shared" = 'no'; then
15500 xc_lt_build_static_only='yes'
15502 xc_lt_build_static_only='no'
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15505 $as_echo "$xc_lt_build_static_only" >&6; }
15511 # Automake conditionals based on libtool related checks
15514 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15515 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15516 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15518 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15519 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15522 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15523 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15524 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15526 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15527 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15530 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15531 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15532 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15534 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15535 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15540 # Due to libtool and automake machinery limitations of not allowing
15541 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15542 # inclusion of these in shared or static libraries, we are forced to
15543 # build using separate configure runs for shared and static libraries
15544 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15545 # to compile objects for each kind of library. Notice that relying on
15546 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15547 # user might for example choose to build static libraries with PIC.
15551 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15552 # targeting a static library and not building its shared counterpart.
15555 if test "x$xc_lt_build_static_only" = 'xyes'; then
15556 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15557 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15559 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15560 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15565 # Make staticlib CPPFLAG variable and its definition visible in output
15566 # files unconditionally, providing an empty definition unless strictly
15567 # targeting a static library and not building its shared counterpart.
15570 CPPFLAG_CURL_STATICLIB=
15571 if test "x$xc_lt_build_static_only" = 'xyes'; then
15572 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15577 # Determine whether all dependent libraries must be specified when linking
15578 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15580 REQUIRE_LIB_DEPS=no
15582 REQUIRE_LIB_DEPS=yes
15585 if test x$REQUIRE_LIB_DEPS = xyes; then
15586 USE_EXPLICIT_LIB_DEPS_TRUE=
15587 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15589 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15590 USE_EXPLICIT_LIB_DEPS_FALSE=
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15595 $as_echo_n "checking for inline... " >&6; }
15596 if ${ac_cv_c_inline+:} false; then :
15597 $as_echo_n "(cached) " >&6
15600 for ac_kw in inline __inline__ __inline; do
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #ifndef __cplusplus
15605 static $ac_kw foo_t static_foo () {return 0; }
15606 $ac_kw foo_t foo () {return 0; }
15610 if ac_fn_c_try_compile "$LINENO"; then :
15611 ac_cv_c_inline=$ac_kw
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 test "$ac_cv_c_inline" != no && break
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15619 $as_echo "$ac_cv_c_inline" >&6; }
15621 case $ac_cv_c_inline in
15624 case $ac_cv_c_inline in
15626 *) ac_val=$ac_cv_c_inline;;
15628 cat >>confdefs.h <<_ACEOF
15629 #ifndef __cplusplus
15630 #define inline $ac_val
15640 compiler_id="unknown"
15643 flags_dbg_all="unknown"
15644 flags_dbg_yes="unknown"
15645 flags_dbg_off="unknown"
15646 flags_opt_all="unknown"
15647 flags_opt_yes="unknown"
15648 flags_opt_off="unknown"
15650 flags_prefer_cppflags="no"
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15654 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15656 if test -z "$SED"; then
15657 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15659 if test -z "$GREP"; then
15660 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15669 CURL_DEF_TOKEN __DECC
15674 if ac_fn_c_try_cpp "$LINENO"; then :
15676 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15677 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15678 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15679 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15680 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15685 rm -f conftest.err conftest.i conftest.$ac_ext
15686 if test -z "$tmp_exp"; then
15687 curl_cv_have_def___DECC=no
15690 curl_cv_have_def___DECC=yes
15691 curl_cv_def___DECC=$tmp_exp
15696 if test -z "$SED"; then
15697 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15699 if test -z "$GREP"; then
15700 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15709 CURL_DEF_TOKEN __DECC_VER
15714 if ac_fn_c_try_cpp "$LINENO"; then :
15716 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15717 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15718 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15719 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15720 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15725 rm -f conftest.err conftest.i conftest.$ac_ext
15726 if test -z "$tmp_exp"; then
15727 curl_cv_have_def___DECC_VER=no
15730 curl_cv_have_def___DECC_VER=yes
15731 curl_cv_def___DECC_VER=$tmp_exp
15735 if test "$curl_cv_have_def___DECC" = "yes" &&
15736 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15738 $as_echo "yes" >&6; }
15739 compiler_id="DEC_C"
15740 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15741 flags_dbg_yes="-g2"
15743 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15744 flags_opt_yes="-O1"
15745 flags_opt_off="-O0"
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15753 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15755 if test -z "$SED"; then
15756 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15758 if test -z "$GREP"; then
15759 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15768 CURL_DEF_TOKEN __HP_cc
15773 if ac_fn_c_try_cpp "$LINENO"; then :
15775 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15776 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15777 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15778 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15779 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15784 rm -f conftest.err conftest.i conftest.$ac_ext
15785 if test -z "$tmp_exp"; then
15786 curl_cv_have_def___HP_cc=no
15789 curl_cv_have_def___HP_cc=yes
15790 curl_cv_def___HP_cc=$tmp_exp
15794 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15796 $as_echo "yes" >&6; }
15797 compiler_id="HP_UX_C"
15798 flags_dbg_all="-g -s"
15801 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15802 flags_opt_yes="+O2"
15803 flags_opt_off="+O0"
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15811 $as_echo_n "checking if compiler is IBM C... " >&6; }
15813 if test -z "$SED"; then
15814 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15816 if test -z "$GREP"; then
15817 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15826 CURL_DEF_TOKEN __IBMC__
15831 if ac_fn_c_try_cpp "$LINENO"; then :
15833 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15834 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15835 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15836 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15837 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15842 rm -f conftest.err conftest.i conftest.$ac_ext
15843 if test -z "$tmp_exp"; then
15844 curl_cv_have_def___IBMC__=no
15847 curl_cv_have_def___IBMC__=yes
15848 curl_cv_def___IBMC__=$tmp_exp
15852 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15854 $as_echo "yes" >&6; }
15855 compiler_id="IBM_C"
15856 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15859 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15860 flags_opt_all="$flags_opt_all -qnooptimize"
15861 flags_opt_all="$flags_opt_all -qoptimize=0"
15862 flags_opt_all="$flags_opt_all -qoptimize=1"
15863 flags_opt_all="$flags_opt_all -qoptimize=2"
15864 flags_opt_all="$flags_opt_all -qoptimize=3"
15865 flags_opt_all="$flags_opt_all -qoptimize=4"
15866 flags_opt_all="$flags_opt_all -qoptimize=5"
15867 flags_opt_yes="-O2"
15868 flags_opt_off="-qnooptimize"
15869 flags_prefer_cppflags="yes"
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15877 $as_echo_n "checking if compiler is Intel C... " >&6; }
15879 if test -z "$SED"; then
15880 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15882 if test -z "$GREP"; then
15883 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15891 #ifdef __INTEL_COMPILER
15892 CURL_DEF_TOKEN __INTEL_COMPILER
15897 if ac_fn_c_try_cpp "$LINENO"; then :
15899 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15900 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15901 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15902 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15903 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15908 rm -f conftest.err conftest.i conftest.$ac_ext
15909 if test -z "$tmp_exp"; then
15910 curl_cv_have_def___INTEL_COMPILER=no
15913 curl_cv_have_def___INTEL_COMPILER=yes
15914 curl_cv_def___INTEL_COMPILER=$tmp_exp
15918 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15920 $as_echo "yes" >&6; }
15921 compiler_num="$curl_cv_def___INTEL_COMPILER"
15923 if test -z "$SED"; then
15924 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15926 if test -z "$GREP"; then
15927 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15936 CURL_DEF_TOKEN __unix__
15941 if ac_fn_c_try_cpp "$LINENO"; then :
15943 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15944 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15945 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15946 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15947 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15952 rm -f conftest.err conftest.i conftest.$ac_ext
15953 if test -z "$tmp_exp"; then
15954 curl_cv_have_def___unix__=no
15957 curl_cv_have_def___unix__=yes
15958 curl_cv_def___unix__=$tmp_exp
15962 if test "$curl_cv_have_def___unix__" = "yes"; then
15963 compiler_id="INTEL_UNIX_C"
15964 flags_dbg_all="-g -g0"
15967 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15968 flags_opt_yes="-O2"
15969 flags_opt_off="-O0"
15971 compiler_id="INTEL_WINDOWS_C"
15972 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15973 flags_dbg_all="$flags_dbg_all /debug"
15974 flags_dbg_all="$flags_dbg_all /debug:none"
15975 flags_dbg_all="$flags_dbg_all /debug:minimal"
15976 flags_dbg_all="$flags_dbg_all /debug:partial"
15977 flags_dbg_all="$flags_dbg_all /debug:full"
15978 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15979 flags_dbg_all="$flags_dbg_all /debug:extended"
15980 flags_dbg_yes="/Zi /Oy-"
15981 flags_dbg_off="/debug:none /Oy-"
15982 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15983 flags_opt_yes="/O2"
15984 flags_opt_off="/Od"
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15988 $as_echo "no" >&6; }
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15993 $as_echo_n "checking if compiler is clang... " >&6; }
15995 if test -z "$SED"; then
15996 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15998 if test -z "$GREP"; then
15999 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16008 CURL_DEF_TOKEN __clang__
16013 if ac_fn_c_try_cpp "$LINENO"; then :
16015 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16016 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16017 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16018 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16019 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16024 rm -f conftest.err conftest.i conftest.$ac_ext
16025 if test -z "$tmp_exp"; then
16026 curl_cv_have_def___clang__=no
16029 curl_cv_have_def___clang__=yes
16030 curl_cv_def___clang__=$tmp_exp
16034 if test "$curl_cv_have_def___clang__" = "yes"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036 $as_echo "yes" >&6; }
16037 compiler_id="CLANG"
16038 clangver=`$CC -dumpversion`
16039 clangvhi=`echo $clangver | cut -d . -f1`
16040 clangvlo=`echo $clangver | cut -d . -f2`
16041 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16042 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16043 flags_dbg_all="$flags_dbg_all -ggdb"
16044 flags_dbg_all="$flags_dbg_all -gstabs"
16045 flags_dbg_all="$flags_dbg_all -gstabs+"
16046 flags_dbg_all="$flags_dbg_all -gcoff"
16047 flags_dbg_all="$flags_dbg_all -gxcoff"
16048 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16049 flags_dbg_all="$flags_dbg_all -gvms"
16052 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16053 flags_opt_yes="-Os"
16054 flags_opt_off="-O0"
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16057 $as_echo "no" >&6; }
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16062 $as_echo_n "checking if compiler is GNU C... " >&6; }
16064 if test -z "$SED"; then
16065 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16067 if test -z "$GREP"; then
16068 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16077 CURL_DEF_TOKEN __GNUC__
16082 if ac_fn_c_try_cpp "$LINENO"; then :
16084 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16085 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16086 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16087 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16088 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16093 rm -f conftest.err conftest.i conftest.$ac_ext
16094 if test -z "$tmp_exp"; then
16095 curl_cv_have_def___GNUC__=no
16098 curl_cv_have_def___GNUC__=yes
16099 curl_cv_def___GNUC__=$tmp_exp
16103 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16104 test "$compiler_id" = "unknown"; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 $as_echo "yes" >&6; }
16107 compiler_id="GNU_C"
16108 gccver=`$CC -dumpversion`
16109 gccvhi=`echo $gccver | cut -d . -f1`
16110 gccvlo=`echo $gccver | cut -d . -f2`
16111 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16112 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16113 flags_dbg_all="$flags_dbg_all -ggdb"
16114 flags_dbg_all="$flags_dbg_all -gstabs"
16115 flags_dbg_all="$flags_dbg_all -gstabs+"
16116 flags_dbg_all="$flags_dbg_all -gcoff"
16117 flags_dbg_all="$flags_dbg_all -gxcoff"
16118 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16119 flags_dbg_all="$flags_dbg_all -gvms"
16122 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16123 flags_opt_yes="-O2"
16124 flags_opt_off="-O0"
16126 if test -z "$SED"; then
16127 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16129 if test -z "$GREP"; then
16130 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16139 CURL_DEF_TOKEN _WIN32
16144 if ac_fn_c_try_cpp "$LINENO"; then :
16146 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16147 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16148 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16149 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16150 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16155 rm -f conftest.err conftest.i conftest.$ac_ext
16156 if test -z "$tmp_exp"; then
16157 curl_cv_have_def__WIN32=no
16160 curl_cv_have_def__WIN32=yes
16161 curl_cv_def__WIN32=$tmp_exp
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167 $as_echo "no" >&6; }
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16172 $as_echo_n "checking if compiler is LCC... " >&6; }
16174 if test -z "$SED"; then
16175 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16177 if test -z "$GREP"; then
16178 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16187 CURL_DEF_TOKEN __LCC__
16192 if ac_fn_c_try_cpp "$LINENO"; then :
16194 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16195 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16196 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16197 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16198 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16203 rm -f conftest.err conftest.i conftest.$ac_ext
16204 if test -z "$tmp_exp"; then
16205 curl_cv_have_def___LCC__=no
16208 curl_cv_have_def___LCC__=yes
16209 curl_cv_def___LCC__=$tmp_exp
16213 if test "$curl_cv_have_def___LCC__" = "yes"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225 $as_echo "no" >&6; }
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16230 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16232 if test -z "$SED"; then
16233 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16235 if test -z "$GREP"; then
16236 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16245 CURL_DEF_TOKEN __GNUC__
16250 if ac_fn_c_try_cpp "$LINENO"; then :
16252 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16253 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16254 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16255 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16256 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16261 rm -f conftest.err conftest.i conftest.$ac_ext
16262 if test -z "$tmp_exp"; then
16263 curl_cv_have_def___GNUC__=no
16266 curl_cv_have_def___GNUC__=yes
16267 curl_cv_def___GNUC__=$tmp_exp
16272 if test -z "$SED"; then
16273 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16275 if test -z "$GREP"; then
16276 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16284 #ifdef _COMPILER_VERSION
16285 CURL_DEF_TOKEN _COMPILER_VERSION
16290 if ac_fn_c_try_cpp "$LINENO"; then :
16292 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16293 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16294 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16295 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16296 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16301 rm -f conftest.err conftest.i conftest.$ac_ext
16302 if test -z "$tmp_exp"; then
16303 curl_cv_have_def__COMPILER_VERSION=no
16306 curl_cv_have_def__COMPILER_VERSION=yes
16307 curl_cv_def__COMPILER_VERSION=$tmp_exp
16312 if test -z "$SED"; then
16313 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16315 if test -z "$GREP"; then
16316 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16324 #ifdef _SGI_COMPILER_VERSION
16325 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16330 if ac_fn_c_try_cpp "$LINENO"; then :
16332 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16333 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16334 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16335 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16336 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16341 rm -f conftest.err conftest.i conftest.$ac_ext
16342 if test -z "$tmp_exp"; then
16343 curl_cv_have_def__SGI_COMPILER_VERSION=no
16346 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16347 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16351 if test "$curl_cv_have_def___GNUC__" = "no" &&
16352 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16353 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16355 $as_echo "yes" >&6; }
16356 compiler_id="SGI_MIPSPRO_C"
16357 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16360 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16361 flags_opt_yes="-O2"
16362 flags_opt_off="-O0"
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16370 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16372 if test -z "$SED"; then
16373 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16375 if test -z "$GREP"; then
16376 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16385 CURL_DEF_TOKEN __GNUC__
16390 if ac_fn_c_try_cpp "$LINENO"; then :
16392 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16393 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16394 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16395 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16396 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16401 rm -f conftest.err conftest.i conftest.$ac_ext
16402 if test -z "$tmp_exp"; then
16403 curl_cv_have_def___GNUC__=no
16406 curl_cv_have_def___GNUC__=yes
16407 curl_cv_def___GNUC__=$tmp_exp
16412 if test -z "$SED"; then
16413 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16415 if test -z "$GREP"; then
16416 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16425 CURL_DEF_TOKEN __sgi
16430 if ac_fn_c_try_cpp "$LINENO"; then :
16432 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16433 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16434 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16435 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16436 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16441 rm -f conftest.err conftest.i conftest.$ac_ext
16442 if test -z "$tmp_exp"; then
16443 curl_cv_have_def___sgi=no
16446 curl_cv_have_def___sgi=yes
16447 curl_cv_def___sgi=$tmp_exp
16451 if test "$curl_cv_have_def___GNUC__" = "no" &&
16452 test "$curl_cv_have_def___sgi" = "yes" &&
16453 test "$compiler_id" = "unknown"; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16455 $as_echo "yes" >&6; }
16456 compiler_id="SGI_MIPS_C"
16457 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16460 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16461 flags_opt_yes="-O2"
16462 flags_opt_off="-O0"
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16465 $as_echo "no" >&6; }
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16470 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16472 if test -z "$SED"; then
16473 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16475 if test -z "$GREP"; then
16476 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16485 CURL_DEF_TOKEN __SUNPRO_C
16490 if ac_fn_c_try_cpp "$LINENO"; then :
16492 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16493 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16494 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16495 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16496 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16501 rm -f conftest.err conftest.i conftest.$ac_ext
16502 if test -z "$tmp_exp"; then
16503 curl_cv_have_def___SUNPRO_C=no
16506 curl_cv_have_def___SUNPRO_C=yes
16507 curl_cv_def___SUNPRO_C=$tmp_exp
16511 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16513 $as_echo "yes" >&6; }
16514 compiler_id="SUNPRO_C"
16515 flags_dbg_all="-g -s"
16518 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16519 flags_opt_yes="-xO2"
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16528 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16530 if test -z "$SED"; then
16531 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16533 if test -z "$GREP"; then
16534 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16543 CURL_DEF_TOKEN __TINYC__
16548 if ac_fn_c_try_cpp "$LINENO"; then :
16550 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16551 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16552 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16553 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16554 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16559 rm -f conftest.err conftest.i conftest.$ac_ext
16560 if test -z "$tmp_exp"; then
16561 curl_cv_have_def___TINYC__=no
16564 curl_cv_have_def___TINYC__=yes
16565 curl_cv_def___TINYC__=$tmp_exp
16569 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16571 $as_echo "yes" >&6; }
16572 compiler_id="TINY_C"
16573 flags_dbg_all="-g -b"
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16581 $as_echo "no" >&6; }
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16586 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16588 if test -z "$SED"; then
16589 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16591 if test -z "$GREP"; then
16592 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16601 CURL_DEF_TOKEN __WATCOMC__
16606 if ac_fn_c_try_cpp "$LINENO"; then :
16608 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16609 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16610 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16611 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16612 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16617 rm -f conftest.err conftest.i conftest.$ac_ext
16618 if test -z "$tmp_exp"; then
16619 curl_cv_have_def___WATCOMC__=no
16622 curl_cv_have_def___WATCOMC__=yes
16623 curl_cv_def___WATCOMC__=$tmp_exp
16627 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16629 $as_echo "yes" >&6; }
16631 if test -z "$SED"; then
16632 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16634 if test -z "$GREP"; then
16635 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16644 CURL_DEF_TOKEN __UNIX__
16649 if ac_fn_c_try_cpp "$LINENO"; then :
16651 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16652 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16653 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16654 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16655 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16660 rm -f conftest.err conftest.i conftest.$ac_ext
16661 if test -z "$tmp_exp"; then
16662 curl_cv_have_def___UNIX__=no
16665 curl_cv_have_def___UNIX__=yes
16666 curl_cv_def___UNIX__=$tmp_exp
16670 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16671 compiler_id="WATCOM_UNIX_C"
16672 flags_dbg_all="-g1 -g1+ -g2 -g3"
16673 flags_dbg_yes="-g2"
16675 flags_opt_all="-O0 -O1 -O2 -O3"
16676 flags_opt_yes="-O2"
16677 flags_opt_off="-O0"
16679 compiler_id="WATCOM_WINDOWS_C"
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16693 if test "$compiler_id" = "unknown"; then
16696 *** Warning: This configure script does not have information about the
16697 *** compiler you are using, relative to the flags required to enable or
16698 *** disable generation of debug info, optimization options or warnings.
16700 *** Whatever settings are present in CFLAGS will be used for this run.
16702 *** If you wish to help the cURL project to better support your compiler
16703 *** you can report this and the required info on the libcurl development
16704 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16712 eval _sqz_input=\$$1
16713 for _sqz_token in $_sqz_input; do
16714 if test -z "$_sqz_result"; then
16715 _sqz_result="$_sqz_token"
16717 _sqz_result="$_sqz_result $_sqz_token"
16720 eval $1=\$_sqz_result
16726 if test "$compiler_id" != "unknown"; then
16728 if test "$compiler_id" = "GNU_C" ||
16729 test "$compiler_id" = "CLANG"; then
16731 if test "$compiler_id" = "GNU_C" ||
16732 test "$compiler_id" = "CLANG"; then
16733 tmp_has_include="no"
16734 tmp_chg_FLAGS="$CFLAGS"
16735 for word1 in $tmp_chg_FLAGS; do
16738 tmp_has_include="yes"
16742 if test "$tmp_has_include" = "yes"; then
16743 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16744 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16745 CFLAGS="$tmp_chg_FLAGS"
16748 tmp_has_include="no"
16749 tmp_chg_FLAGS="$CPPFLAGS"
16750 for word1 in $tmp_chg_FLAGS; do
16753 tmp_has_include="yes"
16757 if test "$tmp_has_include" = "yes"; then
16758 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16759 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16760 CPPFLAGS="$tmp_chg_FLAGS"
16767 tmp_save_CPPFLAGS="$CPPFLAGS"
16768 tmp_save_CFLAGS="$CFLAGS"
16772 case "$compiler_id" in
16776 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16781 tmp_CFLAGS="$tmp_CFLAGS -std1"
16782 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16783 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16784 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16789 tmp_CFLAGS="$tmp_CFLAGS"
16794 tmp_CFLAGS="$tmp_CFLAGS -z"
16795 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16800 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16801 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16802 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16807 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16808 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
16809 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
16814 tmp_CFLAGS="$tmp_CFLAGS"
16819 tmp_CFLAGS="$tmp_CFLAGS -n"
16824 tmp_CFLAGS="$tmp_CFLAGS"
16829 tmp_CFLAGS="$tmp_CFLAGS"
16834 tmp_CFLAGS="$tmp_CFLAGS"
16839 tmp_CFLAGS="$tmp_CFLAGS"
16844 tmp_CFLAGS="$tmp_CFLAGS"
16849 tmp_CFLAGS="$tmp_CFLAGS"
16854 squeeze tmp_CPPFLAGS
16857 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16859 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16860 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16861 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16865 tmp_compiler_works="unknown"
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16882 if ac_fn_c_try_compile "$LINENO"; then :
16884 tmp_compiler_works="yes"
16888 tmp_compiler_works="no"
16890 sed 's/^/cc-fail: /' conftest.err >&6
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 if test "$tmp_compiler_works" = "yes"; then
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16912 if ac_fn_c_try_link "$LINENO"; then :
16914 tmp_compiler_works="yes"
16918 tmp_compiler_works="no"
16920 sed 's/^/link-fail: /' conftest.err >&6
16924 rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16927 if test "x$cross_compiling" != "xyes" &&
16928 test "$tmp_compiler_works" = "yes"; then
16929 if test "$cross_compiling" = yes; then :
16930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16932 as_fn_error $? "cannot run test program while cross compiling
16933 See \`config.log' for more details" "$LINENO" 5; }
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16940 # include <stdlib.h>
16954 if ac_fn_c_try_run "$LINENO"; then :
16956 tmp_compiler_works="yes"
16960 tmp_compiler_works="no"
16962 echo "run-fail: test program exited with status $ac_status" >&6
16966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16967 conftest.$ac_objext conftest.beam conftest.$ac_ext
16971 if test "$tmp_compiler_works" = "yes"; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16974 $as_echo "yes" >&6; }
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16976 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981 $as_echo "no" >&6; }
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16983 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16984 CPPFLAGS="$tmp_save_CPPFLAGS"
16985 CFLAGS="$tmp_save_CFLAGS"
16995 if test "$compiler_id" != "unknown"; then
16997 tmp_save_CFLAGS="$CFLAGS"
16998 tmp_save_CPPFLAGS="$CPPFLAGS"
17001 tmp_CFLAGS="$CFLAGS"
17002 tmp_CPPFLAGS="$CPPFLAGS"
17005 for word1 in $tmp_CFLAGS; do
17006 ac_var_strip_word="no"
17007 for word2 in $flags_dbg_all; do
17008 if test "$word1" = "$word2"; then
17009 ac_var_strip_word="yes"
17012 if test "$ac_var_strip_word" = "no"; then
17013 ac_var_stripped="$ac_var_stripped $word1"
17016 tmp_CFLAGS="$ac_var_stripped"
17021 for word1 in $tmp_CPPFLAGS; do
17022 ac_var_strip_word="no"
17023 for word2 in $flags_dbg_all; do
17024 if test "$word1" = "$word2"; then
17025 ac_var_strip_word="yes"
17028 if test "$ac_var_strip_word" = "no"; then
17029 ac_var_stripped="$ac_var_stripped $word1"
17032 tmp_CPPFLAGS="$ac_var_stripped"
17033 squeeze tmp_CPPFLAGS
17036 if test "$want_debug" = "yes"; then
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17038 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17039 tmp_options="$flags_dbg_yes"
17041 if test "$want_debug" = "no"; then
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17043 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17044 tmp_options="$flags_dbg_off"
17047 if test "$flags_prefer_cppflags" = "yes"; then
17048 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17049 CFLAGS="$tmp_CFLAGS"
17051 CPPFLAGS="$tmp_CPPFLAGS"
17052 CFLAGS="$tmp_CFLAGS $tmp_options"
17057 tmp_compiler_works="unknown"
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17074 if ac_fn_c_try_compile "$LINENO"; then :
17076 tmp_compiler_works="yes"
17080 tmp_compiler_works="no"
17082 sed 's/^/cc-fail: /' conftest.err >&6
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087 if test "$tmp_compiler_works" = "yes"; then
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17104 if ac_fn_c_try_link "$LINENO"; then :
17106 tmp_compiler_works="yes"
17110 tmp_compiler_works="no"
17112 sed 's/^/link-fail: /' conftest.err >&6
17116 rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17119 if test "x$cross_compiling" != "xyes" &&
17120 test "$tmp_compiler_works" = "yes"; then
17121 if test "$cross_compiling" = yes; then :
17122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17124 as_fn_error $? "cannot run test program while cross compiling
17125 See \`config.log' for more details" "$LINENO" 5; }
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17132 # include <stdlib.h>
17146 if ac_fn_c_try_run "$LINENO"; then :
17148 tmp_compiler_works="yes"
17152 tmp_compiler_works="no"
17154 echo "run-fail: test program exited with status $ac_status" >&6
17158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17159 conftest.$ac_objext conftest.beam conftest.$ac_ext
17163 if test "$tmp_compiler_works" = "yes"; then
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17166 $as_echo "yes" >&6; }
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17168 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17173 $as_echo "no" >&6; }
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17175 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17176 CPPFLAGS="$tmp_save_CPPFLAGS"
17177 CFLAGS="$tmp_save_CFLAGS"
17186 if test "$compiler_id" != "unknown"; then
17188 tmp_save_CFLAGS="$CFLAGS"
17189 tmp_save_CPPFLAGS="$CPPFLAGS"
17192 tmp_CFLAGS="$CFLAGS"
17193 tmp_CPPFLAGS="$CPPFLAGS"
17194 honor_optimize_option="yes"
17197 if test "$want_optimize" = "assume_no" ||
17198 test "$want_optimize" = "assume_yes"; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17200 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17203 ac_var_match_word="no"
17204 for word1 in $tmp_CFLAGS; do
17205 for word2 in $flags_opt_all; do
17206 if test "$word1" = "$word2"; then
17207 ac_var_match_word="yes"
17212 if test "$ac_var_match_word" = "yes"; then
17214 honor_optimize_option="no"
17221 ac_var_match_word="no"
17222 for word1 in $tmp_CPPFLAGS; do
17223 for word2 in $flags_opt_all; do
17224 if test "$word1" = "$word2"; then
17225 ac_var_match_word="yes"
17230 if test "$ac_var_match_word" = "yes"; then
17232 honor_optimize_option="no"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17238 $as_echo "$honor_optimize_option" >&6; }
17239 if test "$honor_optimize_option" = "yes"; then
17240 if test "$want_optimize" = "assume_yes"; then
17241 want_optimize="yes"
17243 if test "$want_optimize" = "assume_no"; then
17249 if test "$honor_optimize_option" = "yes"; then
17252 for word1 in $tmp_CFLAGS; do
17253 ac_var_strip_word="no"
17254 for word2 in $flags_opt_all; do
17255 if test "$word1" = "$word2"; then
17256 ac_var_strip_word="yes"
17259 if test "$ac_var_strip_word" = "no"; then
17260 ac_var_stripped="$ac_var_stripped $word1"
17263 tmp_CFLAGS="$ac_var_stripped"
17268 for word1 in $tmp_CPPFLAGS; do
17269 ac_var_strip_word="no"
17270 for word2 in $flags_opt_all; do
17271 if test "$word1" = "$word2"; then
17272 ac_var_strip_word="yes"
17275 if test "$ac_var_strip_word" = "no"; then
17276 ac_var_stripped="$ac_var_stripped $word1"
17279 tmp_CPPFLAGS="$ac_var_stripped"
17280 squeeze tmp_CPPFLAGS
17282 if test "$want_optimize" = "yes"; then
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17284 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17285 tmp_options="$flags_opt_yes"
17287 if test "$want_optimize" = "no"; then
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17289 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17290 tmp_options="$flags_opt_off"
17292 if test "$flags_prefer_cppflags" = "yes"; then
17293 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17294 CFLAGS="$tmp_CFLAGS"
17296 CPPFLAGS="$tmp_CPPFLAGS"
17297 CFLAGS="$tmp_CFLAGS $tmp_options"
17302 tmp_compiler_works="unknown"
17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17319 if ac_fn_c_try_compile "$LINENO"; then :
17321 tmp_compiler_works="yes"
17325 tmp_compiler_works="no"
17327 sed 's/^/cc-fail: /' conftest.err >&6
17331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332 if test "$tmp_compiler_works" = "yes"; then
17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17349 if ac_fn_c_try_link "$LINENO"; then :
17351 tmp_compiler_works="yes"
17355 tmp_compiler_works="no"
17357 sed 's/^/link-fail: /' conftest.err >&6
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17364 if test "x$cross_compiling" != "xyes" &&
17365 test "$tmp_compiler_works" = "yes"; then
17366 if test "$cross_compiling" = yes; then :
17367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17369 as_fn_error $? "cannot run test program while cross compiling
17370 See \`config.log' for more details" "$LINENO" 5; }
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17377 # include <stdlib.h>
17391 if ac_fn_c_try_run "$LINENO"; then :
17393 tmp_compiler_works="yes"
17397 tmp_compiler_works="no"
17399 echo "run-fail: test program exited with status $ac_status" >&6
17403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17404 conftest.$ac_objext conftest.beam conftest.$ac_ext
17408 if test "$tmp_compiler_works" = "yes"; then
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17411 $as_echo "yes" >&6; }
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17413 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17418 $as_echo "no" >&6; }
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17420 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17421 CPPFLAGS="$tmp_save_CPPFLAGS"
17422 CFLAGS="$tmp_save_CFLAGS"
17432 if test "$compiler_id" != "unknown"; then
17434 tmp_save_CPPFLAGS="$CPPFLAGS"
17435 tmp_save_CFLAGS="$CFLAGS"
17439 case "$compiler_id" in
17443 if test "$want_warnings" = "yes"; then
17444 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17445 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17446 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17447 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17448 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17449 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17450 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17451 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17452 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17453 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17454 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17455 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17456 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17457 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17458 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17459 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17460 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17462 if test "$compiler_num" -ge "101"; then
17463 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17470 if test "$want_warnings" = "yes"; then
17471 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17477 if test "$want_warnings" = "yes"; then
17479 if test "x$cross_compiling" != "xyes" ||
17480 test "$compiler_num" -ge "300"; then
17481 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17484 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17486 if test "$compiler_num" -ge "104"; then
17487 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17488 if test "x$cross_compiling" != "xyes" ||
17489 test "$compiler_num" -ge "300"; then
17490 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17494 if test "$compiler_num" -ge "207"; then
17495 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17496 if test "x$cross_compiling" != "xyes" ||
17497 test "$compiler_num" -ge "300"; then
17498 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17499 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17503 if test "$compiler_num" -ge "295"; then
17504 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17507 if test "$compiler_num" -ge "296"; then
17508 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17509 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17510 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17513 if test "$compiler_num" -ge "297"; then
17514 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17517 if test "$compiler_num" -ge "300"; then
17518 tmp_CFLAGS="$tmp_CFLAGS"
17521 if test "$compiler_num" -ge "303"; then
17522 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17525 if test "$compiler_num" -ge "304"; then
17526 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17529 if test "$compiler_num" -ge "400"; then
17530 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17533 if test "$compiler_num" -ge "402"; then
17534 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17537 if test "$compiler_num" -ge "403"; then
17538 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17539 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17540 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17541 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17544 if test "$compiler_num" -ge "405"; then
17545 if test "$curl_cv_have_def__WIN32" = "yes"; then
17546 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17552 if test "$compiler_num" -ge "300"; then
17553 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17555 if test "x$cross_compiling" = "xyes"; then
17556 if test "$compiler_num" -ge "104"; then
17557 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17559 if test "$compiler_num" -ge "207"; then
17560 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17561 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17569 if test "$want_warnings" = "yes"; then
17570 tmp_CFLAGS="$tmp_CFLAGS +w1"
17576 tmp_CFLAGS="$tmp_CFLAGS"
17581 if test "$want_warnings" = "yes"; then
17582 if test "$compiler_num" -gt "600"; then
17583 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17584 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17585 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17586 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17587 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17588 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17589 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17590 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17591 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17592 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17593 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17596 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17597 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17598 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17599 if test "$compiler_num" -ge "1000"; then
17600 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17606 tmp_CFLAGS="$tmp_CFLAGS"
17611 if test "$want_warnings" = "yes"; then
17612 tmp_CFLAGS="$tmp_CFLAGS"
17618 if test "$want_warnings" = "yes"; then
17619 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17625 if test "$want_warnings" = "yes"; then
17626 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17627 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17633 if test "$want_warnings" = "yes"; then
17634 tmp_CFLAGS="$tmp_CFLAGS -v"
17640 if test "$want_warnings" = "yes"; then
17641 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17642 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17643 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17649 if test "$want_warnings" = "yes"; then
17650 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17656 tmp_CFLAGS="$tmp_CFLAGS"
17661 squeeze tmp_CPPFLAGS
17664 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17666 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17667 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17668 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17672 tmp_compiler_works="unknown"
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17689 if ac_fn_c_try_compile "$LINENO"; then :
17691 tmp_compiler_works="yes"
17695 tmp_compiler_works="no"
17697 sed 's/^/cc-fail: /' conftest.err >&6
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 if test "$tmp_compiler_works" = "yes"; then
17703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17719 if ac_fn_c_try_link "$LINENO"; then :
17721 tmp_compiler_works="yes"
17725 tmp_compiler_works="no"
17727 sed 's/^/link-fail: /' conftest.err >&6
17731 rm -f core conftest.err conftest.$ac_objext \
17732 conftest$ac_exeext conftest.$ac_ext
17734 if test "x$cross_compiling" != "xyes" &&
17735 test "$tmp_compiler_works" = "yes"; then
17736 if test "$cross_compiling" = yes; then :
17737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17739 as_fn_error $? "cannot run test program while cross compiling
17740 See \`config.log' for more details" "$LINENO" 5; }
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17747 # include <stdlib.h>
17761 if ac_fn_c_try_run "$LINENO"; then :
17763 tmp_compiler_works="yes"
17767 tmp_compiler_works="no"
17769 echo "run-fail: test program exited with status $ac_status" >&6
17773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17774 conftest.$ac_objext conftest.beam conftest.$ac_ext
17778 if test "$tmp_compiler_works" = "yes"; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17781 $as_echo "yes" >&6; }
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17783 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17790 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17791 CPPFLAGS="$tmp_save_CPPFLAGS"
17792 CFLAGS="$tmp_save_CFLAGS"
17801 if test "$compiler_id" = "INTEL_UNIX_C"; then
17803 if test "$compiler_num" -ge "1000"; then
17804 CFLAGS="$CFLAGS -shared-intel"
17805 elif test "$compiler_num" -ge "900"; then
17806 CFLAGS="$CFLAGS -i-dynamic"
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17813 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17822 force compilation error
17829 if ac_fn_c_try_compile "$LINENO"; then :
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832 $as_echo "no" >&6; }
17833 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17838 $as_echo "yes" >&6; }
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17845 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17850 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17862 if ac_fn_c_try_compile "$LINENO"; then :
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17866 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17871 $as_echo "yes" >&6; }
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17878 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17883 # include <stdlib.h>
17897 int j = rand(i[0]);
17906 if ac_fn_c_try_compile "$LINENO"; then :
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17909 $as_echo "no" >&6; }
17910 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17915 $as_echo "yes" >&6; }
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17922 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17923 supports_symbol_hiding="no"
17924 symbol_hiding_CFLAGS=""
17925 symbol_hiding_EXTERN=""
17928 case "$compiler_id" in
17930 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17931 tmp_CFLAGS="-fvisibility=hidden"
17932 supports_symbol_hiding="yes"
17935 if test "$compiler_num" -ge "304"; then
17936 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17937 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17938 tmp_CFLAGS="-fvisibility=hidden"
17939 supports_symbol_hiding="yes"
17944 if test "$compiler_num" -ge "900"; then
17945 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17946 tmp_save_CFLAGS="$CFLAGS"
17947 CFLAGS="$CFLAGS -fvisibility=hidden"
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17952 # include <stdio.h>
17957 printf("icc fvisibility bug test");
17964 if ac_fn_c_try_link "$LINENO"; then :
17966 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17967 tmp_CFLAGS="-fvisibility=hidden"
17968 supports_symbol_hiding="yes"
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17973 CFLAGS="$tmp_save_CFLAGS"
17978 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17979 tmp_EXTERN="__global"
17980 tmp_CFLAGS="-xldscope=hidden"
17981 supports_symbol_hiding="yes"
17985 if test "$supports_symbol_hiding" = "yes"; then
17986 tmp_save_CFLAGS="$CFLAGS"
17987 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17993 $tmp_EXTERN char *dummy(char *buff);
17994 char *dummy(char *buff)
18006 char *r = dummy(&b[0]);
18015 if ac_fn_c_try_compile "$LINENO"; then :
18017 supports_symbol_hiding="yes"
18018 if test -f conftest.err; then
18019 grep 'visibility' conftest.err >/dev/null
18020 if test "$?" -eq "0"; then
18021 supports_symbol_hiding="no"
18027 supports_symbol_hiding="no"
18029 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18030 sed 's/^/cc-err: /' conftest.err >&6
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 CFLAGS="$tmp_save_CFLAGS"
18037 if test "$supports_symbol_hiding" = "yes"; then
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18039 $as_echo "yes" >&6; }
18040 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18041 symbol_hiding_EXTERN="$tmp_EXTERN"
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18044 $as_echo "no" >&6; }
18049 supports_curldebug="unknown"
18050 if test "$want_curldebug" = "yes"; then
18051 if test "x$enable_shared" != "xno" &&
18052 test "x$enable_shared" != "xyes"; then
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18054 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18055 supports_curldebug="no"
18057 if test "x$enable_static" != "xno" &&
18058 test "x$enable_static" != "xyes"; then
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18060 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18061 supports_curldebug="no"
18063 if test "$supports_curldebug" != "no"; then
18064 if test "$enable_shared" = "yes" &&
18065 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18066 supports_curldebug="no"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18068 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18073 if test "$want_curldebug" = "yes"; then
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18075 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18076 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18078 $as_echo "$supports_curldebug" >&6; }
18079 if test "$supports_curldebug" = "no"; then
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18081 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18082 want_curldebug="no"
18086 if test "$want_curldebug" = "yes"; then
18087 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18090 if test "$want_debug" = "yes"; then
18091 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18095 if test x$want_curldebug = xyes; then
18097 CURLDEBUG_FALSE='#'
18104 supports_unittests=yes
18105 # cross-compilation of unit tests static library/programs fails when
18106 # libcurl shared library is built. This might be due to a libtool or
18107 # automake issue. In this case we disable unit tests.
18108 if test "x$cross_compiling" != "xno" &&
18109 test "x$enable_shared" != "xno"; then
18110 supports_unittests=no
18113 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18114 # a problem related with OpenSSL headers and library versions not matching.
18115 # Disable unit tests while time to further investigate this is found.
18118 if test "$compiler_id" = "GNU_C"; then
18119 supports_unittests=no
18124 # All AIX autobuilds fails unit tests linking against unittests library
18125 # due to unittests library being built with no symbols or members. Libtool ?
18126 # Disable unit tests while time to further investigate this is found.
18129 supports_unittests=no
18133 if test "x$want_debug" = "xyes" &&
18134 test "x$supports_unittests" = "xyes"; then
18139 if test x$want_unittests = xyes; then
18140 BUILD_UNITTESTS_TRUE=
18141 BUILD_UNITTESTS_FALSE='#'
18143 BUILD_UNITTESTS_TRUE='#'
18144 BUILD_UNITTESTS_FALSE=
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18152 $as_echo_n "checking for windows.h... " >&6; }
18153 if ${ac_cv_header_windows_h+:} false; then :
18154 $as_echo_n "(cached) " >&6
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h. */
18162 #ifndef WIN32_LEAN_AND_MEAN
18163 #define WIN32_LEAN_AND_MEAN
18165 #include <windows.h>
18170 #if defined(__CYGWIN__) || defined(__CEGCC__)
18171 HAVE_WINDOWS_H shall not be defined.
18173 int dummy=2*WINVER;
18181 if ac_fn_c_try_compile "$LINENO"; then :
18183 ac_cv_header_windows_h="yes"
18187 ac_cv_header_windows_h="no"
18190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18194 $as_echo "$ac_cv_header_windows_h" >&6; }
18195 case "$ac_cv_header_windows_h" in
18198 cat >>confdefs.h <<_ACEOF
18199 #define HAVE_WINDOWS_H 1
18203 cat >>confdefs.h <<_ACEOF
18204 #define WIN32_LEAN_AND_MEAN 1
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18212 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18213 if ${ac_cv_native_windows+:} false; then :
18214 $as_echo_n "(cached) " >&6
18217 if test "$ac_cv_header_windows_h" = "no"; then
18218 ac_cv_native_windows="no"
18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18228 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18229 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18232 Not a native Windows build target.
18240 if ac_fn_c_try_compile "$LINENO"; then :
18242 ac_cv_native_windows="yes"
18246 ac_cv_native_windows="no"
18249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18254 $as_echo "$ac_cv_native_windows" >&6; }
18255 if test "x$ac_cv_native_windows" = xyes; then
18256 DOING_NATIVE_WINDOWS_TRUE=
18257 DOING_NATIVE_WINDOWS_FALSE='#'
18259 DOING_NATIVE_WINDOWS_TRUE='#'
18260 DOING_NATIVE_WINDOWS_FALSE=
18264 case X-"$ac_cv_native_windows" in
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18268 $as_echo_n "checking for winsock.h... " >&6; }
18269 if ${ac_cv_header_winsock_h+:} false; then :
18270 $as_echo_n "(cached) " >&6
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18278 #ifndef WIN32_LEAN_AND_MEAN
18279 #define WIN32_LEAN_AND_MEAN
18281 #include <windows.h>
18282 #include <winsock.h>
18287 #if defined(__CYGWIN__) || defined(__CEGCC__)
18288 HAVE_WINSOCK_H shall not be defined.
18290 int dummy=WSACleanup();
18298 if ac_fn_c_try_compile "$LINENO"; then :
18300 ac_cv_header_winsock_h="yes"
18304 ac_cv_header_winsock_h="no"
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18311 $as_echo "$ac_cv_header_winsock_h" >&6; }
18312 case "$ac_cv_header_winsock_h" in
18315 cat >>confdefs.h <<_ACEOF
18316 #define HAVE_WINSOCK_H 1
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18324 $as_echo_n "checking for winsock2.h... " >&6; }
18325 if ${ac_cv_header_winsock2_h+:} false; then :
18326 $as_echo_n "(cached) " >&6
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18334 #ifndef WIN32_LEAN_AND_MEAN
18335 #define WIN32_LEAN_AND_MEAN
18337 #include <windows.h>
18338 #include <winsock2.h>
18343 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18344 HAVE_WINSOCK2_H shall not be defined.
18346 int dummy=2*IPPROTO_ESP;
18354 if ac_fn_c_try_compile "$LINENO"; then :
18356 ac_cv_header_winsock2_h="yes"
18360 ac_cv_header_winsock2_h="no"
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18367 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18368 case "$ac_cv_header_winsock2_h" in
18371 cat >>confdefs.h <<_ACEOF
18372 #define HAVE_WINSOCK2_H 1
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18380 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18381 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18382 $as_echo_n "(cached) " >&6
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18390 #ifndef WIN32_LEAN_AND_MEAN
18391 #define WIN32_LEAN_AND_MEAN
18393 #include <windows.h>
18394 #include <winsock2.h>
18395 #include <ws2tcpip.h>
18400 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18401 HAVE_WS2TCPIP_H shall not be defined.
18403 int dummy=2*IP_PKTINFO;
18411 if ac_fn_c_try_compile "$LINENO"; then :
18413 ac_cv_header_ws2tcpip_h="yes"
18417 ac_cv_header_ws2tcpip_h="no"
18420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18424 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18425 case "$ac_cv_header_ws2tcpip_h" in
18428 cat >>confdefs.h <<_ACEOF
18429 #define HAVE_WS2TCPIP_H 1
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18437 $as_echo_n "checking for winldap.h... " >&6; }
18438 if ${ac_cv_header_winldap_h+:} false; then :
18439 $as_echo_n "(cached) " >&6
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18447 #ifdef HAVE_WINDOWS_H
18448 #ifndef WIN32_LEAN_AND_MEAN
18449 #define WIN32_LEAN_AND_MEAN
18451 #include <windows.h>
18453 #include <winldap.h>
18458 #if defined(__CYGWIN__) || defined(__CEGCC__)
18459 HAVE_WINLDAP_H shall not be defined.
18461 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18462 ULONG res = ldap_unbind(ldp);
18470 if ac_fn_c_try_compile "$LINENO"; then :
18472 ac_cv_header_winldap_h="yes"
18476 ac_cv_header_winldap_h="no"
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
18483 $as_echo "$ac_cv_header_winldap_h" >&6; }
18484 case "$ac_cv_header_winldap_h" in
18487 cat >>confdefs.h <<_ACEOF
18488 #define HAVE_WINLDAP_H 1
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18496 $as_echo_n "checking for winber.h... " >&6; }
18497 if ${ac_cv_header_winber_h+:} false; then :
18498 $as_echo_n "(cached) " >&6
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18506 #ifdef HAVE_WINDOWS_H
18507 #ifndef WIN32_LEAN_AND_MEAN
18508 #define WIN32_LEAN_AND_MEAN
18510 #include <windows.h>
18512 #include <winldap.h>
18513 #include <winber.h>
18518 #if defined(__CYGWIN__) || defined(__CEGCC__)
18519 HAVE_WINBER_H shall not be defined.
18521 BERVAL *bvp = NULL;
18522 BerElement *bep = ber_init(bvp);
18531 if ac_fn_c_try_compile "$LINENO"; then :
18533 ac_cv_header_winber_h="yes"
18537 ac_cv_header_winber_h="no"
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
18544 $as_echo "$ac_cv_header_winber_h" >&6; }
18545 case "$ac_cv_header_winber_h" in
18548 cat >>confdefs.h <<_ACEOF
18549 #define HAVE_WINBER_H 1
18557 ac_cv_header_winsock_h="no"
18558 ac_cv_header_winsock2_h="no"
18559 ac_cv_header_ws2tcpip_h="no"
18560 ac_cv_header_winldap_h="no"
18561 ac_cv_header_winber_h="no"
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18566 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18567 curl_win32_file_api="no"
18568 if test "$ac_cv_header_windows_h" = "yes"; then
18569 if test x"$enable_largefile" != "xno"; then
18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18578 #if !defined(_WIN32_WCE) && \
18579 (defined(__MINGW32__) || \
18580 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18583 WIN32 large file API not supported.
18591 if ac_fn_c_try_compile "$LINENO"; then :
18593 curl_win32_file_api="win32_large_files"
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18598 if test "$curl_win32_file_api" = "no"; then
18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600 /* end confdefs.h. */
18607 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18610 WIN32 small file API not supported.
18618 if ac_fn_c_try_compile "$LINENO"; then :
18620 curl_win32_file_api="win32_small_files"
18623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626 case "$curl_win32_file_api" in
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18629 $as_echo "yes (large file enabled)" >&6; }
18631 cat >>confdefs.h <<_ACEOF
18632 #define USE_WIN32_LARGE_FILES 1
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18638 $as_echo "yes (large file disabled)" >&6; }
18640 cat >>confdefs.h <<_ACEOF
18641 #define USE_WIN32_SMALL_FILES 1
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647 $as_echo "no" >&6; }
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
18653 $as_echo_n "checking whether to support http... " >&6; }
18654 # Check whether --enable-http was given.
18655 if test "${enable_http+set}" = set; then :
18656 enableval=$enable_http; case "$enableval" in
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18659 $as_echo "no" >&6; }
18661 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
18664 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
18665 CURL_DISABLE_HTTP=1
18668 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18670 CURL_DISABLE_RTSP=1
18673 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18674 $as_echo "yes" >&6; }
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18679 $as_echo "yes" >&6; }
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
18684 $as_echo_n "checking whether to support ftp... " >&6; }
18685 # Check whether --enable-ftp was given.
18686 if test "${enable_ftp+set}" = set; then :
18687 enableval=$enable_ftp; case "$enableval" in
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18690 $as_echo "no" >&6; }
18692 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
18697 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18698 $as_echo "yes" >&6; }
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18703 $as_echo "yes" >&6; }
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
18708 $as_echo_n "checking whether to support file... " >&6; }
18709 # Check whether --enable-file was given.
18710 if test "${enable_file+set}" = set; then :
18711 enableval=$enable_file; case "$enableval" in
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 $as_echo "no" >&6; }
18716 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
18718 CURL_DISABLE_FILE=1
18721 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18722 $as_echo "yes" >&6; }
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18727 $as_echo "yes" >&6; }
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
18732 $as_echo_n "checking whether to support ldap... " >&6; }
18733 # Check whether --enable-ldap was given.
18734 if test "${enable_ldap+set}" = set; then :
18735 enableval=$enable_ldap; case "$enableval" in
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18738 $as_echo "no" >&6; }
18740 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18742 CURL_DISABLE_LDAP=1
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747 $as_echo "yes" >&6; }
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
18758 $as_echo_n "checking whether to support ldaps... " >&6; }
18759 # Check whether --enable-ldaps was given.
18760 if test "${enable_ldaps+set}" = set; then :
18761 enableval=$enable_ldaps; case "$enableval" in
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18766 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18768 CURL_DISABLE_LDAPS=1
18771 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
18773 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
18775 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18777 CURL_DISABLE_LDAPS=1
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18781 $as_echo "yes" >&6; }
18783 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18792 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794 $as_echo "no" >&6; }
18796 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18798 CURL_DISABLE_LDAPS=1
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18802 $as_echo "yes" >&6; }
18804 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
18814 $as_echo_n "checking whether to support rtsp... " >&6; }
18815 # Check whether --enable-rtsp was given.
18816 if test "${enable_rtsp+set}" = set; then :
18817 enableval=$enable_rtsp; case "$enableval" in
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 $as_echo "no" >&6; }
18822 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18824 CURL_DISABLE_RTSP=1
18827 *) if test x$CURL_DISABLE_HTTP = x1 ; then
18828 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831 $as_echo "yes" >&6; }
18832 curl_rtsp_msg="enabled"
18837 if test "x$CURL_DISABLE_HTTP" != "x1"; then
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839 $as_echo "yes" >&6; }
18840 curl_rtsp_msg="enabled"
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 $as_echo "no" >&6; }
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
18850 $as_echo_n "checking whether to support proxies... " >&6; }
18851 # Check whether --enable-proxy was given.
18852 if test "${enable_proxy+set}" = set; then :
18853 enableval=$enable_proxy; case "$enableval" in
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18856 $as_echo "no" >&6; }
18858 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
18860 CURL_DISABLE_PROXY=1
18863 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18864 $as_echo "yes" >&6; }
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869 $as_echo "yes" >&6; }
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
18875 $as_echo_n "checking whether to support dict... " >&6; }
18876 # Check whether --enable-dict was given.
18877 if test "${enable_dict+set}" = set; then :
18878 enableval=$enable_dict; case "$enableval" in
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18881 $as_echo "no" >&6; }
18883 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
18885 CURL_DISABLE_DICT=1
18888 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18889 $as_echo "yes" >&6; }
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18894 $as_echo "yes" >&6; }
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
18899 $as_echo_n "checking whether to support telnet... " >&6; }
18900 # Check whether --enable-telnet was given.
18901 if test "${enable_telnet+set}" = set; then :
18902 enableval=$enable_telnet; case "$enableval" in
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905 $as_echo "no" >&6; }
18907 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
18909 CURL_DISABLE_TELNET=1
18912 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18913 $as_echo "yes" >&6; }
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18918 $as_echo "yes" >&6; }
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
18923 $as_echo_n "checking whether to support tftp... " >&6; }
18924 # Check whether --enable-tftp was given.
18925 if test "${enable_tftp+set}" = set; then :
18926 enableval=$enable_tftp; case "$enableval" in
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18931 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
18933 CURL_DISABLE_TFTP=1
18936 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18937 $as_echo "yes" >&6; }
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18942 $as_echo "yes" >&6; }
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
18948 $as_echo_n "checking whether to support pop3... " >&6; }
18949 # Check whether --enable-pop3 was given.
18950 if test "${enable_pop3+set}" = set; then :
18951 enableval=$enable_pop3; case "$enableval" in
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18954 $as_echo "no" >&6; }
18956 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
18958 CURL_DISABLE_POP3=1
18961 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18962 $as_echo "yes" >&6; }
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18967 $as_echo "yes" >&6; }
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
18974 $as_echo_n "checking whether to support imap... " >&6; }
18975 # Check whether --enable-imap was given.
18976 if test "${enable_imap+set}" = set; then :
18977 enableval=$enable_imap; case "$enableval" in
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18982 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
18984 CURL_DISABLE_IMAP=1
18987 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18988 $as_echo "yes" >&6; }
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18993 $as_echo "yes" >&6; }
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19000 $as_echo_n "checking whether to support smb... " >&6; }
19001 # Check whether --enable-smb was given.
19002 if test "${enable_smb+set}" = set; then :
19003 enableval=$enable_smb; case "$enableval" in
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006 $as_echo "no" >&6; }
19008 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19013 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19014 $as_echo "yes" >&6; }
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19019 $as_echo "yes" >&6; }
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19025 $as_echo_n "checking whether to support smtp... " >&6; }
19026 # Check whether --enable-smtp was given.
19027 if test "${enable_smtp+set}" = set; then :
19028 enableval=$enable_smtp; case "$enableval" in
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19031 $as_echo "no" >&6; }
19033 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19035 CURL_DISABLE_SMTP=1
19038 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19039 $as_echo "yes" >&6; }
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19044 $as_echo "yes" >&6; }
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19050 $as_echo_n "checking whether to support gopher... " >&6; }
19051 # Check whether --enable-gopher was given.
19052 if test "${enable_gopher+set}" = set; then :
19053 enableval=$enable_gopher; case "$enableval" in
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19058 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19060 CURL_DISABLE_GOPHER=1
19063 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064 $as_echo "yes" >&6; }
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19069 $as_echo "yes" >&6; }
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19077 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19078 # Check whether --enable-manual was given.
19079 if test "${enable_manual+set}" = set; then :
19080 enableval=$enable_manual; case "$enableval" in
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19083 $as_echo "no" >&6; }
19085 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19086 $as_echo "yes" >&6; }
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19092 $as_echo "yes" >&6; }
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19099 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19100 # Check whether --enable-libcurl_option was given.
19101 if test "${enable_libcurl_option+set}" = set; then :
19102 enableval=$enable_libcurl_option; case "$enableval" in
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19107 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19109 curl_libcurl_msg="no"
19111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19112 $as_echo "yes" >&6; }
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19117 $as_echo "yes" >&6; }
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19124 $as_echo_n "checking whether to use libgcc... " >&6; }
19125 # Check whether --enable-libgcc was given.
19126 if test "${enable_libgcc+set}" = set; then :
19127 enableval=$enable_libgcc; case "$enableval" in
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19131 $as_echo "yes" >&6; }
19133 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19134 $as_echo "no" >&6; }
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 $as_echo "no" >&6; }
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19146 $as_echo_n "checking if X/Open network library is required... " >&6; }
19147 tst_lib_xnet_required="no"
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19154 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19156 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19159 force compilation error
19165 if ac_fn_c_try_compile "$LINENO"; then :
19167 tst_lib_xnet_required="yes"
19168 LIBS="-lxnet $LIBS"
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19173 $as_echo "$tst_lib_xnet_required" >&6; }
19176 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19177 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19178 HAVE_GETHOSTBYNAME="1"
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19182 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19183 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19184 $as_echo_n "(cached) " >&6
19186 ac_check_lib_save_LIBS=$LIBS
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19195 char gethostbyname ();
19198 return gethostbyname ();
19203 if ac_fn_c_try_link "$LINENO"; then :
19204 ac_cv_lib_nsl_gethostbyname=yes
19206 ac_cv_lib_nsl_gethostbyname=no
19208 rm -f core conftest.err conftest.$ac_objext \
19209 conftest$ac_exeext conftest.$ac_ext
19210 LIBS=$ac_check_lib_save_LIBS
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19213 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19214 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19215 HAVE_GETHOSTBYNAME="1"
19224 if test "$HAVE_GETHOSTBYNAME" != "1"
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19227 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19228 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19229 $as_echo_n "(cached) " >&6
19231 ac_check_lib_save_LIBS=$LIBS
19232 LIBS="-lsocket $LIBS"
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19240 char gethostbyname ();
19243 return gethostbyname ();
19248 if ac_fn_c_try_link "$LINENO"; then :
19249 ac_cv_lib_socket_gethostbyname=yes
19251 ac_cv_lib_socket_gethostbyname=no
19253 rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19258 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19259 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19260 HAVE_GETHOSTBYNAME="1"
19261 LIBS="-lsocket $LIBS"
19267 if test "$HAVE_GETHOSTBYNAME" != "1"
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19270 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19271 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19272 $as_echo_n "(cached) " >&6
19274 ac_check_lib_save_LIBS=$LIBS
19275 LIBS="-lwatt $LIBS"
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19283 char gethostbyname ();
19286 return gethostbyname ();
19291 if ac_fn_c_try_link "$LINENO"; then :
19292 ac_cv_lib_watt_gethostbyname=yes
19294 ac_cv_lib_watt_gethostbyname=no
19296 rm -f core conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
19298 LIBS=$ac_check_lib_save_LIBS
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19301 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19302 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19303 HAVE_GETHOSTBYNAME="1"
19304 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19305 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19306 LIBS="-lwatt $LIBS"
19312 if test "$HAVE_GETHOSTBYNAME" != "1"
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19315 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19316 my_ac_save_LIBS=$LIBS
19317 LIBS="-lnsl -lsocket $LIBS"
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19333 if ac_fn_c_try_link "$LINENO"; then :
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19336 $as_echo "yes" >&6; }
19337 HAVE_GETHOSTBYNAME="1"
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342 $as_echo "no" >&6; }
19343 LIBS=$my_ac_save_LIBS
19346 rm -f core conftest.err conftest.$ac_objext \
19347 conftest$ac_exeext conftest.$ac_ext
19350 if test "$HAVE_GETHOSTBYNAME" != "1"
19352 if test "$ac_cv_header_windows_h" = "yes"; then
19353 if test "$ac_cv_header_winsock_h" = "yes"; then
19356 winsock_LIB="-lwinsock"
19359 winsock_LIB="-lwsock32"
19363 if test "$ac_cv_header_winsock2_h" = "yes"; then
19364 winsock_LIB="-lws2_32"
19366 if test ! -z "$winsock_LIB"; then
19367 my_ac_save_LIBS=$LIBS
19368 LIBS="$winsock_LIB $LIBS"
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19370 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19372 /* end confdefs.h. */
19375 #ifdef HAVE_WINDOWS_H
19376 #ifndef WIN32_LEAN_AND_MEAN
19377 #define WIN32_LEAN_AND_MEAN
19379 #include <windows.h>
19380 #ifdef HAVE_WINSOCK2_H
19381 #include <winsock2.h>
19383 #ifdef HAVE_WINSOCK_H
19384 #include <winsock.h>
19392 gethostbyname("www.dummysite.com");
19399 if ac_fn_c_try_link "$LINENO"; then :
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19402 $as_echo "yes" >&6; }
19403 HAVE_GETHOSTBYNAME="1"
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19408 $as_echo "no" >&6; }
19410 LIBS=$my_ac_save_LIBS
19413 rm -f core conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19419 if test "$HAVE_GETHOSTBYNAME" != "1"
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19422 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19427 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19433 gethostbyname("www.dummysite.com");
19440 if ac_fn_c_try_link "$LINENO"; then :
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19443 $as_echo "yes" >&6; }
19444 HAVE_GETHOSTBYNAME="1"
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449 $as_echo "no" >&6; }
19452 rm -f core conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext conftest.$ac_ext
19456 if test "$HAVE_GETHOSTBYNAME" != "1"
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19459 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19470 gethostbyname("www.dummysite.com");
19477 if ac_fn_c_try_link "$LINENO"; then :
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19480 $as_echo "yes" >&6; }
19481 HAVE_GETHOSTBYNAME="1"
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486 $as_echo "no" >&6; }
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19493 if test "$HAVE_GETHOSTBYNAME" != "1"
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19496 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19497 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 ac_check_lib_save_LIBS=$LIBS
19501 LIBS="-lnetwork $LIBS"
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19509 char gethostbyname ();
19512 return gethostbyname ();
19517 if ac_fn_c_try_link "$LINENO"; then :
19518 ac_cv_lib_network_gethostbyname=yes
19520 ac_cv_lib_network_gethostbyname=no
19522 rm -f core conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19527 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19528 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19529 HAVE_GETHOSTBYNAME="1"
19530 LIBS="-lnetwork $LIBS"
19536 if test "$HAVE_GETHOSTBYNAME" != "1"
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19539 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19540 if ${ac_cv_lib_net_gethostbyname+:} false; then :
19541 $as_echo_n "(cached) " >&6
19543 ac_check_lib_save_LIBS=$LIBS
19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h. */
19552 char gethostbyname ();
19555 return gethostbyname ();
19560 if ac_fn_c_try_link "$LINENO"; then :
19561 ac_cv_lib_net_gethostbyname=yes
19563 ac_cv_lib_net_gethostbyname=no
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19570 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19571 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19572 HAVE_GETHOSTBYNAME="1"
19580 if test "$HAVE_GETHOSTBYNAME" != "1"; then
19581 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19584 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19585 if test "x$ac_cv_func_strcasecmp" = xyes; then :
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19589 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19590 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19591 $as_echo_n "(cached) " >&6
19593 ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lresolve $LIBS"
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19602 char strcasecmp ();
19605 return strcasecmp ();
19610 if ac_fn_c_try_link "$LINENO"; then :
19611 ac_cv_lib_resolve_strcasecmp=yes
19613 ac_cv_lib_resolve_strcasecmp=no
19615 rm -f core conftest.err conftest.$ac_objext \
19616 conftest$ac_exeext conftest.$ac_ext
19617 LIBS=$ac_check_lib_save_LIBS
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19620 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19621 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19622 cat >>confdefs.h <<_ACEOF
19623 #define HAVE_LIBRESOLVE 1
19626 LIBS="-lresolve $LIBS"
19633 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19635 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19636 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19637 $as_echo_n "(cached) " >&6
19639 ac_check_lib_save_LIBS=$LIBS
19640 LIBS="-lresolve -lnsl $LIBS"
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h. */
19648 char strcasecmp ();
19651 return strcasecmp ();
19656 if ac_fn_c_try_link "$LINENO"; then :
19657 ac_cv_lib_resolve_strcasecmp=yes
19659 ac_cv_lib_resolve_strcasecmp=no
19661 rm -f core conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19666 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19667 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19668 LIBS="-lresolve $LIBS"
19672 ac_cv_func_strcasecmp="no"
19675 curl_includes_winsock2="\
19676 /* includes start */
19677 #ifdef HAVE_WINDOWS_H
19678 # ifndef WIN32_LEAN_AND_MEAN
19679 # define WIN32_LEAN_AND_MEAN
19681 # include <windows.h>
19682 # ifdef HAVE_WINSOCK2_H
19683 # include <winsock2.h>
19685 # ifdef HAVE_WINSOCK_H
19686 # include <winsock.h>
19690 /* includes end */"
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19693 $as_echo_n "checking for windows.h... " >&6; }
19694 if ${ac_cv_header_windows_h+:} false; then :
19695 $as_echo_n "(cached) " >&6
19698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19703 #ifndef WIN32_LEAN_AND_MEAN
19704 #define WIN32_LEAN_AND_MEAN
19706 #include <windows.h>
19711 #if defined(__CYGWIN__) || defined(__CEGCC__)
19712 HAVE_WINDOWS_H shall not be defined.
19714 int dummy=2*WINVER;
19722 if ac_fn_c_try_compile "$LINENO"; then :
19724 ac_cv_header_windows_h="yes"
19728 ac_cv_header_windows_h="no"
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19735 $as_echo "$ac_cv_header_windows_h" >&6; }
19736 case "$ac_cv_header_windows_h" in
19739 cat >>confdefs.h <<_ACEOF
19740 #define HAVE_WINDOWS_H 1
19744 cat >>confdefs.h <<_ACEOF
19745 #define WIN32_LEAN_AND_MEAN 1
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19753 $as_echo_n "checking for winsock.h... " >&6; }
19754 if ${ac_cv_header_winsock_h+:} false; then :
19755 $as_echo_n "(cached) " >&6
19758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759 /* end confdefs.h. */
19763 #ifndef WIN32_LEAN_AND_MEAN
19764 #define WIN32_LEAN_AND_MEAN
19766 #include <windows.h>
19767 #include <winsock.h>
19772 #if defined(__CYGWIN__) || defined(__CEGCC__)
19773 HAVE_WINSOCK_H shall not be defined.
19775 int dummy=WSACleanup();
19783 if ac_fn_c_try_compile "$LINENO"; then :
19785 ac_cv_header_winsock_h="yes"
19789 ac_cv_header_winsock_h="no"
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
19796 $as_echo "$ac_cv_header_winsock_h" >&6; }
19797 case "$ac_cv_header_winsock_h" in
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_WINSOCK_H 1
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19809 $as_echo_n "checking for winsock2.h... " >&6; }
19810 if ${ac_cv_header_winsock2_h+:} false; then :
19811 $as_echo_n "(cached) " >&6
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19819 #ifndef WIN32_LEAN_AND_MEAN
19820 #define WIN32_LEAN_AND_MEAN
19822 #include <windows.h>
19823 #include <winsock2.h>
19828 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19829 HAVE_WINSOCK2_H shall not be defined.
19831 int dummy=2*IPPROTO_ESP;
19839 if ac_fn_c_try_compile "$LINENO"; then :
19841 ac_cv_header_winsock2_h="yes"
19845 ac_cv_header_winsock2_h="no"
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19852 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19853 case "$ac_cv_header_winsock2_h" in
19856 cat >>confdefs.h <<_ACEOF
19857 #define HAVE_WINSOCK2_H 1
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
19866 $as_echo_n "checking for connect in libraries... " >&6; }
19867 tst_connect_save_LIBS="$LIBS"
19868 tst_connect_need_LIBS="unknown"
19869 for tst_lib in '' '-lsocket' ; do
19870 if test "$tst_connect_need_LIBS" = "unknown"; then
19871 LIBS="$tst_lib $tst_connect_save_LIBS"
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19876 $curl_includes_winsock2
19877 #ifndef HAVE_WINDOWS_H
19878 int connect(int, void*, int);
19884 if(0 != connect(0, 0, 0))
19892 if ac_fn_c_try_link "$LINENO"; then :
19894 tst_connect_need_LIBS="$tst_lib"
19897 rm -f core conftest.err conftest.$ac_objext \
19898 conftest$ac_exeext conftest.$ac_ext
19901 LIBS="$tst_connect_save_LIBS"
19903 case X-"$tst_connect_need_LIBS" in
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19906 $as_echo "cannot find connect" >&6; }
19907 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19911 $as_echo "yes" >&6; }
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19915 $as_echo "$tst_connect_need_LIBS" >&6; }
19916 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19921 CURL_NETWORK_LIBS=$LIBS
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19924 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19925 if ${ac_cv_header_time+:} false; then :
19926 $as_echo_n "(cached) " >&6
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19930 #include <sys/types.h>
19931 #include <sys/time.h>
19936 if ((struct tm *) 0)
19942 if ac_fn_c_try_compile "$LINENO"; then :
19943 ac_cv_header_time=yes
19945 ac_cv_header_time=no
19947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19950 $as_echo "$ac_cv_header_time" >&6; }
19951 if test $ac_cv_header_time = yes; then
19953 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19958 for ac_header in sys/types.h sys/time.h time.h
19960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19963 cat >>confdefs.h <<_ACEOF
19964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19972 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19974 if test "x$dontwant_rt" == "xno" ; then
19975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19979 #ifdef HAVE_SYS_TYPES_H
19980 #include <sys/types.h>
19982 #ifdef HAVE_SYS_TIME_H
19983 #include <sys/time.h>
19984 #ifdef TIME_WITH_SYS_TIME
19996 struct timespec ts;
19997 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20004 if ac_fn_c_try_compile "$LINENO"; then :
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20007 $as_echo "yes" >&6; }
20008 ac_cv_func_clock_gettime="yes"
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20013 $as_echo "no" >&6; }
20014 ac_cv_func_clock_gettime="no"
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 if test "$ac_cv_func_clock_gettime" = "yes"; then
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20025 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20027 curl_cv_save_LIBS="$LIBS"
20028 curl_cv_gclk_LIBS="unknown"
20030 for x_xlibs in '' '-lrt' '-lposix4' ; do
20031 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20032 if test -z "$x_xlibs"; then
20033 LIBS="$curl_cv_save_LIBS"
20035 LIBS="$x_xlibs $curl_cv_save_LIBS"
20037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h. */
20041 #ifdef HAVE_SYS_TYPES_H
20042 #include <sys/types.h>
20044 #ifdef HAVE_SYS_TIME_H
20045 #include <sys/time.h>
20046 #ifdef TIME_WITH_SYS_TIME
20058 struct timespec ts;
20059 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20066 if ac_fn_c_try_link "$LINENO"; then :
20068 curl_cv_gclk_LIBS="$x_xlibs"
20071 rm -f core conftest.err conftest.$ac_objext \
20072 conftest$ac_exeext conftest.$ac_ext
20076 LIBS="$curl_cv_save_LIBS"
20078 case X-"$curl_cv_gclk_LIBS" in
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20081 $as_echo "cannot find clock_gettime" >&6; }
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20083 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20084 ac_cv_func_clock_gettime="no"
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20088 $as_echo "no additional lib required" >&6; }
20089 ac_cv_func_clock_gettime="yes"
20092 if test -z "$curl_cv_save_LIBS"; then
20093 LIBS="$curl_cv_gclk_LIBS"
20095 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20098 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20099 ac_cv_func_clock_gettime="yes"
20103 if test "x$cross_compiling" != "xyes" &&
20104 test "$ac_cv_func_clock_gettime" = "yes"; then
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20106 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20107 if test "$cross_compiling" = yes; then :
20108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20110 as_fn_error $? "cannot run test program while cross compiling
20111 See \`config.log' for more details" "$LINENO" 5; }
20113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114 /* end confdefs.h. */
20117 #ifdef HAVE_STDLIB_H
20118 #include <stdlib.h>
20120 #ifdef HAVE_SYS_TYPES_H
20121 #include <sys/types.h>
20123 #ifdef HAVE_SYS_TIME_H
20124 #include <sys/time.h>
20125 #ifdef TIME_WITH_SYS_TIME
20137 struct timespec ts;
20138 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20148 if ac_fn_c_try_run "$LINENO"; then :
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20151 $as_echo "yes" >&6; }
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156 $as_echo "no" >&6; }
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20158 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20159 ac_cv_func_clock_gettime="no"
20160 LIBS="$curl_cv_save_LIBS"
20163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20164 conftest.$ac_objext conftest.beam conftest.$ac_ext
20169 case "$ac_cv_func_clock_gettime" in
20172 cat >>confdefs.h <<_ACEOF
20173 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20183 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20187 clean_CPPFLAGS=$CPPFLAGS
20188 clean_LDFLAGS=$LDFLAGS
20192 # Check whether --with-zlib was given.
20193 if test "${with_zlib+set}" = set; then :
20194 withval=$with_zlib; OPT_ZLIB="$withval"
20198 if test "$OPT_ZLIB" = "no" ; then
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20200 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20202 if test "$OPT_ZLIB" = "yes" ; then
20206 if test -z "$OPT_ZLIB" ; then
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20209 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20210 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20211 $as_echo_n "(cached) " >&6
20213 ac_check_lib_save_LIBS=$LIBS
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20222 char inflateEnd ();
20225 return inflateEnd ();
20230 if ac_fn_c_try_link "$LINENO"; then :
20231 ac_cv_lib_z_inflateEnd=yes
20233 ac_cv_lib_z_inflateEnd=no
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20240 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20241 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20245 OPT_ZLIB="/usr/local"
20251 if test -n "$OPT_ZLIB"; then
20252 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20253 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20256 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20257 if test "x$ac_cv_header_zlib_h" = xyes; then :
20260 if test "$HAVE_LIBZ" != "1"; then
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20262 $as_echo_n "checking for gzread in -lz... " >&6; }
20263 if ${ac_cv_lib_z_gzread+:} false; then :
20264 $as_echo_n "(cached) " >&6
20266 ac_check_lib_save_LIBS=$LIBS
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h. */
20283 if ac_fn_c_try_link "$LINENO"; then :
20284 ac_cv_lib_z_gzread=yes
20286 ac_cv_lib_z_gzread=no
20288 rm -f core conftest.err conftest.$ac_objext \
20289 conftest$ac_exeext conftest.$ac_ext
20290 LIBS=$ac_check_lib_save_LIBS
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20293 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20294 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20300 CPPFLAGS=$clean_CPPFLAGS
20301 LDFLAGS=$clean_LDFLAGS
20308 CPPFLAGS=$clean_CPPFLAGS
20309 LDFLAGS=$clean_LDFLAGS
20315 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20318 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20320 CPPFLAGS=$clean_CPPFLAGS
20321 LDFLAGS=$clean_LDFLAGS
20323 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20326 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20327 CPPFLAGS=$clean_CPPFLAGS
20328 LDFLAGS=$clean_LDFLAGS
20330 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20334 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20337 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20341 LIBS="-lz $clean_LIBS"
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20345 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20346 curl_zlib_msg="enabled"
20350 if test x"$AMFIXLIB" = x1; then
20352 HAVE_LIBZ_FALSE='#'
20363 # Check whether --with-ldap-lib was given.
20364 if test "${with_ldap_lib+set}" = set; then :
20365 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20371 # Check whether --with-lber-lib was given.
20372 if test "${with_lber_lib+set}" = set; then :
20373 withval=$with_lber_lib; LBERLIBNAME="$withval"
20377 if test x$CURL_DISABLE_LDAP != x1 ; then
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20381 $as_echo_n "checking for lber.h... " >&6; }
20382 if ${ac_cv_header_lber_h+:} false; then :
20383 $as_echo_n "(cached) " >&6
20386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h. */
20391 #ifdef HAVE_WINDOWS_H
20392 #ifndef WIN32_LEAN_AND_MEAN
20393 #define WIN32_LEAN_AND_MEAN
20395 #include <windows.h>
20397 #ifdef HAVE_SYS_TYPES_H
20398 #include <sys/types.h>
20402 #define NULL (void *)0
20409 BerValue *bvp = NULL;
20410 BerElement *bep = ber_init(bvp);
20418 if ac_fn_c_try_compile "$LINENO"; then :
20420 ac_cv_header_lber_h="yes"
20424 ac_cv_header_lber_h="no"
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20431 $as_echo "$ac_cv_header_lber_h" >&6; }
20432 if test "$ac_cv_header_lber_h" = "yes"; then
20434 cat >>confdefs.h <<_ACEOF
20435 #define HAVE_LBER_H 1
20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h. */
20444 #ifdef HAVE_WINDOWS_H
20445 #ifndef WIN32_LEAN_AND_MEAN
20446 #define WIN32_LEAN_AND_MEAN
20448 #include <windows.h>
20450 #ifdef HAVE_SYS_TYPES_H
20451 #include <sys/types.h>
20455 #define NULL (void *)0
20457 #ifndef LDAP_DEPRECATED
20458 #define LDAP_DEPRECATED 1
20465 BerValue *bvp = NULL;
20466 BerElement *bep = ber_init(bvp);
20474 if ac_fn_c_try_compile "$LINENO"; then :
20476 curl_cv_need_header_lber_h="no"
20480 curl_cv_need_header_lber_h="yes"
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 case "$curl_cv_need_header_lber_h" in
20488 cat >>confdefs.h <<_ACEOF
20489 #define NEED_LBER_H 1
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
20498 $as_echo_n "checking for ldap.h... " >&6; }
20499 if ${ac_cv_header_ldap_h+:} false; then :
20500 $as_echo_n "(cached) " >&6
20503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20504 /* end confdefs.h. */
20508 #ifdef HAVE_WINDOWS_H
20509 #ifndef WIN32_LEAN_AND_MEAN
20510 #define WIN32_LEAN_AND_MEAN
20512 #include <windows.h>
20514 #ifdef HAVE_SYS_TYPES_H
20515 #include <sys/types.h>
20518 #ifndef LDAP_DEPRECATED
20519 #define LDAP_DEPRECATED 1
20529 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20530 int res = ldap_unbind(ldp);
20537 if ac_fn_c_try_compile "$LINENO"; then :
20539 ac_cv_header_ldap_h="yes"
20543 ac_cv_header_ldap_h="no"
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
20550 $as_echo "$ac_cv_header_ldap_h" >&6; }
20551 case "$ac_cv_header_ldap_h" in
20554 cat >>confdefs.h <<_ACEOF
20555 #define HAVE_LDAP_H 1
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
20563 $as_echo_n "checking for ldapssl.h... " >&6; }
20564 if ${ac_cv_header_ldapssl_h+:} false; then :
20565 $as_echo_n "(cached) " >&6
20568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20569 /* end confdefs.h. */
20573 #ifdef HAVE_WINDOWS_H
20574 #ifndef WIN32_LEAN_AND_MEAN
20575 #define WIN32_LEAN_AND_MEAN
20577 #include <windows.h>
20579 #ifdef HAVE_SYS_TYPES_H
20580 #include <sys/types.h>
20584 #define NULL (void *)0
20586 #ifndef LDAP_DEPRECATED
20587 #define LDAP_DEPRECATED 1
20595 #include <ldapssl.h>
20600 char *cert_label = NULL;
20601 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
20608 if ac_fn_c_try_compile "$LINENO"; then :
20610 ac_cv_header_ldapssl_h="yes"
20614 ac_cv_header_ldapssl_h="no"
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
20621 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
20622 case "$ac_cv_header_ldapssl_h" in
20625 cat >>confdefs.h <<_ACEOF
20626 #define HAVE_LDAPSSL_H 1
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
20634 $as_echo_n "checking for ldap_ssl.h... " >&6; }
20635 if ${ac_cv_header_ldap_ssl_h+:} false; then :
20636 $as_echo_n "(cached) " >&6
20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20644 #ifdef HAVE_WINDOWS_H
20645 #ifndef WIN32_LEAN_AND_MEAN
20646 #define WIN32_LEAN_AND_MEAN
20648 #include <windows.h>
20650 #ifdef HAVE_SYS_TYPES_H
20651 #include <sys/types.h>
20654 #ifndef LDAP_DEPRECATED
20655 #define LDAP_DEPRECATED 1
20663 #include <ldap_ssl.h>
20668 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
20675 if ac_fn_c_try_compile "$LINENO"; then :
20677 ac_cv_header_ldap_ssl_h="yes"
20681 ac_cv_header_ldap_ssl_h="no"
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
20688 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
20689 case "$ac_cv_header_ldap_ssl_h" in
20692 cat >>confdefs.h <<_ACEOF
20693 #define HAVE_LDAP_SSL_H 1
20700 if test -z "$LDAPLIBNAME" ; then
20701 if test "$ac_cv_native_windows" = "yes"; then
20702 LDAPLIBNAME="wldap32"
20707 if test "$LDAPLIBNAME" ; then
20708 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
20710 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
20711 if eval \${$as_ac_Lib+:} false; then :
20712 $as_echo_n "(cached) " >&6
20714 ac_check_lib_save_LIBS=$LIBS
20715 LIBS="-l"$LDAPLIBNAME" $LIBS"
20716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20717 /* end confdefs.h. */
20726 return ldap_init ();
20731 if ac_fn_c_try_link "$LINENO"; then :
20732 eval "$as_ac_Lib=yes"
20734 eval "$as_ac_Lib=no"
20736 rm -f core conftest.err conftest.$ac_objext \
20737 conftest$ac_exeext conftest.$ac_ext
20738 LIBS=$ac_check_lib_save_LIBS
20740 eval ac_res=\$$as_ac_Lib
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20742 $as_echo "$ac_res" >&6; }
20743 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20744 cat >>confdefs.h <<_ACEOF
20745 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
20748 LIBS="-l"$LDAPLIBNAME" $LIBS"
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
20753 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
20755 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20757 CURL_DISABLE_LDAP=1
20760 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20762 CURL_DISABLE_LDAPS=1
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
20770 $as_echo_n "checking for LDAP libraries... " >&6; }
20776 curl_cv_save_LIBS="$LIBS"
20777 curl_cv_ldap_LIBS="unknown"
20779 for x_nlibs in '' "$u_libs" \
20783 '-lldapssl -lldapx -lldapsdk' \
20784 '-lldapsdk -lldapx -lldapssl' ; do
20785 if test "$curl_cv_ldap_LIBS" = "unknown"; then
20786 if test -z "$x_nlibs"; then
20787 LIBS="$curl_cv_save_LIBS"
20789 LIBS="$x_nlibs $curl_cv_save_LIBS"
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20796 #ifdef HAVE_WINDOWS_H
20797 #ifndef WIN32_LEAN_AND_MEAN
20798 #define WIN32_LEAN_AND_MEAN
20800 #include <windows.h>
20802 #ifdef HAVE_SYS_TYPES_H
20803 #include <sys/types.h>
20807 #define NULL (void *)0
20809 #ifndef LDAP_DEPRECATED
20810 #define LDAP_DEPRECATED 1
20822 BerValue *bvp = NULL;
20823 BerElement *bep = ber_init(bvp);
20824 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20825 int res = ldap_unbind(ldp);
20833 if ac_fn_c_try_link "$LINENO"; then :
20835 curl_cv_ldap_LIBS="$x_nlibs"
20838 rm -f core conftest.err conftest.$ac_objext \
20839 conftest$ac_exeext conftest.$ac_ext
20843 LIBS="$curl_cv_save_LIBS"
20845 case X-"$curl_cv_ldap_LIBS" in
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
20848 $as_echo "cannot find LDAP libraries" >&6; }
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20852 $as_echo "no additional lib required" >&6; }
20855 if test -z "$curl_cv_save_LIBS"; then
20856 LIBS="$curl_cv_ldap_LIBS"
20858 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
20861 $as_echo "$curl_cv_ldap_LIBS" >&6; }
20866 case X-"$curl_cv_ldap_LIBS" in
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
20869 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
20871 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20873 CURL_DISABLE_LDAP=1
20876 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20878 CURL_DISABLE_LDAPS=1
20885 if test x$CURL_DISABLE_LDAP != x1 ; then
20887 if test "$LBERLIBNAME" ; then
20888 if test "$LBERLIBNAME" != "no" ; then
20889 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
20891 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
20892 if eval \${$as_ac_Lib+:} false; then :
20893 $as_echo_n "(cached) " >&6
20895 ac_check_lib_save_LIBS=$LIBS
20896 LIBS="-l"$LBERLIBNAME" $LIBS"
20897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20898 /* end confdefs.h. */
20907 return ber_free ();
20912 if ac_fn_c_try_link "$LINENO"; then :
20913 eval "$as_ac_Lib=yes"
20915 eval "$as_ac_Lib=no"
20917 rm -f core conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20921 eval ac_res=\$$as_ac_Lib
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20923 $as_echo "$ac_res" >&6; }
20924 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20925 cat >>confdefs.h <<_ACEOF
20926 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
20929 LIBS="-l"$LBERLIBNAME" $LIBS"
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
20934 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
20936 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20938 CURL_DISABLE_LDAP=1
20941 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20943 CURL_DISABLE_LDAPS=1
20951 if test x$CURL_DISABLE_LDAP != x1 ; then
20952 for ac_func in ldap_url_parse ldap_init_fd
20954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20957 cat >>confdefs.h <<_ACEOF
20958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20965 if test "$LDAPLIBNAME" = "wldap32"; then
20966 curl_ldap_msg="enabled (winldap)"
20968 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
20971 curl_ldap_msg="enabled (OpenLDAP)"
20972 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
20974 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
20982 if test x$CURL_DISABLE_LDAPS != x1 ; then
20983 curl_ldaps_msg="enabled"
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
20988 $as_echo_n "checking whether to enable IPv6... " >&6; }
20989 # Check whether --enable-ipv6 was given.
20990 if test "${enable_ipv6+set}" = set; then :
20991 enableval=$enable_ipv6; case "$enableval" in
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20994 $as_echo "no" >&6; }
20997 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20998 $as_echo "yes" >&6; }
21003 if test "$cross_compiling" = yes; then :
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005 $as_echo "no" >&6; }
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21011 /* is AF_INET6 available? */
21012 #include <sys/types.h>
21013 #include <sys/socket.h>
21014 #include <stdlib.h> /* for exit() */
21017 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21024 if ac_fn_c_try_run "$LINENO"; then :
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21026 $as_echo "yes" >&6; }
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21030 $as_echo "no" >&6; }
21033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21034 conftest.$ac_objext conftest.beam conftest.$ac_ext
21040 if test "$ipv6" = "yes"; then
21041 curl_ipv6_msg="enabled"
21044 # Check if struct sockaddr_in6 have sin6_scope_id member
21045 if test "$ipv6" = yes; then
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21047 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21051 #include <sys/types.h>
21052 #include <netinet/in.h>
21055 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21060 if ac_fn_c_try_compile "$LINENO"; then :
21061 have_sin6_scope_id=yes
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 if test "$have_sin6_scope_id" = yes; then
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21066 $as_echo "yes" >&6; }
21068 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21072 $as_echo "no" >&6; }
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21078 $as_echo_n "checking if argv can be written to... " >&6; }
21079 if test "$cross_compiling" = yes; then :
21081 curl_cv_writable_argv=cross
21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h. */
21088 int main(int argc, char ** argv) {
21090 return (argv[0][0] == ' ')?0:1;
21095 if ac_fn_c_try_run "$LINENO"; then :
21097 curl_cv_writable_argv=yes
21101 curl_cv_writable_argv=no
21104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21105 conftest.$ac_objext conftest.beam conftest.$ac_ext
21108 case $curl_cv_writable_argv in
21111 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21114 $as_echo "yes" >&6; }
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118 $as_echo "no" >&6; }
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21122 $as_echo "no" >&6; }
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21124 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21132 # Check whether --with-gssapi-includes was given.
21133 if test "${with_gssapi_includes+set}" = set; then :
21134 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21141 # Check whether --with-gssapi-libs was given.
21142 if test "${with_gssapi_libs+set}" = set; then :
21143 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21150 # Check whether --with-gssapi was given.
21151 if test "${with_gssapi+set}" = set; then :
21152 withval=$with_gssapi;
21153 GSSAPI_ROOT="$withval"
21154 if test x"$GSSAPI_ROOT" != xno; then
21156 if test x"$GSSAPI_ROOT" = xyes; then
21164 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21166 save_CPPFLAGS="$CPPFLAGS"
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21168 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21169 if test x"$want_gss" = xyes; then
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21171 $as_echo "yes" >&6; }
21173 if test -z "$GSSAPI_INCS"; then
21174 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21175 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21176 elif test -f "$KRB5CONFIG"; then
21177 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21178 elif test "$GSSAPI_ROOT" != "yes"; then
21179 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21183 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21185 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21186 if test "x$ac_cv_header_gss_h" = xyes; then :
21189 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21195 for ac_header in gssapi/gssapi.h
21197 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21198 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21199 cat >>confdefs.h <<_ACEOF
21200 #define HAVE_GSSAPI_GSSAPI_H 1
21209 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21213 $ac_includes_default
21214 #ifdef HAVE_GSSAPI_GSSAPI_H
21215 #include <gssapi/gssapi.h>
21219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21220 cat >>confdefs.h <<_ACEOF
21221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21230 if test "x$not_mit" = "x1"; then
21231 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21232 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21235 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21242 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21250 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21253 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21258 #include <gssapi/gssapi.h>
21259 #include <gssapi/gssapi_generic.h>
21260 #include <gssapi/gssapi_krb5.h>
21268 GSS_C_NT_HOSTBASED_SERVICE,
21276 if ac_fn_c_try_compile "$LINENO"; then :
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21279 $as_echo "yes" >&6; }
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21284 $as_echo "no" >&6; }
21286 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 $as_echo "no" >&6; }
21301 if test x"$want_gss" = xyes; then
21303 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21306 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21308 if test -n "$gnu_gss"; then
21309 curl_gss_msg="enabled (GNU GSS)"
21310 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21312 elif test -z "$GSSAPI_LIB_DIR"; then
21315 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21318 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21319 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21320 LIBS="$gss_libs $LIBS"
21321 elif test -f "$KRB5CONFIG"; then
21322 gss_libs=`$KRB5CONFIG --libs gssapi`
21323 LIBS="$gss_libs $LIBS"
21330 gss_libname="gssapi"
21334 if test "$GSSAPI_ROOT" != "yes"; then
21335 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21336 LIBS="-l$gss_libname $LIBS"
21338 LIBS="-l$gss_libname $LIBS"
21344 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21350 LIBS="-lgssapi $LIBS"
21355 CPPFLAGS="$save_CPPFLAGS"
21361 # Check whether --with-winssl was given.
21362 if test "${with_winssl+set}" = set; then :
21363 withval=$with_winssl; OPT_WINSSL=$withval
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21368 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21369 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21370 if test "x$OPT_WINSSL" != "xno" &&
21371 test "x$ac_cv_native_windows" = "xyes"; then
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21373 $as_echo "yes" >&6; }
21375 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21379 curl_ssl_msg="enabled (Windows-native)"
21381 # --with-winssl implies --enable-sspi
21383 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21387 curl_sspi_msg="enabled"
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 $as_echo "no" >&6; }
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21394 $as_echo "no" >&6; }
21399 # Check whether --with-darwinssl was given.
21400 if test "${with_darwinssl+set}" = set; then :
21401 withval=$with_darwinssl; OPT_DARWINSSL=$withval
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21406 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21407 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21408 if test "x$OPT_DARWINSSL" != "xno" &&
21409 test -d "/System/Library/Frameworks/Security.framework"; then
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21411 $as_echo "yes" >&6; }
21413 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21417 curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21418 DARWINSSL_ENABLED=1
21419 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422 $as_echo "no" >&6; }
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21426 $as_echo "no" >&6; }
21433 # Check whether --with-ssl was given.
21434 if test "${with_ssl+set}" = set; then :
21435 withval=$with_ssl; OPT_SSL=$withval
21439 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
21440 CLEANLDFLAGS="$LDFLAGS"
21441 CLEANCPPFLAGS="$CPPFLAGS"
21446 if test x$cross_compiling != xyes; then
21449 PREFIX_OPENSSL=/usr/local/ssl
21450 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21453 if test x$cross_compiling != xyes; then
21460 PREFIX_OPENSSL=$OPT_SSL
21462 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
21464 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
21465 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
21469 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21470 if test "$PREFIX_OPENSSL" != "/usr" ; then
21471 SSL_LDFLAGS="-L$LIB_OPENSSL"
21472 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
21474 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
21478 if test "$PKGTEST" = "yes"; then
21484 if test -n "$ac_tool_prefix"; then
21485 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21486 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21488 $as_echo_n "checking for $ac_word... " >&6; }
21489 if ${ac_cv_path_PKGCONFIG+:} false; then :
21490 $as_echo_n "(cached) " >&6
21494 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21499 for as_dir in $as_dummy
21502 test -z "$as_dir" && as_dir=.
21503 for ac_exec_ext in '' $ac_executable_extensions; do
21504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21505 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21516 PKGCONFIG=$ac_cv_path_PKGCONFIG
21517 if test -n "$PKGCONFIG"; then
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21519 $as_echo "$PKGCONFIG" >&6; }
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21522 $as_echo "no" >&6; }
21527 if test -z "$ac_cv_path_PKGCONFIG"; then
21528 ac_pt_PKGCONFIG=$PKGCONFIG
21529 # Extract the first word of "pkg-config", so it can be a program name with args.
21530 set dummy pkg-config; ac_word=$2
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21532 $as_echo_n "checking for $ac_word... " >&6; }
21533 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21534 $as_echo_n "(cached) " >&6
21536 case $ac_pt_PKGCONFIG in
21538 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21542 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21543 for as_dir in $as_dummy
21546 test -z "$as_dir" && as_dir=.
21547 for ac_exec_ext in '' $ac_executable_extensions; do
21548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21549 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21560 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21561 if test -n "$ac_pt_PKGCONFIG"; then
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21563 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21566 $as_echo "no" >&6; }
21569 if test "x$ac_pt_PKGCONFIG" = x; then
21572 case $cross_compiling:$ac_tool_warned in
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21576 ac_tool_warned=yes ;;
21578 PKGCONFIG=$ac_pt_PKGCONFIG
21581 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21585 if test x$PKGCONFIG != xno; then
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
21587 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
21589 if test -n "$OPENSSL_PCDIR"; then
21590 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21591 export PKG_CONFIG_LIBDIR
21593 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
21595 if test -z "$itexists"; then
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21598 $as_echo "no" >&6; }
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21601 $as_echo "found" >&6; }
21606 if test "$PKGCONFIG" != "no" ; then
21608 if test -n "$OPENSSL_PCDIR"; then
21609 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21610 export PKG_CONFIG_LIBDIR
21612 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
21615 if test -n "$OPENSSL_PCDIR"; then
21616 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21617 export PKG_CONFIG_LIBDIR
21619 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
21622 if test -n "$OPENSSL_PCDIR"; then
21623 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21624 export PKG_CONFIG_LIBDIR
21626 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
21630 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
21632 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
21634 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
21636 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
21638 LIBS="$SSL_LIBS $LIBS"
21642 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
21643 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
21646 *-*-msys* | *-*-mingw*)
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
21648 $as_echo_n "checking for gdi32... " >&6; }
21649 my_ac_save_LIBS=$LIBS
21650 LIBS="-lgdi32 $LIBS"
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #include <windef.h>
21654 #include <wingdi.h>
21662 if ac_fn_c_try_link "$LINENO"; then :
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21664 $as_echo "yes" >&6; }
21666 LIBS=$my_ac_save_LIBS
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21668 $as_echo "no" >&6; }
21671 rm -f core conftest.err conftest.$ac_objext \
21672 conftest$ac_exeext conftest.$ac_ext
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
21677 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
21678 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
21679 $as_echo_n "(cached) " >&6
21681 ac_check_lib_save_LIBS=$LIBS
21682 LIBS="-lcrypto $LIBS"
21683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21690 char CRYPTO_lock ();
21693 return CRYPTO_lock ();
21698 if ac_fn_c_try_link "$LINENO"; then :
21699 ac_cv_lib_crypto_CRYPTO_lock=yes
21701 ac_cv_lib_crypto_CRYPTO_lock=no
21703 rm -f core conftest.err conftest.$ac_objext \
21704 conftest$ac_exeext conftest.$ac_ext
21705 LIBS=$ac_check_lib_save_LIBS
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
21708 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
21709 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
21712 LIBS="-lcrypto $LIBS"
21716 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
21717 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
21719 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
21720 if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
21721 $as_echo_n "(cached) " >&6
21723 ac_check_lib_save_LIBS=$LIBS
21724 LIBS="-lcrypto $LIBS"
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h. */
21732 char CRYPTO_add_lock ();
21735 return CRYPTO_add_lock ();
21740 if ac_fn_c_try_link "$LINENO"; then :
21741 ac_cv_lib_crypto_CRYPTO_add_lock=yes
21743 ac_cv_lib_crypto_CRYPTO_add_lock=no
21745 rm -f core conftest.err conftest.$ac_objext \
21746 conftest$ac_exeext conftest.$ac_ext
21747 LIBS=$ac_check_lib_save_LIBS
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
21750 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
21751 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
21754 LIBS="-lcrypto $LIBS"
21757 LDFLAGS="$CLEANLDFLAGS"
21758 CPPFLAGS="$CLEANCPPFLAGS"
21768 if test X"$HAVECRYPTO" = X"yes"; then
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
21770 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
21772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21773 /* end confdefs.h. */
21775 #include <openssl/evp.h>
21780 SSLeay_add_all_algorithms();
21786 if ac_fn_c_try_link "$LINENO"; then :
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21789 $as_echo "yes" >&6; }
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 $as_echo "no" >&6; }
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
21797 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21802 #include <openssl/evp.h>
21807 SSLeay_add_all_algorithms();
21813 if ac_fn_c_try_link "$LINENO"; then :
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21816 $as_echo "yes" >&6; }
21817 LIBS="$saved_libs -ldl"
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822 $as_echo "no" >&6; }
21827 rm -f core conftest.err conftest.$ac_objext \
21828 conftest$ac_exeext conftest.$ac_ext
21833 rm -f core conftest.err conftest.$ac_objext \
21834 conftest$ac_exeext conftest.$ac_ext
21838 if test X"$HAVECRYPTO" = X"yes"; then
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21841 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21842 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21843 $as_echo_n "(cached) " >&6
21845 ac_check_lib_save_LIBS=$LIBS
21847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21848 /* end confdefs.h. */
21854 char SSL_connect ();
21857 return SSL_connect ();
21862 if ac_fn_c_try_link "$LINENO"; then :
21863 ac_cv_lib_ssl_SSL_connect=yes
21865 ac_cv_lib_ssl_SSL_connect=no
21867 rm -f core conftest.err conftest.$ac_objext \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21872 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21873 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21874 cat >>confdefs.h <<_ACEOF
21875 #define HAVE_LIBSSL 1
21883 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
21885 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
21887 LIBS="-lRSAglue -lrsaref $LIBS"
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21889 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21890 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21891 $as_echo_n "(cached) " >&6
21893 ac_check_lib_save_LIBS=$LIBS
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h. */
21902 char SSL_connect ();
21905 return SSL_connect ();
21910 if ac_fn_c_try_link "$LINENO"; then :
21911 ac_cv_lib_ssl_SSL_connect=yes
21913 ac_cv_lib_ssl_SSL_connect=no
21915 rm -f core conftest.err conftest.$ac_objext \
21916 conftest$ac_exeext conftest.$ac_ext
21917 LIBS=$ac_check_lib_save_LIBS
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21920 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21921 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21922 cat >>confdefs.h <<_ACEOF
21923 #define HAVE_LIBSSL 1
21930 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21932 $as_echo "no" >&6; }
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21936 $as_echo "yes" >&6; }
21941 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
21942 openssl/pem.h openssl/ssl.h openssl/err.h
21944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21947 cat >>confdefs.h <<_ACEOF
21948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21950 curl_ssl_msg="enabled (OpenSSL)"
21953 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
21960 if test $ac_cv_header_openssl_x509_h = no; then
21961 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
21963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21966 cat >>confdefs.h <<_ACEOF
21967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21975 if test $ac_cv_header_x509_h = yes &&
21976 test $ac_cv_header_crypto_h = yes &&
21977 test $ac_cv_header_ssl_h = yes; then
21978 curl_ssl_msg="enabled (OpenSSL)"
21984 if test X"$OPENSSL_ENABLED" = X"1"; then
21985 for ac_header in openssl/pkcs12.h
21987 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
21988 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
21989 cat >>confdefs.h <<_ACEOF
21990 #define HAVE_OPENSSL_PKCS12_H 1
22001 if test X"$OPT_SSL" != Xoff &&
22002 test "$OPENSSL_ENABLED" != "1"; then
22003 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22007 if test X"$OPENSSL_ENABLED" = X"1"; then
22008 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22009 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22011 for ac_header in openssl/engine.h
22013 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22014 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22015 cat >>confdefs.h <<_ACEOF
22016 #define HAVE_OPENSSL_ENGINE_H 1
22023 for ac_func in ENGINE_load_builtin_engines
22025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22027 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22028 cat >>confdefs.h <<_ACEOF
22029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22040 for ac_func in RAND_status \
22044 CRYPTO_cleanup_all_ex_data \
22046 SSLv2_client_method \
22049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22051 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22052 cat >>confdefs.h <<_ACEOF
22053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22061 $as_echo_n "checking for BoringSSL... " >&6; }
22062 if test "x$ac_cv_func_DES_set_odd_parity" != "xyes"; then
22063 curl_ssl_msg="enabled (BoringSSL)"
22065 cat >>confdefs.h <<_ACEOF
22066 #define HAVE_BORINGSSL 1
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22070 $as_echo "yes" >&6; }
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22073 $as_echo "no" >&6; }
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22076 $as_echo_n "checking for libressl... " >&6; }
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22081 #include <openssl/opensslv.h>
22086 int dummy = LIBRESSL_VERSION_NUMBER;
22093 if ac_fn_c_try_compile "$LINENO"; then :
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22096 $as_echo "yes" >&6; }
22098 cat >>confdefs.h <<_ACEOF
22099 #define HAVE_LIBRESSL 1
22102 curl_ssl_msg="enabled (libressl)"
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22107 $as_echo "no" >&6; }
22110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113 if test "$OPENSSL_ENABLED" = "1"; then
22114 if test -n "$LIB_OPENSSL"; then
22115 if test "x$cross_compiling" != "xyes"; then
22116 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22117 export LD_LIBRARY_PATH
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22119 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22129 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22131 if test -z "$SED"; then
22132 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22134 if test -z "$GREP"; then
22135 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22143 # ifdef USE_OPENSSL
22144 # include <openssl/crypto.h>
22146 # include <crypto.h>
22149 #ifdef OPENSSL_VERSION_NUMBER
22150 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22155 if ac_fn_c_try_cpp "$LINENO"; then :
22157 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22158 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22159 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22160 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22161 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22166 rm -f conftest.err conftest.i conftest.$ac_ext
22167 if test -z "$tmp_exp"; then
22168 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22171 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22172 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22176 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22177 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22178 case "x$tst_verlen" in
22180 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22181 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22182 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22183 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22186 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22187 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22188 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22189 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22196 0x110) tst_show="1.1.0" ;;
22197 0x102) tst_show="1.0.2" ;;
22198 0x101) tst_show="1.0.1" ;;
22199 0x100) tst_show="1.0.0" ;;
22200 0x099) tst_show="0.9.9" ;;
22201 0x098) tst_show="0.9.8" ;;
22202 0x097) tst_show="0.9.7" ;;
22203 0x096) tst_show="0.9.6" ;;
22204 0x095) tst_show="0.9.5" ;;
22205 0x094) tst_show="0.9.4" ;;
22206 0x093) tst_show="0.9.3" ;;
22207 0x092) tst_show="0.9.2" ;;
22208 0x091) tst_show="0.9.1" ;;
22209 *) tst_show="unknown" ;;
22211 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22216 $as_echo "$tst_show" >&6; }
22218 curl_openssl_api_headers=$tst_api
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22225 $as_echo_n "checking for OpenSSL library version... " >&6; }
22226 if test "$tst_api" = "unknown"; then
22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22233 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22235 # include <limits.h>
22237 # include <assert.h>
22239 #undef SSL_CTX_set_not_resumbl_sess_cb
22243 char SSL_CTX_set_not_resumbl_sess_cb ();
22244 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22250 return SSL_CTX_set_not_resumbl_sess_cb ();
22256 if ac_fn_c_try_link "$LINENO"; then :
22261 rm -f core conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext conftest.$ac_ext
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22269 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22271 # include <limits.h>
22273 # include <assert.h>
22275 #undef SSL_CTX_set_not_resumable_session_callback
22279 char SSL_CTX_set_not_resumable_session_callback ();
22280 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22286 return SSL_CTX_set_not_resumable_session_callback ();
22292 if ac_fn_c_try_link "$LINENO"; then :
22297 rm -f core conftest.err conftest.$ac_objext \
22298 conftest$ac_exeext conftest.$ac_ext
22302 if test "$tst_api" = "unknown"; then
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22307 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22309 # include <limits.h>
22311 # include <assert.h>
22313 #undef SSL_CONF_CTX_new
22317 char SSL_CONF_CTX_new ();
22318 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22324 return SSL_CONF_CTX_new ();
22330 if ac_fn_c_try_link "$LINENO"; then :
22335 rm -f core conftest.err conftest.$ac_objext \
22336 conftest$ac_exeext conftest.$ac_ext
22338 if test "$tst_api" = "unknown"; then
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h. */
22343 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22345 # include <limits.h>
22347 # include <assert.h>
22349 #undef SSL_renegotiate_abbreviated
22353 char SSL_renegotiate_abbreviated ();
22354 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22360 return SSL_renegotiate_abbreviated ();
22366 if ac_fn_c_try_link "$LINENO"; then :
22371 rm -f core conftest.err conftest.$ac_objext \
22372 conftest$ac_exeext conftest.$ac_ext
22374 if test "$tst_api" = "unknown"; then
22375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h. */
22379 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22381 # include <limits.h>
22383 # include <assert.h>
22385 #undef OBJ_add_sigid
22389 char OBJ_add_sigid ();
22390 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22396 return OBJ_add_sigid ();
22402 if ac_fn_c_try_link "$LINENO"; then :
22407 rm -f core conftest.err conftest.$ac_objext \
22408 conftest$ac_exeext conftest.$ac_ext
22410 if test "$tst_api" = "unknown"; then
22411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22412 /* end confdefs.h. */
22415 #define ERR_set_mark innocuous_ERR_set_mark
22417 # include <limits.h>
22419 # include <assert.h>
22421 #undef ERR_set_mark
22425 char ERR_set_mark ();
22426 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
22432 return ERR_set_mark ();
22438 if ac_fn_c_try_link "$LINENO"; then :
22443 rm -f core conftest.err conftest.$ac_objext \
22444 conftest$ac_exeext conftest.$ac_ext
22446 if test "$tst_api" = "unknown"; then
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22451 #define ERR_peek_last_error innocuous_ERR_peek_last_error
22453 # include <limits.h>
22455 # include <assert.h>
22457 #undef ERR_peek_last_error
22461 char ERR_peek_last_error ();
22462 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
22468 return ERR_peek_last_error ();
22474 if ac_fn_c_try_link "$LINENO"; then :
22479 rm -f core conftest.err conftest.$ac_objext \
22480 conftest$ac_exeext conftest.$ac_ext
22482 if test "$tst_api" = "unknown"; then
22483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h. */
22487 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
22489 # include <limits.h>
22491 # include <assert.h>
22493 #undef c2i_ASN1_OBJECT
22497 char c2i_ASN1_OBJECT ();
22498 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
22504 return c2i_ASN1_OBJECT ();
22510 if ac_fn_c_try_link "$LINENO"; then :
22515 rm -f core conftest.err conftest.$ac_objext \
22516 conftest$ac_exeext conftest.$ac_ext
22518 if test "$tst_api" = "unknown"; then
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520 /* end confdefs.h. */
22523 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
22525 # include <limits.h>
22527 # include <assert.h>
22529 #undef SSL_CTX_set_purpose
22533 char SSL_CTX_set_purpose ();
22534 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
22540 return SSL_CTX_set_purpose ();
22546 if ac_fn_c_try_link "$LINENO"; then :
22551 rm -f core conftest.err conftest.$ac_objext \
22552 conftest$ac_exeext conftest.$ac_ext
22554 if test "$tst_api" = "unknown"; then
22555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22556 /* end confdefs.h. */
22559 #define OBJ_obj2txt innocuous_OBJ_obj2txt
22561 # include <limits.h>
22563 # include <assert.h>
22569 char OBJ_obj2txt ();
22570 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
22576 return OBJ_obj2txt ();
22582 if ac_fn_c_try_link "$LINENO"; then :
22587 rm -f core conftest.err conftest.$ac_objext \
22588 conftest$ac_exeext conftest.$ac_ext
22590 if test "$tst_api" = "unknown"; then
22591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22592 /* end confdefs.h. */
22595 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
22597 # include <limits.h>
22599 # include <assert.h>
22601 #undef SSL_get_verify_depth
22605 char SSL_get_verify_depth ();
22606 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
22612 return SSL_get_verify_depth ();
22618 if ac_fn_c_try_link "$LINENO"; then :
22623 rm -f core conftest.err conftest.$ac_objext \
22624 conftest$ac_exeext conftest.$ac_ext
22626 if test "$tst_api" = "unknown"; then
22627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628 /* end confdefs.h. */
22631 #define SSL_library_init innocuous_SSL_library_init
22633 # include <limits.h>
22635 # include <assert.h>
22637 #undef SSL_library_init
22641 char SSL_library_init ();
22642 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
22648 return SSL_library_init ();
22654 if ac_fn_c_try_link "$LINENO"; then :
22659 rm -f core conftest.err conftest.$ac_objext \
22660 conftest$ac_exeext conftest.$ac_ext
22662 if test "$tst_api" = "unknown"; then
22663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664 /* end confdefs.h. */
22667 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
22669 # include <limits.h>
22671 # include <assert.h>
22673 #undef SSL_CTX_set_cipher_list
22677 char SSL_CTX_set_cipher_list ();
22678 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
22684 return SSL_CTX_set_cipher_list ();
22690 if ac_fn_c_try_link "$LINENO"; then :
22695 rm -f core conftest.err conftest.$ac_objext \
22696 conftest$ac_exeext conftest.$ac_ext
22699 0x110) tst_show="1.1.0" ;;
22700 0x102) tst_show="1.0.2" ;;
22701 0x101) tst_show="1.0.1" ;;
22702 0x100) tst_show="1.0.0" ;;
22703 0x099) tst_show="0.9.9" ;;
22704 0x098) tst_show="0.9.8" ;;
22705 0x097) tst_show="0.9.7" ;;
22706 0x096) tst_show="0.9.6" ;;
22707 0x095) tst_show="0.9.5" ;;
22708 0x094) tst_show="0.9.4" ;;
22709 0x093) tst_show="0.9.3" ;;
22710 0x092) tst_show="0.9.2" ;;
22711 0x091) tst_show="0.9.1" ;;
22712 *) tst_show="unknown" ;;
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22715 $as_echo "$tst_show" >&6; }
22717 curl_openssl_api_library=$tst_api
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
22723 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
22724 if test "$curl_openssl_api_headers" = "unknown" ||
22725 test "$curl_openssl_api_library" = "unknown"; then
22727 tst_warns="Can not compare OpenSSL headers and library versions."
22728 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
22730 tst_warns="OpenSSL headers and library versions do not match."
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
22733 $as_echo "$tst_match" >&6; }
22734 if test "$tst_match" != "yes"; then
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
22736 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
22744 if test X"$OPENSSL_ENABLED" = X"1"; then
22746 # Check whether --with-egd-socket was given.
22747 if test "${with_egd_socket+set}" = set; then :
22748 withval=$with_egd_socket; EGD_SOCKET="$withval"
22752 if test -n "$EGD_SOCKET" ; then
22754 cat >>confdefs.h <<_ACEOF
22755 #define EGD_SOCKET "$EGD_SOCKET"
22761 # Check whether --with-random was given.
22762 if test "${with_random+set}" = set; then :
22763 withval=$with_random; RANDOM_FILE="$withval"
22766 if test x$cross_compiling != xyes; then
22767 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
22769 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
22770 if eval \${$as_ac_File+:} false; then :
22771 $as_echo_n "(cached) " >&6
22773 test "$cross_compiling" = yes &&
22774 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22775 if test -r ""/dev/urandom""; then
22776 eval "$as_ac_File=yes"
22778 eval "$as_ac_File=no"
22781 eval ac_res=\$$as_ac_File
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22783 $as_echo "$ac_res" >&6; }
22784 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22785 RANDOM_FILE="/dev/urandom"
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
22790 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
22796 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
22799 cat >>confdefs.h <<_ACEOF
22800 #define RANDOM_FILE "$RANDOM_FILE"
22806 if test "$OPENSSL_ENABLED" = "1"; then
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
22808 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
22809 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
22810 $as_echo_n "(cached) " >&6
22812 ac_check_lib_save_LIBS=$LIBS
22813 LIBS="-lcrypto $LIBS"
22814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22815 /* end confdefs.h. */
22821 char SRP_Calc_client_key ();
22824 return SRP_Calc_client_key ();
22829 if ac_fn_c_try_link "$LINENO"; then :
22830 ac_cv_lib_crypto_SRP_Calc_client_key=yes
22832 ac_cv_lib_crypto_SRP_Calc_client_key=no
22834 rm -f core conftest.err conftest.$ac_objext \
22835 conftest$ac_exeext conftest.$ac_ext
22836 LIBS=$ac_check_lib_save_LIBS
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
22839 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
22840 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
22843 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
22856 # Check whether --with-gnutls was given.
22857 if test "${with_gnutls+set}" = set; then :
22858 withval=$with_gnutls; OPT_GNUTLS=$withval
22862 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22864 if test X"$OPT_GNUTLS" != Xno; then
22872 if test "x$OPT_GNUTLS" = "xyes"; then
22877 if test -n "$ac_tool_prefix"; then
22878 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22879 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22881 $as_echo_n "checking for $ac_word... " >&6; }
22882 if ${ac_cv_path_PKGCONFIG+:} false; then :
22883 $as_echo_n "(cached) " >&6
22887 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22891 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22892 for as_dir in $as_dummy
22895 test -z "$as_dir" && as_dir=.
22896 for ac_exec_ext in '' $ac_executable_extensions; do
22897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22898 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22909 PKGCONFIG=$ac_cv_path_PKGCONFIG
22910 if test -n "$PKGCONFIG"; then
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22912 $as_echo "$PKGCONFIG" >&6; }
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22915 $as_echo "no" >&6; }
22920 if test -z "$ac_cv_path_PKGCONFIG"; then
22921 ac_pt_PKGCONFIG=$PKGCONFIG
22922 # Extract the first word of "pkg-config", so it can be a program name with args.
22923 set dummy pkg-config; ac_word=$2
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22925 $as_echo_n "checking for $ac_word... " >&6; }
22926 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22927 $as_echo_n "(cached) " >&6
22929 case $ac_pt_PKGCONFIG in
22931 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22935 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22936 for as_dir in $as_dummy
22939 test -z "$as_dir" && as_dir=.
22940 for ac_exec_ext in '' $ac_executable_extensions; do
22941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22942 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22953 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22954 if test -n "$ac_pt_PKGCONFIG"; then
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22956 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22962 if test "x$ac_pt_PKGCONFIG" = x; then
22965 case $cross_compiling:$ac_tool_warned in
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22969 ac_tool_warned=yes ;;
22971 PKGCONFIG=$ac_pt_PKGCONFIG
22974 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22978 if test x$PKGCONFIG != xno; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
22980 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
22982 if test -n ""; then
22983 PKG_CONFIG_LIBDIR=""
22984 export PKG_CONFIG_LIBDIR
22986 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
22988 if test -z "$itexists"; then
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22991 $as_echo "no" >&6; }
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22994 $as_echo "found" >&6; }
22999 if test "$PKGCONFIG" != "no" ; then
23000 addlib=`$PKGCONFIG --libs-only-l gnutls`
23001 addld=`$PKGCONFIG --libs-only-L gnutls`
23002 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23003 version=`$PKGCONFIG --modversion gnutls`
23004 gtlslib=`echo $addld | $SED -e 's/-L//'`
23006 check=`libgnutls-config --version 2>/dev/null`
23007 if test -n "$check"; then
23008 addlib=`libgnutls-config --libs`
23009 addcflags=`libgnutls-config --cflags`
23010 version=`libgnutls-config --version`
23011 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23015 cfg=$OPT_GNUTLS/bin/libgnutls-config
23016 check=`$cfg --version 2>/dev/null`
23017 if test -n "$check"; then
23018 addlib=`$cfg --libs`
23019 addcflags=`$cfg --cflags`
23020 version=`$cfg --version`
23021 gtlslib=`$cfg --prefix`/lib$libsuff
23024 addld=-L$OPT_GNUTLS/lib$libsuff
23025 addcflags=-I$OPT_GNUTLS/include
23026 version="" # we just don't know
23027 gtlslib=$OPT_GNUTLS/lib$libsuff
23031 if test -z "$version"; then
23035 if test -n "$addlib"; then
23038 CLEANCPPFLAGS="$CPPFLAGS"
23039 CLEANLDFLAGS="$LDFLAGS"
23041 LIBS="$addlib $LIBS"
23042 LDFLAGS="$LDFLAGS $addld"
23043 if test "$addcflags" != "-I/usr/include"; then
23044 CPPFLAGS="$CPPFLAGS $addcflags"
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23048 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23049 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23050 $as_echo_n "(cached) " >&6
23052 ac_check_lib_save_LIBS=$LIBS
23053 LIBS="-lgnutls $LIBS"
23054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h. */
23061 char gnutls_check_version ();
23064 return gnutls_check_version ();
23069 if ac_fn_c_try_link "$LINENO"; then :
23070 ac_cv_lib_gnutls_gnutls_check_version=yes
23072 ac_cv_lib_gnutls_gnutls_check_version=no
23074 rm -f core conftest.err conftest.$ac_objext \
23075 conftest$ac_exeext conftest.$ac_ext
23076 LIBS=$ac_check_lib_save_LIBS
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23079 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23080 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23083 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23089 curl_ssl_msg="enabled (GnuTLS)"
23094 CPPFLAGS="$CLEANCPPFLAGS"
23099 if test "x$USE_GNUTLS" = "xyes"; then
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23101 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23103 if test -n "$gtlslib"; then
23104 if test "x$cross_compiling" != "xyes"; then
23105 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23106 export LD_LIBRARY_PATH
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23108 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23119 if test "$GNUTLS_ENABLED" = "1"; then
23121 # First check if we can detect either crypto library via transitive linking
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23123 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23124 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23125 $as_echo_n "(cached) " >&6
23127 ac_check_lib_save_LIBS=$LIBS
23128 LIBS="-lgnutls $LIBS"
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h. */
23136 char nettle_MD5Init ();
23139 return nettle_MD5Init ();
23144 if ac_fn_c_try_link "$LINENO"; then :
23145 ac_cv_lib_gnutls_nettle_MD5Init=yes
23147 ac_cv_lib_gnutls_nettle_MD5Init=no
23149 rm -f core conftest.err conftest.$ac_objext \
23150 conftest$ac_exeext conftest.$ac_ext
23151 LIBS=$ac_check_lib_save_LIBS
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23154 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23155 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23156 USE_GNUTLS_NETTLE=1
23159 if test "$USE_GNUTLS_NETTLE" = ""; then
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23161 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23162 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23163 $as_echo_n "(cached) " >&6
23165 ac_check_lib_save_LIBS=$LIBS
23166 LIBS="-lgnutls $LIBS"
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h. */
23174 char gcry_control ();
23177 return gcry_control ();
23182 if ac_fn_c_try_link "$LINENO"; then :
23183 ac_cv_lib_gnutls_gcry_control=yes
23185 ac_cv_lib_gnutls_gcry_control=no
23187 rm -f core conftest.err conftest.$ac_objext \
23188 conftest$ac_exeext conftest.$ac_ext
23189 LIBS=$ac_check_lib_save_LIBS
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23192 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23193 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23194 USE_GNUTLS_NETTLE=0
23198 # If not, try linking directly to both of them to see if they are available
23199 if test "$USE_GNUTLS_NETTLE" = ""; then
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23201 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23202 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23203 $as_echo_n "(cached) " >&6
23205 ac_check_lib_save_LIBS=$LIBS
23206 LIBS="-lnettle $LIBS"
23207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23208 /* end confdefs.h. */
23214 char nettle_MD5Init ();
23217 return nettle_MD5Init ();
23222 if ac_fn_c_try_link "$LINENO"; then :
23223 ac_cv_lib_nettle_nettle_MD5Init=yes
23225 ac_cv_lib_nettle_nettle_MD5Init=no
23227 rm -f core conftest.err conftest.$ac_objext \
23228 conftest$ac_exeext conftest.$ac_ext
23229 LIBS=$ac_check_lib_save_LIBS
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23232 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23233 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23234 USE_GNUTLS_NETTLE=1
23238 if test "$USE_GNUTLS_NETTLE" = ""; then
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23240 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23241 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23242 $as_echo_n "(cached) " >&6
23244 ac_check_lib_save_LIBS=$LIBS
23245 LIBS="-lgcrypt $LIBS"
23246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23247 /* end confdefs.h. */
23253 char gcry_control ();
23256 return gcry_control ();
23261 if ac_fn_c_try_link "$LINENO"; then :
23262 ac_cv_lib_gcrypt_gcry_control=yes
23264 ac_cv_lib_gcrypt_gcry_control=no
23266 rm -f core conftest.err conftest.$ac_objext \
23267 conftest$ac_exeext conftest.$ac_ext
23268 LIBS=$ac_check_lib_save_LIBS
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23271 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23272 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23273 USE_GNUTLS_NETTLE=0
23277 if test "$USE_GNUTLS_NETTLE" = ""; then
23278 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23280 if test "$USE_GNUTLS_NETTLE" = "1"; then
23282 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23284 USE_GNUTLS_NETTLE=1
23286 LIBS="-lnettle $LIBS"
23288 LIBS="-lgcrypt $LIBS"
23292 if test "$GNUTLS_ENABLED" = "1"; then
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23294 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23295 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23296 $as_echo_n "(cached) " >&6
23298 ac_check_lib_save_LIBS=$LIBS
23299 LIBS="-lgnutls $LIBS"
23300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23301 /* end confdefs.h. */
23307 char gnutls_srp_verifier ();
23310 return gnutls_srp_verifier ();
23315 if ac_fn_c_try_link "$LINENO"; then :
23316 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23318 ac_cv_lib_gnutls_gnutls_srp_verifier=no
23320 rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext conftest.$ac_ext
23322 LIBS=$ac_check_lib_save_LIBS
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23325 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23326 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23329 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23341 _cppflags=$CPPFLAGS
23344 # Check whether --with-polarssl was given.
23345 if test "${with_polarssl+set}" = set; then :
23346 withval=$with_polarssl; OPT_POLARSSL=$withval
23350 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23352 if test X"$OPT_POLARSSL" != Xno; then
23354 if test "$OPT_POLARSSL" = "yes"; then
23358 if test -z "$OPT_POLARSSL" ; then
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23361 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23362 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23363 $as_echo_n "(cached) " >&6
23365 ac_check_lib_save_LIBS=$LIBS
23366 LIBS="-lpolarssl $LIBS"
23367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23368 /* end confdefs.h. */
23374 char havege_init ();
23377 return havege_init ();
23382 if ac_fn_c_try_link "$LINENO"; then :
23383 ac_cv_lib_polarssl_havege_init=yes
23385 ac_cv_lib_polarssl_havege_init=no
23387 rm -f core conftest.err conftest.$ac_objext \
23388 conftest$ac_exeext conftest.$ac_ext
23389 LIBS=$ac_check_lib_save_LIBS
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23392 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23393 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23396 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23402 curl_ssl_msg="enabled (PolarSSL)"
23413 if test "x$USE_POLARSSL" != "xyes"; then
23414 addld=-L$OPT_POLARSSL/lib$libsuff
23415 addcflags=-I$OPT_POLARSSL/include
23416 polarssllib=$OPT_POLARSSL/lib$libsuff
23418 LDFLAGS="$LDFLAGS $addld"
23419 if test "$addcflags" != "-I/usr/include"; then
23420 CPPFLAGS="$CPPFLAGS $addcflags"
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
23424 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
23425 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
23426 $as_echo_n "(cached) " >&6
23428 ac_check_lib_save_LIBS=$LIBS
23429 LIBS="-lpolarssl $LIBS"
23430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23431 /* end confdefs.h. */
23440 return ssl_init ();
23445 if ac_fn_c_try_link "$LINENO"; then :
23446 ac_cv_lib_polarssl_ssl_init=yes
23448 ac_cv_lib_polarssl_ssl_init=no
23450 rm -f core conftest.err conftest.$ac_objext \
23451 conftest$ac_exeext conftest.$ac_ext
23452 LIBS=$ac_check_lib_save_LIBS
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
23455 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
23456 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
23459 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23465 curl_ssl_msg="enabled (PolarSSL)"
23469 CPPFLAGS=$_cppflags
23476 if test "x$USE_POLARSSL" = "xyes"; then
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
23478 $as_echo "$as_me: detected PolarSSL" >&6;}
23480 LIBS="-lpolarssl $LIBS"
23482 if test -n "$polarssllib"; then
23483 if test "x$cross_compiling" != "xyes"; then
23484 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
23485 export LD_LIBRARY_PATH
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
23487 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
23498 _cppflags=$CPPFLAGS
23501 # Check whether --with-cyassl was given.
23502 if test "${with_cyassl+set}" = set; then :
23503 withval=$with_cyassl; OPT_CYASSL=$withval
23507 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23509 if test X"$OPT_CYASSL" != Xno; then
23511 if test "$OPT_CYASSL" = "yes"; then
23516 cyassllibname=cyassl
23518 if test -z "$OPT_CYASSL" ; then
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23521 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23522 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23523 $as_echo_n "(cached) " >&6
23525 ac_check_lib_save_LIBS=$LIBS
23526 LIBS="-lcyassl $LIBS"
23527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528 /* end confdefs.h. */
23534 char CyaSSL_Init ();
23537 return CyaSSL_Init ();
23542 if ac_fn_c_try_link "$LINENO"; then :
23543 ac_cv_lib_cyassl_CyaSSL_Init=yes
23545 ac_cv_lib_cyassl_CyaSSL_Init=no
23547 rm -f core conftest.err conftest.$ac_objext \
23548 conftest$ac_exeext conftest.$ac_ext
23549 LIBS=$ac_check_lib_save_LIBS
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23552 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23553 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23556 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23562 curl_ssl_msg="enabled (CyaSSL)"
23573 if test "x$USE_CYASSL" != "xyes"; then
23574 addld=-L$OPT_CYASSL/lib$libsuff
23575 addcflags=-I$OPT_CYASSL/include
23576 cyassllib=$OPT_CYASSL/lib$libsuff
23578 LDFLAGS="$LDFLAGS $addld"
23579 if test "$addcflags" != "-I/usr/include"; then
23580 CPPFLAGS="$CPPFLAGS $addcflags"
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23584 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23585 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23586 $as_echo_n "(cached) " >&6
23588 ac_check_lib_save_LIBS=$LIBS
23589 LIBS="-lcyassl $LIBS"
23590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23591 /* end confdefs.h. */
23597 char CyaSSL_Init ();
23600 return CyaSSL_Init ();
23605 if ac_fn_c_try_link "$LINENO"; then :
23606 ac_cv_lib_cyassl_CyaSSL_Init=yes
23608 ac_cv_lib_cyassl_CyaSSL_Init=no
23610 rm -f core conftest.err conftest.$ac_objext \
23611 conftest$ac_exeext conftest.$ac_ext
23612 LIBS=$ac_check_lib_save_LIBS
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23615 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23616 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23619 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23625 curl_ssl_msg="enabled (CyaSSL)"
23629 CPPFLAGS=$_cppflags
23641 if test "x$USE_CYASSL" != "xyes"; then
23642 addld=-L$OPT_CYASSL/lib$libsuff
23643 addcflags=-I$OPT_CYASSL/include
23644 cyassllib=$OPT_CYASSL/lib$libsuff
23646 LDFLAGS="$LDFLAGS $addld"
23647 if test "$addcflags" != "-I/usr/include"; then
23648 CPPFLAGS="$CPPFLAGS $addcflags"
23651 cyassllibname=wolfssl
23652 my_ac_save_LIBS="$LIBS"
23653 LIBS="-l$cyassllibname -lm $LIBS"
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
23656 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
23657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658 /* end confdefs.h. */
23661 /* These aren't needed for detection and confuse WolfSSL.
23662 They are set up properly later if it is detected. */
23664 #undef SIZEOF_LONG_LONG
23665 #include <cyassl/ssl.h>
23670 return CyaSSL_Init();
23677 if ac_fn_c_try_link "$LINENO"; then :
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23680 $as_echo "yes" >&6; }
23682 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23688 curl_ssl_msg="enabled (CyaSSL)"
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23693 $as_echo "no" >&6; }
23694 CPPFLAGS=$_cppflags
23699 rm -f core conftest.err conftest.$ac_objext \
23700 conftest$ac_exeext conftest.$ac_ext
23701 LIBS="$my_ac_save_LIBS"
23704 if test "x$USE_CYASSL" = "xyes"; then
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
23706 $as_echo "$as_me: detected CyaSSL" >&6;}
23708 # The cast to long int works around a bug in the HP C Compiler
23709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23711 # This bug is HP SR number 8606223364.
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23713 $as_echo_n "checking size of long long... " >&6; }
23714 if ${ac_cv_sizeof_long_long+:} false; then :
23715 $as_echo_n "(cached) " >&6
23717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23720 if test "$ac_cv_type_long_long" = yes; then
23721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23723 as_fn_error 77 "cannot compute sizeof (long long)
23724 See \`config.log' for more details" "$LINENO" 5; }
23726 ac_cv_sizeof_long_long=0
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23732 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23736 cat >>confdefs.h <<_ACEOF
23737 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23742 for ac_header in cyassl/options.h
23744 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
23745 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
23746 cat >>confdefs.h <<_ACEOF
23747 #define HAVE_CYASSL_OPTIONS_H 1
23755 for ac_header in cyassl/error-ssl.h
23757 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
23758 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
23759 cat >>confdefs.h <<_ACEOF
23760 #define HAVE_CYASSL_ERROR_SSL_H 1
23768 LIBS="-l$cyassllibname -lm $LIBS"
23770 if test -n "$cyassllib"; then
23771 if test "x$cross_compiling" != "xyes"; then
23772 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
23773 export LD_LIBRARY_PATH
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
23775 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
23788 # Check whether --with-nss was given.
23789 if test "${with_nss+set}" = set; then :
23790 withval=$with_nss; OPT_NSS=$withval
23794 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23796 if test X"$OPT_NSS" != Xno; then
23804 if test "x$OPT_NSS" = "xyes"; then
23810 if test -n "$ac_tool_prefix"; then
23811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23812 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23814 $as_echo_n "checking for $ac_word... " >&6; }
23815 if ${ac_cv_path_PKGCONFIG+:} false; then :
23816 $as_echo_n "(cached) " >&6
23820 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23824 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23825 for as_dir in $as_dummy
23828 test -z "$as_dir" && as_dir=.
23829 for ac_exec_ext in '' $ac_executable_extensions; do
23830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23831 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23842 PKGCONFIG=$ac_cv_path_PKGCONFIG
23843 if test -n "$PKGCONFIG"; then
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23845 $as_echo "$PKGCONFIG" >&6; }
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 $as_echo "no" >&6; }
23853 if test -z "$ac_cv_path_PKGCONFIG"; then
23854 ac_pt_PKGCONFIG=$PKGCONFIG
23855 # Extract the first word of "pkg-config", so it can be a program name with args.
23856 set dummy pkg-config; ac_word=$2
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23858 $as_echo_n "checking for $ac_word... " >&6; }
23859 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23860 $as_echo_n "(cached) " >&6
23862 case $ac_pt_PKGCONFIG in
23864 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23868 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23869 for as_dir in $as_dummy
23872 test -z "$as_dir" && as_dir=.
23873 for ac_exec_ext in '' $ac_executable_extensions; do
23874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23875 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23886 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23887 if test -n "$ac_pt_PKGCONFIG"; then
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23889 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23892 $as_echo "no" >&6; }
23895 if test "x$ac_pt_PKGCONFIG" = x; then
23898 case $cross_compiling:$ac_tool_warned in
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23902 ac_tool_warned=yes ;;
23904 PKGCONFIG=$ac_pt_PKGCONFIG
23907 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23911 if test x$PKGCONFIG != xno; then
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
23913 $as_echo_n "checking for nss options with pkg-config... " >&6; }
23915 if test -n ""; then
23916 PKG_CONFIG_LIBDIR=""
23917 export PKG_CONFIG_LIBDIR
23919 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
23921 if test -z "$itexists"; then
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23924 $as_echo "no" >&6; }
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23927 $as_echo "found" >&6; }
23932 if test "$PKGCONFIG" != "no" ; then
23933 addlib=`$PKGCONFIG --libs nss`
23934 addcflags=`$PKGCONFIG --cflags nss`
23935 version=`$PKGCONFIG --modversion nss`
23936 nssprefix=`$PKGCONFIG --variable=prefix nss`
23939 check=`nss-config --version 2>/dev/null`
23940 if test -n "$check"; then
23941 addlib=`nss-config --libs`
23942 addcflags=`nss-config --cflags`
23943 version=`nss-config --version`
23944 nssprefix=`nss-config --prefix`
23952 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
23953 if test -f "$NSS_PCDIR/nss.pc"; then
23958 if test -n "$ac_tool_prefix"; then
23959 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23960 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23962 $as_echo_n "checking for $ac_word... " >&6; }
23963 if ${ac_cv_path_PKGCONFIG+:} false; then :
23964 $as_echo_n "(cached) " >&6
23968 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23972 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23973 for as_dir in $as_dummy
23976 test -z "$as_dir" && as_dir=.
23977 for ac_exec_ext in '' $ac_executable_extensions; do
23978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23979 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23990 PKGCONFIG=$ac_cv_path_PKGCONFIG
23991 if test -n "$PKGCONFIG"; then
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23993 $as_echo "$PKGCONFIG" >&6; }
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23996 $as_echo "no" >&6; }
24001 if test -z "$ac_cv_path_PKGCONFIG"; then
24002 ac_pt_PKGCONFIG=$PKGCONFIG
24003 # Extract the first word of "pkg-config", so it can be a program name with args.
24004 set dummy pkg-config; ac_word=$2
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24006 $as_echo_n "checking for $ac_word... " >&6; }
24007 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24008 $as_echo_n "(cached) " >&6
24010 case $ac_pt_PKGCONFIG in
24012 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24016 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24017 for as_dir in $as_dummy
24020 test -z "$as_dir" && as_dir=.
24021 for ac_exec_ext in '' $ac_executable_extensions; do
24022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24023 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24034 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24035 if test -n "$ac_pt_PKGCONFIG"; then
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24037 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24040 $as_echo "no" >&6; }
24043 if test "x$ac_pt_PKGCONFIG" = x; then
24046 case $cross_compiling:$ac_tool_warned in
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24050 ac_tool_warned=yes ;;
24052 PKGCONFIG=$ac_pt_PKGCONFIG
24055 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24059 if test x$PKGCONFIG != xno; then
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24061 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24063 if test -n "$NSS_PCDIR"; then
24064 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24065 export PKG_CONFIG_LIBDIR
24067 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24069 if test -z "$itexists"; then
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24072 $as_echo "no" >&6; }
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24075 $as_echo "found" >&6; }
24079 if test "$PKGCONFIG" != "no" ; then
24081 if test -n "$NSS_PCDIR"; then
24082 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24083 export PKG_CONFIG_LIBDIR
24085 $PKGCONFIG --libs-only-L nss`
24087 if test -n "$NSS_PCDIR"; then
24088 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24089 export PKG_CONFIG_LIBDIR
24091 $PKGCONFIG --libs-only-l nss`
24093 if test -n "$NSS_PCDIR"; then
24094 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24095 export PKG_CONFIG_LIBDIR
24097 $PKGCONFIG --cflags nss`
24099 if test -n "$NSS_PCDIR"; then
24100 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24101 export PKG_CONFIG_LIBDIR
24103 $PKGCONFIG --modversion nss`
24105 if test -n "$NSS_PCDIR"; then
24106 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24107 export PKG_CONFIG_LIBDIR
24109 $PKGCONFIG --variable=prefix nss`
24114 if test -z "$addlib"; then
24115 # Without pkg-config, we'll kludge in some defaults
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
24117 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
24118 addld="-L$OPT_NSS/lib"
24119 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
24120 addcflags="-I$OPT_NSS/include"
24125 CLEANLDFLAGS="$LDFLAGS"
24127 CLEANCPPFLAGS="$CPPFLAGS"
24129 LDFLAGS="$addld $LDFLAGS"
24130 LIBS="$addlib $LIBS"
24131 if test "$addcflags" != "-I/usr/include"; then
24132 CPPFLAGS="$CPPFLAGS $addcflags"
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
24136 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
24137 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
24138 $as_echo_n "(cached) " >&6
24140 ac_check_lib_save_LIBS=$LIBS
24141 LIBS="-lnss3 $LIBS"
24142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24143 /* end confdefs.h. */
24149 char SSL_VersionRangeSet ();
24152 return SSL_VersionRangeSet ();
24157 if ac_fn_c_try_link "$LINENO"; then :
24158 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
24160 ac_cv_lib_nss3_SSL_VersionRangeSet=no
24162 rm -f core conftest.err conftest.$ac_objext \
24163 conftest$ac_exeext conftest.$ac_ext
24164 LIBS=$ac_check_lib_save_LIBS
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
24167 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
24168 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
24171 $as_echo "#define USE_NSS 1" >>confdefs.h
24177 curl_ssl_msg="enabled (NSS)"
24181 LDFLAGS="$CLEANLDFLAGS"
24183 CPPFLAGS="$CLEANCPPFLAGS"
24188 if test "x$USE_NSS" = "xyes"; then
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
24190 $as_echo "$as_me: detected NSS version $version" >&6;}
24195 if test "x$cross_compiling" != "xyes"; then
24196 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
24197 export LD_LIBRARY_PATH
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
24199 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
24208 # Check whether --with-axtls was given.
24209 if test "${with_axtls+set}" = set; then :
24210 withval=$with_axtls; OPT_AXTLS=$withval
24214 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24215 if test X"$OPT_AXTLS" != Xno; then
24216 CLEANLDFLAGS="$LDFLAGS"
24217 CLEANCPPFLAGS="$CPPFLAGS"
24220 case "$OPT_AXTLS" in
24222 PREFIX_AXTLS=/usr/local
24223 LIB_AXTLS="$PREFIX_AXTLS/lib"
24224 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
24225 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
24231 PREFIX_AXTLS=$OPT_AXTLS
24232 LIB_AXTLS="$PREFIX_AXTLS/lib"
24233 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
24234 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
24239 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
24240 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
24241 $as_echo_n "(cached) " >&6
24243 ac_check_lib_save_LIBS=$LIBS
24244 LIBS="-laxtls $LIBS"
24245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246 /* end confdefs.h. */
24252 char ssl_version ();
24255 return ssl_version ();
24260 if ac_fn_c_try_link "$LINENO"; then :
24261 ac_cv_lib_axtls_ssl_version=yes
24263 ac_cv_lib_axtls_ssl_version=no
24265 rm -f core conftest.err conftest.$ac_objext \
24266 conftest$ac_exeext conftest.$ac_ext
24267 LIBS=$ac_check_lib_save_LIBS
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
24270 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
24271 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
24273 LIBS="-laxtls $LIBS"
24275 $as_echo "#define USE_AXTLS 1" >>confdefs.h
24281 curl_ssl_msg="enabled (axTLS)"
24283 if test "x$cross_compiling" != "xyes"; then
24284 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
24285 export LD_LIBRARY_PATH
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
24287 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
24292 LDFLAGS="$CLEANLDFLAGS"
24293 CPPFLAGS="$CLEANCPPFLAGS"
24301 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
24303 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
24304 { $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
24305 $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;}
24307 # SSL is enabled, genericly
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
24316 $as_echo_n "checking default CA cert bundle/path... " >&6; }
24319 # Check whether --with-ca-bundle was given.
24320 if test "${with_ca_bundle+set}" = set; then :
24321 withval=$with_ca_bundle;
24323 if test "x$want_ca" = "xyes"; then
24324 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
24332 # Check whether --with-ca-path was given.
24333 if test "${with_ca_path+set}" = set; then :
24334 withval=$with_ca_path;
24335 want_capath="$withval"
24336 if test "x$want_capath" = "xyes"; then
24337 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
24341 want_capath="unset"
24345 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
24346 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24348 capath="$want_capath"
24349 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
24352 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24353 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
24354 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
24356 capath="$want_capath"
24361 if test "x$cross_compiling" != "xyes"; then
24362 if test "x$want_ca" = "xunset"; then
24363 if test "x$prefix" != xNONE; then
24364 cac="${prefix}/share/curl/curl-ca-bundle.crt"
24366 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
24369 for a in /etc/ssl/certs/ca-certificates.crt \
24370 /etc/pki/tls/certs/ca-bundle.crt \
24371 /usr/share/ssl/certs/ca-bundle.crt \
24372 /usr/local/share/certs/ca-root.crt \
24373 /etc/ssl/cert.pem \
24375 if test -f "$a"; then
24381 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
24382 "x$OPENSSL_ENABLED" = "x1"; then
24383 for a in /etc/ssl/certs/; do
24384 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
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
24392 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
24396 if test "x$ca" != "xno"; then
24397 CURL_CA_BUNDLE='"'$ca'"'
24399 cat >>confdefs.h <<_ACEOF
24400 #define CURL_CA_BUNDLE "$ca"
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
24405 $as_echo "$ca" >&6; }
24407 if test "x$capath" != "xno"; then
24408 CURL_CA_PATH="\"$capath\""
24410 cat >>confdefs.h <<_ACEOF
24411 #define CURL_CA_PATH "$capath"
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
24415 $as_echo "$capath (capath)" >&6; }
24417 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24419 $as_echo "no" >&6; }
24427 # Check whether --with-libmetalink was given.
24428 if test "${with_libmetalink+set}" = set; then :
24429 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
24433 if test X"$OPT_LIBMETALINK" != Xno; then
24442 if test "x$OPT_LIBMETALINK" = "xyes"; then
24448 if test -n "$ac_tool_prefix"; then
24449 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24450 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24452 $as_echo_n "checking for $ac_word... " >&6; }
24453 if ${ac_cv_path_PKGCONFIG+:} false; then :
24454 $as_echo_n "(cached) " >&6
24458 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24462 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24463 for as_dir in $as_dummy
24466 test -z "$as_dir" && as_dir=.
24467 for ac_exec_ext in '' $ac_executable_extensions; do
24468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24469 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24480 PKGCONFIG=$ac_cv_path_PKGCONFIG
24481 if test -n "$PKGCONFIG"; then
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24483 $as_echo "$PKGCONFIG" >&6; }
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24486 $as_echo "no" >&6; }
24491 if test -z "$ac_cv_path_PKGCONFIG"; then
24492 ac_pt_PKGCONFIG=$PKGCONFIG
24493 # Extract the first word of "pkg-config", so it can be a program name with args.
24494 set dummy pkg-config; ac_word=$2
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24496 $as_echo_n "checking for $ac_word... " >&6; }
24497 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24498 $as_echo_n "(cached) " >&6
24500 case $ac_pt_PKGCONFIG in
24502 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24506 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24507 for as_dir in $as_dummy
24510 test -z "$as_dir" && as_dir=.
24511 for ac_exec_ext in '' $ac_executable_extensions; do
24512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24513 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24524 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24525 if test -n "$ac_pt_PKGCONFIG"; then
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24527 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530 $as_echo "no" >&6; }
24533 if test "x$ac_pt_PKGCONFIG" = x; then
24536 case $cross_compiling:$ac_tool_warned in
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24540 ac_tool_warned=yes ;;
24542 PKGCONFIG=$ac_pt_PKGCONFIG
24545 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24549 if test x$PKGCONFIG != xno; then
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24551 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24553 if test -n ""; then
24554 PKG_CONFIG_LIBDIR=""
24555 export PKG_CONFIG_LIBDIR
24557 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24559 if test -z "$itexists"; then
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24562 $as_echo "no" >&6; }
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24565 $as_echo "found" >&6; }
24570 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
24572 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
24573 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
24576 if test "$PKGTEST" = "yes"; then
24581 if test -n "$ac_tool_prefix"; then
24582 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24583 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24585 $as_echo_n "checking for $ac_word... " >&6; }
24586 if ${ac_cv_path_PKGCONFIG+:} false; then :
24587 $as_echo_n "(cached) " >&6
24591 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24595 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24596 for as_dir in $as_dummy
24599 test -z "$as_dir" && as_dir=.
24600 for ac_exec_ext in '' $ac_executable_extensions; do
24601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24602 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24613 PKGCONFIG=$ac_cv_path_PKGCONFIG
24614 if test -n "$PKGCONFIG"; then
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24616 $as_echo "$PKGCONFIG" >&6; }
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24619 $as_echo "no" >&6; }
24624 if test -z "$ac_cv_path_PKGCONFIG"; then
24625 ac_pt_PKGCONFIG=$PKGCONFIG
24626 # Extract the first word of "pkg-config", so it can be a program name with args.
24627 set dummy pkg-config; ac_word=$2
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24629 $as_echo_n "checking for $ac_word... " >&6; }
24630 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24631 $as_echo_n "(cached) " >&6
24633 case $ac_pt_PKGCONFIG in
24635 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24639 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24640 for as_dir in $as_dummy
24643 test -z "$as_dir" && as_dir=.
24644 for ac_exec_ext in '' $ac_executable_extensions; do
24645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24646 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24657 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24658 if test -n "$ac_pt_PKGCONFIG"; then
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24660 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24663 $as_echo "no" >&6; }
24666 if test "x$ac_pt_PKGCONFIG" = x; then
24669 case $cross_compiling:$ac_tool_warned in
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24673 ac_tool_warned=yes ;;
24675 PKGCONFIG=$ac_pt_PKGCONFIG
24678 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24682 if test x$PKGCONFIG != xno; then
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24684 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24686 if test -n "$LIBMETALINK_PCDIR"; then
24687 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24688 export PKG_CONFIG_LIBDIR
24690 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24692 if test -z "$itexists"; then
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24695 $as_echo "no" >&6; }
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24698 $as_echo "found" >&6; }
24704 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
24706 if test -n "$LIBMETALINK_PCDIR"; then
24707 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24708 export PKG_CONFIG_LIBDIR
24710 $PKGCONFIG --libs-only-l libmetalink`
24712 if test -n "$LIBMETALINK_PCDIR"; then
24713 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24714 export PKG_CONFIG_LIBDIR
24716 $PKGCONFIG --libs-only-L libmetalink`
24718 if test -n "$LIBMETALINK_PCDIR"; then
24719 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24720 export PKG_CONFIG_LIBDIR
24722 $PKGCONFIG --cflags-only-I libmetalink`
24724 if test -n "$LIBMETALINK_PCDIR"; then
24725 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24726 export PKG_CONFIG_LIBDIR
24728 $PKGCONFIG --modversion libmetalink`
24729 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
24731 if test -n "$addlib"; then
24733 clean_CPPFLAGS="$CPPFLAGS"
24734 clean_LDFLAGS="$LDFLAGS"
24736 CPPFLAGS="$addcflags $clean_CPPFLAGS"
24737 LDFLAGS="$addld $clean_LDFLAGS"
24738 LIBS="$addlib $clean_LIBS"
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
24740 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
24741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24742 /* end confdefs.h. */
24745 # include <metalink/metalink.h>
24750 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
24758 if ac_fn_c_try_link "$LINENO"; then :
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
24761 $as_echo "yes ($version)" >&6; }
24762 want_metalink="yes"
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
24767 $as_echo "no ($version)" >&6; }
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
24769 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
24773 rm -f core conftest.err conftest.$ac_objext \
24774 conftest$ac_exeext conftest.$ac_ext
24775 CPPFLAGS="$clean_CPPFLAGS"
24776 LDFLAGS="$clean_LDFLAGS"
24778 if test "$want_metalink" = "yes"; then
24780 $as_echo "#define USE_METALINK 1" >>confdefs.h
24782 LIBMETALINK_LIBS=$addlib
24783 LIBMETALINK_LDFLAGS=$addld
24784 LIBMETALINK_CPPFLAGS=$addcflags
24788 curl_mtlnk_msg="enabled"
24797 # Check whether --with-libssh2 was given.
24798 if test "${with_libssh2+set}" = set; then :
24799 withval=$with_libssh2; OPT_LIBSSH2=$withval
24803 if test X"$OPT_LIBSSH2" != Xno; then
24804 CLEANLDFLAGS="$LDFLAGS"
24805 CLEANCPPFLAGS="$CPPFLAGS"
24808 case "$OPT_LIBSSH2" in
24814 if test -n "$ac_tool_prefix"; then
24815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24818 $as_echo_n "checking for $ac_word... " >&6; }
24819 if ${ac_cv_path_PKGCONFIG+:} false; then :
24820 $as_echo_n "(cached) " >&6
24824 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24828 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24829 for as_dir in $as_dummy
24832 test -z "$as_dir" && as_dir=.
24833 for ac_exec_ext in '' $ac_executable_extensions; do
24834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24835 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24846 PKGCONFIG=$ac_cv_path_PKGCONFIG
24847 if test -n "$PKGCONFIG"; then
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24849 $as_echo "$PKGCONFIG" >&6; }
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24852 $as_echo "no" >&6; }
24857 if test -z "$ac_cv_path_PKGCONFIG"; then
24858 ac_pt_PKGCONFIG=$PKGCONFIG
24859 # Extract the first word of "pkg-config", so it can be a program name with args.
24860 set dummy pkg-config; ac_word=$2
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24862 $as_echo_n "checking for $ac_word... " >&6; }
24863 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24864 $as_echo_n "(cached) " >&6
24866 case $ac_pt_PKGCONFIG in
24868 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24872 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24873 for as_dir in $as_dummy
24876 test -z "$as_dir" && as_dir=.
24877 for ac_exec_ext in '' $ac_executable_extensions; do
24878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24879 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24890 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24891 if test -n "$ac_pt_PKGCONFIG"; then
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24893 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24896 $as_echo "no" >&6; }
24899 if test "x$ac_pt_PKGCONFIG" = x; then
24902 case $cross_compiling:$ac_tool_warned in
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24906 ac_tool_warned=yes ;;
24908 PKGCONFIG=$ac_pt_PKGCONFIG
24911 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24915 if test x$PKGCONFIG != xno; then
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
24917 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
24919 if test -n ""; then
24920 PKG_CONFIG_LIBDIR=""
24921 export PKG_CONFIG_LIBDIR
24923 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
24925 if test -z "$itexists"; then
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24928 $as_echo "no" >&6; }
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24931 $as_echo "found" >&6; }
24936 if test "$PKGCONFIG" != "no" ; then
24937 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
24938 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
24939 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
24940 version=`$PKGCONFIG --modversion libssh2`
24941 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
24948 PREFIX_SSH2=$OPT_LIBSSH2
24952 if test -n "$PREFIX_SSH2"; then
24954 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
24955 CPP_SSH2=-I${PREFIX_SSH2}/include
24956 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
24959 LDFLAGS="$LDFLAGS $LD_SSH2"
24960 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
24961 LIBS="$LIB_SSH2 $LIBS"
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
24964 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
24965 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
24966 $as_echo_n "(cached) " >&6
24968 ac_check_lib_save_LIBS=$LIBS
24969 LIBS="-lssh2 $LIBS"
24970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h. */
24977 char libssh2_channel_open_ex ();
24980 return libssh2_channel_open_ex ();
24985 if ac_fn_c_try_link "$LINENO"; then :
24986 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
24988 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
24990 rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
24992 LIBS=$ac_check_lib_save_LIBS
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
24995 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
24996 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
24997 cat >>confdefs.h <<_ACEOF
24998 #define HAVE_LIBSSH2 1
25001 LIBS="-lssh2 $LIBS"
25006 for ac_header in libssh2.h
25008 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
25009 if test "x$ac_cv_header_libssh2_h" = xyes; then :
25010 cat >>confdefs.h <<_ACEOF
25011 #define HAVE_LIBSSH2_H 1
25013 curl_ssh_msg="enabled (libSSH2)"
25016 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
25026 if test X"$OPT_LIBSSH2" != Xoff &&
25027 test "$LIBSSH2_ENABLED" != "1"; then
25028 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
25031 if test "$LIBSSH2_ENABLED" = "1"; then
25032 if test -n "$DIR_SSH2"; then
25034 if test "x$cross_compiling" != "xyes"; then
25035 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
25036 export LD_LIBRARY_PATH
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
25038 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
25042 LDFLAGS=$CLEANLDFLAGS
25043 CPPFLAGS=$CLEANCPPFLAGS
25051 # Check whether --with-librtmp was given.
25052 if test "${with_librtmp+set}" = set; then :
25053 withval=$with_librtmp; OPT_LIBRTMP=$withval
25057 if test X"$OPT_LIBRTMP" != Xno; then
25058 CLEANLDFLAGS="$LDFLAGS"
25059 CLEANCPPFLAGS="$CPPFLAGS"
25062 case "$OPT_LIBRTMP" in
25068 if test -n "$ac_tool_prefix"; then
25069 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25070 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25072 $as_echo_n "checking for $ac_word... " >&6; }
25073 if ${ac_cv_path_PKGCONFIG+:} false; then :
25074 $as_echo_n "(cached) " >&6
25078 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25082 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25083 for as_dir in $as_dummy
25086 test -z "$as_dir" && as_dir=.
25087 for ac_exec_ext in '' $ac_executable_extensions; do
25088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25089 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25100 PKGCONFIG=$ac_cv_path_PKGCONFIG
25101 if test -n "$PKGCONFIG"; then
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25103 $as_echo "$PKGCONFIG" >&6; }
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106 $as_echo "no" >&6; }
25111 if test -z "$ac_cv_path_PKGCONFIG"; then
25112 ac_pt_PKGCONFIG=$PKGCONFIG
25113 # Extract the first word of "pkg-config", so it can be a program name with args.
25114 set dummy pkg-config; ac_word=$2
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25116 $as_echo_n "checking for $ac_word... " >&6; }
25117 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25118 $as_echo_n "(cached) " >&6
25120 case $ac_pt_PKGCONFIG in
25122 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25126 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25127 for as_dir in $as_dummy
25130 test -z "$as_dir" && as_dir=.
25131 for ac_exec_ext in '' $ac_executable_extensions; do
25132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25133 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25144 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25145 if test -n "$ac_pt_PKGCONFIG"; then
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25147 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 $as_echo "no" >&6; }
25153 if test "x$ac_pt_PKGCONFIG" = x; then
25156 case $cross_compiling:$ac_tool_warned in
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25160 ac_tool_warned=yes ;;
25162 PKGCONFIG=$ac_pt_PKGCONFIG
25165 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25169 if test x$PKGCONFIG != xno; then
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
25171 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
25173 if test -n ""; then
25174 PKG_CONFIG_LIBDIR=""
25175 export PKG_CONFIG_LIBDIR
25177 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
25179 if test -z "$itexists"; then
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25182 $as_echo "no" >&6; }
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25185 $as_echo "found" >&6; }
25190 if test "$PKGCONFIG" != "no" ; then
25191 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
25192 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
25193 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
25194 version=`$PKGCONFIG --modversion librtmp`
25195 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
25197 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
25205 PREFIX_RTMP=$OPT_LIBRTMP
25209 if test -n "$PREFIX_RTMP"; then
25210 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
25211 CPP_RTMP=-I${PREFIX_RTMP}/include
25212 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
25215 LDFLAGS="$LDFLAGS $LD_RTMP"
25216 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
25217 LIBS="$LIB_RTMP $LIBS"
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
25220 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
25221 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
25222 $as_echo_n "(cached) " >&6
25224 ac_check_lib_save_LIBS=$LIBS
25225 LIBS="-lrtmp $LIBS"
25226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h. */
25236 return RTMP_Init ();
25241 if ac_fn_c_try_link "$LINENO"; then :
25242 ac_cv_lib_rtmp_RTMP_Init=yes
25244 ac_cv_lib_rtmp_RTMP_Init=no
25246 rm -f core conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
25248 LIBS=$ac_check_lib_save_LIBS
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
25251 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
25252 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
25254 for ac_header in librtmp/rtmp.h
25256 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
25257 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
25258 cat >>confdefs.h <<_ACEOF
25259 #define HAVE_LIBRTMP_RTMP_H 1
25261 curl_rtmp_msg="enabled (librtmp)"
25264 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
25275 LDFLAGS=$CLEANLDFLAGS
25276 CPPFLAGS=$CLEANCPPFLAGS
25282 if test X"$OPT_LIBRTMP" != Xoff &&
25283 test "$LIBRTMP_ENABLED" != "1"; then
25284 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
25290 versioned_symbols_flavour=
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
25292 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
25293 # Check whether --enable-versioned-symbols was given.
25294 if test "${enable_versioned_symbols+set}" = set; then :
25295 enableval=$enable_versioned_symbols; case "$enableval" in
25296 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25297 $as_echo "yes" >&6; }
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
25299 $as_echo_n "checking if libraries can be versioned... " >&6; }
25300 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
25301 if test -z "$GLD"; then
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25303 $as_echo "no" >&6; }
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
25305 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25308 $as_echo "yes" >&6; }
25309 if test "x$OPENSSL_ENABLED" = "x1"; then
25310 versioned_symbols_flavour="OPENSSL_"
25311 elif test "x$GNUTLS_ENABLED" = "x1"; then
25312 versioned_symbols_flavour="GNUTLS_"
25313 elif test "x$NSS_ENABLED" = "x1"; then
25314 versioned_symbols_flavour="NSS_"
25315 elif test "x$POLARSSL_ENABLED" = "x1"; then
25316 versioned_symbols_flavour="POLARSSL_"
25317 elif test "x$CYASSL_ENABLED" = "x1"; then
25318 versioned_symbols_flavour="CYASSL_"
25319 elif test "x$AXTLS_ENABLED" = "x1"; then
25320 versioned_symbols_flavour="AXTLS_"
25321 elif test "x$WINSSL_ENABLED" = "x1"; then
25322 versioned_symbols_flavour="WINSSL_"
25323 elif test "x$DARWINSSL_ENABLED" = "x1"; then
25324 versioned_symbols_flavour="DARWINSSL_"
25326 versioned_symbols_flavour=""
25328 versioned_symbols="yes"
25332 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25333 $as_echo "no" >&6; }
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25340 $as_echo "no" >&6; }
25346 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
25348 if test "x$versioned_symbols" = 'xyes'; then
25349 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
25350 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
25352 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
25353 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
25359 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
25360 OPT_WINIDN="default"
25362 # Check whether --with-winidn was given.
25363 if test "${with_winidn+set}" = set; then :
25364 withval=$with_winidn; OPT_WINIDN=$withval
25367 case "$OPT_WINIDN" in
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25371 $as_echo "no" >&6; }
25375 want_winidn_path="default"
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25377 $as_echo "yes" >&6; }
25381 want_winidn_path="$withval"
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25383 $as_echo "yes ($withval)" >&6; }
25387 if test "$want_winidn" = "yes"; then
25388 clean_CPPFLAGS="$CPPFLAGS"
25389 clean_LDFLAGS="$LDFLAGS"
25391 WINIDN_LIBS="-lnormaliz"
25393 if test "$want_winidn_path" != "default"; then
25394 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
25395 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
25396 WINIDN_DIR="$want_winidn_path/lib$libsuff"
25399 CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
25400 LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
25401 LIBS="$WINIDN_LIBS $LIBS"
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
25404 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
25405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h. */
25409 #define IdnToUnicode innocuous_IdnToUnicode
25411 # include <limits.h>
25413 # include <assert.h>
25415 #undef IdnToUnicode
25419 char IdnToUnicode ();
25420 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
25426 return IdnToUnicode ();
25432 if ac_fn_c_try_link "$LINENO"; then :
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25435 $as_echo "yes" >&6; }
25436 tst_links_winidn="yes"
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25441 $as_echo "no" >&6; }
25442 tst_links_winidn="no"
25445 rm -f core conftest.err conftest.$ac_objext \
25446 conftest$ac_exeext conftest.$ac_ext
25448 if test "$tst_links_winidn" = "yes"; then
25450 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
25453 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
25457 curl_idn_msg="enabled (Windows-native)"
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25460 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25461 CPPFLAGS="$clean_CPPFLAGS"
25462 LDFLAGS="$clean_LDFLAGS"
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
25469 $as_echo_n "checking whether to build with libidn... " >&6; }
25472 # Check whether --with-libidn was given.
25473 if test "${with_libidn+set}" = set; then :
25474 withval=$with_libidn; OPT_IDN=$withval
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25481 $as_echo "no" >&6; }
25485 want_idn_path="default"
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
25487 $as_echo "(assumed) yes" >&6; }
25491 want_idn_path="default"
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25493 $as_echo "yes" >&6; }
25497 want_idn_path="$withval"
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25499 $as_echo "yes ($withval)" >&6; }
25503 if test "$want_idn" = "yes"; then
25504 clean_CPPFLAGS="$CPPFLAGS"
25505 clean_LDFLAGS="$LDFLAGS"
25509 if test "$want_idn_path" != "default"; then
25510 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
25515 if test -n "$ac_tool_prefix"; then
25516 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25517 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25519 $as_echo_n "checking for $ac_word... " >&6; }
25520 if ${ac_cv_path_PKGCONFIG+:} false; then :
25521 $as_echo_n "(cached) " >&6
25525 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25529 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25530 for as_dir in $as_dummy
25533 test -z "$as_dir" && as_dir=.
25534 for ac_exec_ext in '' $ac_executable_extensions; do
25535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25536 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25547 PKGCONFIG=$ac_cv_path_PKGCONFIG
25548 if test -n "$PKGCONFIG"; then
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25550 $as_echo "$PKGCONFIG" >&6; }
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553 $as_echo "no" >&6; }
25558 if test -z "$ac_cv_path_PKGCONFIG"; then
25559 ac_pt_PKGCONFIG=$PKGCONFIG
25560 # Extract the first word of "pkg-config", so it can be a program name with args.
25561 set dummy pkg-config; ac_word=$2
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25563 $as_echo_n "checking for $ac_word... " >&6; }
25564 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25565 $as_echo_n "(cached) " >&6
25567 case $ac_pt_PKGCONFIG in
25569 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25573 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25574 for as_dir in $as_dummy
25577 test -z "$as_dir" && as_dir=.
25578 for ac_exec_ext in '' $ac_executable_extensions; do
25579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25580 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25591 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25592 if test -n "$ac_pt_PKGCONFIG"; then
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25594 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25597 $as_echo "no" >&6; }
25600 if test "x$ac_pt_PKGCONFIG" = x; then
25603 case $cross_compiling:$ac_tool_warned in
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25607 ac_tool_warned=yes ;;
25609 PKGCONFIG=$ac_pt_PKGCONFIG
25612 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25616 if test x$PKGCONFIG != xno; then
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25618 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25620 if test -n "$IDN_PCDIR"; then
25621 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25622 export PKG_CONFIG_LIBDIR
25624 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25626 if test -z "$itexists"; then
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25629 $as_echo "no" >&6; }
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25632 $as_echo "found" >&6; }
25636 if test "$PKGCONFIG" != "no"; then
25638 if test -n "$IDN_PCDIR"; then
25639 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25640 export PKG_CONFIG_LIBDIR
25642 $PKGCONFIG --libs-only-l libidn 2>/dev/null`
25644 if test -n "$IDN_PCDIR"; then
25645 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25646 export PKG_CONFIG_LIBDIR
25648 $PKGCONFIG --libs-only-L libidn 2>/dev/null`
25650 if test -n "$IDN_PCDIR"; then
25651 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25652 export PKG_CONFIG_LIBDIR
25654 $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25655 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25658 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
25659 IDN_CPPFLAGS="-I$want_idn_path/include"
25660 IDN_DIR="$want_idn_path/lib$libsuff"
25667 if test -n "$ac_tool_prefix"; then
25668 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25669 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25671 $as_echo_n "checking for $ac_word... " >&6; }
25672 if ${ac_cv_path_PKGCONFIG+:} false; then :
25673 $as_echo_n "(cached) " >&6
25677 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25681 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25682 for as_dir in $as_dummy
25685 test -z "$as_dir" && as_dir=.
25686 for ac_exec_ext in '' $ac_executable_extensions; do
25687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25688 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25699 PKGCONFIG=$ac_cv_path_PKGCONFIG
25700 if test -n "$PKGCONFIG"; then
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25702 $as_echo "$PKGCONFIG" >&6; }
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25705 $as_echo "no" >&6; }
25710 if test -z "$ac_cv_path_PKGCONFIG"; then
25711 ac_pt_PKGCONFIG=$PKGCONFIG
25712 # Extract the first word of "pkg-config", so it can be a program name with args.
25713 set dummy pkg-config; ac_word=$2
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25715 $as_echo_n "checking for $ac_word... " >&6; }
25716 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25717 $as_echo_n "(cached) " >&6
25719 case $ac_pt_PKGCONFIG in
25721 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25725 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25726 for as_dir in $as_dummy
25729 test -z "$as_dir" && as_dir=.
25730 for ac_exec_ext in '' $ac_executable_extensions; do
25731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25732 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25743 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25744 if test -n "$ac_pt_PKGCONFIG"; then
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25746 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25749 $as_echo "no" >&6; }
25752 if test "x$ac_pt_PKGCONFIG" = x; then
25755 case $cross_compiling:$ac_tool_warned in
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25759 ac_tool_warned=yes ;;
25761 PKGCONFIG=$ac_pt_PKGCONFIG
25764 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25768 if test x$PKGCONFIG != xno; then
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25770 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25772 if test -n ""; then
25773 PKG_CONFIG_LIBDIR=""
25774 export PKG_CONFIG_LIBDIR
25776 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25778 if test -z "$itexists"; then
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25781 $as_echo "no" >&6; }
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25784 $as_echo "found" >&6; }
25788 if test "$PKGCONFIG" != "no"; then
25789 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
25790 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
25791 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25792 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25798 if test "$PKGCONFIG" != "no"; then
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
25800 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25802 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25804 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
25806 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
25809 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25811 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25813 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
25815 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
25818 CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
25819 LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
25820 LIBS="$IDN_LIBS $LIBS"
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
25823 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
25824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825 /* end confdefs.h. */
25828 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
25830 # include <limits.h>
25832 # include <assert.h>
25834 #undef idna_to_ascii_4i
25838 char idna_to_ascii_4i ();
25839 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
25845 return idna_to_ascii_4i ();
25851 if ac_fn_c_try_link "$LINENO"; then :
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25854 $as_echo "yes" >&6; }
25855 tst_links_libidn="yes"
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25860 $as_echo "no" >&6; }
25861 tst_links_libidn="no"
25864 rm -f core conftest.err conftest.$ac_objext \
25865 conftest$ac_exeext conftest.$ac_ext
25866 if test "$tst_links_libidn" = "no"; then
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
25868 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
25869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25870 /* end confdefs.h. */
25873 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
25875 # include <limits.h>
25877 # include <assert.h>
25879 #undef idna_to_ascii_lz
25883 char idna_to_ascii_lz ();
25884 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
25890 return idna_to_ascii_lz ();
25896 if ac_fn_c_try_link "$LINENO"; then :
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25899 $as_echo "yes" >&6; }
25900 tst_links_libidn="yes"
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25905 $as_echo "no" >&6; }
25906 tst_links_libidn="no"
25909 rm -f core conftest.err conftest.$ac_objext \
25910 conftest$ac_exeext conftest.$ac_ext
25913 if test "$tst_links_libidn" = "yes"; then
25915 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
25917 for ac_func in idn_free idna_strerror tld_strerror
25919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25920 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25921 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25922 cat >>confdefs.h <<_ACEOF
25923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25929 for ac_header in idn-free.h tld.h
25931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25934 cat >>confdefs.h <<_ACEOF
25935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25942 if test "x$ac_cv_header_tld_h" = "xyes"; then
25945 curl_idn_msg="enabled"
25946 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
25947 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
25948 export LD_LIBRARY_PATH
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
25950 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
25954 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
25955 CPPFLAGS="$clean_CPPFLAGS"
25956 LDFLAGS="$clean_LDFLAGS"
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25961 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25962 CPPFLAGS="$clean_CPPFLAGS"
25963 LDFLAGS="$clean_LDFLAGS"
25974 # Check whether --with-nghttp2 was given.
25975 if test "${with_nghttp2+set}" = set; then :
25976 withval=$with_nghttp2; OPT_H2=$withval
25989 want_h2_path="$withval/lib/pkgconfig"
25993 curl_h2_msg="disabled (--with-nghttp2)"
25994 if test X"$want_h2" != Xno; then
25995 CLEANLDFLAGS="$LDFLAGS"
25996 CLEANCPPFLAGS="$CPPFLAGS"
26003 if test -n "$ac_tool_prefix"; then
26004 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26005 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26007 $as_echo_n "checking for $ac_word... " >&6; }
26008 if ${ac_cv_path_PKGCONFIG+:} false; then :
26009 $as_echo_n "(cached) " >&6
26013 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26017 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26018 for as_dir in $as_dummy
26021 test -z "$as_dir" && as_dir=.
26022 for ac_exec_ext in '' $ac_executable_extensions; do
26023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26024 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26035 PKGCONFIG=$ac_cv_path_PKGCONFIG
26036 if test -n "$PKGCONFIG"; then
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26038 $as_echo "$PKGCONFIG" >&6; }
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26041 $as_echo "no" >&6; }
26046 if test -z "$ac_cv_path_PKGCONFIG"; then
26047 ac_pt_PKGCONFIG=$PKGCONFIG
26048 # Extract the first word of "pkg-config", so it can be a program name with args.
26049 set dummy pkg-config; ac_word=$2
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26051 $as_echo_n "checking for $ac_word... " >&6; }
26052 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26053 $as_echo_n "(cached) " >&6
26055 case $ac_pt_PKGCONFIG in
26057 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26061 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26062 for as_dir in $as_dummy
26065 test -z "$as_dir" && as_dir=.
26066 for ac_exec_ext in '' $ac_executable_extensions; do
26067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26068 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26079 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26080 if test -n "$ac_pt_PKGCONFIG"; then
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26082 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26085 $as_echo "no" >&6; }
26088 if test "x$ac_pt_PKGCONFIG" = x; then
26091 case $cross_compiling:$ac_tool_warned in
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26095 ac_tool_warned=yes ;;
26097 PKGCONFIG=$ac_pt_PKGCONFIG
26100 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26104 if test x$PKGCONFIG != xno; then
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
26106 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
26108 if test -n "$want_h2_path"; then
26109 PKG_CONFIG_LIBDIR="$want_h2_path"
26110 export PKG_CONFIG_LIBDIR
26112 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
26114 if test -z "$itexists"; then
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26117 $as_echo "no" >&6; }
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26120 $as_echo "found" >&6; }
26125 if test "$PKGCONFIG" != "no" ; then
26127 if test -n "$want_h2_path"; then
26128 PKG_CONFIG_LIBDIR="$want_h2_path"
26129 export PKG_CONFIG_LIBDIR
26132 $PKGCONFIG --libs-only-l libnghttp2`
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
26134 $as_echo "$as_me: -l is $LIB_H2" >&6;}
26137 if test -n "$want_h2_path"; then
26138 PKG_CONFIG_LIBDIR="$want_h2_path"
26139 export PKG_CONFIG_LIBDIR
26141 $PKGCONFIG --cflags-only-I libnghttp2`
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
26143 $as_echo "$as_me: -I is $CPP_H2" >&6;}
26146 if test -n "$want_h2_path"; then
26147 PKG_CONFIG_LIBDIR="$want_h2_path"
26148 export PKG_CONFIG_LIBDIR
26151 $PKGCONFIG --libs-only-L libnghttp2`
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
26153 $as_echo "$as_me: -L is $LD_H2" >&6;}
26155 LDFLAGS="$LDFLAGS $LD_H2"
26156 CPPFLAGS="$CPPFLAGS $CPP_H2"
26157 LIBS="$LIB_H2 $LIBS"
26159 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
26162 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
26163 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
26164 $as_echo_n "(cached) " >&6
26166 ac_check_lib_save_LIBS=$LIBS
26167 LIBS="-lnghttp2 $LIBS"
26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26169 /* end confdefs.h. */
26175 char nghttp2_option_set_no_recv_client_magic ();
26178 return nghttp2_option_set_no_recv_client_magic ();
26183 if ac_fn_c_try_link "$LINENO"; then :
26184 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
26186 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
26188 rm -f core conftest.err conftest.$ac_objext \
26189 conftest$ac_exeext conftest.$ac_ext
26190 LIBS=$ac_check_lib_save_LIBS
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
26193 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
26194 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
26196 for ac_header in nghttp2/nghttp2.h
26198 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
26199 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
26200 cat >>confdefs.h <<_ACEOF
26201 #define HAVE_NGHTTP2_NGHTTP2_H 1
26203 curl_h2_msg="enabled (nghttp2)"
26206 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
26217 LDFLAGS=$CLEANLDFLAGS
26218 CPPFLAGS=$CLEANCPPFLAGS
26225 if test X"$want_h2" != Xdefault; then
26226 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
26234 $as_echo_n "checking for ANSI C header files... " >&6; }
26235 if ${ac_cv_header_stdc+:} false; then :
26236 $as_echo_n "(cached) " >&6
26238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26239 /* end confdefs.h. */
26240 #include <stdlib.h>
26241 #include <stdarg.h>
26242 #include <string.h>
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253 ac_cv_header_stdc=yes
26255 ac_cv_header_stdc=no
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 if test $ac_cv_header_stdc = yes; then
26260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26262 /* end confdefs.h. */
26263 #include <string.h>
26266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26267 $EGREP "memchr" >/dev/null 2>&1; then :
26270 ac_cv_header_stdc=no
26276 if test $ac_cv_header_stdc = yes; then
26277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h. */
26280 #include <stdlib.h>
26283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26284 $EGREP "free" >/dev/null 2>&1; then :
26287 ac_cv_header_stdc=no
26293 if test $ac_cv_header_stdc = yes; then
26294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26295 if test "$cross_compiling" = yes; then :
26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h. */
26301 #include <stdlib.h>
26302 #if ((' ' & 0x0FF) == 0x020)
26303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26306 # define ISLOWER(c) \
26307 (('a' <= (c) && (c) <= 'i') \
26308 || ('j' <= (c) && (c) <= 'r') \
26309 || ('s' <= (c) && (c) <= 'z'))
26310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26318 for (i = 0; i < 256; i++)
26319 if (XOR (islower (i), ISLOWER (i))
26320 || toupper (i) != TOUPPER (i))
26325 if ac_fn_c_try_run "$LINENO"; then :
26328 ac_cv_header_stdc=no
26330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26331 conftest.$ac_objext conftest.beam conftest.$ac_ext
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26337 $as_echo "$ac_cv_header_stdc" >&6; }
26338 if test $ac_cv_header_stdc = yes; then
26340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
26347 $as_echo_n "checking for malloc.h... " >&6; }
26348 if ${ac_cv_header_malloc_h+:} false; then :
26349 $as_echo_n "(cached) " >&6
26352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h. */
26356 #include <malloc.h>
26361 void *p = malloc(10);
26362 void *q = calloc(10,10);
26371 if ac_fn_c_try_compile "$LINENO"; then :
26373 ac_cv_header_malloc_h="yes"
26377 ac_cv_header_malloc_h="no"
26380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
26384 $as_echo "$ac_cv_header_malloc_h" >&6; }
26385 if test "$ac_cv_header_malloc_h" = "yes"; then
26387 cat >>confdefs.h <<_ACEOF
26388 #define HAVE_MALLOC_H 1
26392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26393 /* end confdefs.h. */
26396 #include <stdlib.h>
26401 void *p = malloc(10);
26402 void *q = calloc(10,10);
26411 if ac_fn_c_try_compile "$LINENO"; then :
26413 curl_cv_need_header_malloc_h="no"
26417 curl_cv_need_header_malloc_h="yes"
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26422 case "$curl_cv_need_header_malloc_h" in
26425 cat >>confdefs.h <<_ACEOF
26426 #define NEED_MALLOC_H 1
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
26435 $as_echo_n "checking for memory.h... " >&6; }
26436 if ${ac_cv_header_memory_h+:} false; then :
26437 $as_echo_n "(cached) " >&6
26440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26441 /* end confdefs.h. */
26444 #include <memory.h>
26449 void *p = malloc(10);
26450 void *q = calloc(10,10);
26459 if ac_fn_c_try_compile "$LINENO"; then :
26461 ac_cv_header_memory_h="yes"
26465 ac_cv_header_memory_h="no"
26468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
26472 $as_echo "$ac_cv_header_memory_h" >&6; }
26473 if test "$ac_cv_header_memory_h" = "yes"; then
26475 cat >>confdefs.h <<_ACEOF
26476 #define HAVE_MEMORY_H 1
26480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481 /* end confdefs.h. */
26484 #include <stdlib.h>
26489 void *p = malloc(10);
26490 void *q = calloc(10,10);
26499 if ac_fn_c_try_compile "$LINENO"; then :
26501 curl_cv_need_header_memory_h="no"
26505 curl_cv_need_header_memory_h="yes"
26508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26510 case "$curl_cv_need_header_memory_h" in
26513 cat >>confdefs.h <<_ACEOF
26514 #define NEED_MEMORY_H 1
26522 for ac_header in sys/types.h \
26564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
26566 #ifdef HAVE_SYS_TYPES_H
26567 #include <sys/types.h>
26569 #ifdef HAVE_SYS_TIME_H
26570 #include <sys/time.h>
26572 #ifdef HAVE_SYS_SELECT_H
26573 #include <sys/select.h>
26575 #ifdef HAVE_SYS_SOCKET_H
26576 #include <sys/socket.h>
26578 #ifdef HAVE_NETINET_IN_H
26579 #include <netinet/in.h>
26581 #ifdef HAVE_SYS_UN_H
26582 #include <sys/un.h>
26587 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26588 cat >>confdefs.h <<_ACEOF
26589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26598 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26599 if ${ac_cv_c_const+:} false; then :
26600 $as_echo_n "(cached) " >&6
26602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26603 /* end confdefs.h. */
26608 #ifndef __cplusplus
26609 /* Ultrix mips cc rejects this sort of thing. */
26610 typedef int charset[2];
26611 const charset cs = { 0, 0 };
26612 /* SunOS 4.1.1 cc rejects this. */
26613 char const *const *pcpcc;
26615 /* NEC SVR4.0.2 mips cc rejects this. */
26616 struct point {int x, y;};
26617 static struct point const zero = {0,0};
26618 /* AIX XL C 1.02.0.0 rejects this.
26619 It does not let you subtract one const X* pointer from another in
26620 an arm of an if-expression whose if-part is not a constant
26622 const char *g = "string";
26623 pcpcc = &g + (g ? g-g : 0);
26624 /* HPUX 7.0 cc rejects these. */
26626 ppc = (char**) pcpcc;
26627 pcpcc = (char const *const *) ppc;
26628 { /* SCO 3.2v4 cc rejects this sort of thing. */
26631 char const *s = 0 ? (char *) 0 : (char const *) 0;
26636 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26637 int x[] = {25, 17};
26638 const int *foo = &x[0];
26641 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26642 typedef const int *iptr;
26646 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26647 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26648 struct s { int j; const int *ap[3]; } bx;
26649 struct s *b = &bx; b->j = 5;
26651 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26652 const int foo = 10;
26653 if (!foo) return 0;
26655 return !cs[0] && !zero.x;
26662 if ac_fn_c_try_compile "$LINENO"; then :
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26670 $as_echo "$ac_cv_c_const" >&6; }
26671 if test $ac_cv_c_const = no; then
26673 $as_echo "#define const /**/" >>confdefs.h
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
26679 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
26680 if ${curl_cv_variadic_macros_c99+:} false; then :
26681 $as_echo_n "(cached) " >&6
26684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26685 /* end confdefs.h. */
26688 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
26689 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
26690 int fun3(int arg1, int arg2, int arg3);
26691 int fun2(int arg1, int arg2);
26692 int fun3(int arg1, int arg2, int arg3)
26693 { return arg1 + arg2 + arg3; }
26694 int fun2(int arg1, int arg2)
26695 { return arg1 + arg2; }
26700 int res3 = c99_vmacro3(1, 2, 3);
26701 int res2 = c99_vmacro2(1, 2);
26708 if ac_fn_c_try_compile "$LINENO"; then :
26710 curl_cv_variadic_macros_c99="yes"
26714 curl_cv_variadic_macros_c99="no"
26717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
26721 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
26722 case "$curl_cv_variadic_macros_c99" in
26725 cat >>confdefs.h <<_ACEOF
26726 #define HAVE_VARIADIC_MACROS_C99 1
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
26732 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
26733 if ${curl_cv_variadic_macros_gcc+:} false; then :
26734 $as_echo_n "(cached) " >&6
26737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26738 /* end confdefs.h. */
26741 #define gcc_vmacro3(first, args...) fun3(first, args)
26742 #define gcc_vmacro2(first, args...) fun2(first, args)
26743 int fun3(int arg1, int arg2, int arg3);
26744 int fun2(int arg1, int arg2);
26745 int fun3(int arg1, int arg2, int arg3)
26746 { return arg1 + arg2 + arg3; }
26747 int fun2(int arg1, int arg2)
26748 { return arg1 + arg2; }
26753 int res3 = gcc_vmacro3(1, 2, 3);
26754 int res2 = gcc_vmacro2(1, 2);
26761 if ac_fn_c_try_compile "$LINENO"; then :
26763 curl_cv_variadic_macros_gcc="yes"
26767 curl_cv_variadic_macros_gcc="no"
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
26774 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
26775 case "$curl_cv_variadic_macros_gcc" in
26778 cat >>confdefs.h <<_ACEOF
26779 #define HAVE_VARIADIC_MACROS_GCC 1
26785 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26786 if test "x$ac_cv_type_size_t" = xyes; then :
26790 cat >>confdefs.h <<_ACEOF
26791 #define size_t unsigned int
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26797 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26798 if ${ac_cv_header_time+:} false; then :
26799 $as_echo_n "(cached) " >&6
26801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26802 /* end confdefs.h. */
26803 #include <sys/types.h>
26804 #include <sys/time.h>
26809 if ((struct tm *) 0)
26815 if ac_fn_c_try_compile "$LINENO"; then :
26816 ac_cv_header_time=yes
26818 ac_cv_header_time=no
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26823 $as_echo "$ac_cv_header_time" >&6; }
26824 if test $ac_cv_header_time = yes; then
26826 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26831 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
26833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26836 cat >>confdefs.h <<_ACEOF
26837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
26845 $as_echo_n "checking for struct timeval... " >&6; }
26846 if ${ac_cv_struct_timeval+:} false; then :
26847 $as_echo_n "(cached) " >&6
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h. */
26855 #ifdef HAVE_WINDOWS_H
26856 #ifndef WIN32_LEAN_AND_MEAN
26857 #define WIN32_LEAN_AND_MEAN
26859 #include <windows.h>
26860 #ifdef HAVE_WINSOCK2_H
26861 #include <winsock2.h>
26863 #ifdef HAVE_WINSOCK_H
26864 #include <winsock.h>
26868 #ifdef HAVE_SYS_TYPES_H
26869 #include <sys/types.h>
26871 #ifdef HAVE_SYS_TIME_H
26872 #include <sys/time.h>
26873 #ifdef TIME_WITH_SYS_TIME
26881 #ifdef HAVE_SYS_SOCKET_H
26882 #include <sys/socket.h>
26897 if ac_fn_c_try_compile "$LINENO"; then :
26899 ac_cv_struct_timeval="yes"
26903 ac_cv_struct_timeval="no"
26906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
26910 $as_echo "$ac_cv_struct_timeval" >&6; }
26911 case "$ac_cv_struct_timeval" in
26914 cat >>confdefs.h <<_ACEOF
26915 #define HAVE_STRUCT_TIMEVAL 1
26923 if test "x$cross_compiling" != xyes; then
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
26926 $as_echo_n "checking run-time libs availability... " >&6; }
26927 if test "$cross_compiling" = yes; then :
26928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26930 as_fn_error $? "cannot run test program while cross compiling
26931 See \`config.log' for more details" "$LINENO" 5; }
26933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26934 /* end confdefs.h. */
26942 if ac_fn_c_try_run "$LINENO"; then :
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
26944 $as_echo "fine" >&6; }
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
26947 $as_echo "failed" >&6; }
26948 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
26951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26952 conftest.$ac_objext conftest.beam conftest.$ac_ext
26959 # The cast to long int works around a bug in the HP C Compiler
26960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26962 # This bug is HP SR number 8606223364.
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26964 $as_echo_n "checking size of size_t... " >&6; }
26965 if ${ac_cv_sizeof_size_t+:} false; then :
26966 $as_echo_n "(cached) " >&6
26968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
26971 if test "$ac_cv_type_size_t" = yes; then
26972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26974 as_fn_error 77 "cannot compute sizeof (size_t)
26975 See \`config.log' for more details" "$LINENO" 5; }
26977 ac_cv_sizeof_size_t=0
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26983 $as_echo "$ac_cv_sizeof_size_t" >&6; }
26987 cat >>confdefs.h <<_ACEOF
26988 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26992 # The cast to long int works around a bug in the HP C Compiler
26993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26995 # This bug is HP SR number 8606223364.
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26997 $as_echo_n "checking size of long... " >&6; }
26998 if ${ac_cv_sizeof_long+:} false; then :
26999 $as_echo_n "(cached) " >&6
27001 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
27004 if test "$ac_cv_type_long" = yes; then
27005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27007 as_fn_error 77 "cannot compute sizeof (long)
27008 See \`config.log' for more details" "$LINENO" 5; }
27010 ac_cv_sizeof_long=0
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
27016 $as_echo "$ac_cv_sizeof_long" >&6; }
27020 cat >>confdefs.h <<_ACEOF
27021 #define SIZEOF_LONG $ac_cv_sizeof_long
27025 # The cast to long int works around a bug in the HP C Compiler
27026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27028 # This bug is HP SR number 8606223364.
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27030 $as_echo_n "checking size of int... " >&6; }
27031 if ${ac_cv_sizeof_int+:} false; then :
27032 $as_echo_n "(cached) " >&6
27034 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27037 if test "$ac_cv_type_int" = yes; then
27038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27040 as_fn_error 77 "cannot compute sizeof (int)
27041 See \`config.log' for more details" "$LINENO" 5; }
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27049 $as_echo "$ac_cv_sizeof_int" >&6; }
27053 cat >>confdefs.h <<_ACEOF
27054 #define SIZEOF_INT $ac_cv_sizeof_int
27058 # The cast to long int works around a bug in the HP C Compiler
27059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27061 # This bug is HP SR number 8606223364.
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
27063 $as_echo_n "checking size of short... " >&6; }
27064 if ${ac_cv_sizeof_short+:} false; then :
27065 $as_echo_n "(cached) " >&6
27067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
27070 if test "$ac_cv_type_short" = yes; then
27071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27073 as_fn_error 77 "cannot compute sizeof (short)
27074 See \`config.log' for more details" "$LINENO" 5; }
27076 ac_cv_sizeof_short=0
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
27082 $as_echo "$ac_cv_sizeof_short" >&6; }
27086 cat >>confdefs.h <<_ACEOF
27087 #define SIZEOF_SHORT $ac_cv_sizeof_short
27092 if test -z "$ac_cv_sizeof_long" ||
27093 test "$ac_cv_sizeof_long" -eq "0"; then
27094 as_fn_error $? "cannot find out size of long." "$LINENO" 5
27097 cat >>confdefs.h <<_EOF
27098 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
27102 # The cast to long int works around a bug in the HP C Compiler
27103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27105 # This bug is HP SR number 8606223364.
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
27107 $as_echo_n "checking size of time_t... " >&6; }
27108 if ${ac_cv_sizeof_time_t+:} false; then :
27109 $as_echo_n "(cached) " >&6
27111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
27114 if test "$ac_cv_type_time_t" = yes; then
27115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27117 as_fn_error 77 "cannot compute sizeof (time_t)
27118 See \`config.log' for more details" "$LINENO" 5; }
27120 ac_cv_sizeof_time_t=0
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
27126 $as_echo "$ac_cv_sizeof_time_t" >&6; }
27130 cat >>confdefs.h <<_ACEOF
27131 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
27135 # The cast to long int works around a bug in the HP C Compiler
27136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27138 # This bug is HP SR number 8606223364.
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
27140 $as_echo_n "checking size of off_t... " >&6; }
27141 if ${ac_cv_sizeof_off_t+:} false; then :
27142 $as_echo_n "(cached) " >&6
27144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
27147 if test "$ac_cv_type_off_t" = yes; then
27148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27150 as_fn_error 77 "cannot compute sizeof (off_t)
27151 See \`config.log' for more details" "$LINENO" 5; }
27153 ac_cv_sizeof_off_t=0
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
27159 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27163 cat >>confdefs.h <<_ACEOF
27164 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27170 if test x"$ac_cv_native_windows" != "xyes" &&
27171 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
27173 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
27175 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
27180 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
27181 if test "x$ac_cv_type_long_long" = xyes; then :
27183 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
27190 if test "xyes" = "x$longlong"; then
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
27192 $as_echo_n "checking if numberLL works... " >&6; }
27193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27194 /* end confdefs.h. */
27201 long long val = 1000LL;
27208 if ac_fn_c_try_compile "$LINENO"; then :
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27211 $as_echo "yes" >&6; }
27213 $as_echo "#define HAVE_LL 1" >>confdefs.h
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27219 $as_echo "no" >&6; }
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27226 # check for ssize_t
27227 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27228 if test "x$ac_cv_type_ssize_t" = xyes; then :
27232 $as_echo "#define ssize_t int" >>confdefs.h
27237 # check for bool type
27238 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
27239 #ifdef HAVE_SYS_TYPES_H
27240 #include <sys/types.h>
27242 #ifdef HAVE_STDBOOL_H
27243 #include <stdbool.h>
27247 if test "x$ac_cv_type_bool" = xyes; then :
27250 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
27257 curl_includes_ws2tcpip="\
27258 /* includes start */
27259 #ifdef HAVE_WINDOWS_H
27260 # ifndef WIN32_LEAN_AND_MEAN
27261 # define WIN32_LEAN_AND_MEAN
27263 # include <windows.h>
27264 # ifdef HAVE_WINSOCK2_H
27265 # include <winsock2.h>
27266 # ifdef HAVE_WS2TCPIP_H
27267 # include <ws2tcpip.h>
27271 /* includes end */"
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
27274 $as_echo_n "checking for windows.h... " >&6; }
27275 if ${ac_cv_header_windows_h+:} false; then :
27276 $as_echo_n "(cached) " >&6
27279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280 /* end confdefs.h. */
27284 #ifndef WIN32_LEAN_AND_MEAN
27285 #define WIN32_LEAN_AND_MEAN
27287 #include <windows.h>
27292 #if defined(__CYGWIN__) || defined(__CEGCC__)
27293 HAVE_WINDOWS_H shall not be defined.
27295 int dummy=2*WINVER;
27303 if ac_fn_c_try_compile "$LINENO"; then :
27305 ac_cv_header_windows_h="yes"
27309 ac_cv_header_windows_h="no"
27312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
27316 $as_echo "$ac_cv_header_windows_h" >&6; }
27317 case "$ac_cv_header_windows_h" in
27320 cat >>confdefs.h <<_ACEOF
27321 #define HAVE_WINDOWS_H 1
27325 cat >>confdefs.h <<_ACEOF
27326 #define WIN32_LEAN_AND_MEAN 1
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
27334 $as_echo_n "checking for winsock2.h... " >&6; }
27335 if ${ac_cv_header_winsock2_h+:} false; then :
27336 $as_echo_n "(cached) " >&6
27339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340 /* end confdefs.h. */
27344 #ifndef WIN32_LEAN_AND_MEAN
27345 #define WIN32_LEAN_AND_MEAN
27347 #include <windows.h>
27348 #include <winsock2.h>
27353 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
27354 HAVE_WINSOCK2_H shall not be defined.
27356 int dummy=2*IPPROTO_ESP;
27364 if ac_fn_c_try_compile "$LINENO"; then :
27366 ac_cv_header_winsock2_h="yes"
27370 ac_cv_header_winsock2_h="no"
27373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
27377 $as_echo "$ac_cv_header_winsock2_h" >&6; }
27378 case "$ac_cv_header_winsock2_h" in
27381 cat >>confdefs.h <<_ACEOF
27382 #define HAVE_WINSOCK2_H 1
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
27390 $as_echo_n "checking for ws2tcpip.h... " >&6; }
27391 if ${ac_cv_header_ws2tcpip_h+:} false; then :
27392 $as_echo_n "(cached) " >&6
27395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27396 /* end confdefs.h. */
27400 #ifndef WIN32_LEAN_AND_MEAN
27401 #define WIN32_LEAN_AND_MEAN
27403 #include <windows.h>
27404 #include <winsock2.h>
27405 #include <ws2tcpip.h>
27410 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
27411 HAVE_WS2TCPIP_H shall not be defined.
27413 int dummy=2*IP_PKTINFO;
27421 if ac_fn_c_try_compile "$LINENO"; then :
27423 ac_cv_header_ws2tcpip_h="yes"
27427 ac_cv_header_ws2tcpip_h="no"
27430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
27434 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
27435 case "$ac_cv_header_ws2tcpip_h" in
27438 cat >>confdefs.h <<_ACEOF
27439 #define HAVE_WS2TCPIP_H 1
27447 curl_includes_sys_socket="\
27448 /* includes start */
27449 #ifdef HAVE_SYS_TYPES_H
27450 # include <sys/types.h>
27452 #ifdef HAVE_SYS_SOCKET_H
27453 # include <sys/socket.h>
27455 /* includes end */"
27456 for ac_header in sys/types.h sys/socket.h
27458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
27461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27462 cat >>confdefs.h <<_ACEOF
27463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27472 curl_preprocess_callconv="\
27473 /* preprocess start */
27474 #ifdef HAVE_WINDOWS_H
27475 # define FUNCALLCONV __stdcall
27477 # define FUNCALLCONV
27479 /* preprocess end */"
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
27485 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
27486 curl_typeof_curl_socklen_t="unknown"
27487 for arg1 in int SOCKET; do
27488 for arg2 in 'struct sockaddr' void; do
27489 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
27490 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
27491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h. */
27495 $curl_includes_ws2tcpip
27496 $curl_includes_sys_socket
27497 $curl_preprocess_callconv
27498 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
27504 if(0 != getpeername(0, 0, lenptr))
27512 if ac_fn_c_try_compile "$LINENO"; then :
27514 curl_typeof_curl_socklen_t="$t"
27517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27522 for t in socklen_t int; do
27523 if test "$curl_typeof_curl_socklen_t" = "void"; then
27524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27525 /* end confdefs.h. */
27528 $curl_includes_sys_socket
27529 typedef $t curl_socklen_t;
27534 curl_socklen_t dummy;
27541 if ac_fn_c_try_compile "$LINENO"; then :
27543 curl_typeof_curl_socklen_t="$t"
27546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
27550 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
27551 if test "$curl_typeof_curl_socklen_t" = "void" ||
27552 test "$curl_typeof_curl_socklen_t" = "unknown"; then
27553 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
27557 $as_echo_n "checking size of curl_socklen_t... " >&6; }
27558 curl_sizeof_curl_socklen_t="unknown"
27559 curl_pull_headers_socklen_t="unknown"
27560 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
27561 tst_pull_header_checks='none ws2tcpip'
27562 tst_size_checks='4'
27564 tst_pull_header_checks='none systypes syssocket'
27565 tst_size_checks='4 8 2'
27567 for tst_size in $tst_size_checks; do
27568 for tst_pull_headers in $tst_pull_header_checks; do
27569 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27570 case $tst_pull_headers in
27572 tmp_includes="$curl_includes_ws2tcpip"
27575 tmp_includes="$curl_includes_sys_types"
27578 tmp_includes="$curl_includes_sys_socket"
27584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27585 /* end confdefs.h. */
27589 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
27590 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
27595 curl_socklen_t dummy;
27602 if ac_fn_c_try_compile "$LINENO"; then :
27604 curl_sizeof_curl_socklen_t="$tst_size"
27605 curl_pull_headers_socklen_t="$tst_pull_headers"
27608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
27613 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
27614 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27615 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
27618 case $curl_pull_headers_socklen_t in
27621 cat >>confdefs.h <<_EOF
27622 #define CURL_PULL_WS2TCPIP_H 1
27628 cat >>confdefs.h <<_EOF
27629 #define CURL_PULL_SYS_TYPES_H 1
27635 cat >>confdefs.h <<_EOF
27636 #define CURL_PULL_SYS_TYPES_H 1
27640 cat >>confdefs.h <<_EOF
27641 #define CURL_PULL_SYS_SOCKET_H 1
27647 cat >>confdefs.h <<_EOF
27648 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
27652 cat >>confdefs.h <<_EOF
27653 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
27659 curl_includes_poll="\
27660 /* includes start */
27661 #ifdef HAVE_SYS_TYPES_H
27662 # include <sys/types.h>
27667 #ifdef HAVE_SYS_POLL_H
27668 # include <sys/poll.h>
27670 /* includes end */"
27671 for ac_header in sys/types.h poll.h sys/poll.h
27673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27674 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
27676 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27677 cat >>confdefs.h <<_ACEOF
27678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27688 tst_poll_events_macro_defined="unknown"
27690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27691 /* end confdefs.h. */
27694 $curl_includes_poll
27699 #if defined(events) || defined(revents)
27702 force compilation error
27710 if ac_fn_c_try_compile "$LINENO"; then :
27712 tst_poll_events_macro_defined="yes"
27716 tst_poll_events_macro_defined="no"
27719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27721 if test "$tst_poll_events_macro_defined" = "yes"; then
27722 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
27724 cat >>confdefs.h <<_EOF
27725 #define CURL_PULL_SYS_POLL_H 1
27734 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
27736 #ifdef HAVE_WINDOWS_H
27737 #ifndef WIN32_LEAN_AND_MEAN
27738 #define WIN32_LEAN_AND_MEAN
27740 #include <windows.h>
27741 #ifdef HAVE_WINSOCK2_H
27742 #include <winsock2.h>
27744 #ifdef HAVE_WINSOCK_H
27745 #include <winsock.h>
27749 #ifdef HAVE_SYS_TYPES_H
27750 #include <sys/types.h>
27752 #ifdef HAVE_SYS_SOCKET_H
27753 #include <sys/socket.h>
27755 #ifdef HAVE_NETINET_IN_H
27756 #include <netinet/in.h>
27758 #ifdef HAVE_ARPA_INET_H
27759 #include <arpa/inet.h>
27764 if test "x$ac_cv_type_in_addr_t" = xyes; then :
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
27769 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
27770 if ${curl_cv_in_addr_t_equiv+:} false; then :
27771 $as_echo_n "(cached) " >&6
27774 curl_cv_in_addr_t_equiv="unknown"
27775 for t in "unsigned long" int size_t unsigned long; do
27776 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
27777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27778 /* end confdefs.h. */
27782 #ifdef HAVE_WINDOWS_H
27783 #ifndef WIN32_LEAN_AND_MEAN
27784 #define WIN32_LEAN_AND_MEAN
27786 #include <windows.h>
27787 #ifdef HAVE_WINSOCK2_H
27788 #include <winsock2.h>
27790 #ifdef HAVE_WINSOCK_H
27791 #include <winsock.h>
27795 #ifdef HAVE_SYS_TYPES_H
27796 #include <sys/types.h>
27798 #ifdef HAVE_SYS_SOCKET_H
27799 #include <sys/socket.h>
27801 #ifdef HAVE_NETINET_IN_H
27802 #include <netinet/in.h>
27804 #ifdef HAVE_ARPA_INET_H
27805 #include <arpa/inet.h>
27812 $t data = inet_addr ("1.2.3.4");
27819 if ac_fn_c_try_link "$LINENO"; then :
27821 curl_cv_in_addr_t_equiv="$t"
27824 rm -f core conftest.err conftest.$ac_objext \
27825 conftest$ac_exeext conftest.$ac_ext
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
27831 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
27832 case "$curl_cv_in_addr_t_equiv" in
27834 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
27838 cat >>confdefs.h <<_ACEOF
27839 #define in_addr_t $curl_cv_in_addr_t_equiv
27850 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27852 #ifdef HAVE_WINDOWS_H
27853 #ifndef WIN32_LEAN_AND_MEAN
27854 #define WIN32_LEAN_AND_MEAN
27856 #include <windows.h>
27857 #ifdef HAVE_WINSOCK2_H
27858 #include <winsock2.h>
27861 #ifdef HAVE_SYS_TYPES_H
27862 #include <sys/types.h>
27864 #ifdef HAVE_SYS_SOCKET_H
27865 #include <sys/socket.h>
27867 #ifdef HAVE_NETINET_IN_H
27868 #include <netinet/in.h>
27870 #ifdef HAVE_ARPA_INET_H
27871 #include <arpa/inet.h>
27876 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
27878 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
27885 for ac_header in signal.h
27887 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
27888 if test "x$ac_cv_header_signal_h" = xyes; then :
27889 cat >>confdefs.h <<_ACEOF
27890 #define HAVE_SIGNAL_H 1
27897 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
27898 #ifdef HAVE_SIGNAL_H
27899 #include <signal.h>
27903 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
27906 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
27911 case "$ac_cv_type_sig_atomic_t" in
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
27915 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
27916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27917 /* end confdefs.h. */
27920 #ifdef HAVE_SIGNAL_H
27921 #include <signal.h>
27927 static volatile sig_atomic_t dummy = 0;
27934 if ac_fn_c_try_link "$LINENO"; then :
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27937 $as_echo "no" >&6; }
27938 ac_cv_sig_atomic_t_volatile="no"
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27943 $as_echo "yes" >&6; }
27944 ac_cv_sig_atomic_t_volatile="yes"
27947 rm -f core conftest.err conftest.$ac_objext \
27948 conftest$ac_exeext conftest.$ac_ext
27950 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
27952 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27960 $as_echo_n "checking return type of signal handlers... " >&6; }
27961 if ${ac_cv_type_signal+:} false; then :
27962 $as_echo_n "(cached) " >&6
27964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27965 /* end confdefs.h. */
27966 #include <sys/types.h>
27967 #include <signal.h>
27971 return *(signal (0, 0)) (0) == 1;
27976 if ac_fn_c_try_compile "$LINENO"; then :
27977 ac_cv_type_signal=int
27979 ac_cv_type_signal=void
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27984 $as_echo "$ac_cv_type_signal" >&6; }
27986 cat >>confdefs.h <<_ACEOF
27987 #define RETSIGTYPE $ac_cv_type_signal
27993 for ac_header in sys/select.h sys/socket.h
27995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27996 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27998 cat >>confdefs.h <<_ACEOF
27999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
28008 $as_echo_n "checking for select... " >&6; }
28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h. */
28014 #ifdef HAVE_WINDOWS_H
28015 #ifndef WIN32_LEAN_AND_MEAN
28016 #define WIN32_LEAN_AND_MEAN
28018 #include <windows.h>
28019 #ifdef HAVE_WINSOCK2_H
28020 #include <winsock2.h>
28022 #ifdef HAVE_WINSOCK_H
28023 #include <winsock.h>
28027 #ifdef HAVE_SYS_TYPES_H
28028 #include <sys/types.h>
28030 #ifdef HAVE_SYS_TIME_H
28031 #include <sys/time.h>
28032 #ifdef TIME_WITH_SYS_TIME
28040 #ifndef HAVE_WINDOWS_H
28041 #ifdef HAVE_SYS_SELECT_H
28042 #include <sys/select.h>
28044 #ifdef HAVE_SYS_SOCKET_H
28045 #include <sys/socket.h>
28052 select(0, 0, 0, 0, 0);
28059 if ac_fn_c_try_link "$LINENO"; then :
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28062 $as_echo "yes" >&6; }
28063 curl_cv_select="yes"
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28068 $as_echo "no" >&6; }
28069 curl_cv_select="no"
28072 rm -f core conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28075 if test "$curl_cv_select" = "yes"; then
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
28077 $as_echo_n "checking types of args and return type for select... " >&6; }
28078 if ${curl_cv_func_select_args+:} false; then :
28079 $as_echo_n "(cached) " >&6
28082 curl_cv_func_select_args="unknown"
28083 for sel_retv in 'int' 'ssize_t'; do
28084 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
28085 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
28086 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
28087 if test "$curl_cv_func_select_args" = "unknown"; then
28088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28089 /* end confdefs.h. */
28093 #ifdef HAVE_WINDOWS_H
28094 #ifndef WIN32_LEAN_AND_MEAN
28095 #define WIN32_LEAN_AND_MEAN
28097 #include <windows.h>
28098 #ifdef HAVE_WINSOCK2_H
28099 #include <winsock2.h>
28101 #ifdef HAVE_WINSOCK_H
28102 #include <winsock.h>
28105 #define SELECTCALLCONV PASCAL
28107 #ifdef HAVE_SYS_TYPES_H
28108 #include <sys/types.h>
28110 #ifdef HAVE_SYS_TIME_H
28111 #include <sys/time.h>
28112 #ifdef TIME_WITH_SYS_TIME
28120 #ifndef HAVE_WINDOWS_H
28121 #ifdef HAVE_SYS_SELECT_H
28122 #include <sys/select.h>
28124 #ifdef HAVE_SYS_SOCKET_H
28125 #include <sys/socket.h>
28127 #define SELECTCALLCONV
28129 #ifndef HAVE_STRUCT_TIMEVAL
28135 extern $sel_retv SELECTCALLCONV select($sel_arg1,
28145 $sel_arg234 rfds=0;
28146 $sel_arg234 wfds=0;
28147 $sel_arg234 efds=0;
28148 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
28155 if ac_fn_c_try_compile "$LINENO"; then :
28157 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
28169 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
28170 if test "$curl_cv_func_select_args" = "unknown"; then
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
28172 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
28174 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
28176 select_prev_IFS=$IFS; IFS=','
28177 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
28178 IFS=$select_prev_IFS
28181 sel_qual_type_arg5=$3
28184 cat >>confdefs.h <<_ACEOF
28185 #define SELECT_TYPE_ARG1 $1
28189 cat >>confdefs.h <<_ACEOF
28190 #define SELECT_TYPE_ARG234 $2
28194 cat >>confdefs.h <<_ACEOF
28195 #define SELECT_TYPE_RETV $4
28201 case $prev_sh_opts in
28209 case "$sel_qual_type_arg5" in
28211 sel_qual_arg5=const
28212 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
28216 sel_type_arg5=$sel_qual_type_arg5
28221 cat >>confdefs.h <<_ACEOF
28222 #define SELECT_QUAL_ARG5 $sel_qual_arg5
28226 cat >>confdefs.h <<_ACEOF
28227 #define SELECT_TYPE_ARG5 $sel_type_arg5
28231 case $prev_sh_opts in
28240 cat >>confdefs.h <<_ACEOF
28241 #define HAVE_SELECT 1
28244 ac_cv_func_select="yes"
28250 for ac_header in sys/types.h sys/socket.h
28252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28255 cat >>confdefs.h <<_ACEOF
28256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
28265 $as_echo_n "checking for recv... " >&6; }
28266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28267 /* end confdefs.h. */
28271 #ifdef HAVE_WINDOWS_H
28272 #ifndef WIN32_LEAN_AND_MEAN
28273 #define WIN32_LEAN_AND_MEAN
28275 #include <windows.h>
28276 #ifdef HAVE_WINSOCK2_H
28277 #include <winsock2.h>
28279 #ifdef HAVE_WINSOCK_H
28280 #include <winsock.h>
28284 #ifdef HAVE_SYS_TYPES_H
28285 #include <sys/types.h>
28287 #ifdef HAVE_SYS_SOCKET_H
28288 #include <sys/socket.h>
28302 if ac_fn_c_try_link "$LINENO"; then :
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28305 $as_echo "yes" >&6; }
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28311 $as_echo "no" >&6; }
28315 rm -f core conftest.err conftest.$ac_objext \
28316 conftest$ac_exeext conftest.$ac_ext
28318 if test "$curl_cv_recv" = "yes"; then
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
28320 $as_echo_n "checking types of args and return type for recv... " >&6; }
28321 if ${curl_cv_func_recv_args+:} false; then :
28322 $as_echo_n "(cached) " >&6
28325 curl_cv_func_recv_args="unknown"
28326 for recv_retv in 'int' 'ssize_t'; do
28327 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28328 for recv_arg2 in 'char *' 'void *'; do
28329 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28330 for recv_arg4 in 'int' 'unsigned int'; do
28331 if test "$curl_cv_func_recv_args" = "unknown"; then
28332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28333 /* end confdefs.h. */
28337 #ifdef HAVE_WINDOWS_H
28338 #ifndef WIN32_LEAN_AND_MEAN
28339 #define WIN32_LEAN_AND_MEAN
28341 #include <windows.h>
28342 #ifdef HAVE_WINSOCK2_H
28343 #include <winsock2.h>
28345 #ifdef HAVE_WINSOCK_H
28346 #include <winsock.h>
28349 #define RECVCALLCONV PASCAL
28351 #ifdef HAVE_SYS_TYPES_H
28352 #include <sys/types.h>
28354 #ifdef HAVE_SYS_SOCKET_H
28355 #include <sys/socket.h>
28357 #define RECVCALLCONV
28359 extern $recv_retv RECVCALLCONV
28360 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
28368 $recv_arg4 flags=0;
28369 $recv_retv res = recv(s, buf, len, flags);
28376 if ac_fn_c_try_compile "$LINENO"; then :
28378 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
28391 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
28392 if test "$curl_cv_func_recv_args" = "unknown"; then
28393 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
28395 recv_prev_IFS=$IFS; IFS=','
28396 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
28401 cat >>confdefs.h <<_ACEOF
28402 #define RECV_TYPE_ARG1 $1
28406 cat >>confdefs.h <<_ACEOF
28407 #define RECV_TYPE_ARG2 $2
28411 cat >>confdefs.h <<_ACEOF
28412 #define RECV_TYPE_ARG3 $3
28416 cat >>confdefs.h <<_ACEOF
28417 #define RECV_TYPE_ARG4 $4
28421 cat >>confdefs.h <<_ACEOF
28422 #define RECV_TYPE_RETV $5
28427 cat >>confdefs.h <<_ACEOF
28428 #define HAVE_RECV 1
28431 ac_cv_func_recv="yes"
28434 as_fn_error $? "Unable to link function recv" "$LINENO" 5
28438 for ac_header in sys/types.h sys/socket.h
28440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28441 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28443 cat >>confdefs.h <<_ACEOF
28444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
28453 $as_echo_n "checking for send... " >&6; }
28454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28455 /* end confdefs.h. */
28459 #ifdef HAVE_WINDOWS_H
28460 #ifndef WIN32_LEAN_AND_MEAN
28461 #define WIN32_LEAN_AND_MEAN
28463 #include <windows.h>
28464 #ifdef HAVE_WINSOCK2_H
28465 #include <winsock2.h>
28467 #ifdef HAVE_WINSOCK_H
28468 #include <winsock.h>
28472 #ifdef HAVE_SYS_TYPES_H
28473 #include <sys/types.h>
28475 #ifdef HAVE_SYS_SOCKET_H
28476 #include <sys/socket.h>
28490 if ac_fn_c_try_link "$LINENO"; then :
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28493 $as_echo "yes" >&6; }
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28499 $as_echo "no" >&6; }
28503 rm -f core conftest.err conftest.$ac_objext \
28504 conftest$ac_exeext conftest.$ac_ext
28506 if test "$curl_cv_send" = "yes"; then
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
28508 $as_echo_n "checking types of args and return type for send... " >&6; }
28509 if ${curl_cv_func_send_args+:} false; then :
28510 $as_echo_n "(cached) " >&6
28513 curl_cv_func_send_args="unknown"
28514 for send_retv in 'int' 'ssize_t'; do
28515 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28516 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
28517 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28518 for send_arg4 in 'int' 'unsigned int'; do
28519 if test "$curl_cv_func_send_args" = "unknown"; then
28520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28521 /* end confdefs.h. */
28525 #ifdef HAVE_WINDOWS_H
28526 #ifndef WIN32_LEAN_AND_MEAN
28527 #define WIN32_LEAN_AND_MEAN
28529 #include <windows.h>
28530 #ifdef HAVE_WINSOCK2_H
28531 #include <winsock2.h>
28533 #ifdef HAVE_WINSOCK_H
28534 #include <winsock.h>
28537 #define SENDCALLCONV PASCAL
28539 #ifdef HAVE_SYS_TYPES_H
28540 #include <sys/types.h>
28542 #ifdef HAVE_SYS_SOCKET_H
28543 #include <sys/socket.h>
28545 #define SENDCALLCONV
28547 extern $send_retv SENDCALLCONV
28548 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
28555 $send_arg4 flags=0;
28556 $send_retv res = send(s, 0, len, flags);
28563 if ac_fn_c_try_compile "$LINENO"; then :
28565 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
28578 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
28579 if test "$curl_cv_func_send_args" = "unknown"; then
28580 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
28582 send_prev_IFS=$IFS; IFS=','
28583 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
28587 send_qual_type_arg2=$2
28590 cat >>confdefs.h <<_ACEOF
28591 #define SEND_TYPE_ARG1 $1
28595 cat >>confdefs.h <<_ACEOF
28596 #define SEND_TYPE_ARG3 $3
28600 cat >>confdefs.h <<_ACEOF
28601 #define SEND_TYPE_ARG4 $4
28605 cat >>confdefs.h <<_ACEOF
28606 #define SEND_TYPE_RETV $5
28612 case $prev_sh_opts in
28620 case "$send_qual_type_arg2" in
28622 send_qual_arg2=const
28623 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
28627 send_type_arg2=$send_qual_type_arg2
28632 cat >>confdefs.h <<_ACEOF
28633 #define SEND_QUAL_ARG2 $send_qual_arg2
28637 cat >>confdefs.h <<_ACEOF
28638 #define SEND_TYPE_ARG2 $send_type_arg2
28642 case $prev_sh_opts in
28651 cat >>confdefs.h <<_ACEOF
28652 #define HAVE_SEND 1
28655 ac_cv_func_send="yes"
28658 as_fn_error $? "Unable to link function send" "$LINENO" 5
28662 for ac_header in sys/types.h sys/socket.h
28664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28665 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28666 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28667 cat >>confdefs.h <<_ACEOF
28668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
28676 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
28677 if ${ac_cv_msg_nosignal+:} false; then :
28678 $as_echo_n "(cached) " >&6
28681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28682 /* end confdefs.h. */
28686 #ifdef HAVE_WINDOWS_H
28687 #ifndef WIN32_LEAN_AND_MEAN
28688 #define WIN32_LEAN_AND_MEAN
28690 #include <windows.h>
28691 #ifdef HAVE_WINSOCK2_H
28692 #include <winsock2.h>
28694 #ifdef HAVE_WINSOCK_H
28695 #include <winsock.h>
28699 #ifdef HAVE_SYS_TYPES_H
28700 #include <sys/types.h>
28702 #ifdef HAVE_SYS_SOCKET_H
28703 #include <sys/socket.h>
28710 int flag=MSG_NOSIGNAL;
28717 if ac_fn_c_try_compile "$LINENO"; then :
28719 ac_cv_msg_nosignal="yes"
28723 ac_cv_msg_nosignal="no"
28726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
28730 $as_echo "$ac_cv_msg_nosignal" >&6; }
28731 case "$ac_cv_msg_nosignal" in
28734 cat >>confdefs.h <<_ACEOF
28735 #define HAVE_MSG_NOSIGNAL 1
28743 curl_includes_unistd="\
28744 /* includes start */
28745 #ifdef HAVE_SYS_TYPES_H
28746 # include <sys/types.h>
28748 #ifdef HAVE_UNISTD_H
28749 # include <unistd.h>
28751 /* includes end */"
28752 for ac_header in sys/types.h unistd.h
28754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28755 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
28757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28758 cat >>confdefs.h <<_ACEOF
28759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28769 tst_links_alarm="unknown"
28770 tst_proto_alarm="unknown"
28771 tst_compi_alarm="unknown"
28772 tst_allow_alarm="unknown"
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
28775 $as_echo_n "checking if alarm can be linked... " >&6; }
28776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h. */
28780 #define alarm innocuous_alarm
28782 # include <limits.h>
28784 # include <assert.h>
28791 #if defined __stub_alarm || defined __stub___alarm
28803 if ac_fn_c_try_link "$LINENO"; then :
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28806 $as_echo "yes" >&6; }
28807 tst_links_alarm="yes"
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28812 $as_echo "no" >&6; }
28813 tst_links_alarm="no"
28816 rm -f core conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
28819 if test "$tst_links_alarm" = "yes"; then
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
28821 $as_echo_n "checking if alarm is prototyped... " >&6; }
28822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28823 /* end confdefs.h. */
28825 $curl_includes_unistd
28828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28829 $EGREP "alarm" >/dev/null 2>&1; then :
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28832 $as_echo "yes" >&6; }
28833 tst_proto_alarm="yes"
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28838 $as_echo "no" >&6; }
28839 tst_proto_alarm="no"
28846 if test "$tst_proto_alarm" = "yes"; then
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
28848 $as_echo_n "checking if alarm is compilable... " >&6; }
28849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28850 /* end confdefs.h. */
28853 $curl_includes_unistd
28866 if ac_fn_c_try_compile "$LINENO"; then :
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28869 $as_echo "yes" >&6; }
28870 tst_compi_alarm="yes"
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28875 $as_echo "no" >&6; }
28876 tst_compi_alarm="no"
28879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28882 if test "$tst_compi_alarm" = "yes"; then
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
28884 $as_echo_n "checking if alarm usage allowed... " >&6; }
28885 if test "x$curl_disallow_alarm" != "xyes"; then
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28887 $as_echo "yes" >&6; }
28888 tst_allow_alarm="yes"
28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28891 $as_echo "no" >&6; }
28892 tst_allow_alarm="no"
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
28897 $as_echo_n "checking if alarm might be used... " >&6; }
28898 if test "$tst_links_alarm" = "yes" &&
28899 test "$tst_proto_alarm" = "yes" &&
28900 test "$tst_compi_alarm" = "yes" &&
28901 test "$tst_allow_alarm" = "yes"; then
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28903 $as_echo "yes" >&6; }
28905 cat >>confdefs.h <<_ACEOF
28906 #define HAVE_ALARM 1
28909 ac_cv_func_alarm="yes"
28911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28912 $as_echo "no" >&6; }
28913 ac_cv_func_alarm="no"
28917 curl_includes_string="\
28918 /* includes start */
28919 #ifdef HAVE_SYS_TYPES_H
28920 # include <sys/types.h>
28922 #ifdef HAVE_STRING_H
28923 # include <string.h>
28925 #ifdef HAVE_STRINGS_H
28926 # include <strings.h>
28928 /* includes end */"
28929 for ac_header in sys/types.h string.h strings.h
28931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28932 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
28934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28935 cat >>confdefs.h <<_ACEOF
28936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28945 curl_includes_libgen="\
28946 /* includes start */
28947 #ifdef HAVE_SYS_TYPES_H
28948 # include <sys/types.h>
28950 #ifdef HAVE_LIBGEN_H
28951 # include <libgen.h>
28953 /* includes end */"
28954 for ac_header in sys/types.h libgen.h
28956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28957 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
28959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28960 cat >>confdefs.h <<_ACEOF
28961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28971 tst_links_basename="unknown"
28972 tst_proto_basename="unknown"
28973 tst_compi_basename="unknown"
28974 tst_allow_basename="unknown"
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
28977 $as_echo_n "checking if basename can be linked... " >&6; }
28978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28979 /* end confdefs.h. */
28982 #define basename innocuous_basename
28984 # include <limits.h>
28986 # include <assert.h>
28993 #if defined __stub_basename || defined __stub___basename
28999 return basename ();
29005 if ac_fn_c_try_link "$LINENO"; then :
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29008 $as_echo "yes" >&6; }
29009 tst_links_basename="yes"
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29014 $as_echo "no" >&6; }
29015 tst_links_basename="no"
29018 rm -f core conftest.err conftest.$ac_objext \
29019 conftest$ac_exeext conftest.$ac_ext
29021 if test "$tst_links_basename" = "yes"; then
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
29023 $as_echo_n "checking if basename is prototyped... " >&6; }
29024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29025 /* end confdefs.h. */
29027 $curl_includes_string
29028 $curl_includes_libgen
29029 $curl_includes_unistd
29032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29033 $EGREP "basename" >/dev/null 2>&1; then :
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29036 $as_echo "yes" >&6; }
29037 tst_proto_basename="yes"
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29042 $as_echo "no" >&6; }
29043 tst_proto_basename="no"
29050 if test "$tst_proto_basename" = "yes"; then
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
29052 $as_echo_n "checking if basename is compilable... " >&6; }
29053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29054 /* end confdefs.h. */
29057 $curl_includes_string
29058 $curl_includes_libgen
29059 $curl_includes_unistd
29064 if(0 != basename(0))
29072 if ac_fn_c_try_compile "$LINENO"; then :
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29075 $as_echo "yes" >&6; }
29076 tst_compi_basename="yes"
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29081 $as_echo "no" >&6; }
29082 tst_compi_basename="no"
29085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088 if test "$tst_compi_basename" = "yes"; then
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
29090 $as_echo_n "checking if basename usage allowed... " >&6; }
29091 if test "x$curl_disallow_basename" != "xyes"; then
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29093 $as_echo "yes" >&6; }
29094 tst_allow_basename="yes"
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29097 $as_echo "no" >&6; }
29098 tst_allow_basename="no"
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
29103 $as_echo_n "checking if basename might be used... " >&6; }
29104 if test "$tst_links_basename" = "yes" &&
29105 test "$tst_proto_basename" = "yes" &&
29106 test "$tst_compi_basename" = "yes" &&
29107 test "$tst_allow_basename" = "yes"; then
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29109 $as_echo "yes" >&6; }
29111 cat >>confdefs.h <<_ACEOF
29112 #define HAVE_BASENAME 1
29115 ac_cv_func_basename="yes"
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29118 $as_echo "no" >&6; }
29119 ac_cv_func_basename="no"
29123 curl_includes_socket="\
29124 /* includes start */
29125 #ifdef HAVE_SYS_TYPES_H
29126 # include <sys/types.h>
29128 #ifdef HAVE_SOCKET_H
29129 # include <socket.h>
29131 /* includes end */"
29132 for ac_header in sys/types.h socket.h
29134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
29137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29138 cat >>confdefs.h <<_ACEOF
29139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29149 tst_links_closesocket="unknown"
29150 tst_proto_closesocket="unknown"
29151 tst_compi_closesocket="unknown"
29152 tst_allow_closesocket="unknown"
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
29155 $as_echo_n "checking if closesocket can be linked... " >&6; }
29156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29157 /* end confdefs.h. */
29160 $curl_includes_winsock2
29161 $curl_includes_socket
29166 if(0 != closesocket(0))
29174 if ac_fn_c_try_link "$LINENO"; then :
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29177 $as_echo "yes" >&6; }
29178 tst_links_closesocket="yes"
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29183 $as_echo "no" >&6; }
29184 tst_links_closesocket="no"
29187 rm -f core conftest.err conftest.$ac_objext \
29188 conftest$ac_exeext conftest.$ac_ext
29190 if test "$tst_links_closesocket" = "yes"; then
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
29192 $as_echo_n "checking if closesocket is prototyped... " >&6; }
29193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29194 /* end confdefs.h. */
29196 $curl_includes_winsock2
29197 $curl_includes_socket
29200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29201 $EGREP "closesocket" >/dev/null 2>&1; then :
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29204 $as_echo "yes" >&6; }
29205 tst_proto_closesocket="yes"
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29210 $as_echo "no" >&6; }
29211 tst_proto_closesocket="no"
29218 if test "$tst_proto_closesocket" = "yes"; then
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
29220 $as_echo_n "checking if closesocket is compilable... " >&6; }
29221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29222 /* end confdefs.h. */
29225 $curl_includes_winsock2
29226 $curl_includes_socket
29231 if(0 != closesocket(0))
29239 if ac_fn_c_try_compile "$LINENO"; then :
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29242 $as_echo "yes" >&6; }
29243 tst_compi_closesocket="yes"
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29248 $as_echo "no" >&6; }
29249 tst_compi_closesocket="no"
29252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29255 if test "$tst_compi_closesocket" = "yes"; then
29256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
29257 $as_echo_n "checking if closesocket usage allowed... " >&6; }
29258 if test "x$curl_disallow_closesocket" != "xyes"; then
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29260 $as_echo "yes" >&6; }
29261 tst_allow_closesocket="yes"
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29264 $as_echo "no" >&6; }
29265 tst_allow_closesocket="no"
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
29270 $as_echo_n "checking if closesocket might be used... " >&6; }
29271 if test "$tst_links_closesocket" = "yes" &&
29272 test "$tst_proto_closesocket" = "yes" &&
29273 test "$tst_compi_closesocket" = "yes" &&
29274 test "$tst_allow_closesocket" = "yes"; then
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29276 $as_echo "yes" >&6; }
29278 cat >>confdefs.h <<_ACEOF
29279 #define HAVE_CLOSESOCKET 1
29282 ac_cv_func_closesocket="yes"
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29285 $as_echo "no" >&6; }
29286 ac_cv_func_closesocket="no"
29291 tst_links_closesocket_camel="unknown"
29292 tst_proto_closesocket_camel="unknown"
29293 tst_compi_closesocket_camel="unknown"
29294 tst_allow_closesocket_camel="unknown"
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
29297 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
29298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29299 /* end confdefs.h. */
29302 $curl_includes_sys_socket
29307 if(0 != CloseSocket(0))
29315 if ac_fn_c_try_link "$LINENO"; then :
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29318 $as_echo "yes" >&6; }
29319 tst_links_closesocket_camel="yes"
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29324 $as_echo "no" >&6; }
29325 tst_links_closesocket_camel="no"
29328 rm -f core conftest.err conftest.$ac_objext \
29329 conftest$ac_exeext conftest.$ac_ext
29331 if test "$tst_links_closesocket_camel" = "yes"; then
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
29333 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
29334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h. */
29337 $curl_includes_sys_socket
29340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29341 $EGREP "CloseSocket" >/dev/null 2>&1; then :
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29344 $as_echo "yes" >&6; }
29345 tst_proto_closesocket_camel="yes"
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }
29351 tst_proto_closesocket_camel="no"
29358 if test "$tst_proto_closesocket_camel" = "yes"; then
29359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
29360 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
29361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362 /* end confdefs.h. */
29365 $curl_includes_sys_socket
29370 if(0 != CloseSocket(0))
29378 if ac_fn_c_try_compile "$LINENO"; then :
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29381 $as_echo "yes" >&6; }
29382 tst_compi_closesocket_camel="yes"
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387 $as_echo "no" >&6; }
29388 tst_compi_closesocket_camel="no"
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29394 if test "$tst_compi_closesocket_camel" = "yes"; then
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
29396 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
29397 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29399 $as_echo "yes" >&6; }
29400 tst_allow_closesocket_camel="yes"
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403 $as_echo "no" >&6; }
29404 tst_allow_closesocket_camel="no"
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
29409 $as_echo_n "checking if CloseSocket might be used... " >&6; }
29410 if test "$tst_links_closesocket_camel" = "yes" &&
29411 test "$tst_proto_closesocket_camel" = "yes" &&
29412 test "$tst_compi_closesocket_camel" = "yes" &&
29413 test "$tst_allow_closesocket_camel" = "yes"; then
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29415 $as_echo "yes" >&6; }
29417 cat >>confdefs.h <<_ACEOF
29418 #define HAVE_CLOSESOCKET_CAMEL 1
29421 ac_cv_func_closesocket_camel="yes"
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29424 $as_echo "no" >&6; }
29425 ac_cv_func_closesocket_camel="no"
29430 tst_links_connect="unknown"
29431 tst_proto_connect="unknown"
29432 tst_compi_connect="unknown"
29433 tst_allow_connect="unknown"
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
29436 $as_echo_n "checking if connect can be linked... " >&6; }
29437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438 /* end confdefs.h. */
29441 $curl_includes_winsock2
29442 $curl_includes_sys_socket
29443 $curl_includes_socket
29448 if(0 != connect(0, 0, 0))
29456 if ac_fn_c_try_link "$LINENO"; then :
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29459 $as_echo "yes" >&6; }
29460 tst_links_connect="yes"
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29465 $as_echo "no" >&6; }
29466 tst_links_connect="no"
29469 rm -f core conftest.err conftest.$ac_objext \
29470 conftest$ac_exeext conftest.$ac_ext
29472 if test "$tst_links_connect" = "yes"; then
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
29474 $as_echo_n "checking if connect is prototyped... " >&6; }
29475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29476 /* end confdefs.h. */
29478 $curl_includes_winsock2
29479 $curl_includes_sys_socket
29480 $curl_includes_socket
29483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29484 $EGREP "connect" >/dev/null 2>&1; then :
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29487 $as_echo "yes" >&6; }
29488 tst_proto_connect="yes"
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29493 $as_echo "no" >&6; }
29494 tst_proto_connect="no"
29501 if test "$tst_proto_connect" = "yes"; then
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
29503 $as_echo_n "checking if connect is compilable... " >&6; }
29504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29505 /* end confdefs.h. */
29508 $curl_includes_winsock2
29509 $curl_includes_sys_socket
29510 $curl_includes_socket
29515 if(0 != connect(0, 0, 0))
29523 if ac_fn_c_try_compile "$LINENO"; then :
29525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29526 $as_echo "yes" >&6; }
29527 tst_compi_connect="yes"
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29532 $as_echo "no" >&6; }
29533 tst_compi_connect="no"
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29539 if test "$tst_compi_connect" = "yes"; then
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
29541 $as_echo_n "checking if connect usage allowed... " >&6; }
29542 if test "x$curl_disallow_connect" != "xyes"; then
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29544 $as_echo "yes" >&6; }
29545 tst_allow_connect="yes"
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29548 $as_echo "no" >&6; }
29549 tst_allow_connect="no"
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
29554 $as_echo_n "checking if connect might be used... " >&6; }
29555 if test "$tst_links_connect" = "yes" &&
29556 test "$tst_proto_connect" = "yes" &&
29557 test "$tst_compi_connect" = "yes" &&
29558 test "$tst_allow_connect" = "yes"; then
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29560 $as_echo "yes" >&6; }
29562 cat >>confdefs.h <<_ACEOF
29563 #define HAVE_CONNECT 1
29566 ac_cv_func_connect="yes"
29568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29569 $as_echo "no" >&6; }
29570 ac_cv_func_connect="no"
29574 curl_includes_fcntl="\
29575 /* includes start */
29576 #ifdef HAVE_SYS_TYPES_H
29577 # include <sys/types.h>
29579 #ifdef HAVE_UNISTD_H
29580 # include <unistd.h>
29582 #ifdef HAVE_FCNTL_H
29583 # include <fcntl.h>
29585 /* includes end */"
29586 for ac_header in sys/types.h unistd.h fcntl.h
29588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29589 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
29591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29592 cat >>confdefs.h <<_ACEOF
29593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29603 tst_links_fcntl="unknown"
29604 tst_proto_fcntl="unknown"
29605 tst_compi_fcntl="unknown"
29606 tst_allow_fcntl="unknown"
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
29609 $as_echo_n "checking if fcntl can be linked... " >&6; }
29610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29611 /* end confdefs.h. */
29614 #define fcntl innocuous_fcntl
29616 # include <limits.h>
29618 # include <assert.h>
29625 #if defined __stub_fcntl || defined __stub___fcntl
29637 if ac_fn_c_try_link "$LINENO"; then :
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29640 $as_echo "yes" >&6; }
29641 tst_links_fcntl="yes"
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29646 $as_echo "no" >&6; }
29647 tst_links_fcntl="no"
29650 rm -f core conftest.err conftest.$ac_objext \
29651 conftest$ac_exeext conftest.$ac_ext
29653 if test "$tst_links_fcntl" = "yes"; then
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
29655 $as_echo_n "checking if fcntl is prototyped... " >&6; }
29656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29657 /* end confdefs.h. */
29659 $curl_includes_fcntl
29662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29663 $EGREP "fcntl" >/dev/null 2>&1; then :
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29666 $as_echo "yes" >&6; }
29667 tst_proto_fcntl="yes"
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29672 $as_echo "no" >&6; }
29673 tst_proto_fcntl="no"
29680 if test "$tst_proto_fcntl" = "yes"; then
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
29682 $as_echo_n "checking if fcntl is compilable... " >&6; }
29683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29684 /* end confdefs.h. */
29687 $curl_includes_fcntl
29692 if(0 != fcntl(0, 0, 0))
29700 if ac_fn_c_try_compile "$LINENO"; then :
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29703 $as_echo "yes" >&6; }
29704 tst_compi_fcntl="yes"
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29709 $as_echo "no" >&6; }
29710 tst_compi_fcntl="no"
29713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29716 if test "$tst_compi_fcntl" = "yes"; then
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
29718 $as_echo_n "checking if fcntl usage allowed... " >&6; }
29719 if test "x$curl_disallow_fcntl" != "xyes"; then
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29721 $as_echo "yes" >&6; }
29722 tst_allow_fcntl="yes"
29724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29725 $as_echo "no" >&6; }
29726 tst_allow_fcntl="no"
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
29731 $as_echo_n "checking if fcntl might be used... " >&6; }
29732 if test "$tst_links_fcntl" = "yes" &&
29733 test "$tst_proto_fcntl" = "yes" &&
29734 test "$tst_compi_fcntl" = "yes" &&
29735 test "$tst_allow_fcntl" = "yes"; then
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29737 $as_echo "yes" >&6; }
29739 cat >>confdefs.h <<_ACEOF
29740 #define HAVE_FCNTL 1
29743 ac_cv_func_fcntl="yes"
29746 tst_compi_fcntl_o_nonblock="unknown"
29747 tst_allow_fcntl_o_nonblock="unknown"
29750 sunos4* | aix3* | beos*)
29751 curl_disallow_fcntl_o_nonblock="yes"
29755 if test "$ac_cv_func_fcntl" = "yes"; then
29756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
29757 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
29758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29759 /* end confdefs.h. */
29762 $curl_includes_fcntl
29768 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
29776 if ac_fn_c_try_compile "$LINENO"; then :
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29779 $as_echo "yes" >&6; }
29780 tst_compi_fcntl_o_nonblock="yes"
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29785 $as_echo "no" >&6; }
29786 tst_compi_fcntl_o_nonblock="no"
29789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
29794 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
29795 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29797 $as_echo "yes" >&6; }
29798 tst_allow_fcntl_o_nonblock="yes"
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29801 $as_echo "no" >&6; }
29802 tst_allow_fcntl_o_nonblock="no"
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
29807 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
29808 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
29809 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29811 $as_echo "yes" >&6; }
29813 cat >>confdefs.h <<_ACEOF
29814 #define HAVE_FCNTL_O_NONBLOCK 1
29817 ac_cv_func_fcntl_o_nonblock="yes"
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29820 $as_echo "no" >&6; }
29821 ac_cv_func_fcntl_o_nonblock="no"
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29826 $as_echo "no" >&6; }
29827 ac_cv_func_fcntl="no"
29831 curl_includes_stdio="\
29832 /* includes start */
29833 #ifdef HAVE_SYS_TYPES_H
29834 # include <sys/types.h>
29836 #ifdef HAVE_STDIO_H
29837 # include <stdio.h>
29839 /* includes end */"
29840 for ac_header in sys/types.h stdio.h
29842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29843 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
29845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29846 cat >>confdefs.h <<_ACEOF
29847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29857 tst_links_fdopen="unknown"
29858 tst_proto_fdopen="unknown"
29859 tst_compi_fdopen="unknown"
29860 tst_allow_fdopen="unknown"
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
29863 $as_echo_n "checking if fdopen can be linked... " >&6; }
29864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29865 /* end confdefs.h. */
29868 #define fdopen innocuous_fdopen
29870 # include <limits.h>
29872 # include <assert.h>
29879 #if defined __stub_fdopen || defined __stub___fdopen
29891 if ac_fn_c_try_link "$LINENO"; then :
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29894 $as_echo "yes" >&6; }
29895 tst_links_fdopen="yes"
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29900 $as_echo "no" >&6; }
29901 tst_links_fdopen="no"
29904 rm -f core conftest.err conftest.$ac_objext \
29905 conftest$ac_exeext conftest.$ac_ext
29907 if test "$tst_links_fdopen" = "yes"; then
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
29909 $as_echo_n "checking if fdopen is prototyped... " >&6; }
29910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29911 /* end confdefs.h. */
29913 $curl_includes_stdio
29916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29917 $EGREP "fdopen" >/dev/null 2>&1; then :
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29920 $as_echo "yes" >&6; }
29921 tst_proto_fdopen="yes"
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29926 $as_echo "no" >&6; }
29927 tst_proto_fdopen="no"
29934 if test "$tst_proto_fdopen" = "yes"; then
29935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
29936 $as_echo_n "checking if fdopen is compilable... " >&6; }
29937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29938 /* end confdefs.h. */
29941 $curl_includes_stdio
29946 if(0 != fdopen(0, 0))
29954 if ac_fn_c_try_compile "$LINENO"; then :
29956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29957 $as_echo "yes" >&6; }
29958 tst_compi_fdopen="yes"
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29963 $as_echo "no" >&6; }
29964 tst_compi_fdopen="no"
29967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29970 if test "$tst_compi_fdopen" = "yes"; then
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
29972 $as_echo_n "checking if fdopen usage allowed... " >&6; }
29973 if test "x$curl_disallow_fdopen" != "xyes"; then
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29975 $as_echo "yes" >&6; }
29976 tst_allow_fdopen="yes"
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29979 $as_echo "no" >&6; }
29980 tst_allow_fdopen="no"
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
29985 $as_echo_n "checking if fdopen might be used... " >&6; }
29986 if test "$tst_links_fdopen" = "yes" &&
29987 test "$tst_proto_fdopen" = "yes" &&
29988 test "$tst_compi_fdopen" = "yes" &&
29989 test "$tst_allow_fdopen" = "yes"; then
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29991 $as_echo "yes" >&6; }
29993 cat >>confdefs.h <<_ACEOF
29994 #define HAVE_FDOPEN 1
29997 ac_cv_func_fdopen="yes"
29999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30000 $as_echo "no" >&6; }
30001 ac_cv_func_fdopen="no"
30005 curl_includes_netdb="\
30006 /* includes start */
30007 #ifdef HAVE_SYS_TYPES_H
30008 # include <sys/types.h>
30010 #ifdef HAVE_NETDB_H
30011 # include <netdb.h>
30013 /* includes end */"
30014 for ac_header in sys/types.h netdb.h
30016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30017 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
30019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30020 cat >>confdefs.h <<_ACEOF
30021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30031 tst_links_freeaddrinfo="unknown"
30032 tst_proto_freeaddrinfo="unknown"
30033 tst_compi_freeaddrinfo="unknown"
30034 tst_allow_freeaddrinfo="unknown"
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
30037 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
30038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30039 /* end confdefs.h. */
30042 $curl_includes_ws2tcpip
30043 $curl_includes_sys_socket
30044 $curl_includes_netdb
30056 if ac_fn_c_try_link "$LINENO"; then :
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30059 $as_echo "yes" >&6; }
30060 tst_links_freeaddrinfo="yes"
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30065 $as_echo "no" >&6; }
30066 tst_links_freeaddrinfo="no"
30069 rm -f core conftest.err conftest.$ac_objext \
30070 conftest$ac_exeext conftest.$ac_ext
30072 if test "$tst_links_freeaddrinfo" = "yes"; then
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
30074 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
30075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30076 /* end confdefs.h. */
30078 $curl_includes_ws2tcpip
30079 $curl_includes_sys_socket
30080 $curl_includes_netdb
30083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30084 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30087 $as_echo "yes" >&6; }
30088 tst_proto_freeaddrinfo="yes"
30092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30093 $as_echo "no" >&6; }
30094 tst_proto_freeaddrinfo="no"
30101 if test "$tst_proto_freeaddrinfo" = "yes"; then
30102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
30103 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
30104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30105 /* end confdefs.h. */
30108 $curl_includes_ws2tcpip
30109 $curl_includes_sys_socket
30110 $curl_includes_netdb
30122 if ac_fn_c_try_compile "$LINENO"; then :
30124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125 $as_echo "yes" >&6; }
30126 tst_compi_freeaddrinfo="yes"
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30131 $as_echo "no" >&6; }
30132 tst_compi_freeaddrinfo="no"
30135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30138 if test "$tst_compi_freeaddrinfo" = "yes"; then
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
30140 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
30141 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
30142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30143 $as_echo "yes" >&6; }
30144 tst_allow_freeaddrinfo="yes"
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30147 $as_echo "no" >&6; }
30148 tst_allow_freeaddrinfo="no"
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
30153 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
30154 if test "$tst_links_freeaddrinfo" = "yes" &&
30155 test "$tst_proto_freeaddrinfo" = "yes" &&
30156 test "$tst_compi_freeaddrinfo" = "yes" &&
30157 test "$tst_allow_freeaddrinfo" = "yes"; then
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30159 $as_echo "yes" >&6; }
30161 cat >>confdefs.h <<_ACEOF
30162 #define HAVE_FREEADDRINFO 1
30165 ac_cv_func_freeaddrinfo="yes"
30167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30168 $as_echo "no" >&6; }
30169 ac_cv_func_freeaddrinfo="no"
30173 curl_includes_ifaddrs="\
30174 /* includes start */
30175 #ifdef HAVE_SYS_TYPES_H
30176 # include <sys/types.h>
30178 #ifdef HAVE_SYS_SOCKET_H
30179 # include <sys/socket.h>
30181 #ifdef HAVE_NETINET_IN_H
30182 # include <netinet/in.h>
30184 #ifdef HAVE_IFADDRS_H
30185 # include <ifaddrs.h>
30187 /* includes end */"
30188 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
30190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
30193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30194 cat >>confdefs.h <<_ACEOF
30195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30205 tst_links_freeifaddrs="unknown"
30206 tst_proto_freeifaddrs="unknown"
30207 tst_compi_freeifaddrs="unknown"
30208 tst_allow_freeifaddrs="unknown"
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
30211 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
30212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30213 /* end confdefs.h. */
30216 #define freeifaddrs innocuous_freeifaddrs
30218 # include <limits.h>
30220 # include <assert.h>
30226 char freeifaddrs ();
30227 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
30233 return freeifaddrs ();
30239 if ac_fn_c_try_link "$LINENO"; then :
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30242 $as_echo "yes" >&6; }
30243 tst_links_freeifaddrs="yes"
30247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30248 $as_echo "no" >&6; }
30249 tst_links_freeifaddrs="no"
30252 rm -f core conftest.err conftest.$ac_objext \
30253 conftest$ac_exeext conftest.$ac_ext
30255 if test "$tst_links_freeifaddrs" = "yes"; then
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
30257 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
30258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30259 /* end confdefs.h. */
30261 $curl_includes_ifaddrs
30264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30265 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
30267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30268 $as_echo "yes" >&6; }
30269 tst_proto_freeifaddrs="yes"
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30274 $as_echo "no" >&6; }
30275 tst_proto_freeifaddrs="no"
30282 if test "$tst_proto_freeifaddrs" = "yes"; then
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
30284 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
30285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30286 /* end confdefs.h. */
30289 $curl_includes_ifaddrs
30301 if ac_fn_c_try_compile "$LINENO"; then :
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30304 $as_echo "yes" >&6; }
30305 tst_compi_freeifaddrs="yes"
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30310 $as_echo "no" >&6; }
30311 tst_compi_freeifaddrs="no"
30314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30317 if test "$tst_compi_freeifaddrs" = "yes"; then
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
30319 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
30320 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30322 $as_echo "yes" >&6; }
30323 tst_allow_freeifaddrs="yes"
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30326 $as_echo "no" >&6; }
30327 tst_allow_freeifaddrs="no"
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
30332 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
30333 if test "$tst_links_freeifaddrs" = "yes" &&
30334 test "$tst_proto_freeifaddrs" = "yes" &&
30335 test "$tst_compi_freeifaddrs" = "yes" &&
30336 test "$tst_allow_freeifaddrs" = "yes"; then
30337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30338 $as_echo "yes" >&6; }
30340 cat >>confdefs.h <<_ACEOF
30341 #define HAVE_FREEIFADDRS 1
30344 ac_cv_func_freeifaddrs="yes"
30346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30347 $as_echo "no" >&6; }
30348 ac_cv_func_freeifaddrs="no"
30352 curl_includes_sys_xattr="\
30353 /* includes start */
30354 #ifdef HAVE_SYS_TYPES_H
30355 # include <sys/types.h>
30357 #ifdef HAVE_SYS_XATTR_H
30358 # include <sys/xattr.h>
30360 /* includes end */"
30361 for ac_header in sys/types.h sys/xattr.h
30363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30364 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
30366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30367 cat >>confdefs.h <<_ACEOF
30368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30378 tst_links_fsetxattr="unknown"
30379 tst_proto_fsetxattr="unknown"
30380 tst_compi_fsetxattr="unknown"
30381 tst_allow_fsetxattr="unknown"
30382 tst_nargs_fsetxattr="unknown"
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
30385 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
30386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30387 /* end confdefs.h. */
30390 #define fsetxattr innocuous_fsetxattr
30392 # include <limits.h>
30394 # include <assert.h>
30401 #if defined __stub_fsetxattr || defined __stub___fsetxattr
30407 return fsetxattr ();
30413 if ac_fn_c_try_link "$LINENO"; then :
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30416 $as_echo "yes" >&6; }
30417 tst_links_fsetxattr="yes"
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30422 $as_echo "no" >&6; }
30423 tst_links_fsetxattr="no"
30426 rm -f core conftest.err conftest.$ac_objext \
30427 conftest$ac_exeext conftest.$ac_ext
30429 if test "$tst_links_fsetxattr" = "yes"; then
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
30431 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
30432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30433 /* end confdefs.h. */
30435 $curl_includes_sys_xattr
30438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30439 $EGREP "fsetxattr" >/dev/null 2>&1; then :
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30442 $as_echo "yes" >&6; }
30443 tst_proto_fsetxattr="yes"
30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30448 $as_echo "no" >&6; }
30449 tst_proto_fsetxattr="no"
30456 if test "$tst_proto_fsetxattr" = "yes"; then
30457 if test "$tst_nargs_fsetxattr" = "unknown"; then
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
30459 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
30460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30461 /* end confdefs.h. */
30464 $curl_includes_sys_xattr
30469 if(0 != fsetxattr(0, 0, 0, 0, 0))
30477 if ac_fn_c_try_compile "$LINENO"; then :
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30480 $as_echo "yes" >&6; }
30481 tst_compi_fsetxattr="yes"
30482 tst_nargs_fsetxattr="5"
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 $as_echo "no" >&6; }
30488 tst_compi_fsetxattr="no"
30491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30493 if test "$tst_nargs_fsetxattr" = "unknown"; then
30494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
30495 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
30496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30497 /* end confdefs.h. */
30500 $curl_includes_sys_xattr
30505 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
30513 if ac_fn_c_try_compile "$LINENO"; then :
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30516 $as_echo "yes" >&6; }
30517 tst_compi_fsetxattr="yes"
30518 tst_nargs_fsetxattr="6"
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30523 $as_echo "no" >&6; }
30524 tst_compi_fsetxattr="no"
30527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
30530 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
30531 if test "$tst_compi_fsetxattr" = "yes"; then
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30533 $as_echo "yes" >&6; }
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30536 $as_echo "no" >&6; }
30540 if test "$tst_compi_fsetxattr" = "yes"; then
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
30542 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
30543 if test "x$curl_disallow_fsetxattr" != "xyes"; then
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30545 $as_echo "yes" >&6; }
30546 tst_allow_fsetxattr="yes"
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30549 $as_echo "no" >&6; }
30550 tst_allow_fsetxattr="no"
30554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
30555 $as_echo_n "checking if fsetxattr might be used... " >&6; }
30556 if test "$tst_links_fsetxattr" = "yes" &&
30557 test "$tst_proto_fsetxattr" = "yes" &&
30558 test "$tst_compi_fsetxattr" = "yes" &&
30559 test "$tst_allow_fsetxattr" = "yes"; then
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30561 $as_echo "yes" >&6; }
30563 cat >>confdefs.h <<_ACEOF
30564 #define HAVE_FSETXATTR 1
30568 if test "$tst_nargs_fsetxattr" -eq "5"; then
30570 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
30572 elif test "$tst_nargs_fsetxattr" -eq "6"; then
30574 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
30578 ac_cv_func_fsetxattr="yes"
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581 $as_echo "no" >&6; }
30582 ac_cv_func_fsetxattr="no"
30587 tst_links_ftruncate="unknown"
30588 tst_proto_ftruncate="unknown"
30589 tst_compi_ftruncate="unknown"
30590 tst_allow_ftruncate="unknown"
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
30593 $as_echo_n "checking if ftruncate can be linked... " >&6; }
30594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30595 /* end confdefs.h. */
30598 #define ftruncate innocuous_ftruncate
30600 # include <limits.h>
30602 # include <assert.h>
30609 #if defined __stub_ftruncate || defined __stub___ftruncate
30615 return ftruncate ();
30621 if ac_fn_c_try_link "$LINENO"; then :
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30624 $as_echo "yes" >&6; }
30625 tst_links_ftruncate="yes"
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30630 $as_echo "no" >&6; }
30631 tst_links_ftruncate="no"
30634 rm -f core conftest.err conftest.$ac_objext \
30635 conftest$ac_exeext conftest.$ac_ext
30637 if test "$tst_links_ftruncate" = "yes"; then
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
30639 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
30640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30641 /* end confdefs.h. */
30643 $curl_includes_unistd
30646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30647 $EGREP "ftruncate" >/dev/null 2>&1; then :
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30650 $as_echo "yes" >&6; }
30651 tst_proto_ftruncate="yes"
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30656 $as_echo "no" >&6; }
30657 tst_proto_ftruncate="no"
30664 if test "$tst_proto_ftruncate" = "yes"; then
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
30666 $as_echo_n "checking if ftruncate is compilable... " >&6; }
30667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30668 /* end confdefs.h. */
30671 $curl_includes_unistd
30676 if(0 != ftruncate(0, 0))
30684 if ac_fn_c_try_compile "$LINENO"; then :
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30687 $as_echo "yes" >&6; }
30688 tst_compi_ftruncate="yes"
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30693 $as_echo "no" >&6; }
30694 tst_compi_ftruncate="no"
30697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30700 if test "$tst_compi_ftruncate" = "yes"; then
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
30702 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
30703 if test "x$curl_disallow_ftruncate" != "xyes"; then
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30705 $as_echo "yes" >&6; }
30706 tst_allow_ftruncate="yes"
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30709 $as_echo "no" >&6; }
30710 tst_allow_ftruncate="no"
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
30715 $as_echo_n "checking if ftruncate might be used... " >&6; }
30716 if test "$tst_links_ftruncate" = "yes" &&
30717 test "$tst_proto_ftruncate" = "yes" &&
30718 test "$tst_compi_ftruncate" = "yes" &&
30719 test "$tst_allow_ftruncate" = "yes"; then
30720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30721 $as_echo "yes" >&6; }
30723 cat >>confdefs.h <<_ACEOF
30724 #define HAVE_FTRUNCATE 1
30727 ac_cv_func_ftruncate="yes"
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30731 ac_cv_func_ftruncate="no"
30735 curl_includes_stdlib="\
30736 /* includes start */
30737 #ifdef HAVE_SYS_TYPES_H
30738 # include <sys/types.h>
30740 #ifdef HAVE_STDLIB_H
30741 # include <stdlib.h>
30743 /* includes end */"
30744 for ac_header in sys/types.h stdlib.h
30746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
30749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30750 cat >>confdefs.h <<_ACEOF
30751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30761 tst_links_getaddrinfo="unknown"
30762 tst_proto_getaddrinfo="unknown"
30763 tst_compi_getaddrinfo="unknown"
30764 tst_works_getaddrinfo="unknown"
30765 tst_allow_getaddrinfo="unknown"
30766 tst_tsafe_getaddrinfo="unknown"
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
30769 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
30770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30771 /* end confdefs.h. */
30774 $curl_includes_ws2tcpip
30775 $curl_includes_sys_socket
30776 $curl_includes_netdb
30781 if(0 != getaddrinfo(0, 0, 0, 0))
30789 if ac_fn_c_try_link "$LINENO"; then :
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30792 $as_echo "yes" >&6; }
30793 tst_links_getaddrinfo="yes"
30797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30798 $as_echo "no" >&6; }
30799 tst_links_getaddrinfo="no"
30802 rm -f core conftest.err conftest.$ac_objext \
30803 conftest$ac_exeext conftest.$ac_ext
30805 if test "$tst_links_getaddrinfo" = "yes"; then
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
30807 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
30808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30809 /* end confdefs.h. */
30811 $curl_includes_ws2tcpip
30812 $curl_includes_sys_socket
30813 $curl_includes_netdb
30816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30817 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
30819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30820 $as_echo "yes" >&6; }
30821 tst_proto_getaddrinfo="yes"
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30826 $as_echo "no" >&6; }
30827 tst_proto_getaddrinfo="no"
30834 if test "$tst_proto_getaddrinfo" = "yes"; then
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
30836 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
30837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838 /* end confdefs.h. */
30841 $curl_includes_ws2tcpip
30842 $curl_includes_sys_socket
30843 $curl_includes_netdb
30848 if(0 != getaddrinfo(0, 0, 0, 0))
30856 if ac_fn_c_try_compile "$LINENO"; then :
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30859 $as_echo "yes" >&6; }
30860 tst_compi_getaddrinfo="yes"
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865 $as_echo "no" >&6; }
30866 tst_compi_getaddrinfo="no"
30869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30872 if test "x$cross_compiling" != "xyes" &&
30873 test "$tst_compi_getaddrinfo" = "yes"; then
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
30875 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
30876 if test "$cross_compiling" = yes; then :
30877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30879 as_fn_error $? "cannot run test program while cross compiling
30880 See \`config.log' for more details" "$LINENO" 5; }
30882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30883 /* end confdefs.h. */
30886 $curl_includes_ws2tcpip
30887 $curl_includes_stdlib
30888 $curl_includes_string
30889 $curl_includes_sys_socket
30890 $curl_includes_netdb
30895 struct addrinfo hints;
30896 struct addrinfo *ai = 0;
30899 memset(&hints, 0, sizeof(hints));
30900 hints.ai_flags = AI_NUMERICHOST;
30901 hints.ai_family = AF_UNSPEC;
30902 hints.ai_socktype = SOCK_STREAM;
30903 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
30905 exit(1); /* fail */
30914 if ac_fn_c_try_run "$LINENO"; then :
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30917 $as_echo "yes" >&6; }
30918 tst_works_getaddrinfo="yes"
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30923 $as_echo "no" >&6; }
30924 tst_works_getaddrinfo="no"
30927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30928 conftest.$ac_objext conftest.beam conftest.$ac_ext
30933 if test "$tst_compi_getaddrinfo" = "yes" &&
30934 test "$tst_works_getaddrinfo" != "no"; then
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
30936 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
30937 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30939 $as_echo "yes" >&6; }
30940 tst_allow_getaddrinfo="yes"
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30943 $as_echo "no" >&6; }
30944 tst_allow_getaddrinfo="no"
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
30949 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
30950 if test "$tst_links_getaddrinfo" = "yes" &&
30951 test "$tst_proto_getaddrinfo" = "yes" &&
30952 test "$tst_compi_getaddrinfo" = "yes" &&
30953 test "$tst_allow_getaddrinfo" = "yes" &&
30954 test "$tst_works_getaddrinfo" != "no"; then
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30956 $as_echo "yes" >&6; }
30958 cat >>confdefs.h <<_ACEOF
30959 #define HAVE_GETADDRINFO 1
30962 ac_cv_func_getaddrinfo="yes"
30964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30965 $as_echo "no" >&6; }
30966 ac_cv_func_getaddrinfo="no"
30967 ac_cv_func_getaddrinfo_threadsafe="no"
30970 if test "$ac_cv_func_getaddrinfo" = "yes"; then
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
30972 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
30974 aix[1234].* | aix5.[01].*)
30975 tst_tsafe_getaddrinfo="no"
30978 tst_tsafe_getaddrinfo="yes"
30981 tst_tsafe_getaddrinfo="no"
30984 tst_tsafe_getaddrinfo="yes"
30986 freebsd[1234].* | freebsd5.[1234]*)
30987 tst_tsafe_getaddrinfo="no"
30990 tst_tsafe_getaddrinfo="yes"
30992 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
30993 tst_tsafe_getaddrinfo="no"
30996 tst_tsafe_getaddrinfo="yes"
30999 tst_tsafe_getaddrinfo="no"
31002 tst_tsafe_getaddrinfo="yes"
31005 tst_tsafe_getaddrinfo="no"
31008 tst_tsafe_getaddrinfo="yes"
31011 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
31012 test "$ac_cv_native_windows" = "yes"; then
31013 tst_tsafe_getaddrinfo="yes"
31015 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
31018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31019 /* end confdefs.h. */
31022 $curl_includes_sys_socket
31023 $curl_includes_netdb
31030 force compilation error
31036 if ac_fn_c_try_compile "$LINENO"; then :
31038 tst_symbol_defined="yes"
31042 tst_symbol_defined="no"
31045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31046 if test "$tst_symbol_defined" = "yes"; then
31047 curl_cv_have_def_h_errno=yes
31050 curl_cv_have_def_h_errno=no
31054 if test "$curl_cv_have_def_h_errno" = "yes"; then
31055 tst_h_errno_macro="yes"
31057 tst_h_errno_macro="no"
31059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31060 /* end confdefs.h. */
31063 $curl_includes_sys_socket
31064 $curl_includes_netdb
31078 if ac_fn_c_try_compile "$LINENO"; then :
31080 tst_h_errno_modifiable_lvalue="yes"
31084 tst_h_errno_modifiable_lvalue="no"
31087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31089 /* end confdefs.h. */
31096 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
31098 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
31101 force compilation error
31109 if ac_fn_c_try_compile "$LINENO"; then :
31111 tst_h_errno_sbs_issue_7="yes"
31115 tst_h_errno_sbs_issue_7="no"
31118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31119 if test "$tst_h_errno_macro" = "no" &&
31120 test "$tst_h_errno_modifiable_lvalue" = "no" &&
31121 test "$tst_h_errno_sbs_issue_7" = "no"; then
31122 tst_tsafe_getaddrinfo="no"
31124 tst_tsafe_getaddrinfo="yes"
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
31128 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
31129 if test "$tst_tsafe_getaddrinfo" = "yes"; then
31131 cat >>confdefs.h <<_ACEOF
31132 #define HAVE_GETADDRINFO_THREADSAFE 1
31135 ac_cv_func_getaddrinfo_threadsafe="yes"
31137 ac_cv_func_getaddrinfo_threadsafe="no"
31143 tst_links_gai_strerror="unknown"
31144 tst_proto_gai_strerror="unknown"
31145 tst_compi_gai_strerror="unknown"
31146 tst_allow_gai_strerror="unknown"
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
31149 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
31150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31151 /* end confdefs.h. */
31154 $curl_includes_winsock2
31155 $curl_includes_netdb
31160 if(0 != gai_strerror(0))
31168 if ac_fn_c_try_link "$LINENO"; then :
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31171 $as_echo "yes" >&6; }
31172 tst_links_gai_strerror="yes"
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31177 $as_echo "no" >&6; }
31178 tst_links_gai_strerror="no"
31181 rm -f core conftest.err conftest.$ac_objext \
31182 conftest$ac_exeext conftest.$ac_ext
31184 if test "$tst_links_gai_strerror" = "yes"; then
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
31186 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
31187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188 /* end confdefs.h. */
31190 $curl_includes_winsock2
31191 $curl_includes_netdb
31194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31195 $EGREP "gai_strerror" >/dev/null 2>&1; then :
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31198 $as_echo "yes" >&6; }
31199 tst_proto_gai_strerror="yes"
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31204 $as_echo "no" >&6; }
31205 tst_proto_gai_strerror="no"
31212 if test "$tst_proto_gai_strerror" = "yes"; then
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
31214 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
31215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31216 /* end confdefs.h. */
31219 $curl_includes_winsock2
31220 $curl_includes_netdb
31225 if(0 != gai_strerror(0))
31233 if ac_fn_c_try_compile "$LINENO"; then :
31235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31236 $as_echo "yes" >&6; }
31237 tst_compi_gai_strerror="yes"
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31242 $as_echo "no" >&6; }
31243 tst_compi_gai_strerror="no"
31246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249 if test "$tst_compi_gai_strerror" = "yes"; then
31250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
31251 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
31252 if test "x$curl_disallow_gai_strerror" != "xyes"; then
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31254 $as_echo "yes" >&6; }
31255 tst_allow_gai_strerror="yes"
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31258 $as_echo "no" >&6; }
31259 tst_allow_gai_strerror="no"
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
31264 $as_echo_n "checking if gai_strerror might be used... " >&6; }
31265 if test "$tst_links_gai_strerror" = "yes" &&
31266 test "$tst_proto_gai_strerror" = "yes" &&
31267 test "$tst_compi_gai_strerror" = "yes" &&
31268 test "$tst_allow_gai_strerror" = "yes"; then
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31270 $as_echo "yes" >&6; }
31272 cat >>confdefs.h <<_ACEOF
31273 #define HAVE_GAI_STRERROR 1
31276 ac_cv_func_gai_strerror="yes"
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31279 $as_echo "no" >&6; }
31280 ac_cv_func_gai_strerror="no"
31285 tst_links_gethostbyaddr="unknown"
31286 tst_proto_gethostbyaddr="unknown"
31287 tst_compi_gethostbyaddr="unknown"
31288 tst_allow_gethostbyaddr="unknown"
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
31291 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
31292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31293 /* end confdefs.h. */
31296 $curl_includes_winsock2
31297 $curl_includes_netdb
31302 if(0 != gethostbyaddr(0, 0, 0))
31310 if ac_fn_c_try_link "$LINENO"; then :
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31313 $as_echo "yes" >&6; }
31314 tst_links_gethostbyaddr="yes"
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31319 $as_echo "no" >&6; }
31320 tst_links_gethostbyaddr="no"
31323 rm -f core conftest.err conftest.$ac_objext \
31324 conftest$ac_exeext conftest.$ac_ext
31326 if test "$tst_links_gethostbyaddr" = "yes"; then
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
31328 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
31329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31330 /* end confdefs.h. */
31332 $curl_includes_winsock2
31333 $curl_includes_netdb
31336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31337 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
31339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31340 $as_echo "yes" >&6; }
31341 tst_proto_gethostbyaddr="yes"
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31346 $as_echo "no" >&6; }
31347 tst_proto_gethostbyaddr="no"
31354 if test "$tst_proto_gethostbyaddr" = "yes"; then
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
31356 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
31357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31358 /* end confdefs.h. */
31361 $curl_includes_winsock2
31362 $curl_includes_netdb
31367 if(0 != gethostbyaddr(0, 0, 0))
31375 if ac_fn_c_try_compile "$LINENO"; then :
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31378 $as_echo "yes" >&6; }
31379 tst_compi_gethostbyaddr="yes"
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31384 $as_echo "no" >&6; }
31385 tst_compi_gethostbyaddr="no"
31388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31391 if test "$tst_compi_gethostbyaddr" = "yes"; then
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
31393 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
31394 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31396 $as_echo "yes" >&6; }
31397 tst_allow_gethostbyaddr="yes"
31399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31400 $as_echo "no" >&6; }
31401 tst_allow_gethostbyaddr="no"
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
31406 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
31407 if test "$tst_links_gethostbyaddr" = "yes" &&
31408 test "$tst_proto_gethostbyaddr" = "yes" &&
31409 test "$tst_compi_gethostbyaddr" = "yes" &&
31410 test "$tst_allow_gethostbyaddr" = "yes"; then
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31412 $as_echo "yes" >&6; }
31414 cat >>confdefs.h <<_ACEOF
31415 #define HAVE_GETHOSTBYADDR 1
31418 ac_cv_func_gethostbyaddr="yes"
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421 $as_echo "no" >&6; }
31422 ac_cv_func_gethostbyaddr="no"
31427 tst_links_gethostbyaddr_r="unknown"
31428 tst_proto_gethostbyaddr_r="unknown"
31429 tst_compi_gethostbyaddr_r="unknown"
31430 tst_allow_gethostbyaddr_r="unknown"
31431 tst_nargs_gethostbyaddr_r="unknown"
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
31434 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
31435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31436 /* end confdefs.h. */
31439 #define gethostbyaddr_r innocuous_gethostbyaddr_r
31441 # include <limits.h>
31443 # include <assert.h>
31445 #undef gethostbyaddr_r
31449 char gethostbyaddr_r ();
31450 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
31456 return gethostbyaddr_r ();
31462 if ac_fn_c_try_link "$LINENO"; then :
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31465 $as_echo "yes" >&6; }
31466 tst_links_gethostbyaddr_r="yes"
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31471 $as_echo "no" >&6; }
31472 tst_links_gethostbyaddr_r="no"
31475 rm -f core conftest.err conftest.$ac_objext \
31476 conftest$ac_exeext conftest.$ac_ext
31478 if test "$tst_links_gethostbyaddr_r" = "yes"; then
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
31480 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
31481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31482 /* end confdefs.h. */
31484 $curl_includes_netdb
31487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31488 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31491 $as_echo "yes" >&6; }
31492 tst_proto_gethostbyaddr_r="yes"
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31497 $as_echo "no" >&6; }
31498 tst_proto_gethostbyaddr_r="no"
31505 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
31506 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
31508 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
31509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31510 /* end confdefs.h. */
31513 $curl_includes_netdb
31518 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
31526 if ac_fn_c_try_compile "$LINENO"; then :
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31529 $as_echo "yes" >&6; }
31530 tst_compi_gethostbyaddr_r="yes"
31531 tst_nargs_gethostbyaddr_r="5"
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31536 $as_echo "no" >&6; }
31537 tst_compi_gethostbyaddr_r="no"
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31542 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
31544 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
31545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546 /* end confdefs.h. */
31549 $curl_includes_netdb
31554 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
31562 if ac_fn_c_try_compile "$LINENO"; then :
31564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31565 $as_echo "yes" >&6; }
31566 tst_compi_gethostbyaddr_r="yes"
31567 tst_nargs_gethostbyaddr_r="7"
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31572 $as_echo "no" >&6; }
31573 tst_compi_gethostbyaddr_r="no"
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31578 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
31580 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
31581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31582 /* end confdefs.h. */
31585 $curl_includes_netdb
31590 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
31598 if ac_fn_c_try_compile "$LINENO"; then :
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31601 $as_echo "yes" >&6; }
31602 tst_compi_gethostbyaddr_r="yes"
31603 tst_nargs_gethostbyaddr_r="8"
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31608 $as_echo "no" >&6; }
31609 tst_compi_gethostbyaddr_r="no"
31612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
31615 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
31616 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31618 $as_echo "yes" >&6; }
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31621 $as_echo "no" >&6; }
31625 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
31627 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
31628 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
31629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31630 $as_echo "yes" >&6; }
31631 tst_allow_gethostbyaddr_r="yes"
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31634 $as_echo "no" >&6; }
31635 tst_allow_gethostbyaddr_r="no"
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
31640 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
31641 if test "$tst_links_gethostbyaddr_r" = "yes" &&
31642 test "$tst_proto_gethostbyaddr_r" = "yes" &&
31643 test "$tst_compi_gethostbyaddr_r" = "yes" &&
31644 test "$tst_allow_gethostbyaddr_r" = "yes"; then
31645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31646 $as_echo "yes" >&6; }
31648 cat >>confdefs.h <<_ACEOF
31649 #define HAVE_GETHOSTBYADDR_R 1
31653 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
31655 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
31657 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
31659 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
31661 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
31663 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
31667 ac_cv_func_gethostbyaddr_r="yes"
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31670 $as_echo "no" >&6; }
31671 ac_cv_func_gethostbyaddr_r="no"
31676 tst_links_gethostbyname="unknown"
31677 tst_proto_gethostbyname="unknown"
31678 tst_compi_gethostbyname="unknown"
31679 tst_allow_gethostbyname="unknown"
31681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
31682 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
31683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31684 /* end confdefs.h. */
31687 $curl_includes_winsock2
31688 $curl_includes_netdb
31693 if(0 != gethostbyname(0))
31701 if ac_fn_c_try_link "$LINENO"; then :
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31704 $as_echo "yes" >&6; }
31705 tst_links_gethostbyname="yes"
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31710 $as_echo "no" >&6; }
31711 tst_links_gethostbyname="no"
31714 rm -f core conftest.err conftest.$ac_objext \
31715 conftest$ac_exeext conftest.$ac_ext
31717 if test "$tst_links_gethostbyname" = "yes"; then
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
31719 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
31720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31721 /* end confdefs.h. */
31723 $curl_includes_winsock2
31724 $curl_includes_netdb
31727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31728 $EGREP "gethostbyname" >/dev/null 2>&1; then :
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31731 $as_echo "yes" >&6; }
31732 tst_proto_gethostbyname="yes"
31736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31737 $as_echo "no" >&6; }
31738 tst_proto_gethostbyname="no"
31745 if test "$tst_proto_gethostbyname" = "yes"; then
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
31747 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
31748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31749 /* end confdefs.h. */
31752 $curl_includes_winsock2
31753 $curl_includes_netdb
31758 if(0 != gethostbyname(0))
31766 if ac_fn_c_try_compile "$LINENO"; then :
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31769 $as_echo "yes" >&6; }
31770 tst_compi_gethostbyname="yes"
31774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31775 $as_echo "no" >&6; }
31776 tst_compi_gethostbyname="no"
31779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 if test "$tst_compi_gethostbyname" = "yes"; then
31783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
31784 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
31785 if test "x$curl_disallow_gethostbyname" != "xyes"; then
31786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31787 $as_echo "yes" >&6; }
31788 tst_allow_gethostbyname="yes"
31790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31791 $as_echo "no" >&6; }
31792 tst_allow_gethostbyname="no"
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
31797 $as_echo_n "checking if gethostbyname might be used... " >&6; }
31798 if test "$tst_links_gethostbyname" = "yes" &&
31799 test "$tst_proto_gethostbyname" = "yes" &&
31800 test "$tst_compi_gethostbyname" = "yes" &&
31801 test "$tst_allow_gethostbyname" = "yes"; then
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31803 $as_echo "yes" >&6; }
31805 cat >>confdefs.h <<_ACEOF
31806 #define HAVE_GETHOSTBYNAME 1
31809 ac_cv_func_gethostbyname="yes"
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31812 $as_echo "no" >&6; }
31813 ac_cv_func_gethostbyname="no"
31818 tst_links_gethostbyname_r="unknown"
31819 tst_proto_gethostbyname_r="unknown"
31820 tst_compi_gethostbyname_r="unknown"
31821 tst_allow_gethostbyname_r="unknown"
31822 tst_nargs_gethostbyname_r="unknown"
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
31825 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
31826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31827 /* end confdefs.h. */
31830 #define gethostbyname_r innocuous_gethostbyname_r
31832 # include <limits.h>
31834 # include <assert.h>
31836 #undef gethostbyname_r
31840 char gethostbyname_r ();
31841 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31847 return gethostbyname_r ();
31853 if ac_fn_c_try_link "$LINENO"; then :
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31856 $as_echo "yes" >&6; }
31857 tst_links_gethostbyname_r="yes"
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31862 $as_echo "no" >&6; }
31863 tst_links_gethostbyname_r="no"
31866 rm -f core conftest.err conftest.$ac_objext \
31867 conftest$ac_exeext conftest.$ac_ext
31869 if test "$tst_links_gethostbyname_r" = "yes"; then
31870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
31871 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
31872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31873 /* end confdefs.h. */
31875 $curl_includes_netdb
31878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31879 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
31881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31882 $as_echo "yes" >&6; }
31883 tst_proto_gethostbyname_r="yes"
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31888 $as_echo "no" >&6; }
31889 tst_proto_gethostbyname_r="no"
31896 if test "$tst_proto_gethostbyname_r" = "yes"; then
31897 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
31899 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
31900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31901 /* end confdefs.h. */
31904 $curl_includes_netdb
31909 if(0 != gethostbyname_r(0, 0, 0))
31917 if ac_fn_c_try_compile "$LINENO"; then :
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31920 $as_echo "yes" >&6; }
31921 tst_compi_gethostbyname_r="yes"
31922 tst_nargs_gethostbyname_r="3"
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31927 $as_echo "no" >&6; }
31928 tst_compi_gethostbyname_r="no"
31931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31933 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
31935 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
31936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31937 /* end confdefs.h. */
31940 $curl_includes_netdb
31945 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
31953 if ac_fn_c_try_compile "$LINENO"; then :
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31956 $as_echo "yes" >&6; }
31957 tst_compi_gethostbyname_r="yes"
31958 tst_nargs_gethostbyname_r="5"
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31963 $as_echo "no" >&6; }
31964 tst_compi_gethostbyname_r="no"
31967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
31971 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
31972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31973 /* end confdefs.h. */
31976 $curl_includes_netdb
31981 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
31989 if ac_fn_c_try_compile "$LINENO"; then :
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31992 $as_echo "yes" >&6; }
31993 tst_compi_gethostbyname_r="yes"
31994 tst_nargs_gethostbyname_r="6"
31998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31999 $as_echo "no" >&6; }
32000 tst_compi_gethostbyname_r="no"
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
32006 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
32007 if test "$tst_compi_gethostbyname_r" = "yes"; then
32008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32009 $as_echo "yes" >&6; }
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32012 $as_echo "no" >&6; }
32016 if test "$tst_compi_gethostbyname_r" = "yes"; then
32017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
32018 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
32019 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
32020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32021 $as_echo "yes" >&6; }
32022 tst_allow_gethostbyname_r="yes"
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32025 $as_echo "no" >&6; }
32026 tst_allow_gethostbyname_r="no"
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
32031 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
32032 if test "$tst_links_gethostbyname_r" = "yes" &&
32033 test "$tst_proto_gethostbyname_r" = "yes" &&
32034 test "$tst_compi_gethostbyname_r" = "yes" &&
32035 test "$tst_allow_gethostbyname_r" = "yes"; then
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32037 $as_echo "yes" >&6; }
32039 cat >>confdefs.h <<_ACEOF
32040 #define HAVE_GETHOSTBYNAME_R 1
32044 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
32046 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
32048 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
32050 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
32052 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
32054 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
32058 ac_cv_func_gethostbyname_r="yes"
32060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32061 $as_echo "no" >&6; }
32062 ac_cv_func_gethostbyname_r="no"
32067 tst_links_gethostname="unknown"
32068 tst_proto_gethostname="unknown"
32069 tst_compi_gethostname="unknown"
32070 tst_allow_gethostname="unknown"
32072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
32073 $as_echo_n "checking if gethostname can be linked... " >&6; }
32074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32075 /* end confdefs.h. */
32078 $curl_includes_winsock2
32079 $curl_includes_unistd
32084 if(0 != gethostname(0, 0))
32092 if ac_fn_c_try_link "$LINENO"; then :
32094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32095 $as_echo "yes" >&6; }
32096 tst_links_gethostname="yes"
32100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32101 $as_echo "no" >&6; }
32102 tst_links_gethostname="no"
32105 rm -f core conftest.err conftest.$ac_objext \
32106 conftest$ac_exeext conftest.$ac_ext
32108 if test "$tst_links_gethostname" = "yes"; then
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
32110 $as_echo_n "checking if gethostname is prototyped... " >&6; }
32111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32112 /* end confdefs.h. */
32114 $curl_includes_winsock2
32115 $curl_includes_unistd
32118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32119 $EGREP "gethostname" >/dev/null 2>&1; then :
32121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32122 $as_echo "yes" >&6; }
32123 tst_proto_gethostname="yes"
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32128 $as_echo "no" >&6; }
32129 tst_proto_gethostname="no"
32136 if test "$tst_proto_gethostname" = "yes"; then
32137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
32138 $as_echo_n "checking if gethostname is compilable... " >&6; }
32139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32140 /* end confdefs.h. */
32143 $curl_includes_winsock2
32144 $curl_includes_unistd
32149 if(0 != gethostname(0, 0))
32157 if ac_fn_c_try_compile "$LINENO"; then :
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32160 $as_echo "yes" >&6; }
32161 tst_compi_gethostname="yes"
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32166 $as_echo "no" >&6; }
32167 tst_compi_gethostname="no"
32170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173 if test "$tst_compi_gethostname" = "yes"; then
32174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
32175 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
32176 tst_gethostname_type_arg2="unknown"
32177 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
32178 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
32179 if test "$tst_gethostname_type_arg2" = "unknown"; then
32180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32181 /* end confdefs.h. */
32184 $curl_includes_winsock2
32185 $curl_includes_unistd
32186 $curl_preprocess_callconv
32187 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
32192 if(0 != gethostname(0, 0))
32200 if ac_fn_c_try_compile "$LINENO"; then :
32202 tst_gethostname_type_arg2="$tst_arg2"
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
32210 $as_echo "$tst_gethostname_type_arg2" >&6; }
32211 if test "$tst_gethostname_type_arg2" != "unknown"; then
32213 cat >>confdefs.h <<_ACEOF
32214 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
32220 if test "$tst_compi_gethostname" = "yes"; then
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
32222 $as_echo_n "checking if gethostname usage allowed... " >&6; }
32223 if test "x$curl_disallow_gethostname" != "xyes"; then
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32225 $as_echo "yes" >&6; }
32226 tst_allow_gethostname="yes"
32228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32229 $as_echo "no" >&6; }
32230 tst_allow_gethostname="no"
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
32235 $as_echo_n "checking if gethostname might be used... " >&6; }
32236 if test "$tst_links_gethostname" = "yes" &&
32237 test "$tst_proto_gethostname" = "yes" &&
32238 test "$tst_compi_gethostname" = "yes" &&
32239 test "$tst_allow_gethostname" = "yes"; then
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32241 $as_echo "yes" >&6; }
32243 cat >>confdefs.h <<_ACEOF
32244 #define HAVE_GETHOSTNAME 1
32247 ac_cv_func_gethostname="yes"
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32250 $as_echo "no" >&6; }
32251 ac_cv_func_gethostname="no"
32256 tst_links_getifaddrs="unknown"
32257 tst_proto_getifaddrs="unknown"
32258 tst_compi_getifaddrs="unknown"
32259 tst_works_getifaddrs="unknown"
32260 tst_allow_getifaddrs="unknown"
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
32263 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
32264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32265 /* end confdefs.h. */
32268 #define getifaddrs innocuous_getifaddrs
32270 # include <limits.h>
32272 # include <assert.h>
32278 char getifaddrs ();
32279 #if defined __stub_getifaddrs || defined __stub___getifaddrs
32285 return getifaddrs ();
32291 if ac_fn_c_try_link "$LINENO"; then :
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32294 $as_echo "yes" >&6; }
32295 tst_links_getifaddrs="yes"
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32300 $as_echo "no" >&6; }
32301 tst_links_getifaddrs="no"
32304 rm -f core conftest.err conftest.$ac_objext \
32305 conftest$ac_exeext conftest.$ac_ext
32307 if test "$tst_links_getifaddrs" = "yes"; then
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
32309 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
32310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32311 /* end confdefs.h. */
32313 $curl_includes_ifaddrs
32316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32317 $EGREP "getifaddrs" >/dev/null 2>&1; then :
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32320 $as_echo "yes" >&6; }
32321 tst_proto_getifaddrs="yes"
32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32326 $as_echo "no" >&6; }
32327 tst_proto_getifaddrs="no"
32334 if test "$tst_proto_getifaddrs" = "yes"; then
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
32336 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
32337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32338 /* end confdefs.h. */
32341 $curl_includes_ifaddrs
32346 if(0 != getifaddrs(0))
32354 if ac_fn_c_try_compile "$LINENO"; then :
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32357 $as_echo "yes" >&6; }
32358 tst_compi_getifaddrs="yes"
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32363 $as_echo "no" >&6; }
32364 tst_compi_getifaddrs="no"
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32370 if test "x$cross_compiling" != "xyes" &&
32371 test "$tst_compi_getifaddrs" = "yes"; then
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
32373 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
32374 if test "$cross_compiling" = yes; then :
32375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32377 as_fn_error $? "cannot run test program while cross compiling
32378 See \`config.log' for more details" "$LINENO" 5; }
32380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32381 /* end confdefs.h. */
32384 $curl_includes_stdlib
32385 $curl_includes_ifaddrs
32390 struct ifaddrs *ifa = 0;
32393 error = getifaddrs(&ifa);
32395 exit(1); /* fail */
32404 if ac_fn_c_try_run "$LINENO"; then :
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32407 $as_echo "yes" >&6; }
32408 tst_works_getifaddrs="yes"
32412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32413 $as_echo "no" >&6; }
32414 tst_works_getifaddrs="no"
32417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32418 conftest.$ac_objext conftest.beam conftest.$ac_ext
32423 if test "$tst_compi_getifaddrs" = "yes" &&
32424 test "$tst_works_getifaddrs" != "no"; then
32425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
32426 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
32427 if test "x$curl_disallow_getifaddrs" != "xyes"; then
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32429 $as_echo "yes" >&6; }
32430 tst_allow_getifaddrs="yes"
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32433 $as_echo "no" >&6; }
32434 tst_allow_getifaddrs="no"
32438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
32439 $as_echo_n "checking if getifaddrs might be used... " >&6; }
32440 if test "$tst_links_getifaddrs" = "yes" &&
32441 test "$tst_proto_getifaddrs" = "yes" &&
32442 test "$tst_compi_getifaddrs" = "yes" &&
32443 test "$tst_allow_getifaddrs" = "yes" &&
32444 test "$tst_works_getifaddrs" != "no"; then
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32446 $as_echo "yes" >&6; }
32448 cat >>confdefs.h <<_ACEOF
32449 #define HAVE_GETIFADDRS 1
32452 ac_cv_func_getifaddrs="yes"
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455 $as_echo "no" >&6; }
32456 ac_cv_func_getifaddrs="no"
32461 tst_links_getservbyport_r="unknown"
32462 tst_proto_getservbyport_r="unknown"
32463 tst_compi_getservbyport_r="unknown"
32464 tst_allow_getservbyport_r="unknown"
32465 tst_nargs_getservbyport_r="unknown"
32467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
32468 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
32469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32470 /* end confdefs.h. */
32473 #define getservbyport_r innocuous_getservbyport_r
32475 # include <limits.h>
32477 # include <assert.h>
32479 #undef getservbyport_r
32483 char getservbyport_r ();
32484 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
32490 return getservbyport_r ();
32496 if ac_fn_c_try_link "$LINENO"; then :
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32499 $as_echo "yes" >&6; }
32500 tst_links_getservbyport_r="yes"
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32505 $as_echo "no" >&6; }
32506 tst_links_getservbyport_r="no"
32509 rm -f core conftest.err conftest.$ac_objext \
32510 conftest$ac_exeext conftest.$ac_ext
32512 if test "$tst_links_getservbyport_r" = "yes"; then
32513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
32514 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
32515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32516 /* end confdefs.h. */
32518 $curl_includes_netdb
32521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32522 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
32524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32525 $as_echo "yes" >&6; }
32526 tst_proto_getservbyport_r="yes"
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32531 $as_echo "no" >&6; }
32532 tst_proto_getservbyport_r="no"
32539 if test "$tst_proto_getservbyport_r" = "yes"; then
32540 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
32542 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
32543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32544 /* end confdefs.h. */
32547 $curl_includes_netdb
32552 if(0 != getservbyport_r(0, 0, 0, 0))
32560 if ac_fn_c_try_compile "$LINENO"; then :
32562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32563 $as_echo "yes" >&6; }
32564 tst_compi_getservbyport_r="yes"
32565 tst_nargs_getservbyport_r="4"
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32570 $as_echo "no" >&6; }
32571 tst_compi_getservbyport_r="no"
32574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32576 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
32578 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
32579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32580 /* end confdefs.h. */
32583 $curl_includes_netdb
32588 if(0 != getservbyport_r(0, 0, 0, 0, 0))
32596 if ac_fn_c_try_compile "$LINENO"; then :
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32599 $as_echo "yes" >&6; }
32600 tst_compi_getservbyport_r="yes"
32601 tst_nargs_getservbyport_r="5"
32605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32606 $as_echo "no" >&6; }
32607 tst_compi_getservbyport_r="no"
32610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32612 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
32614 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
32615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32616 /* end confdefs.h. */
32619 $curl_includes_netdb
32624 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
32632 if ac_fn_c_try_compile "$LINENO"; then :
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32635 $as_echo "yes" >&6; }
32636 tst_compi_getservbyport_r="yes"
32637 tst_nargs_getservbyport_r="6"
32641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32642 $as_echo "no" >&6; }
32643 tst_compi_getservbyport_r="no"
32646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
32649 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
32650 if test "$tst_compi_getservbyport_r" = "yes"; then
32651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32652 $as_echo "yes" >&6; }
32654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32655 $as_echo "no" >&6; }
32659 if test "$tst_compi_getservbyport_r" = "yes"; then
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
32661 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
32662 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
32663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32664 $as_echo "yes" >&6; }
32665 tst_allow_getservbyport_r="yes"
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32668 $as_echo "no" >&6; }
32669 tst_allow_getservbyport_r="no"
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
32674 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
32675 if test "$tst_links_getservbyport_r" = "yes" &&
32676 test "$tst_proto_getservbyport_r" = "yes" &&
32677 test "$tst_compi_getservbyport_r" = "yes" &&
32678 test "$tst_allow_getservbyport_r" = "yes"; then
32679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32680 $as_echo "yes" >&6; }
32682 cat >>confdefs.h <<_ACEOF
32683 #define HAVE_GETSERVBYPORT_R 1
32687 cat >>confdefs.h <<_ACEOF
32688 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
32691 if test "$tst_nargs_getservbyport_r" -eq "4"; then
32693 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
32697 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
32700 ac_cv_func_getservbyport_r="yes"
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32703 $as_echo "no" >&6; }
32704 ac_cv_func_getservbyport_r="no"
32708 curl_includes_time="\
32709 /* includes start */
32710 #ifdef HAVE_SYS_TYPES_H
32711 # include <sys/types.h>
32713 #ifdef HAVE_SYS_TIME_H
32714 # include <sys/time.h>
32715 # ifdef TIME_WITH_SYS_TIME
32719 # ifdef HAVE_TIME_H
32723 /* includes end */"
32724 for ac_header in sys/types.h sys/time.h time.h
32726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32727 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
32729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32730 cat >>confdefs.h <<_ACEOF
32731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32741 tst_links_gmtime_r="unknown"
32742 tst_proto_gmtime_r="unknown"
32743 tst_compi_gmtime_r="unknown"
32744 tst_works_gmtime_r="unknown"
32745 tst_allow_gmtime_r="unknown"
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
32748 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
32749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32750 /* end confdefs.h. */
32753 #define gmtime_r innocuous_gmtime_r
32755 # include <limits.h>
32757 # include <assert.h>
32764 #if defined __stub_gmtime_r || defined __stub___gmtime_r
32770 return gmtime_r ();
32776 if ac_fn_c_try_link "$LINENO"; then :
32778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32779 $as_echo "yes" >&6; }
32780 tst_links_gmtime_r="yes"
32784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32785 $as_echo "no" >&6; }
32786 tst_links_gmtime_r="no"
32789 rm -f core conftest.err conftest.$ac_objext \
32790 conftest$ac_exeext conftest.$ac_ext
32792 if test "$tst_links_gmtime_r" = "yes"; then
32793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
32794 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
32795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32796 /* end confdefs.h. */
32798 $curl_includes_time
32801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32802 $EGREP "gmtime_r" >/dev/null 2>&1; then :
32804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32805 $as_echo "yes" >&6; }
32806 tst_proto_gmtime_r="yes"
32810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32811 $as_echo "no" >&6; }
32812 tst_proto_gmtime_r="no"
32819 if test "$tst_proto_gmtime_r" = "yes"; then
32820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
32821 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
32822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32823 /* end confdefs.h. */
32826 $curl_includes_time
32831 if(0 != gmtime_r(0, 0))
32839 if ac_fn_c_try_compile "$LINENO"; then :
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32842 $as_echo "yes" >&6; }
32843 tst_compi_gmtime_r="yes"
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32848 $as_echo "no" >&6; }
32849 tst_compi_gmtime_r="no"
32852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32855 if test "x$cross_compiling" != "xyes" &&
32856 test "$tst_compi_gmtime_r" = "yes"; then
32857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
32858 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
32859 if test "$cross_compiling" = yes; then :
32860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32862 as_fn_error $? "cannot run test program while cross compiling
32863 See \`config.log' for more details" "$LINENO" 5; }
32865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32866 /* end confdefs.h. */
32869 $curl_includes_stdlib
32870 $curl_includes_time
32875 time_t local = 1170352587;
32876 struct tm *gmt = 0;
32878 gmt = gmtime_r(&local, &result);
32889 if ac_fn_c_try_run "$LINENO"; then :
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32892 $as_echo "yes" >&6; }
32893 tst_works_gmtime_r="yes"
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32898 $as_echo "no" >&6; }
32899 tst_works_gmtime_r="no"
32902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32903 conftest.$ac_objext conftest.beam conftest.$ac_ext
32908 if test "$tst_compi_gmtime_r" = "yes" &&
32909 test "$tst_works_gmtime_r" != "no"; then
32910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
32911 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
32912 if test "x$curl_disallow_gmtime_r" != "xyes"; then
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32914 $as_echo "yes" >&6; }
32915 tst_allow_gmtime_r="yes"
32917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32918 $as_echo "no" >&6; }
32919 tst_allow_gmtime_r="no"
32923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
32924 $as_echo_n "checking if gmtime_r might be used... " >&6; }
32925 if test "$tst_links_gmtime_r" = "yes" &&
32926 test "$tst_proto_gmtime_r" = "yes" &&
32927 test "$tst_compi_gmtime_r" = "yes" &&
32928 test "$tst_allow_gmtime_r" = "yes" &&
32929 test "$tst_works_gmtime_r" != "no"; then
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32931 $as_echo "yes" >&6; }
32933 cat >>confdefs.h <<_ACEOF
32934 #define HAVE_GMTIME_R 1
32937 ac_cv_func_gmtime_r="yes"
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32940 $as_echo "no" >&6; }
32941 ac_cv_func_gmtime_r="no"
32945 curl_includes_arpa_inet="\
32946 /* includes start */
32947 #ifdef HAVE_SYS_TYPES_H
32948 # include <sys/types.h>
32950 #ifdef HAVE_SYS_SOCKET_H
32951 # include <sys/socket.h>
32953 #ifdef HAVE_NETINET_IN_H
32954 # include <netinet/in.h>
32956 #ifdef HAVE_ARPA_INET_H
32957 # include <arpa/inet.h>
32959 /* includes end */"
32960 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
32962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
32965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32966 cat >>confdefs.h <<_ACEOF
32967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32977 tst_links_inet_ntoa_r="unknown"
32978 tst_proto_inet_ntoa_r="unknown"
32979 tst_compi_inet_ntoa_r="unknown"
32980 tst_allow_inet_ntoa_r="unknown"
32981 tst_nargs_inet_ntoa_r="unknown"
32983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
32984 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
32985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32986 /* end confdefs.h. */
32989 #define inet_ntoa_r innocuous_inet_ntoa_r
32991 # include <limits.h>
32993 # include <assert.h>
32999 char inet_ntoa_r ();
33000 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
33006 return inet_ntoa_r ();
33012 if ac_fn_c_try_link "$LINENO"; then :
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33015 $as_echo "yes" >&6; }
33016 tst_links_inet_ntoa_r="yes"
33020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33021 $as_echo "no" >&6; }
33022 tst_links_inet_ntoa_r="no"
33025 rm -f core conftest.err conftest.$ac_objext \
33026 conftest$ac_exeext conftest.$ac_ext
33028 if test "$tst_links_inet_ntoa_r" = "yes"; then
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
33030 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
33031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h. */
33034 $curl_includes_arpa_inet
33037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33038 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
33040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33041 $as_echo "yes" >&6; }
33042 tst_proto_inet_ntoa_r="yes"
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33047 $as_echo "no" >&6; }
33048 tst_proto_inet_ntoa_r="no"
33055 if test "$tst_proto_inet_ntoa_r" = "yes"; then
33056 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
33058 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
33059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h. */
33063 $curl_includes_arpa_inet
33068 struct in_addr addr;
33069 if(0 != inet_ntoa_r(addr, 0))
33077 if ac_fn_c_try_compile "$LINENO"; then :
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33081 tst_compi_inet_ntoa_r="yes"
33082 tst_nargs_inet_ntoa_r="2"
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33087 $as_echo "no" >&6; }
33088 tst_compi_inet_ntoa_r="no"
33091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33093 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
33094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
33095 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
33096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33097 /* end confdefs.h. */
33100 $curl_includes_arpa_inet
33105 struct in_addr addr;
33106 if(0 != inet_ntoa_r(addr, 0, 0))
33114 if ac_fn_c_try_compile "$LINENO"; then :
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33117 $as_echo "yes" >&6; }
33118 tst_compi_inet_ntoa_r="yes"
33119 tst_nargs_inet_ntoa_r="3"
33123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33124 $as_echo "no" >&6; }
33125 tst_compi_inet_ntoa_r="no"
33128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
33131 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
33132 if test "$tst_compi_inet_ntoa_r" = "yes"; then
33133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33134 $as_echo "yes" >&6; }
33136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33137 $as_echo "no" >&6; }
33141 if test "$tst_compi_inet_ntoa_r" = "yes"; then
33142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
33143 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
33144 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
33145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33146 $as_echo "yes" >&6; }
33147 tst_allow_inet_ntoa_r="yes"
33149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33150 $as_echo "no" >&6; }
33151 tst_allow_inet_ntoa_r="no"
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
33156 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
33157 if test "$tst_links_inet_ntoa_r" = "yes" &&
33158 test "$tst_proto_inet_ntoa_r" = "yes" &&
33159 test "$tst_compi_inet_ntoa_r" = "yes" &&
33160 test "$tst_allow_inet_ntoa_r" = "yes"; then
33161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33162 $as_echo "yes" >&6; }
33164 cat >>confdefs.h <<_ACEOF
33165 #define HAVE_INET_NTOA_R 1
33169 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
33171 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
33173 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
33175 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
33179 ac_cv_func_inet_ntoa_r="yes"
33181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33182 $as_echo "no" >&6; }
33183 ac_cv_func_inet_ntoa_r="no"
33188 tst_links_inet_ntop="unknown"
33189 tst_proto_inet_ntop="unknown"
33190 tst_compi_inet_ntop="unknown"
33191 tst_works_inet_ntop="unknown"
33192 tst_allow_inet_ntop="unknown"
33194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
33195 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
33196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33197 /* end confdefs.h. */
33200 #define inet_ntop innocuous_inet_ntop
33202 # include <limits.h>
33204 # include <assert.h>
33211 #if defined __stub_inet_ntop || defined __stub___inet_ntop
33217 return inet_ntop ();
33223 if ac_fn_c_try_link "$LINENO"; then :
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33226 $as_echo "yes" >&6; }
33227 tst_links_inet_ntop="yes"
33231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33232 $as_echo "no" >&6; }
33233 tst_links_inet_ntop="no"
33236 rm -f core conftest.err conftest.$ac_objext \
33237 conftest$ac_exeext conftest.$ac_ext
33239 if test "$tst_links_inet_ntop" = "yes"; then
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
33241 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
33242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33243 /* end confdefs.h. */
33245 $curl_includes_arpa_inet
33248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33249 $EGREP "inet_ntop" >/dev/null 2>&1; then :
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33252 $as_echo "yes" >&6; }
33253 tst_proto_inet_ntop="yes"
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33258 $as_echo "no" >&6; }
33259 tst_proto_inet_ntop="no"
33266 if test "$tst_proto_inet_ntop" = "yes"; then
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
33268 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
33269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33270 /* end confdefs.h. */
33273 $curl_includes_arpa_inet
33278 if(0 != inet_ntop(0, 0, 0, 0))
33286 if ac_fn_c_try_compile "$LINENO"; then :
33288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33289 $as_echo "yes" >&6; }
33290 tst_compi_inet_ntop="yes"
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295 $as_echo "no" >&6; }
33296 tst_compi_inet_ntop="no"
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33302 if test "x$cross_compiling" != "xyes" &&
33303 test "$tst_compi_inet_ntop" = "yes"; then
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
33305 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
33306 if test "$cross_compiling" = yes; then :
33307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33309 as_fn_error $? "cannot run test program while cross compiling
33310 See \`config.log' for more details" "$LINENO" 5; }
33312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33313 /* end confdefs.h. */
33316 $curl_includes_stdlib
33317 $curl_includes_arpa_inet
33318 $curl_includes_string
33323 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
33324 char ipv4res[sizeof "255.255.255.255"];
33325 unsigned char ipv6a[26];
33326 unsigned char ipv4a[5];
33337 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
33339 exit(1); /* fail */
33340 if(ipv4ptr != ipv4res)
33341 exit(1); /* fail */
33343 exit(1); /* fail */
33344 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
33345 exit(1); /* fail */
33348 memset(ipv6a, 0, sizeof(ipv6a));
33361 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
33363 exit(1); /* fail */
33364 if(ipv6ptr != ipv6res)
33365 exit(1); /* fail */
33367 exit(1); /* fail */
33368 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
33369 exit(1); /* fail */
33378 if ac_fn_c_try_run "$LINENO"; then :
33380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33381 $as_echo "yes" >&6; }
33382 tst_works_inet_ntop="yes"
33386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33387 $as_echo "no" >&6; }
33388 tst_works_inet_ntop="no"
33391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33392 conftest.$ac_objext conftest.beam conftest.$ac_ext
33397 if test "$tst_compi_inet_ntop" = "yes" &&
33398 test "$tst_works_inet_ntop" != "no"; then
33399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
33400 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
33401 if test "x$curl_disallow_inet_ntop" != "xyes"; then
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33403 $as_echo "yes" >&6; }
33404 tst_allow_inet_ntop="yes"
33406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33407 $as_echo "no" >&6; }
33408 tst_allow_inet_ntop="no"
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
33413 $as_echo_n "checking if inet_ntop might be used... " >&6; }
33414 if test "$tst_links_inet_ntop" = "yes" &&
33415 test "$tst_proto_inet_ntop" = "yes" &&
33416 test "$tst_compi_inet_ntop" = "yes" &&
33417 test "$tst_allow_inet_ntop" = "yes" &&
33418 test "$tst_works_inet_ntop" != "no"; then
33419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33420 $as_echo "yes" >&6; }
33422 cat >>confdefs.h <<_ACEOF
33423 #define HAVE_INET_NTOP 1
33426 ac_cv_func_inet_ntop="yes"
33428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33429 $as_echo "no" >&6; }
33430 ac_cv_func_inet_ntop="no"
33435 tst_links_inet_pton="unknown"
33436 tst_proto_inet_pton="unknown"
33437 tst_compi_inet_pton="unknown"
33438 tst_works_inet_pton="unknown"
33439 tst_allow_inet_pton="unknown"
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
33442 $as_echo_n "checking if inet_pton can be linked... " >&6; }
33443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33444 /* end confdefs.h. */
33447 #define inet_pton innocuous_inet_pton
33449 # include <limits.h>
33451 # include <assert.h>
33458 #if defined __stub_inet_pton || defined __stub___inet_pton
33464 return inet_pton ();
33470 if ac_fn_c_try_link "$LINENO"; then :
33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33473 $as_echo "yes" >&6; }
33474 tst_links_inet_pton="yes"
33478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33479 $as_echo "no" >&6; }
33480 tst_links_inet_pton="no"
33483 rm -f core conftest.err conftest.$ac_objext \
33484 conftest$ac_exeext conftest.$ac_ext
33486 if test "$tst_links_inet_pton" = "yes"; then
33487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
33488 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
33489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33490 /* end confdefs.h. */
33492 $curl_includes_arpa_inet
33495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33496 $EGREP "inet_pton" >/dev/null 2>&1; then :
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33499 $as_echo "yes" >&6; }
33500 tst_proto_inet_pton="yes"
33504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33505 $as_echo "no" >&6; }
33506 tst_proto_inet_pton="no"
33513 if test "$tst_proto_inet_pton" = "yes"; then
33514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
33515 $as_echo_n "checking if inet_pton is compilable... " >&6; }
33516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33517 /* end confdefs.h. */
33520 $curl_includes_arpa_inet
33525 if(0 != inet_pton(0, 0, 0))
33533 if ac_fn_c_try_compile "$LINENO"; then :
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33536 $as_echo "yes" >&6; }
33537 tst_compi_inet_pton="yes"
33541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33542 $as_echo "no" >&6; }
33543 tst_compi_inet_pton="no"
33546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33549 if test "x$cross_compiling" != "xyes" &&
33550 test "$tst_compi_inet_pton" = "yes"; then
33551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
33552 $as_echo_n "checking if inet_pton seems to work... " >&6; }
33553 if test "$cross_compiling" = yes; then :
33554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33556 as_fn_error $? "cannot run test program while cross compiling
33557 See \`config.log' for more details" "$LINENO" 5; }
33559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33560 /* end confdefs.h. */
33563 $curl_includes_stdlib
33564 $curl_includes_arpa_inet
33565 $curl_includes_string
33570 unsigned char ipv6a[16+1];
33571 unsigned char ipv4a[4+1];
33572 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
33573 const char *ipv4src = "192.168.100.1";
33575 memset(ipv4a, 1, sizeof(ipv4a));
33576 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
33577 exit(1); /* fail */
33579 if( (ipv4a[0] != 0xc0) ||
33580 (ipv4a[1] != 0xa8) ||
33581 (ipv4a[2] != 0x64) ||
33582 (ipv4a[3] != 0x01) ||
33583 (ipv4a[4] != 0x01) )
33584 exit(1); /* fail */
33586 memset(ipv6a, 1, sizeof(ipv6a));
33587 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
33588 exit(1); /* fail */
33590 if( (ipv6a[0] != 0xfe) ||
33591 (ipv6a[1] != 0x80) ||
33592 (ipv6a[8] != 0x02) ||
33593 (ipv6a[9] != 0x14) ||
33594 (ipv6a[10] != 0x4f) ||
33595 (ipv6a[11] != 0xff) ||
33596 (ipv6a[12] != 0xfe) ||
33597 (ipv6a[13] != 0x0b) ||
33598 (ipv6a[14] != 0x76) ||
33599 (ipv6a[15] != 0xc8) ||
33600 (ipv6a[16] != 0x01) )
33601 exit(1); /* fail */
33603 if( (ipv6a[2] != 0x0) ||
33604 (ipv6a[3] != 0x0) ||
33605 (ipv6a[4] != 0x0) ||
33606 (ipv6a[5] != 0x0) ||
33607 (ipv6a[6] != 0x0) ||
33608 (ipv6a[7] != 0x0) )
33609 exit(1); /* fail */
33618 if ac_fn_c_try_run "$LINENO"; then :
33620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33621 $as_echo "yes" >&6; }
33622 tst_works_inet_pton="yes"
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33627 $as_echo "no" >&6; }
33628 tst_works_inet_pton="no"
33631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33632 conftest.$ac_objext conftest.beam conftest.$ac_ext
33637 if test "$tst_compi_inet_pton" = "yes" &&
33638 test "$tst_works_inet_pton" != "no"; then
33639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
33640 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
33641 if test "x$curl_disallow_inet_pton" != "xyes"; then
33642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33643 $as_echo "yes" >&6; }
33644 tst_allow_inet_pton="yes"
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33647 $as_echo "no" >&6; }
33648 tst_allow_inet_pton="no"
33652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
33653 $as_echo_n "checking if inet_pton might be used... " >&6; }
33654 if test "$tst_links_inet_pton" = "yes" &&
33655 test "$tst_proto_inet_pton" = "yes" &&
33656 test "$tst_compi_inet_pton" = "yes" &&
33657 test "$tst_allow_inet_pton" = "yes" &&
33658 test "$tst_works_inet_pton" != "no"; then
33659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33660 $as_echo "yes" >&6; }
33662 cat >>confdefs.h <<_ACEOF
33663 #define HAVE_INET_PTON 1
33666 ac_cv_func_inet_pton="yes"
33668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33669 $as_echo "no" >&6; }
33670 ac_cv_func_inet_pton="no"
33674 curl_includes_stropts="\
33675 /* includes start */
33676 #ifdef HAVE_SYS_TYPES_H
33677 # include <sys/types.h>
33679 #ifdef HAVE_UNISTD_H
33680 # include <unistd.h>
33682 #ifdef HAVE_SYS_SOCKET_H
33683 # include <sys/socket.h>
33685 #ifdef HAVE_SYS_IOCTL_H
33686 # include <sys/ioctl.h>
33688 #ifdef HAVE_STROPTS_H
33689 # include <stropts.h>
33691 /* includes end */"
33692 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
33694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33695 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
33697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33698 cat >>confdefs.h <<_ACEOF
33699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33709 tst_links_ioctl="unknown"
33710 tst_proto_ioctl="unknown"
33711 tst_compi_ioctl="unknown"
33712 tst_allow_ioctl="unknown"
33714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
33715 $as_echo_n "checking if ioctl can be linked... " >&6; }
33716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33717 /* end confdefs.h. */
33720 #define ioctl innocuous_ioctl
33722 # include <limits.h>
33724 # include <assert.h>
33731 #if defined __stub_ioctl || defined __stub___ioctl
33743 if ac_fn_c_try_link "$LINENO"; then :
33745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33746 $as_echo "yes" >&6; }
33747 tst_links_ioctl="yes"
33751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33752 $as_echo "no" >&6; }
33753 tst_links_ioctl="no"
33756 rm -f core conftest.err conftest.$ac_objext \
33757 conftest$ac_exeext conftest.$ac_ext
33759 if test "$tst_links_ioctl" = "yes"; then
33760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
33761 $as_echo_n "checking if ioctl is prototyped... " >&6; }
33762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33763 /* end confdefs.h. */
33765 $curl_includes_stropts
33768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33769 $EGREP "ioctl" >/dev/null 2>&1; then :
33771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33772 $as_echo "yes" >&6; }
33773 tst_proto_ioctl="yes"
33777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33778 $as_echo "no" >&6; }
33779 tst_proto_ioctl="no"
33786 if test "$tst_proto_ioctl" = "yes"; then
33787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
33788 $as_echo_n "checking if ioctl is compilable... " >&6; }
33789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33790 /* end confdefs.h. */
33793 $curl_includes_stropts
33798 if(0 != ioctl(0, 0, 0))
33806 if ac_fn_c_try_compile "$LINENO"; then :
33808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33809 $as_echo "yes" >&6; }
33810 tst_compi_ioctl="yes"
33814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33815 $as_echo "no" >&6; }
33816 tst_compi_ioctl="no"
33819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33822 if test "$tst_compi_ioctl" = "yes"; then
33823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
33824 $as_echo_n "checking if ioctl usage allowed... " >&6; }
33825 if test "x$curl_disallow_ioctl" != "xyes"; then
33826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33827 $as_echo "yes" >&6; }
33828 tst_allow_ioctl="yes"
33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33831 $as_echo "no" >&6; }
33832 tst_allow_ioctl="no"
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
33837 $as_echo_n "checking if ioctl might be used... " >&6; }
33838 if test "$tst_links_ioctl" = "yes" &&
33839 test "$tst_proto_ioctl" = "yes" &&
33840 test "$tst_compi_ioctl" = "yes" &&
33841 test "$tst_allow_ioctl" = "yes"; then
33842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33843 $as_echo "yes" >&6; }
33845 cat >>confdefs.h <<_ACEOF
33846 #define HAVE_IOCTL 1
33849 ac_cv_func_ioctl="yes"
33852 tst_compi_ioctl_fionbio="unknown"
33853 tst_allow_ioctl_fionbio="unknown"
33855 if test "$ac_cv_func_ioctl" = "yes"; then
33856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
33857 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
33858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33859 /* end confdefs.h. */
33862 $curl_includes_stropts
33868 if(0 != ioctl(0, FIONBIO, &flags))
33876 if ac_fn_c_try_compile "$LINENO"; then :
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33879 $as_echo "yes" >&6; }
33880 tst_compi_ioctl_fionbio="yes"
33884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33885 $as_echo "no" >&6; }
33886 tst_compi_ioctl_fionbio="no"
33889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33892 if test "$tst_compi_ioctl_fionbio" = "yes"; then
33893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
33894 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
33895 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33897 $as_echo "yes" >&6; }
33898 tst_allow_ioctl_fionbio="yes"
33900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33901 $as_echo "no" >&6; }
33902 tst_allow_ioctl_fionbio="no"
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
33907 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
33908 if test "$tst_compi_ioctl_fionbio" = "yes" &&
33909 test "$tst_allow_ioctl_fionbio" = "yes"; then
33910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33911 $as_echo "yes" >&6; }
33913 cat >>confdefs.h <<_ACEOF
33914 #define HAVE_IOCTL_FIONBIO 1
33917 ac_cv_func_ioctl_fionbio="yes"
33919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33920 $as_echo "no" >&6; }
33921 ac_cv_func_ioctl_fionbio="no"
33926 tst_compi_ioctl_siocgifaddr="unknown"
33927 tst_allow_ioctl_siocgifaddr="unknown"
33929 if test "$ac_cv_func_ioctl" = "yes"; then
33930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
33931 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
33932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33933 /* end confdefs.h. */
33936 $curl_includes_stropts
33937 #include <net/if.h>
33943 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
33951 if ac_fn_c_try_compile "$LINENO"; then :
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33954 $as_echo "yes" >&6; }
33955 tst_compi_ioctl_siocgifaddr="yes"
33959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33960 $as_echo "no" >&6; }
33961 tst_compi_ioctl_siocgifaddr="no"
33964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33967 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
33968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
33969 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
33970 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33972 $as_echo "yes" >&6; }
33973 tst_allow_ioctl_siocgifaddr="yes"
33975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33976 $as_echo "no" >&6; }
33977 tst_allow_ioctl_siocgifaddr="no"
33981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
33982 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
33983 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
33984 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
33985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33986 $as_echo "yes" >&6; }
33988 cat >>confdefs.h <<_ACEOF
33989 #define HAVE_IOCTL_SIOCGIFADDR 1
33992 ac_cv_func_ioctl_siocgifaddr="yes"
33994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33995 $as_echo "no" >&6; }
33996 ac_cv_func_ioctl_siocgifaddr="no"
34000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34001 $as_echo "no" >&6; }
34002 ac_cv_func_ioctl="no"
34007 tst_links_ioctlsocket="unknown"
34008 tst_proto_ioctlsocket="unknown"
34009 tst_compi_ioctlsocket="unknown"
34010 tst_allow_ioctlsocket="unknown"
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
34013 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
34014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34015 /* end confdefs.h. */
34018 $curl_includes_winsock2
34023 if(0 != ioctlsocket(0, 0, 0))
34031 if ac_fn_c_try_link "$LINENO"; then :
34033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34034 $as_echo "yes" >&6; }
34035 tst_links_ioctlsocket="yes"
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34040 $as_echo "no" >&6; }
34041 tst_links_ioctlsocket="no"
34044 rm -f core conftest.err conftest.$ac_objext \
34045 conftest$ac_exeext conftest.$ac_ext
34047 if test "$tst_links_ioctlsocket" = "yes"; then
34048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
34049 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
34050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34051 /* end confdefs.h. */
34053 $curl_includes_winsock2
34056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34057 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
34059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34060 $as_echo "yes" >&6; }
34061 tst_proto_ioctlsocket="yes"
34065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34066 $as_echo "no" >&6; }
34067 tst_proto_ioctlsocket="no"
34074 if test "$tst_proto_ioctlsocket" = "yes"; then
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
34076 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
34077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34078 /* end confdefs.h. */
34081 $curl_includes_winsock2
34086 if(0 != ioctlsocket(0, 0, 0))
34094 if ac_fn_c_try_compile "$LINENO"; then :
34096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34097 $as_echo "yes" >&6; }
34098 tst_compi_ioctlsocket="yes"
34102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34103 $as_echo "no" >&6; }
34104 tst_compi_ioctlsocket="no"
34107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34110 if test "$tst_compi_ioctlsocket" = "yes"; then
34111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
34112 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
34113 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
34114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34115 $as_echo "yes" >&6; }
34116 tst_allow_ioctlsocket="yes"
34118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34119 $as_echo "no" >&6; }
34120 tst_allow_ioctlsocket="no"
34124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
34125 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
34126 if test "$tst_links_ioctlsocket" = "yes" &&
34127 test "$tst_proto_ioctlsocket" = "yes" &&
34128 test "$tst_compi_ioctlsocket" = "yes" &&
34129 test "$tst_allow_ioctlsocket" = "yes"; then
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34131 $as_echo "yes" >&6; }
34133 cat >>confdefs.h <<_ACEOF
34134 #define HAVE_IOCTLSOCKET 1
34137 ac_cv_func_ioctlsocket="yes"
34140 tst_compi_ioctlsocket_fionbio="unknown"
34141 tst_allow_ioctlsocket_fionbio="unknown"
34143 if test "$ac_cv_func_ioctlsocket" = "yes"; then
34144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
34145 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
34146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34147 /* end confdefs.h. */
34150 $curl_includes_winsock2
34156 if(0 != ioctlsocket(0, FIONBIO, &flags))
34164 if ac_fn_c_try_compile "$LINENO"; then :
34166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34167 $as_echo "yes" >&6; }
34168 tst_compi_ioctlsocket_fionbio="yes"
34172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34173 $as_echo "no" >&6; }
34174 tst_compi_ioctlsocket_fionbio="no"
34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34180 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
34181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
34182 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
34183 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
34184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34185 $as_echo "yes" >&6; }
34186 tst_allow_ioctlsocket_fionbio="yes"
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34189 $as_echo "no" >&6; }
34190 tst_allow_ioctlsocket_fionbio="no"
34194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
34195 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
34196 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
34197 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
34198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34199 $as_echo "yes" >&6; }
34201 cat >>confdefs.h <<_ACEOF
34202 #define HAVE_IOCTLSOCKET_FIONBIO 1
34205 ac_cv_func_ioctlsocket_fionbio="yes"
34207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34208 $as_echo "no" >&6; }
34209 ac_cv_func_ioctlsocket_fionbio="no"
34213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34214 $as_echo "no" >&6; }
34215 ac_cv_func_ioctlsocket="no"
34220 tst_links_ioctlsocket_camel="unknown"
34221 tst_proto_ioctlsocket_camel="unknown"
34222 tst_compi_ioctlsocket_camel="unknown"
34223 tst_allow_ioctlsocket_camel="unknown"
34225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
34226 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
34227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34228 /* end confdefs.h. */
34231 #define IoctlSocket innocuous_IoctlSocket
34233 # include <limits.h>
34235 # include <assert.h>
34241 char IoctlSocket ();
34242 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
34248 return IoctlSocket ();
34254 if ac_fn_c_try_link "$LINENO"; then :
34256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34257 $as_echo "yes" >&6; }
34258 tst_links_ioctlsocket_camel="yes"
34262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34263 $as_echo "no" >&6; }
34264 tst_links_ioctlsocket_camel="no"
34267 rm -f core conftest.err conftest.$ac_objext \
34268 conftest$ac_exeext conftest.$ac_ext
34270 if test "$tst_links_ioctlsocket_camel" = "yes"; then
34271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
34272 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
34273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34274 /* end confdefs.h. */
34276 $curl_includes_stropts
34279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34280 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
34282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34283 $as_echo "yes" >&6; }
34284 tst_proto_ioctlsocket_camel="yes"
34288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34289 $as_echo "no" >&6; }
34290 tst_proto_ioctlsocket_camel="no"
34297 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
34298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
34299 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
34300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34301 /* end confdefs.h. */
34304 $curl_includes_stropts
34309 if(0 != IoctlSocket(0, 0, 0))
34317 if ac_fn_c_try_compile "$LINENO"; then :
34319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34320 $as_echo "yes" >&6; }
34321 tst_compi_ioctlsocket_camel="yes"
34325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34326 $as_echo "no" >&6; }
34327 tst_compi_ioctlsocket_camel="no"
34330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34333 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
34334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
34335 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
34336 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
34337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34338 $as_echo "yes" >&6; }
34339 tst_allow_ioctlsocket_camel="yes"
34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34342 $as_echo "no" >&6; }
34343 tst_allow_ioctlsocket_camel="no"
34347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
34348 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
34349 if test "$tst_links_ioctlsocket_camel" = "yes" &&
34350 test "$tst_proto_ioctlsocket_camel" = "yes" &&
34351 test "$tst_compi_ioctlsocket_camel" = "yes" &&
34352 test "$tst_allow_ioctlsocket_camel" = "yes"; then
34353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34354 $as_echo "yes" >&6; }
34356 cat >>confdefs.h <<_ACEOF
34357 #define HAVE_IOCTLSOCKET_CAMEL 1
34360 ac_cv_func_ioctlsocket_camel="yes"
34363 tst_compi_ioctlsocket_camel_fionbio="unknown"
34364 tst_allow_ioctlsocket_camel_fionbio="unknown"
34366 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
34367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
34368 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
34369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34370 /* end confdefs.h. */
34373 $curl_includes_stropts
34379 if(0 != ioctlsocket(0, FIONBIO, &flags))
34387 if ac_fn_c_try_compile "$LINENO"; then :
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34390 $as_echo "yes" >&6; }
34391 tst_compi_ioctlsocket_camel_fionbio="yes"
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34396 $as_echo "no" >&6; }
34397 tst_compi_ioctlsocket_camel_fionbio="no"
34400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
34405 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
34406 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
34407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34408 $as_echo "yes" >&6; }
34409 tst_allow_ioctlsocket_camel_fionbio="yes"
34411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34412 $as_echo "no" >&6; }
34413 tst_allow_ioctlsocket_camel_fionbio="no"
34417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
34418 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
34419 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
34420 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
34421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34422 $as_echo "yes" >&6; }
34424 cat >>confdefs.h <<_ACEOF
34425 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
34428 ac_cv_func_ioctlsocket_camel_fionbio="yes"
34430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34431 $as_echo "no" >&6; }
34432 ac_cv_func_ioctlsocket_camel_fionbio="no"
34436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34437 $as_echo "no" >&6; }
34438 ac_cv_func_ioctlsocket_camel="no"
34443 tst_links_localtime_r="unknown"
34444 tst_proto_localtime_r="unknown"
34445 tst_compi_localtime_r="unknown"
34446 tst_works_localtime_r="unknown"
34447 tst_allow_localtime_r="unknown"
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
34450 $as_echo_n "checking if localtime_r can be linked... " >&6; }
34451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34452 /* end confdefs.h. */
34455 #define localtime_r innocuous_localtime_r
34457 # include <limits.h>
34459 # include <assert.h>
34465 char localtime_r ();
34466 #if defined __stub_localtime_r || defined __stub___localtime_r
34472 return localtime_r ();
34478 if ac_fn_c_try_link "$LINENO"; then :
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34481 $as_echo "yes" >&6; }
34482 tst_links_localtime_r="yes"
34486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34487 $as_echo "no" >&6; }
34488 tst_links_localtime_r="no"
34491 rm -f core conftest.err conftest.$ac_objext \
34492 conftest$ac_exeext conftest.$ac_ext
34494 if test "$tst_links_localtime_r" = "yes"; then
34495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
34496 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
34497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34498 /* end confdefs.h. */
34500 $curl_includes_time
34503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34504 $EGREP "localtime_r" >/dev/null 2>&1; then :
34506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34507 $as_echo "yes" >&6; }
34508 tst_proto_localtime_r="yes"
34512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34513 $as_echo "no" >&6; }
34514 tst_proto_localtime_r="no"
34521 if test "$tst_proto_localtime_r" = "yes"; then
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
34523 $as_echo_n "checking if localtime_r is compilable... " >&6; }
34524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34525 /* end confdefs.h. */
34528 $curl_includes_time
34533 if(0 != localtime_r(0, 0))
34541 if ac_fn_c_try_compile "$LINENO"; then :
34543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34544 $as_echo "yes" >&6; }
34545 tst_compi_localtime_r="yes"
34549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34550 $as_echo "no" >&6; }
34551 tst_compi_localtime_r="no"
34554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34557 if test "x$cross_compiling" != "xyes" &&
34558 test "$tst_compi_localtime_r" = "yes"; then
34559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
34560 $as_echo_n "checking if localtime_r seems to work... " >&6; }
34561 if test "$cross_compiling" = yes; then :
34562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34564 as_fn_error $? "cannot run test program while cross compiling
34565 See \`config.log' for more details" "$LINENO" 5; }
34567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34568 /* end confdefs.h. */
34571 $curl_includes_stdlib
34572 $curl_includes_time
34577 time_t clock = 1170352587;
34578 struct tm *tmp = 0;
34580 tmp = localtime_r(&clock, &result);
34591 if ac_fn_c_try_run "$LINENO"; then :
34593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34594 $as_echo "yes" >&6; }
34595 tst_works_localtime_r="yes"
34599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34600 $as_echo "no" >&6; }
34601 tst_works_localtime_r="no"
34604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34605 conftest.$ac_objext conftest.beam conftest.$ac_ext
34610 if test "$tst_compi_localtime_r" = "yes" &&
34611 test "$tst_works_localtime_r" != "no"; then
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
34613 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
34614 if test "x$curl_disallow_localtime_r" != "xyes"; then
34615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34616 $as_echo "yes" >&6; }
34617 tst_allow_localtime_r="yes"
34619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34620 $as_echo "no" >&6; }
34621 tst_allow_localtime_r="no"
34625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
34626 $as_echo_n "checking if localtime_r might be used... " >&6; }
34627 if test "$tst_links_localtime_r" = "yes" &&
34628 test "$tst_proto_localtime_r" = "yes" &&
34629 test "$tst_compi_localtime_r" = "yes" &&
34630 test "$tst_allow_localtime_r" = "yes" &&
34631 test "$tst_works_localtime_r" != "no"; then
34632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34633 $as_echo "yes" >&6; }
34635 cat >>confdefs.h <<_ACEOF
34636 #define HAVE_LOCALTIME_R 1
34639 ac_cv_func_localtime_r="yes"
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34642 $as_echo "no" >&6; }
34643 ac_cv_func_localtime_r="no"
34648 tst_links_memrchr="unknown"
34649 tst_macro_memrchr="unknown"
34650 tst_proto_memrchr="unknown"
34651 tst_compi_memrchr="unknown"
34652 tst_allow_memrchr="unknown"
34654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
34655 $as_echo_n "checking if memrchr can be linked... " >&6; }
34656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34657 /* end confdefs.h. */
34660 #define memrchr innocuous_memrchr
34662 # include <limits.h>
34664 # include <assert.h>
34671 #if defined __stub_memrchr || defined __stub___memrchr
34683 if ac_fn_c_try_link "$LINENO"; then :
34685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34686 $as_echo "yes" >&6; }
34687 tst_links_memrchr="yes"
34691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34692 $as_echo "no" >&6; }
34693 tst_links_memrchr="no"
34696 rm -f core conftest.err conftest.$ac_objext \
34697 conftest$ac_exeext conftest.$ac_ext
34699 if test "$tst_links_memrchr" = "no"; then
34700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
34701 $as_echo_n "checking if memrchr seems a macro... " >&6; }
34702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34703 /* end confdefs.h. */
34706 $curl_includes_string
34711 if(0 != memrchr(0, 0, 0))
34719 if ac_fn_c_try_link "$LINENO"; then :
34721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34722 $as_echo "yes" >&6; }
34723 tst_macro_memrchr="yes"
34727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34728 $as_echo "no" >&6; }
34729 tst_macro_memrchr="no"
34732 rm -f core conftest.err conftest.$ac_objext \
34733 conftest$ac_exeext conftest.$ac_ext
34736 if test "$tst_links_memrchr" = "yes"; then
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
34738 $as_echo_n "checking if memrchr is prototyped... " >&6; }
34739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34740 /* end confdefs.h. */
34742 $curl_includes_string
34745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34746 $EGREP "memrchr" >/dev/null 2>&1; then :
34748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34749 $as_echo "yes" >&6; }
34750 tst_proto_memrchr="yes"
34754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34755 $as_echo "no" >&6; }
34756 tst_proto_memrchr="no"
34763 if test "$tst_proto_memrchr" = "yes" ||
34764 test "$tst_macro_memrchr" = "yes"; then
34765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
34766 $as_echo_n "checking if memrchr is compilable... " >&6; }
34767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34768 /* end confdefs.h. */
34771 $curl_includes_string
34776 if(0 != memrchr(0, 0, 0))
34784 if ac_fn_c_try_compile "$LINENO"; then :
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34787 $as_echo "yes" >&6; }
34788 tst_compi_memrchr="yes"
34792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793 $as_echo "no" >&6; }
34794 tst_compi_memrchr="no"
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34800 if test "$tst_compi_memrchr" = "yes"; then
34801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
34802 $as_echo_n "checking if memrchr usage allowed... " >&6; }
34803 if test "x$curl_disallow_memrchr" != "xyes"; then
34804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34805 $as_echo "yes" >&6; }
34806 tst_allow_memrchr="yes"
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809 $as_echo "no" >&6; }
34810 tst_allow_memrchr="no"
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
34815 $as_echo_n "checking if memrchr might be used... " >&6; }
34816 if (test "$tst_proto_memrchr" = "yes" ||
34817 test "$tst_macro_memrchr" = "yes") &&
34818 test "$tst_compi_memrchr" = "yes" &&
34819 test "$tst_allow_memrchr" = "yes"; then
34820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34821 $as_echo "yes" >&6; }
34823 cat >>confdefs.h <<_ACEOF
34824 #define HAVE_MEMRCHR 1
34827 ac_cv_func_memrchr="yes"
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34830 $as_echo "no" >&6; }
34831 ac_cv_func_memrchr="no"
34836 tst_links_poll="unknown"
34837 tst_proto_poll="unknown"
34838 tst_compi_poll="unknown"
34839 tst_works_poll="unknown"
34840 tst_allow_poll="unknown"
34843 darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
34844 curl_disallow_poll="yes"
34848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
34849 $as_echo_n "checking if poll can be linked... " >&6; }
34850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34851 /* end confdefs.h. */
34854 $curl_includes_poll
34859 if(0 != poll(0, 0, 0))
34867 if ac_fn_c_try_link "$LINENO"; then :
34869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34870 $as_echo "yes" >&6; }
34871 tst_links_poll="yes"
34875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34876 $as_echo "no" >&6; }
34877 tst_links_poll="no"
34880 rm -f core conftest.err conftest.$ac_objext \
34881 conftest$ac_exeext conftest.$ac_ext
34883 if test "$tst_links_poll" = "yes"; then
34884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
34885 $as_echo_n "checking if poll is prototyped... " >&6; }
34886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34887 /* end confdefs.h. */
34889 $curl_includes_poll
34892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34893 $EGREP "poll" >/dev/null 2>&1; then :
34895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34896 $as_echo "yes" >&6; }
34897 tst_proto_poll="yes"
34901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34902 $as_echo "no" >&6; }
34903 tst_proto_poll="no"
34910 if test "$tst_proto_poll" = "yes"; then
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
34912 $as_echo_n "checking if poll is compilable... " >&6; }
34913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34914 /* end confdefs.h. */
34917 $curl_includes_poll
34922 if(0 != poll(0, 0, 0))
34930 if ac_fn_c_try_compile "$LINENO"; then :
34932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34933 $as_echo "yes" >&6; }
34934 tst_compi_poll="yes"
34938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34939 $as_echo "no" >&6; }
34940 tst_compi_poll="no"
34943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34946 if test "x$cross_compiling" != "xyes" &&
34947 test "$tst_compi_poll" = "yes"; then
34948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
34949 $as_echo_n "checking if poll seems to work... " >&6; }
34950 if test "$cross_compiling" = yes; then :
34951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34953 as_fn_error $? "cannot run test program while cross compiling
34954 See \`config.log' for more details" "$LINENO" 5; }
34956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34957 /* end confdefs.h. */
34960 $curl_includes_stdlib
34961 $curl_includes_poll
34966 if(0 != poll(0, 0, 10))
34967 exit(1); /* fail */
34976 if ac_fn_c_try_run "$LINENO"; then :
34978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34979 $as_echo "yes" >&6; }
34980 tst_works_poll="yes"
34984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34985 $as_echo "no" >&6; }
34986 tst_works_poll="no"
34989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34990 conftest.$ac_objext conftest.beam conftest.$ac_ext
34995 if test "$tst_compi_poll" = "yes" &&
34996 test "$tst_works_poll" != "no"; then
34997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
34998 $as_echo_n "checking if poll usage allowed... " >&6; }
34999 if test "x$curl_disallow_poll" != "xyes"; then
35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35001 $as_echo "yes" >&6; }
35002 tst_allow_poll="yes"
35004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35005 $as_echo "no" >&6; }
35006 tst_allow_poll="no"
35010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
35011 $as_echo_n "checking if poll might be used... " >&6; }
35012 if test "$tst_links_poll" = "yes" &&
35013 test "$tst_proto_poll" = "yes" &&
35014 test "$tst_compi_poll" = "yes" &&
35015 test "$tst_allow_poll" = "yes" &&
35016 test "$tst_works_poll" != "no"; then
35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35018 $as_echo "yes" >&6; }
35020 cat >>confdefs.h <<_ACEOF
35021 #define HAVE_POLL 1
35025 cat >>confdefs.h <<_ACEOF
35026 #define HAVE_POLL_FINE 1
35029 ac_cv_func_poll="yes"
35031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35032 $as_echo "no" >&6; }
35033 ac_cv_func_poll="no"
35038 tst_links_setsockopt="unknown"
35039 tst_proto_setsockopt="unknown"
35040 tst_compi_setsockopt="unknown"
35041 tst_allow_setsockopt="unknown"
35043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
35044 $as_echo_n "checking if setsockopt can be linked... " >&6; }
35045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35046 /* end confdefs.h. */
35049 $curl_includes_winsock2
35050 $curl_includes_sys_socket
35055 if(0 != setsockopt(0, 0, 0, 0, 0))
35063 if ac_fn_c_try_link "$LINENO"; then :
35065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35066 $as_echo "yes" >&6; }
35067 tst_links_setsockopt="yes"
35071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35072 $as_echo "no" >&6; }
35073 tst_links_setsockopt="no"
35076 rm -f core conftest.err conftest.$ac_objext \
35077 conftest$ac_exeext conftest.$ac_ext
35079 if test "$tst_links_setsockopt" = "yes"; then
35080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
35081 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
35082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35083 /* end confdefs.h. */
35085 $curl_includes_winsock2
35086 $curl_includes_sys_socket
35089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35090 $EGREP "setsockopt" >/dev/null 2>&1; then :
35092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35093 $as_echo "yes" >&6; }
35094 tst_proto_setsockopt="yes"
35098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35099 $as_echo "no" >&6; }
35100 tst_proto_setsockopt="no"
35107 if test "$tst_proto_setsockopt" = "yes"; then
35108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
35109 $as_echo_n "checking if setsockopt is compilable... " >&6; }
35110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35111 /* end confdefs.h. */
35114 $curl_includes_winsock2
35115 $curl_includes_sys_socket
35120 if(0 != setsockopt(0, 0, 0, 0, 0))
35128 if ac_fn_c_try_compile "$LINENO"; then :
35130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35131 $as_echo "yes" >&6; }
35132 tst_compi_setsockopt="yes"
35136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35137 $as_echo "no" >&6; }
35138 tst_compi_setsockopt="no"
35141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35144 if test "$tst_compi_setsockopt" = "yes"; then
35145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
35146 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
35147 if test "x$curl_disallow_setsockopt" != "xyes"; then
35148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35149 $as_echo "yes" >&6; }
35150 tst_allow_setsockopt="yes"
35152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35153 $as_echo "no" >&6; }
35154 tst_allow_setsockopt="no"
35158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
35159 $as_echo_n "checking if setsockopt might be used... " >&6; }
35160 if test "$tst_links_setsockopt" = "yes" &&
35161 test "$tst_proto_setsockopt" = "yes" &&
35162 test "$tst_compi_setsockopt" = "yes" &&
35163 test "$tst_allow_setsockopt" = "yes"; then
35164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35165 $as_echo "yes" >&6; }
35167 cat >>confdefs.h <<_ACEOF
35168 #define HAVE_SETSOCKOPT 1
35171 ac_cv_func_setsockopt="yes"
35174 tst_compi_setsockopt_so_nonblock="unknown"
35175 tst_allow_setsockopt_so_nonblock="unknown"
35177 if test "$ac_cv_func_setsockopt" = "yes"; then
35178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
35179 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
35180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35181 /* end confdefs.h. */
35184 $curl_includes_winsock2
35185 $curl_includes_sys_socket
35190 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
35198 if ac_fn_c_try_compile "$LINENO"; then :
35200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35201 $as_echo "yes" >&6; }
35202 tst_compi_setsockopt_so_nonblock="yes"
35206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35207 $as_echo "no" >&6; }
35208 tst_compi_setsockopt_so_nonblock="no"
35211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35214 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
35215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
35216 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
35217 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
35218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35219 $as_echo "yes" >&6; }
35220 tst_allow_setsockopt_so_nonblock="yes"
35222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 $as_echo "no" >&6; }
35224 tst_allow_setsockopt_so_nonblock="no"
35228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
35229 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
35230 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
35231 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35233 $as_echo "yes" >&6; }
35235 cat >>confdefs.h <<_ACEOF
35236 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
35239 ac_cv_func_setsockopt_so_nonblock="yes"
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35242 $as_echo "no" >&6; }
35243 ac_cv_func_setsockopt_so_nonblock="no"
35247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248 $as_echo "no" >&6; }
35249 ac_cv_func_setsockopt="no"
35253 curl_includes_signal="\
35254 /* includes start */
35255 #ifdef HAVE_SYS_TYPES_H
35256 # include <sys/types.h>
35258 #ifdef HAVE_SIGNAL_H
35259 # include <signal.h>
35261 /* includes end */"
35262 for ac_header in sys/types.h signal.h
35264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
35267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35268 cat >>confdefs.h <<_ACEOF
35269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35279 tst_links_sigaction="unknown"
35280 tst_proto_sigaction="unknown"
35281 tst_compi_sigaction="unknown"
35282 tst_allow_sigaction="unknown"
35284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
35285 $as_echo_n "checking if sigaction can be linked... " >&6; }
35286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35287 /* end confdefs.h. */
35290 #define sigaction innocuous_sigaction
35292 # include <limits.h>
35294 # include <assert.h>
35301 #if defined __stub_sigaction || defined __stub___sigaction
35307 return sigaction ();
35313 if ac_fn_c_try_link "$LINENO"; then :
35315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35316 $as_echo "yes" >&6; }
35317 tst_links_sigaction="yes"
35321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35322 $as_echo "no" >&6; }
35323 tst_links_sigaction="no"
35326 rm -f core conftest.err conftest.$ac_objext \
35327 conftest$ac_exeext conftest.$ac_ext
35329 if test "$tst_links_sigaction" = "yes"; then
35330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
35331 $as_echo_n "checking if sigaction is prototyped... " >&6; }
35332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35333 /* end confdefs.h. */
35335 $curl_includes_signal
35338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35339 $EGREP "sigaction" >/dev/null 2>&1; then :
35341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35342 $as_echo "yes" >&6; }
35343 tst_proto_sigaction="yes"
35347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35348 $as_echo "no" >&6; }
35349 tst_proto_sigaction="no"
35356 if test "$tst_proto_sigaction" = "yes"; then
35357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
35358 $as_echo_n "checking if sigaction is compilable... " >&6; }
35359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35360 /* end confdefs.h. */
35363 $curl_includes_signal
35368 if(0 != sigaction(0, 0, 0))
35376 if ac_fn_c_try_compile "$LINENO"; then :
35378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35379 $as_echo "yes" >&6; }
35380 tst_compi_sigaction="yes"
35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35385 $as_echo "no" >&6; }
35386 tst_compi_sigaction="no"
35389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35392 if test "$tst_compi_sigaction" = "yes"; then
35393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
35394 $as_echo_n "checking if sigaction usage allowed... " >&6; }
35395 if test "x$curl_disallow_sigaction" != "xyes"; then
35396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35397 $as_echo "yes" >&6; }
35398 tst_allow_sigaction="yes"
35400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35401 $as_echo "no" >&6; }
35402 tst_allow_sigaction="no"
35406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
35407 $as_echo_n "checking if sigaction might be used... " >&6; }
35408 if test "$tst_links_sigaction" = "yes" &&
35409 test "$tst_proto_sigaction" = "yes" &&
35410 test "$tst_compi_sigaction" = "yes" &&
35411 test "$tst_allow_sigaction" = "yes"; then
35412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35413 $as_echo "yes" >&6; }
35415 cat >>confdefs.h <<_ACEOF
35416 #define HAVE_SIGACTION 1
35419 ac_cv_func_sigaction="yes"
35421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35422 $as_echo "no" >&6; }
35423 ac_cv_func_sigaction="no"
35428 tst_links_siginterrupt="unknown"
35429 tst_proto_siginterrupt="unknown"
35430 tst_compi_siginterrupt="unknown"
35431 tst_allow_siginterrupt="unknown"
35433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
35434 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
35435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35436 /* end confdefs.h. */
35439 #define siginterrupt innocuous_siginterrupt
35441 # include <limits.h>
35443 # include <assert.h>
35445 #undef siginterrupt
35449 char siginterrupt ();
35450 #if defined __stub_siginterrupt || defined __stub___siginterrupt
35456 return siginterrupt ();
35462 if ac_fn_c_try_link "$LINENO"; then :
35464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35465 $as_echo "yes" >&6; }
35466 tst_links_siginterrupt="yes"
35470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35471 $as_echo "no" >&6; }
35472 tst_links_siginterrupt="no"
35475 rm -f core conftest.err conftest.$ac_objext \
35476 conftest$ac_exeext conftest.$ac_ext
35478 if test "$tst_links_siginterrupt" = "yes"; then
35479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
35480 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
35481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35482 /* end confdefs.h. */
35484 $curl_includes_signal
35487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35488 $EGREP "siginterrupt" >/dev/null 2>&1; then :
35490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35491 $as_echo "yes" >&6; }
35492 tst_proto_siginterrupt="yes"
35496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35497 $as_echo "no" >&6; }
35498 tst_proto_siginterrupt="no"
35505 if test "$tst_proto_siginterrupt" = "yes"; then
35506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
35507 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
35508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35509 /* end confdefs.h. */
35512 $curl_includes_signal
35517 if(0 != siginterrupt(0, 0))
35525 if ac_fn_c_try_compile "$LINENO"; then :
35527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35528 $as_echo "yes" >&6; }
35529 tst_compi_siginterrupt="yes"
35533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35534 $as_echo "no" >&6; }
35535 tst_compi_siginterrupt="no"
35538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35541 if test "$tst_compi_siginterrupt" = "yes"; then
35542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
35543 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
35544 if test "x$curl_disallow_siginterrupt" != "xyes"; then
35545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35546 $as_echo "yes" >&6; }
35547 tst_allow_siginterrupt="yes"
35549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35550 $as_echo "no" >&6; }
35551 tst_allow_siginterrupt="no"
35555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
35556 $as_echo_n "checking if siginterrupt might be used... " >&6; }
35557 if test "$tst_links_siginterrupt" = "yes" &&
35558 test "$tst_proto_siginterrupt" = "yes" &&
35559 test "$tst_compi_siginterrupt" = "yes" &&
35560 test "$tst_allow_siginterrupt" = "yes"; then
35561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35562 $as_echo "yes" >&6; }
35564 cat >>confdefs.h <<_ACEOF
35565 #define HAVE_SIGINTERRUPT 1
35568 ac_cv_func_siginterrupt="yes"
35570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35571 $as_echo "no" >&6; }
35572 ac_cv_func_siginterrupt="no"
35577 tst_links_signal="unknown"
35578 tst_proto_signal="unknown"
35579 tst_compi_signal="unknown"
35580 tst_allow_signal="unknown"
35582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
35583 $as_echo_n "checking if signal can be linked... " >&6; }
35584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35585 /* end confdefs.h. */
35588 #define signal innocuous_signal
35590 # include <limits.h>
35592 # include <assert.h>
35599 #if defined __stub_signal || defined __stub___signal
35611 if ac_fn_c_try_link "$LINENO"; then :
35613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35614 $as_echo "yes" >&6; }
35615 tst_links_signal="yes"
35619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35620 $as_echo "no" >&6; }
35621 tst_links_signal="no"
35624 rm -f core conftest.err conftest.$ac_objext \
35625 conftest$ac_exeext conftest.$ac_ext
35627 if test "$tst_links_signal" = "yes"; then
35628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
35629 $as_echo_n "checking if signal is prototyped... " >&6; }
35630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35631 /* end confdefs.h. */
35633 $curl_includes_signal
35636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35637 $EGREP "signal" >/dev/null 2>&1; then :
35639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35640 $as_echo "yes" >&6; }
35641 tst_proto_signal="yes"
35645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35646 $as_echo "no" >&6; }
35647 tst_proto_signal="no"
35654 if test "$tst_proto_signal" = "yes"; then
35655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
35656 $as_echo_n "checking if signal is compilable... " >&6; }
35657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35658 /* end confdefs.h. */
35661 $curl_includes_signal
35666 if(0 != signal(0, 0))
35674 if ac_fn_c_try_compile "$LINENO"; then :
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35677 $as_echo "yes" >&6; }
35678 tst_compi_signal="yes"
35682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35683 $as_echo "no" >&6; }
35684 tst_compi_signal="no"
35687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35690 if test "$tst_compi_signal" = "yes"; then
35691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
35692 $as_echo_n "checking if signal usage allowed... " >&6; }
35693 if test "x$curl_disallow_signal" != "xyes"; then
35694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35695 $as_echo "yes" >&6; }
35696 tst_allow_signal="yes"
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35699 $as_echo "no" >&6; }
35700 tst_allow_signal="no"
35704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
35705 $as_echo_n "checking if signal might be used... " >&6; }
35706 if test "$tst_links_signal" = "yes" &&
35707 test "$tst_proto_signal" = "yes" &&
35708 test "$tst_compi_signal" = "yes" &&
35709 test "$tst_allow_signal" = "yes"; then
35710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35711 $as_echo "yes" >&6; }
35713 cat >>confdefs.h <<_ACEOF
35714 #define HAVE_SIGNAL 1
35717 ac_cv_func_signal="yes"
35719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35720 $as_echo "no" >&6; }
35721 ac_cv_func_signal="no"
35725 curl_includes_setjmp="\
35726 /* includes start */
35727 #ifdef HAVE_SYS_TYPES_H
35728 # include <sys/types.h>
35730 #ifdef HAVE_SETJMP_H
35731 # include <setjmp.h>
35733 /* includes end */"
35734 for ac_header in sys/types.h setjmp.h
35736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
35739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35740 cat >>confdefs.h <<_ACEOF
35741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35751 tst_links_sigsetjmp="unknown"
35752 tst_macro_sigsetjmp="unknown"
35753 tst_proto_sigsetjmp="unknown"
35754 tst_compi_sigsetjmp="unknown"
35755 tst_allow_sigsetjmp="unknown"
35757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
35758 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
35759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35760 /* end confdefs.h. */
35763 #define sigsetjmp innocuous_sigsetjmp
35765 # include <limits.h>
35767 # include <assert.h>
35774 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
35780 return sigsetjmp ();
35786 if ac_fn_c_try_link "$LINENO"; then :
35788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35789 $as_echo "yes" >&6; }
35790 tst_links_sigsetjmp="yes"
35794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35795 $as_echo "no" >&6; }
35796 tst_links_sigsetjmp="no"
35799 rm -f core conftest.err conftest.$ac_objext \
35800 conftest$ac_exeext conftest.$ac_ext
35802 if test "$tst_links_sigsetjmp" = "no"; then
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
35804 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
35805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35806 /* end confdefs.h. */
35809 $curl_includes_setjmp
35815 if(0 != sigsetjmp(env, 0))
35823 if ac_fn_c_try_link "$LINENO"; then :
35825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35826 $as_echo "yes" >&6; }
35827 tst_macro_sigsetjmp="yes"
35831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35832 $as_echo "no" >&6; }
35833 tst_macro_sigsetjmp="no"
35836 rm -f core conftest.err conftest.$ac_objext \
35837 conftest$ac_exeext conftest.$ac_ext
35840 if test "$tst_links_sigsetjmp" = "yes"; then
35841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
35842 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
35843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35844 /* end confdefs.h. */
35846 $curl_includes_setjmp
35849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35850 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
35852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35853 $as_echo "yes" >&6; }
35854 tst_proto_sigsetjmp="yes"
35858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35859 $as_echo "no" >&6; }
35860 tst_proto_sigsetjmp="no"
35867 if test "$tst_proto_sigsetjmp" = "yes" ||
35868 test "$tst_macro_sigsetjmp" = "yes"; then
35869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
35870 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
35871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35872 /* end confdefs.h. */
35875 $curl_includes_setjmp
35881 if(0 != sigsetjmp(env, 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_sigsetjmp="yes"
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35898 $as_echo "no" >&6; }
35899 tst_compi_sigsetjmp="no"
35902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35905 if test "$tst_compi_sigsetjmp" = "yes"; then
35906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
35907 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
35908 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
35909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35910 $as_echo "yes" >&6; }
35911 tst_allow_sigsetjmp="yes"
35913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35914 $as_echo "no" >&6; }
35915 tst_allow_sigsetjmp="no"
35919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
35920 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
35921 if (test "$tst_proto_sigsetjmp" = "yes" ||
35922 test "$tst_macro_sigsetjmp" = "yes") &&
35923 test "$tst_compi_sigsetjmp" = "yes" &&
35924 test "$tst_allow_sigsetjmp" = "yes"; then
35925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35926 $as_echo "yes" >&6; }
35928 cat >>confdefs.h <<_ACEOF
35929 #define HAVE_SIGSETJMP 1
35932 ac_cv_func_sigsetjmp="yes"
35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35935 $as_echo "no" >&6; }
35936 ac_cv_func_sigsetjmp="no"
35941 tst_links_socket="unknown"
35942 tst_proto_socket="unknown"
35943 tst_compi_socket="unknown"
35944 tst_allow_socket="unknown"
35946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
35947 $as_echo_n "checking if socket can be linked... " >&6; }
35948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35949 /* end confdefs.h. */
35952 $curl_includes_winsock2
35953 $curl_includes_sys_socket
35954 $curl_includes_socket
35959 if(0 != socket(0, 0, 0))
35967 if ac_fn_c_try_link "$LINENO"; then :
35969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35970 $as_echo "yes" >&6; }
35971 tst_links_socket="yes"
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35976 $as_echo "no" >&6; }
35977 tst_links_socket="no"
35980 rm -f core conftest.err conftest.$ac_objext \
35981 conftest$ac_exeext conftest.$ac_ext
35983 if test "$tst_links_socket" = "yes"; then
35984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
35985 $as_echo_n "checking if socket is prototyped... " >&6; }
35986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35987 /* end confdefs.h. */
35989 $curl_includes_winsock2
35990 $curl_includes_sys_socket
35991 $curl_includes_socket
35994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35995 $EGREP "socket" >/dev/null 2>&1; then :
35997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35998 $as_echo "yes" >&6; }
35999 tst_proto_socket="yes"
36003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36004 $as_echo "no" >&6; }
36005 tst_proto_socket="no"
36012 if test "$tst_proto_socket" = "yes"; then
36013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
36014 $as_echo_n "checking if socket is compilable... " >&6; }
36015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36016 /* end confdefs.h. */
36019 $curl_includes_winsock2
36020 $curl_includes_sys_socket
36021 $curl_includes_socket
36026 if(0 != socket(0, 0, 0))
36034 if ac_fn_c_try_compile "$LINENO"; then :
36036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36037 $as_echo "yes" >&6; }
36038 tst_compi_socket="yes"
36042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36043 $as_echo "no" >&6; }
36044 tst_compi_socket="no"
36047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36050 if test "$tst_compi_socket" = "yes"; then
36051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
36052 $as_echo_n "checking if socket usage allowed... " >&6; }
36053 if test "x$curl_disallow_socket" != "xyes"; then
36054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36055 $as_echo "yes" >&6; }
36056 tst_allow_socket="yes"
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36059 $as_echo "no" >&6; }
36060 tst_allow_socket="no"
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
36065 $as_echo_n "checking if socket might be used... " >&6; }
36066 if test "$tst_links_socket" = "yes" &&
36067 test "$tst_proto_socket" = "yes" &&
36068 test "$tst_compi_socket" = "yes" &&
36069 test "$tst_allow_socket" = "yes"; then
36070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36071 $as_echo "yes" >&6; }
36073 cat >>confdefs.h <<_ACEOF
36074 #define HAVE_SOCKET 1
36077 ac_cv_func_socket="yes"
36079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36080 $as_echo "no" >&6; }
36081 ac_cv_func_socket="no"
36086 tst_links_socketpair="unknown"
36087 tst_proto_socketpair="unknown"
36088 tst_compi_socketpair="unknown"
36089 tst_allow_socketpair="unknown"
36091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
36092 $as_echo_n "checking if socketpair can be linked... " >&6; }
36093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36094 /* end confdefs.h. */
36097 #define socketpair innocuous_socketpair
36099 # include <limits.h>
36101 # include <assert.h>
36107 char socketpair ();
36108 #if defined __stub_socketpair || defined __stub___socketpair
36114 return socketpair ();
36120 if ac_fn_c_try_link "$LINENO"; then :
36122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36123 $as_echo "yes" >&6; }
36124 tst_links_socketpair="yes"
36128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36129 $as_echo "no" >&6; }
36130 tst_links_socketpair="no"
36133 rm -f core conftest.err conftest.$ac_objext \
36134 conftest$ac_exeext conftest.$ac_ext
36136 if test "$tst_links_socketpair" = "yes"; then
36137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
36138 $as_echo_n "checking if socketpair is prototyped... " >&6; }
36139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36140 /* end confdefs.h. */
36142 $curl_includes_sys_socket
36143 $curl_includes_socket
36146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36147 $EGREP "socketpair" >/dev/null 2>&1; then :
36149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36150 $as_echo "yes" >&6; }
36151 tst_proto_socketpair="yes"
36155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36156 $as_echo "no" >&6; }
36157 tst_proto_socketpair="no"
36164 if test "$tst_proto_socketpair" = "yes"; then
36165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
36166 $as_echo_n "checking if socketpair is compilable... " >&6; }
36167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36168 /* end confdefs.h. */
36171 $curl_includes_sys_socket
36172 $curl_includes_socket
36178 if(0 != socketpair(0, 0, 0, sv))
36186 if ac_fn_c_try_compile "$LINENO"; then :
36188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36189 $as_echo "yes" >&6; }
36190 tst_compi_socketpair="yes"
36194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36195 $as_echo "no" >&6; }
36196 tst_compi_socketpair="no"
36199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36202 if test "$tst_compi_socketpair" = "yes"; then
36203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
36204 $as_echo_n "checking if socketpair usage allowed... " >&6; }
36205 if test "x$curl_disallow_socketpair" != "xyes"; then
36206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36207 $as_echo "yes" >&6; }
36208 tst_allow_socketpair="yes"
36210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36211 $as_echo "no" >&6; }
36212 tst_allow_socketpair="no"
36216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
36217 $as_echo_n "checking if socketpair might be used... " >&6; }
36218 if test "$tst_links_socketpair" = "yes" &&
36219 test "$tst_proto_socketpair" = "yes" &&
36220 test "$tst_compi_socketpair" = "yes" &&
36221 test "$tst_allow_socketpair" = "yes"; then
36222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36223 $as_echo "yes" >&6; }
36225 cat >>confdefs.h <<_ACEOF
36226 #define HAVE_SOCKETPAIR 1
36229 ac_cv_func_socketpair="yes"
36231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36232 $as_echo "no" >&6; }
36233 ac_cv_func_socketpair="no"
36238 tst_links_strcasecmp="unknown"
36239 tst_proto_strcasecmp="unknown"
36240 tst_compi_strcasecmp="unknown"
36241 tst_allow_strcasecmp="unknown"
36243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
36244 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
36245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36246 /* end confdefs.h. */
36249 #define strcasecmp innocuous_strcasecmp
36251 # include <limits.h>
36253 # include <assert.h>
36259 char strcasecmp ();
36260 #if defined __stub_strcasecmp || defined __stub___strcasecmp
36266 return strcasecmp ();
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_strcasecmp="yes"
36280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36281 $as_echo "no" >&6; }
36282 tst_links_strcasecmp="no"
36285 rm -f core conftest.err conftest.$ac_objext \
36286 conftest$ac_exeext conftest.$ac_ext
36288 if test "$tst_links_strcasecmp" = "yes"; then
36289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
36290 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
36291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36292 /* end confdefs.h. */
36294 $curl_includes_string
36297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36298 $EGREP "strcasecmp" >/dev/null 2>&1; then :
36300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36301 $as_echo "yes" >&6; }
36302 tst_proto_strcasecmp="yes"
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36307 $as_echo "no" >&6; }
36308 tst_proto_strcasecmp="no"
36315 if test "$tst_proto_strcasecmp" = "yes"; then
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
36317 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
36318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36319 /* end confdefs.h. */
36322 $curl_includes_string
36327 if(0 != strcasecmp(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_strcasecmp="yes"
36343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36344 $as_echo "no" >&6; }
36345 tst_compi_strcasecmp="no"
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36351 if test "$tst_compi_strcasecmp" = "yes"; then
36352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
36353 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
36354 if test "x$curl_disallow_strcasecmp" != "xyes"; then
36355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36356 $as_echo "yes" >&6; }
36357 tst_allow_strcasecmp="yes"
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360 $as_echo "no" >&6; }
36361 tst_allow_strcasecmp="no"
36365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
36366 $as_echo_n "checking if strcasecmp might be used... " >&6; }
36367 if test "$tst_links_strcasecmp" = "yes" &&
36368 test "$tst_proto_strcasecmp" = "yes" &&
36369 test "$tst_compi_strcasecmp" = "yes" &&
36370 test "$tst_allow_strcasecmp" = "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_STRCASECMP 1
36378 ac_cv_func_strcasecmp="yes"
36380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36381 $as_echo "no" >&6; }
36382 ac_cv_func_strcasecmp="no"
36387 tst_links_strcmpi="unknown"
36388 tst_proto_strcmpi="unknown"
36389 tst_compi_strcmpi="unknown"
36390 tst_allow_strcmpi="unknown"
36392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
36393 $as_echo_n "checking if strcmpi can be linked... " >&6; }
36394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36395 /* end confdefs.h. */
36398 #define strcmpi innocuous_strcmpi
36400 # include <limits.h>
36402 # include <assert.h>
36409 #if defined __stub_strcmpi || defined __stub___strcmpi
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_strcmpi="yes"
36429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36430 $as_echo "no" >&6; }
36431 tst_links_strcmpi="no"
36434 rm -f core conftest.err conftest.$ac_objext \
36435 conftest$ac_exeext conftest.$ac_ext
36437 if test "$tst_links_strcmpi" = "yes"; then
36438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
36439 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
36440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36441 /* end confdefs.h. */
36443 $curl_includes_string
36446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36447 $EGREP "strcmpi" >/dev/null 2>&1; then :
36449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36450 $as_echo "yes" >&6; }
36451 tst_proto_strcmpi="yes"
36455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36456 $as_echo "no" >&6; }
36457 tst_proto_strcmpi="no"
36464 if test "$tst_proto_strcmpi" = "yes"; then
36465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
36466 $as_echo_n "checking if strcmpi is compilable... " >&6; }
36467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36468 /* end confdefs.h. */
36471 $curl_includes_string
36476 if(0 != strcmpi(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_strcmpi="yes"
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36493 $as_echo "no" >&6; }
36494 tst_compi_strcmpi="no"
36497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36500 if test "$tst_compi_strcmpi" = "yes"; then
36501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
36502 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
36503 if test "x$curl_disallow_strcmpi" != "xyes"; then
36504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36505 $as_echo "yes" >&6; }
36506 tst_allow_strcmpi="yes"
36508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36509 $as_echo "no" >&6; }
36510 tst_allow_strcmpi="no"
36514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
36515 $as_echo_n "checking if strcmpi might be used... " >&6; }
36516 if test "$tst_links_strcmpi" = "yes" &&
36517 test "$tst_proto_strcmpi" = "yes" &&
36518 test "$tst_compi_strcmpi" = "yes" &&
36519 test "$tst_allow_strcmpi" = "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_STRCMPI 1
36527 ac_cv_func_strcmpi="yes"
36529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36530 $as_echo "no" >&6; }
36531 ac_cv_func_strcmpi="no"
36536 tst_links_strdup="unknown"
36537 tst_proto_strdup="unknown"
36538 tst_compi_strdup="unknown"
36539 tst_allow_strdup="unknown"
36541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
36542 $as_echo_n "checking if strdup can be linked... " >&6; }
36543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36544 /* end confdefs.h. */
36547 #define strdup innocuous_strdup
36549 # include <limits.h>
36551 # include <assert.h>
36558 #if defined __stub_strdup || defined __stub___strdup
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_strdup="yes"
36578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36579 $as_echo "no" >&6; }
36580 tst_links_strdup="no"
36583 rm -f core conftest.err conftest.$ac_objext \
36584 conftest$ac_exeext conftest.$ac_ext
36586 if test "$tst_links_strdup" = "yes"; then
36587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
36588 $as_echo_n "checking if strdup is prototyped... " >&6; }
36589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36590 /* end confdefs.h. */
36592 $curl_includes_string
36595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36596 $EGREP "strdup" >/dev/null 2>&1; then :
36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36599 $as_echo "yes" >&6; }
36600 tst_proto_strdup="yes"
36604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36605 $as_echo "no" >&6; }
36606 tst_proto_strdup="no"
36613 if test "$tst_proto_strdup" = "yes"; then
36614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
36615 $as_echo_n "checking if strdup is compilable... " >&6; }
36616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36617 /* end confdefs.h. */
36620 $curl_includes_string
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_strdup="yes"
36641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36642 $as_echo "no" >&6; }
36643 tst_compi_strdup="no"
36646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36649 if test "$tst_compi_strdup" = "yes"; then
36650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
36651 $as_echo_n "checking if strdup usage allowed... " >&6; }
36652 if test "x$curl_disallow_strdup" != "xyes"; then
36653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36654 $as_echo "yes" >&6; }
36655 tst_allow_strdup="yes"
36657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658 $as_echo "no" >&6; }
36659 tst_allow_strdup="no"
36663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
36664 $as_echo_n "checking if strdup might be used... " >&6; }
36665 if test "$tst_links_strdup" = "yes" &&
36666 test "$tst_proto_strdup" = "yes" &&
36667 test "$tst_compi_strdup" = "yes" &&
36668 test "$tst_allow_strdup" = "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_STRDUP 1
36676 ac_cv_func_strdup="yes"
36678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36679 $as_echo "no" >&6; }
36680 ac_cv_func_strdup="no"
36685 tst_links_strerror_r="unknown"
36686 tst_proto_strerror_r="unknown"
36687 tst_compi_strerror_r="unknown"
36688 tst_glibc_strerror_r="unknown"
36689 tst_posix_strerror_r="unknown"
36690 tst_allow_strerror_r="unknown"
36691 tst_works_glibc_strerror_r="unknown"
36692 tst_works_posix_strerror_r="unknown"
36693 tst_glibc_strerror_r_type_arg3="unknown"
36694 tst_posix_strerror_r_type_arg3="unknown"
36696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
36697 $as_echo_n "checking if strerror_r can be linked... " >&6; }
36698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36699 /* end confdefs.h. */
36702 #define strerror_r innocuous_strerror_r
36704 # include <limits.h>
36706 # include <assert.h>
36712 char strerror_r ();
36713 #if defined __stub_strerror_r || defined __stub___strerror_r
36719 return strerror_r ();
36725 if ac_fn_c_try_link "$LINENO"; then :
36727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36728 $as_echo "yes" >&6; }
36729 tst_links_strerror_r="yes"
36733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36734 $as_echo "no" >&6; }
36735 tst_links_strerror_r="no"
36738 rm -f core conftest.err conftest.$ac_objext \
36739 conftest$ac_exeext conftest.$ac_ext
36741 if test "$tst_links_strerror_r" = "yes"; then
36742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
36743 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
36744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36745 /* end confdefs.h. */
36747 $curl_includes_string
36750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36751 $EGREP "strerror_r" >/dev/null 2>&1; then :
36753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36754 $as_echo "yes" >&6; }
36755 tst_proto_strerror_r="yes"
36759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36760 $as_echo "no" >&6; }
36761 tst_proto_strerror_r="no"
36768 if test "$tst_proto_strerror_r" = "yes"; then
36769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
36770 $as_echo_n "checking if strerror_r is compilable... " >&6; }
36771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36772 /* end confdefs.h. */
36775 $curl_includes_string
36780 if(0 != strerror_r(0, 0, 0))
36788 if ac_fn_c_try_compile "$LINENO"; then :
36790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36791 $as_echo "yes" >&6; }
36792 tst_compi_strerror_r="yes"
36796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36797 $as_echo "no" >&6; }
36798 tst_compi_strerror_r="no"
36801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36804 if test "$tst_compi_strerror_r" = "yes"; then
36805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
36806 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
36807 tst_glibc_strerror_r_type_arg3="unknown"
36808 for arg3 in 'size_t' 'int' 'unsigned int'; do
36809 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
36810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36811 /* end confdefs.h. */
36814 $curl_includes_string
36815 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
36820 if(0 != strerror_r(0, 0, 0))
36828 if ac_fn_c_try_compile "$LINENO"; then :
36830 tst_glibc_strerror_r_type_arg3="$arg3"
36833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36836 case "$tst_glibc_strerror_r_type_arg3" in
36838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36839 $as_echo "no" >&6; }
36840 tst_glibc_strerror_r="no"
36843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36844 $as_echo "yes" >&6; }
36845 tst_glibc_strerror_r="yes"
36850 if test "x$cross_compiling" != "xyes" &&
36851 test "$tst_glibc_strerror_r" = "yes"; then
36852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36853 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36854 if test "$cross_compiling" = yes; then :
36855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36857 as_fn_error $? "cannot run test program while cross compiling
36858 See \`config.log' for more details" "$LINENO" 5; }
36860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36861 /* end confdefs.h. */
36864 $curl_includes_stdlib
36865 $curl_includes_string
36866 # include <errno.h>
36874 string = strerror_r(EACCES, buffer, sizeof(buffer));
36876 exit(1); /* fail */
36878 exit(1); /* fail */
36887 if ac_fn_c_try_run "$LINENO"; then :
36889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36890 $as_echo "yes" >&6; }
36891 tst_works_glibc_strerror_r="yes"
36895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36896 $as_echo "no" >&6; }
36897 tst_works_glibc_strerror_r="no"
36900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36901 conftest.$ac_objext conftest.beam conftest.$ac_ext
36906 if test "$tst_compi_strerror_r" = "yes" &&
36907 test "$tst_works_glibc_strerror_r" != "yes"; then
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
36909 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
36910 tst_posix_strerror_r_type_arg3="unknown"
36911 for arg3 in 'size_t' 'int' 'unsigned int'; do
36912 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
36913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36914 /* end confdefs.h. */
36917 $curl_includes_string
36918 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
36923 if(0 != strerror_r(0, 0, 0))
36931 if ac_fn_c_try_compile "$LINENO"; then :
36933 tst_posix_strerror_r_type_arg3="$arg3"
36936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36939 case "$tst_posix_strerror_r_type_arg3" in
36941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36942 $as_echo "no" >&6; }
36943 tst_posix_strerror_r="no"
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36947 $as_echo "yes" >&6; }
36948 tst_posix_strerror_r="yes"
36953 if test "x$cross_compiling" != "xyes" &&
36954 test "$tst_posix_strerror_r" = "yes"; then
36955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36956 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36957 if test "$cross_compiling" = yes; then :
36958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36960 as_fn_error $? "cannot run test program while cross compiling
36961 See \`config.log' for more details" "$LINENO" 5; }
36963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36964 /* end confdefs.h. */
36967 $curl_includes_stdlib
36968 $curl_includes_string
36969 # include <errno.h>
36977 error = strerror_r(EACCES, buffer, sizeof(buffer));
36979 exit(1); /* fail */
36980 if(buffer[0] == '\0')
36981 exit(1); /* fail */
36990 if ac_fn_c_try_run "$LINENO"; then :
36992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36993 $as_echo "yes" >&6; }
36994 tst_works_posix_strerror_r="yes"
36998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36999 $as_echo "no" >&6; }
37000 tst_works_posix_strerror_r="no"
37003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37004 conftest.$ac_objext conftest.beam conftest.$ac_ext
37009 if test "$tst_works_glibc_strerror_r" = "yes"; then
37010 tst_posix_strerror_r="no"
37012 if test "$tst_works_posix_strerror_r" = "yes"; then
37013 tst_glibc_strerror_r="no"
37015 if test "$tst_glibc_strerror_r" = "yes" &&
37016 test "$tst_works_glibc_strerror_r" != "no" &&
37017 test "$tst_posix_strerror_r" != "yes"; then
37018 tst_allow_strerror_r="check"
37020 if test "$tst_posix_strerror_r" = "yes" &&
37021 test "$tst_works_posix_strerror_r" != "no" &&
37022 test "$tst_glibc_strerror_r" != "yes"; then
37023 tst_allow_strerror_r="check"
37025 if test "$tst_allow_strerror_r" = "check"; then
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
37027 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
37028 if test "x$curl_disallow_strerror_r" != "xyes"; then
37029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37030 $as_echo "yes" >&6; }
37031 tst_allow_strerror_r="yes"
37033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37034 $as_echo "no" >&6; }
37035 tst_allow_strerror_r="no"
37039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
37040 $as_echo_n "checking if strerror_r might be used... " >&6; }
37041 if test "$tst_links_strerror_r" = "yes" &&
37042 test "$tst_proto_strerror_r" = "yes" &&
37043 test "$tst_compi_strerror_r" = "yes" &&
37044 test "$tst_allow_strerror_r" = "yes"; then
37045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37046 $as_echo "yes" >&6; }
37047 if test "$tst_glibc_strerror_r" = "yes"; then
37049 cat >>confdefs.h <<_ACEOF
37050 #define HAVE_STRERROR_R 1
37054 cat >>confdefs.h <<_ACEOF
37055 #define HAVE_GLIBC_STRERROR_R 1
37059 cat >>confdefs.h <<_ACEOF
37060 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
37064 if test "$tst_posix_strerror_r" = "yes"; then
37066 cat >>confdefs.h <<_ACEOF
37067 #define HAVE_STRERROR_R 1
37071 cat >>confdefs.h <<_ACEOF
37072 #define HAVE_POSIX_STRERROR_R 1
37076 cat >>confdefs.h <<_ACEOF
37077 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
37081 ac_cv_func_strerror_r="yes"
37083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37084 $as_echo "no" >&6; }
37085 ac_cv_func_strerror_r="no"
37088 if test "$tst_compi_strerror_r" = "yes" &&
37089 test "$tst_allow_strerror_r" = "unknown"; then
37090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
37091 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
37097 tst_links_stricmp="unknown"
37098 tst_proto_stricmp="unknown"
37099 tst_compi_stricmp="unknown"
37100 tst_allow_stricmp="unknown"
37102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
37103 $as_echo_n "checking if stricmp can be linked... " >&6; }
37104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37105 /* end confdefs.h. */
37108 #define stricmp innocuous_stricmp
37110 # include <limits.h>
37112 # include <assert.h>
37119 #if defined __stub_stricmp || defined __stub___stricmp
37131 if ac_fn_c_try_link "$LINENO"; then :
37133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37134 $as_echo "yes" >&6; }
37135 tst_links_stricmp="yes"
37139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37140 $as_echo "no" >&6; }
37141 tst_links_stricmp="no"
37144 rm -f core conftest.err conftest.$ac_objext \
37145 conftest$ac_exeext conftest.$ac_ext
37147 if test "$tst_links_stricmp" = "yes"; then
37148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
37149 $as_echo_n "checking if stricmp is prototyped... " >&6; }
37150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37151 /* end confdefs.h. */
37153 $curl_includes_string
37156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37157 $EGREP "stricmp" >/dev/null 2>&1; then :
37159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37160 $as_echo "yes" >&6; }
37161 tst_proto_stricmp="yes"
37165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37166 $as_echo "no" >&6; }
37167 tst_proto_stricmp="no"
37174 if test "$tst_proto_stricmp" = "yes"; then
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
37176 $as_echo_n "checking if stricmp is compilable... " >&6; }
37177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37178 /* end confdefs.h. */
37181 $curl_includes_string
37186 if(0 != stricmp(0, 0))
37194 if ac_fn_c_try_compile "$LINENO"; then :
37196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37197 $as_echo "yes" >&6; }
37198 tst_compi_stricmp="yes"
37202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37203 $as_echo "no" >&6; }
37204 tst_compi_stricmp="no"
37207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37210 if test "$tst_compi_stricmp" = "yes"; then
37211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
37212 $as_echo_n "checking if stricmp usage allowed... " >&6; }
37213 if test "x$curl_disallow_stricmp" != "xyes"; then
37214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37215 $as_echo "yes" >&6; }
37216 tst_allow_stricmp="yes"
37218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37219 $as_echo "no" >&6; }
37220 tst_allow_stricmp="no"
37224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
37225 $as_echo_n "checking if stricmp might be used... " >&6; }
37226 if test "$tst_links_stricmp" = "yes" &&
37227 test "$tst_proto_stricmp" = "yes" &&
37228 test "$tst_compi_stricmp" = "yes" &&
37229 test "$tst_allow_stricmp" = "yes"; then
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37231 $as_echo "yes" >&6; }
37233 cat >>confdefs.h <<_ACEOF
37234 #define HAVE_STRICMP 1
37237 ac_cv_func_stricmp="yes"
37239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37240 $as_echo "no" >&6; }
37241 ac_cv_func_stricmp="no"
37246 tst_links_strncasecmp="unknown"
37247 tst_proto_strncasecmp="unknown"
37248 tst_compi_strncasecmp="unknown"
37249 tst_allow_strncasecmp="unknown"
37251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
37252 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
37253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37254 /* end confdefs.h. */
37257 #define strncasecmp innocuous_strncasecmp
37259 # include <limits.h>
37261 # include <assert.h>
37267 char strncasecmp ();
37268 #if defined __stub_strncasecmp || defined __stub___strncasecmp
37274 return strncasecmp ();
37280 if ac_fn_c_try_link "$LINENO"; then :
37282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37283 $as_echo "yes" >&6; }
37284 tst_links_strncasecmp="yes"
37288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37289 $as_echo "no" >&6; }
37290 tst_links_strncasecmp="no"
37293 rm -f core conftest.err conftest.$ac_objext \
37294 conftest$ac_exeext conftest.$ac_ext
37296 if test "$tst_links_strncasecmp" = "yes"; then
37297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
37298 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
37299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37300 /* end confdefs.h. */
37302 $curl_includes_string
37305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37306 $EGREP "strncasecmp" >/dev/null 2>&1; then :
37308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37309 $as_echo "yes" >&6; }
37310 tst_proto_strncasecmp="yes"
37314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37315 $as_echo "no" >&6; }
37316 tst_proto_strncasecmp="no"
37323 if test "$tst_proto_strncasecmp" = "yes"; then
37324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
37325 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
37326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37327 /* end confdefs.h. */
37330 $curl_includes_string
37335 if(0 != strncasecmp(0, 0, 0))
37343 if ac_fn_c_try_compile "$LINENO"; then :
37345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37346 $as_echo "yes" >&6; }
37347 tst_compi_strncasecmp="yes"
37351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37352 $as_echo "no" >&6; }
37353 tst_compi_strncasecmp="no"
37356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37359 if test "$tst_compi_strncasecmp" = "yes"; then
37360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
37361 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
37362 if test "x$curl_disallow_strncasecmp" != "xyes"; then
37363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37364 $as_echo "yes" >&6; }
37365 tst_allow_strncasecmp="yes"
37367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37368 $as_echo "no" >&6; }
37369 tst_allow_strncasecmp="no"
37373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
37374 $as_echo_n "checking if strncasecmp might be used... " >&6; }
37375 if test "$tst_links_strncasecmp" = "yes" &&
37376 test "$tst_proto_strncasecmp" = "yes" &&
37377 test "$tst_compi_strncasecmp" = "yes" &&
37378 test "$tst_allow_strncasecmp" = "yes"; then
37379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37380 $as_echo "yes" >&6; }
37382 cat >>confdefs.h <<_ACEOF
37383 #define HAVE_STRNCASECMP 1
37386 ac_cv_func_strncasecmp="yes"
37388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37389 $as_echo "no" >&6; }
37390 ac_cv_func_strncasecmp="no"
37395 tst_links_strncmpi="unknown"
37396 tst_proto_strncmpi="unknown"
37397 tst_compi_strncmpi="unknown"
37398 tst_allow_strncmpi="unknown"
37400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
37401 $as_echo_n "checking if strncmpi can be linked... " >&6; }
37402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37403 /* end confdefs.h. */
37406 #define strncmpi innocuous_strncmpi
37408 # include <limits.h>
37410 # include <assert.h>
37417 #if defined __stub_strncmpi || defined __stub___strncmpi
37423 return strncmpi ();
37429 if ac_fn_c_try_link "$LINENO"; then :
37431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37432 $as_echo "yes" >&6; }
37433 tst_links_strncmpi="yes"
37437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37438 $as_echo "no" >&6; }
37439 tst_links_strncmpi="no"
37442 rm -f core conftest.err conftest.$ac_objext \
37443 conftest$ac_exeext conftest.$ac_ext
37445 if test "$tst_links_strncmpi" = "yes"; then
37446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
37447 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
37448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37449 /* end confdefs.h. */
37451 $curl_includes_string
37454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37455 $EGREP "strncmpi" >/dev/null 2>&1; then :
37457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37458 $as_echo "yes" >&6; }
37459 tst_proto_strncmpi="yes"
37463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37464 $as_echo "no" >&6; }
37465 tst_proto_strncmpi="no"
37472 if test "$tst_proto_strncmpi" = "yes"; then
37473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
37474 $as_echo_n "checking if strncmpi is compilable... " >&6; }
37475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37476 /* end confdefs.h. */
37479 $curl_includes_string
37484 if(0 != strncmpi(0, 0))
37492 if ac_fn_c_try_compile "$LINENO"; then :
37494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37495 $as_echo "yes" >&6; }
37496 tst_compi_strncmpi="yes"
37500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37501 $as_echo "no" >&6; }
37502 tst_compi_strncmpi="no"
37505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37508 if test "$tst_compi_strncmpi" = "yes"; then
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
37510 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
37511 if test "x$curl_disallow_strncmpi" != "xyes"; then
37512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37513 $as_echo "yes" >&6; }
37514 tst_allow_strncmpi="yes"
37516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37517 $as_echo "no" >&6; }
37518 tst_allow_strncmpi="no"
37522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
37523 $as_echo_n "checking if strncmpi might be used... " >&6; }
37524 if test "$tst_links_strncmpi" = "yes" &&
37525 test "$tst_proto_strncmpi" = "yes" &&
37526 test "$tst_compi_strncmpi" = "yes" &&
37527 test "$tst_allow_strncmpi" = "yes"; then
37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37529 $as_echo "yes" >&6; }
37531 cat >>confdefs.h <<_ACEOF
37532 #define HAVE_STRNCMPI 1
37535 ac_cv_func_strncmpi="yes"
37537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37538 $as_echo "no" >&6; }
37539 ac_cv_func_strncmpi="no"
37544 tst_links_strnicmp="unknown"
37545 tst_proto_strnicmp="unknown"
37546 tst_compi_strnicmp="unknown"
37547 tst_allow_strnicmp="unknown"
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
37550 $as_echo_n "checking if strnicmp can be linked... " >&6; }
37551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552 /* end confdefs.h. */
37555 #define strnicmp innocuous_strnicmp
37557 # include <limits.h>
37559 # include <assert.h>
37566 #if defined __stub_strnicmp || defined __stub___strnicmp
37572 return strnicmp ();
37578 if ac_fn_c_try_link "$LINENO"; then :
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37581 $as_echo "yes" >&6; }
37582 tst_links_strnicmp="yes"
37586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37587 $as_echo "no" >&6; }
37588 tst_links_strnicmp="no"
37591 rm -f core conftest.err conftest.$ac_objext \
37592 conftest$ac_exeext conftest.$ac_ext
37594 if test "$tst_links_strnicmp" = "yes"; then
37595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
37596 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
37597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37598 /* end confdefs.h. */
37600 $curl_includes_string
37603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37604 $EGREP "strnicmp" >/dev/null 2>&1; then :
37606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37607 $as_echo "yes" >&6; }
37608 tst_proto_strnicmp="yes"
37612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37613 $as_echo "no" >&6; }
37614 tst_proto_strnicmp="no"
37621 if test "$tst_proto_strnicmp" = "yes"; then
37622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
37623 $as_echo_n "checking if strnicmp is compilable... " >&6; }
37624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37625 /* end confdefs.h. */
37628 $curl_includes_string
37633 if(0 != strnicmp(0, 0))
37641 if ac_fn_c_try_compile "$LINENO"; then :
37643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37644 $as_echo "yes" >&6; }
37645 tst_compi_strnicmp="yes"
37649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37650 $as_echo "no" >&6; }
37651 tst_compi_strnicmp="no"
37654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37657 if test "$tst_compi_strnicmp" = "yes"; then
37658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
37659 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
37660 if test "x$curl_disallow_strnicmp" != "xyes"; then
37661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662 $as_echo "yes" >&6; }
37663 tst_allow_strnicmp="yes"
37665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37666 $as_echo "no" >&6; }
37667 tst_allow_strnicmp="no"
37671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
37672 $as_echo_n "checking if strnicmp might be used... " >&6; }
37673 if test "$tst_links_strnicmp" = "yes" &&
37674 test "$tst_proto_strnicmp" = "yes" &&
37675 test "$tst_compi_strnicmp" = "yes" &&
37676 test "$tst_allow_strnicmp" = "yes"; then
37677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37678 $as_echo "yes" >&6; }
37680 cat >>confdefs.h <<_ACEOF
37681 #define HAVE_STRNICMP 1
37684 ac_cv_func_strnicmp="yes"
37686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37687 $as_echo "no" >&6; }
37688 ac_cv_func_strnicmp="no"
37693 tst_links_strstr="unknown"
37694 tst_proto_strstr="unknown"
37695 tst_compi_strstr="unknown"
37696 tst_allow_strstr="unknown"
37698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
37699 $as_echo_n "checking if strstr can be linked... " >&6; }
37700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37701 /* end confdefs.h. */
37704 #define strstr innocuous_strstr
37706 # include <limits.h>
37708 # include <assert.h>
37715 #if defined __stub_strstr || defined __stub___strstr
37727 if ac_fn_c_try_link "$LINENO"; then :
37729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37730 $as_echo "yes" >&6; }
37731 tst_links_strstr="yes"
37735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37736 $as_echo "no" >&6; }
37737 tst_links_strstr="no"
37740 rm -f core conftest.err conftest.$ac_objext \
37741 conftest$ac_exeext conftest.$ac_ext
37743 if test "$tst_links_strstr" = "yes"; then
37744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
37745 $as_echo_n "checking if strstr is prototyped... " >&6; }
37746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37747 /* end confdefs.h. */
37749 $curl_includes_string
37752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37753 $EGREP "strstr" >/dev/null 2>&1; then :
37755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37756 $as_echo "yes" >&6; }
37757 tst_proto_strstr="yes"
37761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37762 $as_echo "no" >&6; }
37763 tst_proto_strstr="no"
37770 if test "$tst_proto_strstr" = "yes"; then
37771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
37772 $as_echo_n "checking if strstr is compilable... " >&6; }
37773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37774 /* end confdefs.h. */
37777 $curl_includes_string
37782 if(0 != strstr(0, 0))
37790 if ac_fn_c_try_compile "$LINENO"; then :
37792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37793 $as_echo "yes" >&6; }
37794 tst_compi_strstr="yes"
37798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37799 $as_echo "no" >&6; }
37800 tst_compi_strstr="no"
37803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37806 if test "$tst_compi_strstr" = "yes"; then
37807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
37808 $as_echo_n "checking if strstr usage allowed... " >&6; }
37809 if test "x$curl_disallow_strstr" != "xyes"; then
37810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37811 $as_echo "yes" >&6; }
37812 tst_allow_strstr="yes"
37814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37815 $as_echo "no" >&6; }
37816 tst_allow_strstr="no"
37820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
37821 $as_echo_n "checking if strstr might be used... " >&6; }
37822 if test "$tst_links_strstr" = "yes" &&
37823 test "$tst_proto_strstr" = "yes" &&
37824 test "$tst_compi_strstr" = "yes" &&
37825 test "$tst_allow_strstr" = "yes"; then
37826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37827 $as_echo "yes" >&6; }
37829 cat >>confdefs.h <<_ACEOF
37830 #define HAVE_STRSTR 1
37833 ac_cv_func_strstr="yes"
37835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37836 $as_echo "no" >&6; }
37837 ac_cv_func_strstr="no"
37842 tst_links_strtok_r="unknown"
37843 tst_proto_strtok_r="unknown"
37844 tst_compi_strtok_r="unknown"
37845 tst_allow_strtok_r="unknown"
37847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
37848 $as_echo_n "checking if strtok_r can be linked... " >&6; }
37849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37850 /* end confdefs.h. */
37853 #define strtok_r innocuous_strtok_r
37855 # include <limits.h>
37857 # include <assert.h>
37864 #if defined __stub_strtok_r || defined __stub___strtok_r
37870 return strtok_r ();
37876 if ac_fn_c_try_link "$LINENO"; then :
37878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37879 $as_echo "yes" >&6; }
37880 tst_links_strtok_r="yes"
37884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37885 $as_echo "no" >&6; }
37886 tst_links_strtok_r="no"
37889 rm -f core conftest.err conftest.$ac_objext \
37890 conftest$ac_exeext conftest.$ac_ext
37892 if test "$tst_links_strtok_r" = "yes"; then
37893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
37894 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
37895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37896 /* end confdefs.h. */
37898 $curl_includes_string
37901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37902 $EGREP "strtok_r" >/dev/null 2>&1; then :
37904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37905 $as_echo "yes" >&6; }
37906 tst_proto_strtok_r="yes"
37910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37911 $as_echo "no" >&6; }
37912 tst_proto_strtok_r="no"
37919 if test "$tst_proto_strtok_r" = "yes"; then
37920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
37921 $as_echo_n "checking if strtok_r is compilable... " >&6; }
37922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37923 /* end confdefs.h. */
37926 $curl_includes_string
37931 if(0 != strtok_r(0, 0, 0))
37939 if ac_fn_c_try_compile "$LINENO"; then :
37941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37942 $as_echo "yes" >&6; }
37943 tst_compi_strtok_r="yes"
37947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37948 $as_echo "no" >&6; }
37949 tst_compi_strtok_r="no"
37952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37955 if test "$tst_compi_strtok_r" = "yes"; then
37956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
37957 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
37958 if test "x$curl_disallow_strtok_r" != "xyes"; then
37959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960 $as_echo "yes" >&6; }
37961 tst_allow_strtok_r="yes"
37963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37964 $as_echo "no" >&6; }
37965 tst_allow_strtok_r="no"
37969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
37970 $as_echo_n "checking if strtok_r might be used... " >&6; }
37971 if test "$tst_links_strtok_r" = "yes" &&
37972 test "$tst_proto_strtok_r" = "yes" &&
37973 test "$tst_compi_strtok_r" = "yes" &&
37974 test "$tst_allow_strtok_r" = "yes"; then
37975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37976 $as_echo "yes" >&6; }
37978 cat >>confdefs.h <<_ACEOF
37979 #define HAVE_STRTOK_R 1
37982 ac_cv_func_strtok_r="yes"
37984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37985 $as_echo "no" >&6; }
37986 ac_cv_func_strtok_r="no"
37991 tst_links_strtoll="unknown"
37992 tst_proto_strtoll="unknown"
37993 tst_compi_strtoll="unknown"
37994 tst_allow_strtoll="unknown"
37996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
37997 $as_echo_n "checking if strtoll can be linked... " >&6; }
37998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37999 /* end confdefs.h. */
38002 #define strtoll innocuous_strtoll
38004 # include <limits.h>
38006 # include <assert.h>
38013 #if defined __stub_strtoll || defined __stub___strtoll
38025 if ac_fn_c_try_link "$LINENO"; then :
38027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38028 $as_echo "yes" >&6; }
38029 tst_links_strtoll="yes"
38033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38034 $as_echo "no" >&6; }
38035 tst_links_strtoll="no"
38038 rm -f core conftest.err conftest.$ac_objext \
38039 conftest$ac_exeext conftest.$ac_ext
38041 if test "$tst_links_strtoll" = "yes"; then
38042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
38043 $as_echo_n "checking if strtoll is prototyped... " >&6; }
38044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38045 /* end confdefs.h. */
38047 $curl_includes_stdlib
38050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38051 $EGREP "strtoll" >/dev/null 2>&1; then :
38053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38054 $as_echo "yes" >&6; }
38055 tst_proto_strtoll="yes"
38059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38060 $as_echo "no" >&6; }
38061 tst_proto_strtoll="no"
38068 if test "$tst_proto_strtoll" = "yes"; then
38069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
38070 $as_echo_n "checking if strtoll is compilable... " >&6; }
38071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38072 /* end confdefs.h. */
38075 $curl_includes_stdlib
38080 if(0 != strtoll(0, 0, 0))
38088 if ac_fn_c_try_compile "$LINENO"; then :
38090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38091 $as_echo "yes" >&6; }
38092 tst_compi_strtoll="yes"
38096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38097 $as_echo "no" >&6; }
38098 tst_compi_strtoll="no"
38101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38104 if test "$tst_compi_strtoll" = "yes"; then
38105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
38106 $as_echo_n "checking if strtoll usage allowed... " >&6; }
38107 if test "x$curl_disallow_strtoll" != "xyes"; then
38108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38109 $as_echo "yes" >&6; }
38110 tst_allow_strtoll="yes"
38112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38113 $as_echo "no" >&6; }
38114 tst_allow_strtoll="no"
38118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
38119 $as_echo_n "checking if strtoll might be used... " >&6; }
38120 if test "$tst_links_strtoll" = "yes" &&
38121 test "$tst_proto_strtoll" = "yes" &&
38122 test "$tst_compi_strtoll" = "yes" &&
38123 test "$tst_allow_strtoll" = "yes"; then
38124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38125 $as_echo "yes" >&6; }
38127 cat >>confdefs.h <<_ACEOF
38128 #define HAVE_STRTOLL 1
38131 ac_cv_func_strtoll="yes"
38133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38134 $as_echo "no" >&6; }
38135 ac_cv_func_strtoll="no"
38139 curl_includes_sys_uio="\
38140 /* includes start */
38141 #ifdef HAVE_SYS_TYPES_H
38142 # include <sys/types.h>
38144 #ifdef HAVE_SYS_UIO_H
38145 # include <sys/uio.h>
38147 /* includes end */"
38148 for ac_header in sys/types.h sys/uio.h
38150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
38153 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38154 cat >>confdefs.h <<_ACEOF
38155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38165 tst_links_writev="unknown"
38166 tst_proto_writev="unknown"
38167 tst_compi_writev="unknown"
38168 tst_allow_writev="unknown"
38170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
38171 $as_echo_n "checking if writev can be linked... " >&6; }
38172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38173 /* end confdefs.h. */
38176 #define writev innocuous_writev
38178 # include <limits.h>
38180 # include <assert.h>
38187 #if defined __stub_writev || defined __stub___writev
38199 if ac_fn_c_try_link "$LINENO"; then :
38201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38202 $as_echo "yes" >&6; }
38203 tst_links_writev="yes"
38207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38208 $as_echo "no" >&6; }
38209 tst_links_writev="no"
38212 rm -f core conftest.err conftest.$ac_objext \
38213 conftest$ac_exeext conftest.$ac_ext
38215 if test "$tst_links_writev" = "yes"; then
38216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
38217 $as_echo_n "checking if writev is prototyped... " >&6; }
38218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38219 /* end confdefs.h. */
38221 $curl_includes_sys_uio
38224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38225 $EGREP "writev" >/dev/null 2>&1; then :
38227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38228 $as_echo "yes" >&6; }
38229 tst_proto_writev="yes"
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38234 $as_echo "no" >&6; }
38235 tst_proto_writev="no"
38242 if test "$tst_proto_writev" = "yes"; then
38243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
38244 $as_echo_n "checking if writev is compilable... " >&6; }
38245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38246 /* end confdefs.h. */
38249 $curl_includes_sys_uio
38254 if(0 != writev(0, 0, 0))
38262 if ac_fn_c_try_compile "$LINENO"; then :
38264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38265 $as_echo "yes" >&6; }
38266 tst_compi_writev="yes"
38270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38271 $as_echo "no" >&6; }
38272 tst_compi_writev="no"
38275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38278 if test "$tst_compi_writev" = "yes"; then
38279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
38280 $as_echo_n "checking if writev usage allowed... " >&6; }
38281 if test "x$curl_disallow_writev" != "xyes"; then
38282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38283 $as_echo "yes" >&6; }
38284 tst_allow_writev="yes"
38286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287 $as_echo "no" >&6; }
38288 tst_allow_writev="no"
38292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
38293 $as_echo_n "checking if writev might be used... " >&6; }
38294 if test "$tst_links_writev" = "yes" &&
38295 test "$tst_proto_writev" = "yes" &&
38296 test "$tst_compi_writev" = "yes" &&
38297 test "$tst_allow_writev" = "yes"; then
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38299 $as_echo "yes" >&6; }
38301 cat >>confdefs.h <<_ACEOF
38302 #define HAVE_WRITEV 1
38305 ac_cv_func_writev="yes"
38307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38308 $as_echo "no" >&6; }
38309 ac_cv_func_writev="no"
38317 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
38318 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
38322 for ac_func in fork \
38342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38345 cat >>confdefs.h <<_ACEOF
38346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38353 eval skipcheck=\$skipcheck_$func
38354 if test "x$skipcheck" != "xyes"; then
38355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
38356 $as_echo_n "checking deeper for $func... " >&6; }
38357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38358 /* end confdefs.h. */
38372 if ac_fn_c_try_link "$LINENO"; then :
38374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38375 $as_echo "yes" >&6; }
38376 eval "ac_cv_func_$func=yes"
38378 cat >>confdefs.h <<_ACEOF
38379 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
38385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38386 $as_echo "but still no" >&6; }
38389 rm -f core conftest.err conftest.$ac_objext \
38390 conftest$ac_exeext conftest.$ac_ext
38398 for ac_header in sys/types.h sys/socket.h netdb.h
38400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38401 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38403 cat >>confdefs.h <<_ACEOF
38404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
38413 $as_echo_n "checking for getnameinfo... " >&6; }
38414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38415 /* end confdefs.h. */
38418 #define getnameinfo innocuous_getnameinfo
38420 # include <limits.h>
38422 # include <assert.h>
38428 char getnameinfo ();
38429 #if defined __stub_getnameinfo || defined __stub___getnameinfo
38435 return getnameinfo ();
38441 if ac_fn_c_try_link "$LINENO"; then :
38443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38444 $as_echo "yes" >&6; }
38445 curl_cv_getnameinfo="yes"
38449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38450 $as_echo "no" >&6; }
38451 curl_cv_getnameinfo="no"
38454 rm -f core conftest.err conftest.$ac_objext \
38455 conftest$ac_exeext conftest.$ac_ext
38457 if test "$curl_cv_getnameinfo" != "yes"; then
38458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
38459 $as_echo_n "checking deeper for getnameinfo... " >&6; }
38460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38461 /* end confdefs.h. */
38475 if ac_fn_c_try_link "$LINENO"; then :
38477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38478 $as_echo "yes" >&6; }
38479 curl_cv_getnameinfo="yes"
38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38484 $as_echo "but still no" >&6; }
38485 curl_cv_getnameinfo="no"
38488 rm -f core conftest.err conftest.$ac_objext \
38489 conftest$ac_exeext conftest.$ac_ext
38492 if test "$curl_cv_getnameinfo" != "yes"; then
38493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
38494 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
38495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38496 /* end confdefs.h. */
38500 #ifdef HAVE_WINDOWS_H
38501 #ifndef WIN32_LEAN_AND_MEAN
38502 #define WIN32_LEAN_AND_MEAN
38504 #include <windows.h>
38505 #ifdef HAVE_WINSOCK2_H
38506 #include <winsock2.h>
38507 #ifdef HAVE_WS2TCPIP_H
38508 #include <ws2tcpip.h>
38512 #ifdef HAVE_SYS_TYPES_H
38513 #include <sys/types.h>
38515 #ifdef HAVE_SYS_SOCKET_H
38516 #include <sys/socket.h>
38518 #ifdef HAVE_NETDB_H
38526 getnameinfo(0, 0, 0, 0, 0, 0, 0);
38533 if ac_fn_c_try_link "$LINENO"; then :
38535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38536 $as_echo "yes" >&6; }
38537 curl_cv_getnameinfo="yes"
38541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38542 $as_echo "but still no" >&6; }
38543 curl_cv_getnameinfo="no"
38546 rm -f core conftest.err conftest.$ac_objext \
38547 conftest$ac_exeext conftest.$ac_ext
38550 if test "$curl_cv_getnameinfo" = "yes"; then
38551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
38552 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
38553 if ${curl_cv_func_getnameinfo_args+:} false; then :
38554 $as_echo_n "(cached) " >&6
38557 curl_cv_func_getnameinfo_args="unknown"
38558 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
38559 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38560 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38561 for gni_arg7 in 'int' 'unsigned int'; do
38562 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38564 /* end confdefs.h. */
38568 #ifdef HAVE_WINDOWS_H
38569 #ifndef WIN32_LEAN_AND_MEAN
38570 #define WIN32_LEAN_AND_MEAN
38572 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
38573 #undef _WIN32_WINNT
38574 #define _WIN32_WINNT 0x0501
38576 #include <windows.h>
38577 #ifdef HAVE_WINSOCK2_H
38578 #include <winsock2.h>
38579 #ifdef HAVE_WS2TCPIP_H
38580 #include <ws2tcpip.h>
38583 #define GNICALLCONV WSAAPI
38585 #ifdef HAVE_SYS_TYPES_H
38586 #include <sys/types.h>
38588 #ifdef HAVE_SYS_SOCKET_H
38589 #include <sys/socket.h>
38591 #ifdef HAVE_NETDB_H
38594 #define GNICALLCONV
38596 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38597 char *, $gni_arg46,
38598 char *, $gni_arg46,
38605 $gni_arg46 hostlen=0;
38606 $gni_arg46 servlen=0;
38608 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38615 if ac_fn_c_try_compile "$LINENO"; then :
38617 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
38629 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38630 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38632 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
38634 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
38636 gni_prev_IFS=$IFS; IFS=','
38637 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
38641 gni_qual_type_arg1=$1
38644 cat >>confdefs.h <<_ACEOF
38645 #define GETNAMEINFO_TYPE_ARG2 $2
38649 cat >>confdefs.h <<_ACEOF
38650 #define GETNAMEINFO_TYPE_ARG46 $3
38654 cat >>confdefs.h <<_ACEOF
38655 #define GETNAMEINFO_TYPE_ARG7 $4
38661 case $prev_sh_opts in
38669 case "$gni_qual_type_arg1" in
38671 gni_qual_arg1=const
38672 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
38676 gni_type_arg1=$gni_qual_type_arg1
38681 cat >>confdefs.h <<_ACEOF
38682 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
38686 cat >>confdefs.h <<_ACEOF
38687 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
38691 case $prev_sh_opts in
38700 cat >>confdefs.h <<_ACEOF
38701 #define HAVE_GETNAMEINFO 1
38704 ac_cv_func_getnameinfo="yes"
38709 if test "$ipv6" = "yes"; then
38710 if test "$ac_cv_func_getaddrinfo" = "yes"; then
38712 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
38718 for ac_header in stdio.h sys/types.h sys/socket.h \
38719 netdb.h netinet/in.h arpa/inet.h
38721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38722 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38724 cat >>confdefs.h <<_ACEOF
38725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
38734 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
38735 if ${ac_cv_working_ni_withscopeid+:} false; then :
38736 $as_echo_n "(cached) " >&6
38739 if test "$cross_compiling" = yes; then :
38741 # Program is not run when cross-compiling. So we assume
38742 # NI_WITHSCOPEID will work if we are able to compile it.
38743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38744 /* end confdefs.h. */
38747 #include <sys/types.h>
38748 #include <sys/socket.h>
38754 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38761 if ac_fn_c_try_compile "$LINENO"; then :
38763 ac_cv_working_ni_withscopeid="yes"
38767 ac_cv_working_ni_withscopeid="no"
38770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38774 /* end confdefs.h. */
38777 #ifdef HAVE_STDLIB_H
38778 #include <stdlib.h>
38780 #ifdef HAVE_STDIO_H
38783 #ifdef HAVE_SYS_TYPES_H
38784 #include <sys/types.h>
38786 #ifdef HAVE_SYS_SOCKET_H
38787 #include <sys/socket.h>
38789 #ifdef HAVE_NETDB_H
38792 #ifdef HAVE_NETINET_IN_H
38793 #include <netinet/in.h>
38795 #ifdef HAVE_ARPA_INET_H
38796 #include <arpa/inet.h>
38802 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38803 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38804 struct sockaddr_storage sa;
38806 unsigned char sa[256];
38808 char hostbuf[NI_MAXHOST];
38810 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38811 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38812 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38813 int fd = socket(AF_INET6, SOCK_STREAM, 0);
38815 perror("socket()");
38816 return 1; /* Error creating socket */
38818 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38820 perror("getsockname()");
38821 return 2; /* Error retrieving socket name */
38823 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38825 printf("rc = %s\n", gai_strerror(rc));
38826 return 3; /* Error translating socket address */
38828 return 0; /* Ok, NI_WITHSCOPEID works */
38830 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38835 } # AC-LANG-PROGRAM
38838 if ac_fn_c_try_run "$LINENO"; then :
38840 # Exit code == 0. Program worked.
38841 ac_cv_working_ni_withscopeid="yes"
38845 # Exit code != 0. Program failed.
38846 ac_cv_working_ni_withscopeid="no"
38849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38850 conftest.$ac_objext conftest.beam conftest.$ac_ext
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
38856 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38857 case "$ac_cv_working_ni_withscopeid" in
38860 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
38869 tst_method="unknown"
38871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
38872 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
38873 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
38874 tst_method="fcntl O_NONBLOCK"
38875 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
38876 tst_method="ioctl FIONBIO"
38877 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
38878 tst_method="ioctlsocket FIONBIO"
38879 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
38880 tst_method="IoctlSocket FIONBIO"
38881 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
38882 tst_method="setsockopt SO_NONBLOCK"
38884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
38885 $as_echo "$tst_method" >&6; }
38886 if test "$tst_method" = "unknown"; then
38887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
38888 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
38893 # Extract the first word of "perl", so it can be a program name with args.
38894 set dummy perl; ac_word=$2
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38896 $as_echo_n "checking for $ac_word... " >&6; }
38897 if ${ac_cv_path_PERL+:} false; then :
38898 $as_echo_n "(cached) " >&6
38902 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38906 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
38907 for as_dir in $as_dummy
38910 test -z "$as_dir" && as_dir=.
38911 for ac_exec_ext in '' $ac_executable_extensions; do
38912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38913 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38924 PERL=$ac_cv_path_PERL
38925 if test -n "$PERL"; then
38926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
38927 $as_echo "$PERL" >&6; }
38929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38930 $as_echo "no" >&6; }
38936 for ac_prog in gnroff nroff
38938 # Extract the first word of "$ac_prog", so it can be a program name with args.
38939 set dummy $ac_prog; ac_word=$2
38940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38941 $as_echo_n "checking for $ac_word... " >&6; }
38942 if ${ac_cv_path_NROFF+:} false; then :
38943 $as_echo_n "(cached) " >&6
38947 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
38950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38951 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
38952 for as_dir in $as_dummy
38955 test -z "$as_dir" && as_dir=.
38956 for ac_exec_ext in '' $ac_executable_extensions; do
38957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38958 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
38959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38969 NROFF=$ac_cv_path_NROFF
38970 if test -n "$NROFF"; then
38971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
38972 $as_echo "$NROFF" >&6; }
38974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38975 $as_echo "no" >&6; }
38979 test -n "$NROFF" && break
38984 if test -n "$NROFF"; then
38986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
38987 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
38989 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38990 if test -z "$mancheck"; then
38992 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38993 if test -z "$mancheck"; then
38995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38996 $as_echo "failed" >&6; }
38997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
38998 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
39000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39001 $as_echo "$MANOPT" >&6; }
39004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39005 $as_echo "$MANOPT" >&6; }
39010 if test -z "$MANOPT"
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
39013 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
39018 if test "$USE_MANUAL" = "1"; then
39020 $as_echo "#define USE_MANUAL 1" >>confdefs.h
39022 curl_manual_msg="enabled"
39025 if test x"$USE_MANUAL" = x1; then
39027 USE_MANUAL_FALSE='#'
39029 USE_MANUAL_TRUE='#'
39038 if test "$want_ares" = "yes"; then
39039 clean_CPPFLAGS="$CPPFLAGS"
39040 clean_LDFLAGS="$LDFLAGS"
39042 embedded_ares="unknown"
39043 configure_runpath=`pwd`
39044 embedded_ares_builddir="$configure_runpath/ares"
39045 if test -n "$want_ares_path"; then
39046 ares_CPPFLAGS="-I$want_ares_path/include"
39047 ares_LDFLAGS="-L$want_ares_path/lib"
39048 ares_LIBS="-lcares"
39050 if test -d "$srcdir/ares"; then
39051 embedded_ares="yes"
39052 subdirs="$subdirs ares"
39055 ares_LDFLAGS="-L$embedded_ares_builddir"
39056 ares_LIBS="-lcares"
39060 ares_LIBS="-lcares"
39064 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
39065 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
39066 LIBS="$ares_LIBS $clean_LIBS"
39068 if test "$embedded_ares" != "yes"; then
39069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
39070 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
39071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39072 /* end confdefs.h. */
39076 /* set of dummy functions in case c-ares was built with debug */
39077 void curl_dofree() { }
39078 void curl_sclose() { }
39079 void curl_domalloc() { }
39080 void curl_docalloc() { }
39081 void curl_socket() { }
39086 ares_channel channel;
39087 ares_cancel(channel); /* added in 1.2.0 */
39088 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
39089 ares_dup(&channel, channel); /* added in 1.6.0 */
39096 if ac_fn_c_try_link "$LINENO"; then :
39098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39099 $as_echo "yes" >&6; }
39103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39104 $as_echo "no" >&6; }
39105 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
39106 CPPFLAGS="$clean_CPPFLAGS"
39107 LDFLAGS="$clean_LDFLAGS"
39113 rm -f core conftest.err conftest.$ac_objext \
39114 conftest$ac_exeext conftest.$ac_ext
39116 if test "$want_ares" = "yes"; then
39118 $as_echo "#define USE_ARES 1" >>confdefs.h
39122 curl_res_msg="c-ares"
39126 if test x$embedded_ares = xyes; then
39127 USE_EMBEDDED_ARES_TRUE=
39128 USE_EMBEDDED_ARES_FALSE='#'
39130 USE_EMBEDDED_ARES_TRUE='#'
39131 USE_EMBEDDED_ARES_FALSE=
39135 if test "x$ac_cv_native_windows" != "xyes" &&
39136 test "x$enable_shared" = "xyes"; then
39137 build_libhostname=yes
39139 build_libhostname=no
39141 if test x$build_libhostname = xyes; then
39142 BUILD_LIBHOSTNAME_TRUE=
39143 BUILD_LIBHOSTNAME_FALSE='#'
39145 BUILD_LIBHOSTNAME_TRUE='#'
39146 BUILD_LIBHOSTNAME_FALSE=
39151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
39152 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
39153 OPT_THRES="default"
39154 # Check whether --enable-threaded_resolver was given.
39155 if test "${enable_threaded_resolver+set}" = set; then :
39156 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
39159 case "$OPT_THRES" in
39167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
39168 $as_echo "$want_thres" >&6; }
39171 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
39172 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
39175 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no"; then
39176 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
39177 if test "x$ac_cv_header_pthread_h" = xyes; then :
39179 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
39181 save_CFLAGS="$CFLAGS"
39183 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
39184 if test "x$ac_cv_func_pthread_create" = xyes; then :
39185 USE_THREADS_POSIX=1
39189 if test "$USE_THREADS_POSIX" != "1"
39191 CFLAGS="$CFLAGS -pthread"
39192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
39193 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
39194 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
39195 $as_echo_n "(cached) " >&6
39197 ac_check_lib_save_LIBS=$LIBS
39198 LIBS="-lpthread $LIBS"
39199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39200 /* end confdefs.h. */
39206 char pthread_create ();
39209 return pthread_create ();
39214 if ac_fn_c_try_link "$LINENO"; then :
39215 ac_cv_lib_pthread_pthread_create=yes
39217 ac_cv_lib_pthread_pthread_create=no
39219 rm -f core conftest.err conftest.$ac_objext \
39220 conftest$ac_exeext conftest.$ac_ext
39221 LIBS=$ac_check_lib_save_LIBS
39223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
39224 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
39225 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
39226 USE_THREADS_POSIX=1
39228 CFLAGS="$save_CFLAGS"
39233 if test "x$USE_THREADS_POSIX" = "x1"
39236 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
39238 curl_res_msg="POSIX threaded"
39248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
39249 $as_echo_n "checking whether to enable verbose strings... " >&6; }
39250 # Check whether --enable-verbose was given.
39251 if test "${enable_verbose+set}" = set; then :
39252 enableval=$enable_verbose; case "$enableval" in
39254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39255 $as_echo "no" >&6; }
39257 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
39259 curl_verbose_msg="no"
39261 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39262 $as_echo "yes" >&6; }
39266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39267 $as_echo "yes" >&6; }
39272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
39273 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
39274 # Check whether --enable-sspi was given.
39275 if test "${enable_sspi+set}" = set; then :
39276 enableval=$enable_sspi; case "$enableval" in
39278 if test "$ac_cv_native_windows" = "yes"; then
39279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39280 $as_echo "yes" >&6; }
39282 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
39286 curl_sspi_msg="enabled"
39288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39289 $as_echo "no" >&6; }
39290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
39291 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
39295 if test "x$WINSSL_ENABLED" = "x1"; then
39296 # --with-winssl implies --enable-sspi
39297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39298 $as_echo "yes" >&6; }
39300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39301 $as_echo "no" >&6; }
39306 if test "x$WINSSL_ENABLED" = "x1"; then
39307 # --with-winssl implies --enable-sspi
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39309 $as_echo "yes" >&6; }
39311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39312 $as_echo "no" >&6; }
39318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
39319 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
39320 # Check whether --enable-crypto-auth was given.
39321 if test "${enable_crypto_auth+set}" = set; then :
39322 enableval=$enable_crypto_auth; case "$enableval" in
39324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39325 $as_echo "no" >&6; }
39327 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
39329 CURL_DISABLE_CRYPTO_AUTH=1
39331 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39332 $as_echo "yes" >&6; }
39336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39337 $as_echo "yes" >&6; }
39343 OPT_NTLM_WB="default"
39344 # Check whether --enable-ntlm-wb was given.
39345 if test "${enable_ntlm_wb+set}" = set; then :
39346 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
39349 want_ntlm_wb_file="/usr/bin/ntlm_auth"
39350 case "$OPT_NTLM_WB" in
39359 if test -n "$enableval" && test "$enableval" != "yes"; then
39360 want_ntlm_wb_file="$enableval"
39367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
39368 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
39369 if test "$ac_cv_native_windows" = "yes" ||
39370 test "x$SSL_ENABLED" = "x"; then
39371 want_ntlm_wb_file=""
39374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
39375 $as_echo "$want_ntlm_wb" >&6; }
39376 if test "$want_ntlm_wb" = "yes"; then
39378 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
39381 cat >>confdefs.h <<_ACEOF
39382 #define NTLM_WB_FILE "$want_ntlm_wb_file"
39389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
39390 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
39391 # Check whether --enable-tls-srp was given.
39392 if test "${enable_tls_srp+set}" = set; then :
39393 enableval=$enable_tls_srp; case "$enableval" in
39395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39396 $as_echo "no" >&6; }
39398 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
39402 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39403 $as_echo "yes" >&6; }
39408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39409 $as_echo "yes" >&6; }
39415 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
39417 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
39420 curl_tls_srp_msg="enabled"
39423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
39424 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
39425 # Check whether --enable-unix-sockets was given.
39426 if test "${enable_unix_sockets+set}" = set; then :
39427 enableval=$enable_unix_sockets; case "$enableval" in
39428 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39429 $as_echo "no" >&6; }
39430 want_unix_sockets=no
39432 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39433 $as_echo "yes" >&6; }
39434 want_unix_sockets=yes
39439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
39440 $as_echo "auto" >&6; }
39441 want_unix_sockets=auto
39446 if test "x$want_unix_sockets" != "xno"; then
39447 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
39448 #include <sys/un.h>
39451 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
39454 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
39458 curl_unix_sockets_msg="enabled"
39462 if test "x$want_unix_sockets" = "xyes"; then
39463 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
39470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
39471 $as_echo_n "checking whether to enable support for cookies... " >&6; }
39472 # Check whether --enable-cookies was given.
39473 if test "${enable_cookies+set}" = set; then :
39474 enableval=$enable_cookies; case "$enableval" in
39476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39477 $as_echo "no" >&6; }
39479 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
39482 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39483 $as_echo "yes" >&6; }
39487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39488 $as_echo "yes" >&6; }
39494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
39495 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
39496 CFLAG_CURL_SYMBOL_HIDING=""
39497 doing_symbol_hiding="no"
39498 if test x"$ac_cv_native_windows" != "xyes" &&
39499 test "$want_symbol_hiding" = "yes" &&
39500 test "$supports_symbol_hiding" = "yes"; then
39501 doing_symbol_hiding="yes"
39502 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
39504 cat >>confdefs.h <<_ACEOF
39505 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
39508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39509 $as_echo "yes" >&6; }
39511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39512 $as_echo "no" >&6; }
39514 if test x$doing_symbol_hiding = xyes; then
39515 DOING_CURL_SYMBOL_HIDING_TRUE=
39516 DOING_CURL_SYMBOL_HIDING_FALSE='#'
39518 DOING_CURL_SYMBOL_HIDING_TRUE='#'
39519 DOING_CURL_SYMBOL_HIDING_FALSE=
39526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
39527 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
39528 # Check whether --enable-soname-bump was given.
39529 if test "${enable_soname_bump+set}" = set; then :
39530 enableval=$enable_soname_bump; case "$enableval" in
39531 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39532 $as_echo "yes" >&6; }
39536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39537 $as_echo "no" >&6; }
39541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
39542 $as_echo "$soname_bump" >&6; }
39546 if test x$soname_bump = xyes; then
39548 SONAME_BUMP_FALSE='#'
39550 SONAME_BUMP_TRUE='#'
39564 if test x$cross_compiling = xyes; then
39565 CROSSCOMPILING_TRUE=
39566 CROSSCOMPILING_FALSE='#'
39568 CROSSCOMPILING_TRUE='#'
39569 CROSSCOMPILING_FALSE=
39573 ENABLE_SHARED="$enable_shared"
39576 ENABLE_STATIC="$enable_static"
39581 if test "x$OPENSSL_ENABLED" = "x1"; then
39582 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39583 elif test -n "$SSL_ENABLED"; then
39584 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39586 if test "x$IPV6_ENABLED" = "x1"; then
39587 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
39589 if test "x$USE_UNIX_SOCKETS" = "x1"; then
39590 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
39592 if test "x$HAVE_LIBZ" = "x1"; then
39593 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
39595 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
39596 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
39598 if test "x$IDN_ENABLED" = "x1"; then
39599 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
39601 if test "x$USE_WINDOWS_SSPI" = "x1"; then
39602 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
39605 if test "x$HAVE_GSSAPI" = "x1"; then
39606 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
39609 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39610 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39611 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
39614 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39615 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39616 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
39619 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
39620 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39621 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39622 -o "x$DARWINSSL_ENABLED" = "x1"; then
39623 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
39625 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
39626 "x$NTLM_WB_ENABLED" = "x1"; then
39627 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
39632 if test "x$USE_TLS_SRP" = "x1"; then
39633 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
39636 if test "x$USE_NGHTTP2" = "x1"; then
39637 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
39642 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39643 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
39644 if test "x$SSL_ENABLED" = "x1"; then
39645 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
39648 if test "x$CURL_DISABLE_FTP" != "x1"; then
39649 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
39650 if test "x$SSL_ENABLED" = "x1"; then
39651 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
39654 if test "x$CURL_DISABLE_FILE" != "x1"; then
39655 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
39657 if test "x$CURL_DISABLE_TELNET" != "x1"; then
39658 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
39660 if test "x$CURL_DISABLE_LDAP" != "x1"; then
39661 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
39662 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
39663 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
39664 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
39665 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
39669 if test "x$CURL_DISABLE_DICT" != "x1"; then
39670 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
39672 if test "x$CURL_DISABLE_TFTP" != "x1"; then
39673 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
39675 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
39676 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
39678 if test "x$CURL_DISABLE_POP3" != "x1"; then
39679 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
39680 if test "x$SSL_ENABLED" = "x1"; then
39681 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
39684 if test "x$CURL_DISABLE_IMAP" != "x1"; then
39685 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
39686 if test "x$SSL_ENABLED" = "x1"; then
39687 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
39690 if test "x$CURL_DISABLE_SMB" != "x1" \
39691 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
39692 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39693 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39694 -o "x$DARWINSSL_ENABLED" = "x1" \); then
39695 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
39696 if test "x$SSL_ENABLED" = "x1"; then
39697 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
39700 if test "x$CURL_DISABLE_SMTP" != "x1"; then
39701 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
39702 if test "x$SSL_ENABLED" = "x1"; then
39703 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
39706 if test "x$USE_LIBSSH2" = "x1"; then
39707 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
39708 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
39710 if test "x$CURL_DISABLE_RTSP" != "x1"; then
39711 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
39713 if test "x$USE_LIBRTMP" = "x1"; then
39714 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
39717 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
39728 squeeze LIBCURL_LIBS
39729 squeeze CURL_NETWORK_LIBS
39730 squeeze CURL_NETWORK_AND_TIME_LIBS
39732 squeeze SUPPORT_FEATURES
39733 squeeze SUPPORT_PROTOCOLS
39738 for xc_word in $LIBS; do
39744 xc_bad_var_libs=yes
39748 if test $xc_bad_var_libs = yes; then
39749 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
39750 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
39751 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
39752 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
39756 xc_bad_var_ldflags=no
39757 for xc_word in $LDFLAGS; do
39760 xc_bad_var_ldflags=yes
39763 xc_bad_var_ldflags=yes
39766 xc_bad_var_ldflags=yes
39769 xc_bad_var_ldflags=yes
39773 if test $xc_bad_var_ldflags = yes; then
39774 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
39775 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
39776 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
39777 for xc_word in $LDFLAGS; do
39780 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39781 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39784 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39785 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39788 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39789 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39792 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39793 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39800 xc_bad_var_cppflags=no
39801 for xc_word in $CPPFLAGS; do
39804 xc_bad_var_cppflags=yes
39806 -L* | --library-path=*)
39807 xc_bad_var_cppflags=yes
39810 xc_bad_var_cppflags=yes
39814 if test $xc_bad_var_cppflags = yes; then
39815 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
39816 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
39817 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
39818 for xc_word in $CPPFLAGS; do
39821 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39822 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39824 -L* | --library-path=*)
39825 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39826 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39829 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39830 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39837 xc_bad_var_cflags=no
39838 for xc_word in $CFLAGS; do
39841 xc_bad_var_cflags=yes
39844 xc_bad_var_cflags=yes
39847 xc_bad_var_cflags=yes
39850 xc_bad_var_cflags=yes
39852 -L* | --library-path=*)
39853 xc_bad_var_cflags=yes
39856 xc_bad_var_cflags=yes
39860 if test $xc_bad_var_cflags = yes; then
39861 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
39862 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
39863 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
39864 for xc_word in $CFLAGS; do
39867 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39868 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39871 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39872 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39875 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39876 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39879 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39880 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39882 -L* | --library-path=*)
39883 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39884 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39887 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39888 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39894 if test $xc_bad_var_libs = yes ||
39895 test $xc_bad_var_cflags = yes ||
39896 test $xc_bad_var_ldflags = yes ||
39897 test $xc_bad_var_cppflags = yes; then
39898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
39899 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
39903 if test "x$want_curldebug_assumed" = "xyes" &&
39904 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
39905 ac_configure_args="$ac_configure_args --enable-curldebug"
39908 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 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"
39910 cat >confcache <<\_ACEOF
39911 # This file is a shell script that caches the results of configure
39912 # tests run on this system so they can be shared between configure
39913 # scripts and configure runs, see configure's option --config-cache.
39914 # It is not useful on other systems. If it contains results you don't
39915 # want to keep, you may remove or edit it.
39917 # config.status only pays attention to the cache file if you give it
39918 # the --recheck option to rerun configure.
39920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39922 # following values.
39926 # The following way of writing the cache mishandles newlines in values,
39927 # but we know of no workaround that is simple, portable, and efficient.
39928 # So, we kill variables containing newlines.
39929 # Ultrix sh set writes to stderr and can't be redirected directly,
39930 # and sets the high bit in the cache file unless we assign to the vars.
39932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39933 eval ac_val=\$$ac_var
39937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39941 _ | IFS | as_nl) ;; #(
39942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39943 *) { eval $ac_var=; unset $ac_var;} ;;
39949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39950 *${as_nl}ac_space=\ *)
39951 # `set' does not quote correctly, so add quotes: double-quote
39952 # substitution turns \\\\ into \\, and sed turns \\ into \.
39955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39958 # `set' quotes correctly as required by POSIX, so do not add quotes.
39959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39973 if test -w "$cache_file"; then
39974 if test "x$cache_file" != "x/dev/null"; then
39975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39976 $as_echo "$as_me: updating cache $cache_file" >&6;}
39977 if test ! -f "$cache_file" || test -h "$cache_file"; then
39978 cat confcache >"$cache_file"
39980 case $cache_file in #(
39982 mv -f confcache "$cache_file"$$ &&
39983 mv -f "$cache_file"$$ "$cache_file" ;; #(
39985 mv -f confcache "$cache_file" ;;
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39997 # Let make expand exec_prefix.
39998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40000 DEFS=-DHAVE_CONFIG_H
40005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40006 # 1. Remove the extension, and $U if already installed.
40007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
40009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
40010 # will be set to the directory where LIBOBJS objects are built.
40011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40014 LIBOBJS=$ac_libobjs
40016 LTLIBOBJS=$ac_ltlibobjs
40019 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
40020 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
40021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
40024 $as_echo_n "checking that generated files are newer than configure... " >&6; }
40025 if test -n "$am_sleep_pid"; then
40026 # Hide warnings about reused PIDs.
40027 wait $am_sleep_pid 2>/dev/null
40029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
40030 $as_echo "done" >&6; }
40031 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40032 as_fn_error $? "conditional \"AMDEP\" was never defined.
40033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40035 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40036 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
40037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40039 if test -n "$EXEEXT"; then
40041 am__EXEEXT_FALSE='#'
40043 am__EXEEXT_TRUE='#'
40047 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
40048 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
40049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40051 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
40052 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
40053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40055 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
40056 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
40057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40059 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
40060 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
40061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40063 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
40064 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
40065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40067 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
40068 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
40069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40071 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
40072 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
40073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40075 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
40076 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
40077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40079 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
40080 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
40081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40083 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
40084 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
40085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40087 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
40088 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
40089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40091 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
40092 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
40093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40095 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
40096 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
40097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40099 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
40100 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
40101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40103 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
40104 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
40105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40107 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
40108 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
40109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40112 : "${CONFIG_STATUS=./config.status}"
40114 ac_clean_files_save=$ac_clean_files
40115 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
40117 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
40119 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
40121 # Generated by $as_me.
40122 # Run this file to recreate the current configuration.
40123 # Compiler output produced by configure, useful for debugging
40124 # configure, is in config.log if it exists.
40127 ac_cs_recheck=false
40130 SHELL=\${CONFIG_SHELL-$SHELL}
40133 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
40134 ## -------------------- ##
40135 ## M4sh Initialization. ##
40136 ## -------------------- ##
40138 # Be more Bourne compatible
40139 DUALCASE=1; export DUALCASE # for MKS sh
40140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40143 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
40144 # is contrary to our usage. Disable this feature.
40145 alias -g '${1+"$@"}'='"$@"'
40146 setopt NO_GLOB_SUBST
40148 case `(set -o) 2>/dev/null` in #(
40160 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40161 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40162 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40164 # Prefer a ksh shell builtin over an external printf program on Solaris,
40165 # but without wasting forks for bash or zsh.
40166 if test -z "$BASH_VERSION$ZSH_VERSION" \
40167 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
40168 as_echo='print -r --'
40169 as_echo_n='print -rn --'
40170 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
40171 as_echo='printf %s\n'
40172 as_echo_n='printf %s'
40174 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
40175 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
40176 as_echo_n='/usr/ucb/echo -n'
40178 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
40179 as_echo_n_body='eval
40183 expr "X$arg" : "X\\(.*\\)$as_nl";
40184 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
40186 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
40188 export as_echo_n_body
40189 as_echo_n='sh -c $as_echo_n_body as_echo'
40191 export as_echo_body
40192 as_echo='sh -c $as_echo_body as_echo'
40198 # We need space, tab and new line, in precisely that order. Quoting is
40199 # there to prevent editors from complaining about space-tab.
40200 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40201 # splitting by setting IFS to empty value.)
40204 # Find who we are. Look in the path if we contain no directory separator.
40207 *[\\/]* ) as_myself=$0 ;;
40208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40209 for as_dir in $PATH
40212 test -z "$as_dir" && as_dir=.
40213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40219 # We did not find ourselves, most probably we were run as `sh COMMAND'
40220 # in which case we are not to be found in the path.
40221 if test "x$as_myself" = x; then
40224 if test ! -f "$as_myself"; then
40225 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40229 # Unset variables that we do not need and which cause bugs (e.g. in
40230 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
40231 # suppresses any "Segmentation fault" message there. '((' could
40232 # trigger a bug in pdksh 5.2.14.
40233 for as_var in BASH_ENV ENV MAIL MAILPATH
40234 do eval test x\${$as_var+set} = xset \
40235 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40248 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40251 # as_fn_error STATUS ERROR [LINENO LOG_FD]
40252 # ----------------------------------------
40253 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
40254 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
40255 # script with STATUS, using 1 if that was 0.
40258 as_status=$1; test $as_status -eq 0 && as_status=1
40260 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
40261 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
40263 $as_echo "$as_me: error: $2" >&2
40264 as_fn_exit $as_status
40268 # as_fn_set_status STATUS
40269 # -----------------------
40270 # Set $? to STATUS, without forking.
40271 as_fn_set_status ()
40274 } # as_fn_set_status
40276 # as_fn_exit STATUS
40277 # -----------------
40278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
40282 as_fn_set_status $1
40288 # Portably unset VAR.
40291 { eval $1=; unset $1;}
40293 as_unset=as_fn_unset
40294 # as_fn_append VAR VALUE
40295 # ----------------------
40296 # Append the text in VALUE to the end of the definition contained in VAR. Take
40297 # advantage of any shell optimizations that allow amortized linear growth over
40298 # repeated appends, instead of the typical quadratic growth present in naive
40300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
40301 eval 'as_fn_append ()
40312 # as_fn_arith ARG...
40313 # ------------------
40314 # Perform arithmetic evaluation on the ARGs, and store the result in the
40315 # global $as_val. Take advantage of shells that can avoid forks. The arguments
40316 # must be portable across $(()) and expr.
40317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
40318 eval 'as_fn_arith ()
40325 as_val=`expr "$@" || test $? -eq 1`
40330 if expr a : '\(a\)' >/dev/null 2>&1 &&
40331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
40337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40338 as_basename=basename
40343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40349 as_me=`$as_basename -- "$0" ||
40350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40351 X"$0" : 'X\(//\)$' \| \
40352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40354 sed '/^.*\/\([^/][^/]*\)\/*$/{
40368 # Avoid depending upon Character Ranges.
40369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40372 as_cr_digits='0123456789'
40373 as_cr_alnum=$as_cr_Letters$as_cr_digits
40375 ECHO_C= ECHO_N= ECHO_T=
40376 case `echo -n x` in #(((((
40378 case `echo 'xy\c'` in
40379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
40381 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
40388 rm -f conf$$ conf$$.exe conf$$.file
40389 if test -d conf$$.dir; then
40390 rm -f conf$$.dir/conf$$.file
40393 mkdir conf$$.dir 2>/dev/null
40395 if (echo >conf$$.file) 2>/dev/null; then
40396 if ln -s conf$$.file conf$$ 2>/dev/null; then
40398 # ... but there are two gotchas:
40399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40401 # In both cases, we have to default to `cp -pR'.
40402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40404 elif ln conf$$.file conf$$ 2>/dev/null; then
40412 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40413 rmdir conf$$.dir 2>/dev/null
40418 # Create "$as_dir" as a directory, including parents if necessary.
40423 -*) as_dir=./$as_dir;;
40425 test -d "$as_dir" || eval $as_mkdir_p || {
40429 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40430 *) as_qdir=$as_dir;;
40432 as_dirs="'$as_qdir' $as_dirs"
40433 as_dir=`$as_dirname -- "$as_dir" ||
40434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40435 X"$as_dir" : 'X\(//\)[^/]' \| \
40436 X"$as_dir" : 'X\(//\)$' \| \
40437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40438 $as_echo X"$as_dir" |
40439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40443 /^X\(\/\/\)[^/].*/{
40456 test -d "$as_dir" && break
40458 test -z "$as_dirs" || eval "mkdir $as_dirs"
40459 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
40463 if mkdir -p . 2>/dev/null; then
40464 as_mkdir_p='mkdir -p "$as_dir"'
40466 test -d ./-p && rmdir ./-p
40471 # as_fn_executable_p FILE
40472 # -----------------------
40473 # Test if FILE is an executable regular file.
40474 as_fn_executable_p ()
40476 test -f "$1" && test -x "$1"
40477 } # as_fn_executable_p
40478 as_test_x='test -x'
40479 as_executable_p=as_fn_executable_p
40481 # Sed expression to map a string onto a valid CPP name.
40482 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40484 # Sed expression to map a string onto a valid variable name.
40485 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40489 ## ----------------------------------- ##
40490 ## Main body of $CONFIG_STATUS script. ##
40491 ## ----------------------------------- ##
40493 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
40495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40496 # Save the log message, to keep $0 and so on meaningful, and to
40497 # report actual input values of CONFIG_FILES etc. instead of their
40498 # values after options handling.
40500 This file was extended by curl $as_me -, which was
40501 generated by GNU Autoconf 2.69. Invocation command line was
40503 CONFIG_FILES = $CONFIG_FILES
40504 CONFIG_HEADERS = $CONFIG_HEADERS
40505 CONFIG_LINKS = $CONFIG_LINKS
40506 CONFIG_COMMANDS = $CONFIG_COMMANDS
40509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40514 case $ac_config_files in *"
40515 "*) set x $ac_config_files; shift; ac_config_files=$*;;
40518 case $ac_config_headers in *"
40519 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
40523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40524 # Files that config.status was made for.
40525 config_files="$ac_config_files"
40526 config_headers="$ac_config_headers"
40527 config_commands="$ac_config_commands"
40531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40533 \`$as_me' instantiates files and other configuration actions
40534 from templates according to the current configuration. Unless the files
40535 and actions are specified as TAGs, all are instantiated by default.
40537 Usage: $0 [OPTION]... [TAG]...
40539 -h, --help print this help, then exit
40540 -V, --version print version number and configuration settings, then exit
40541 --config print configuration, then exit
40542 -q, --quiet, --silent
40543 do not print progress messages
40544 -d, --debug don't remove temporary files
40545 --recheck update $as_me by reconfiguring in the same conditions
40546 --file=FILE[:TEMPLATE]
40547 instantiate the configuration file FILE
40548 --header=FILE[:TEMPLATE]
40549 instantiate the configuration header FILE
40551 Configuration files:
40554 Configuration headers:
40557 Configuration commands:
40560 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
40563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40564 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40566 curl config.status -
40567 configured by $0, generated by GNU Autoconf 2.69,
40568 with options \\"\$ac_cs_config\\"
40570 Copyright (C) 2012 Free Software Foundation, Inc.
40571 This config.status script is free software; the Free Software Foundation
40572 gives unlimited permission to copy, distribute and modify it."
40579 test -n "\$AWK" || AWK=awk
40582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40583 # The default lists apply if the user does not specify any file.
40589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40590 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40594 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40606 # Handling of the options.
40607 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40609 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40610 $as_echo "$ac_cs_version"; exit ;;
40611 --config | --confi | --conf | --con | --co | --c )
40612 $as_echo "$ac_cs_config"; exit ;;
40613 --debug | --debu | --deb | --de | --d | -d )
40615 --file | --fil | --fi | --f )
40618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40619 '') as_fn_error $? "missing file argument" ;;
40621 as_fn_append CONFIG_FILES " '$ac_optarg'"
40622 ac_need_defaults=false;;
40623 --header | --heade | --head | --hea )
40626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40628 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40629 ac_need_defaults=false;;
40631 # Conflict between --help and --header
40632 as_fn_error $? "ambiguous option: \`$1'
40633 Try \`$0 --help' for more information.";;
40634 --help | --hel | -h )
40635 $as_echo "$ac_cs_usage"; exit ;;
40636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40637 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40640 # This is an error.
40641 -*) as_fn_error $? "unrecognized option: \`$1'
40642 Try \`$0 --help' for more information." ;;
40644 *) as_fn_append ac_config_targets " $1"
40645 ac_need_defaults=false ;;
40651 ac_configure_extra_args=
40653 if $ac_cs_silent; then
40655 ac_configure_extra_args="$ac_configure_extra_args --silent"
40659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40660 if \$ac_cs_recheck; then
40661 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40664 CONFIG_SHELL='$SHELL'
40665 export CONFIG_SHELL
40670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40675 ## Running $as_me. ##
40681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40685 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40688 # The HP-UX ksh and POSIX shell print the target directory to stdout
40689 # if CDPATH is set.
40690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40692 sed_quote_subst='$sed_quote_subst'
40693 double_quote_subst='$double_quote_subst'
40694 delay_variable_subst='$delay_variable_subst'
40695 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40696 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40697 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40698 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40699 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40700 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40701 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40702 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40703 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40704 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40705 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40706 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40707 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40708 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40709 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40710 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40711 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40712 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40713 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40714 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40715 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40716 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40717 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40718 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40719 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40720 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40721 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40722 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40723 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40724 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40725 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40726 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40727 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40728 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40729 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40730 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40731 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40732 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40733 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40734 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40735 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40736 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40737 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40738 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40739 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40740 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40741 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40742 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40743 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40744 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40745 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40746 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40747 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40748 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40749 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40750 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40751 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40752 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"`'
40753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40755 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40756 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40757 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40758 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40759 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40760 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40761 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40762 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40763 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40764 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40765 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40766 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40767 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40768 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40769 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40770 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40771 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40772 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40773 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40774 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40775 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40776 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40777 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40778 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40779 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40780 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40781 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40782 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40783 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40784 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40785 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40786 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40787 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40788 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40789 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40790 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40791 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40792 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40793 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40794 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40795 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40796 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40797 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40798 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40799 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40800 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40801 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40802 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40803 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40804 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40805 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40806 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40807 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40808 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40809 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40810 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40811 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40812 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40813 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40814 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40815 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40816 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40817 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40818 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40819 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40820 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40821 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40822 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40823 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40824 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40825 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40828 LTCFLAGS='$LTCFLAGS'
40829 compiler='$compiler_DEFAULT'
40831 # A function that is used when there is no print builtin or printf.
40832 func_fallback_echo ()
40834 eval 'cat <<_LTECHO_EOF
40839 # Quote evaled strings.
40856 deplibs_check_method \
40860 sharedlib_from_linklib_cmd \
40863 archiver_list_spec \
40869 lt_cv_sys_global_symbol_pipe \
40870 lt_cv_sys_global_symbol_to_cdecl \
40871 lt_cv_sys_global_symbol_to_c_name_address \
40872 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40873 nm_file_list_spec \
40874 lt_prog_compiler_no_builtin_flag \
40875 lt_prog_compiler_pic \
40876 lt_prog_compiler_wl \
40877 lt_prog_compiler_static \
40878 lt_cv_prog_compiler_c_o \
40887 export_dynamic_flag_spec \
40888 whole_archive_flag_spec \
40889 compiler_needs_object \
40891 allow_undefined_flag \
40892 no_undefined_flag \
40893 hardcode_libdir_flag_spec \
40894 hardcode_libdir_separator \
40898 variables_saved_for_relink \
40900 library_names_spec \
40902 install_override_mode \
40906 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40907 *[\\\\\\\`\\"\\\$]*)
40908 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40911 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40916 # Double-quote double-evaled strings.
40917 for var in reload_cmds \
40918 old_postinstall_cmds \
40919 old_postuninstall_cmds \
40921 extract_expsyms_cmds \
40922 old_archive_from_new_cmds \
40923 old_archive_from_expsyms_cmds \
40925 archive_expsym_cmds \
40927 module_expsym_cmds \
40928 export_symbols_cmds \
40932 postuninstall_cmds \
40934 sys_lib_search_path_spec \
40935 sys_lib_dlsearch_path_spec; do
40936 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40937 *[\\\\\\\`\\"\\\$]*)
40938 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40941 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40946 ac_aux_dir='$ac_aux_dir'
40947 xsi_shell='$xsi_shell'
40948 lt_shell_append='$lt_shell_append'
40950 # See if we are running on zsh, and set the options which allow our
40951 # commands through without removal of \ escapes INIT.
40952 if test -n "\${ZSH_VERSION+set}" ; then
40953 setopt NO_GLOB_SUBST
40959 TIMESTAMP='$TIMESTAMP'
40968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40970 # Handling of arguments.
40971 for ac_config_target in $ac_config_targets
40973 case $ac_config_target in
40974 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
40975 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40976 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40977 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40978 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40979 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40980 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40981 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
40982 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
40983 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40984 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
40985 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40986 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40987 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
40988 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40989 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
40990 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
40991 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
40992 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
40993 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
40994 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
40995 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
40996 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
40997 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
40998 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
40999 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
41000 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
41001 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
41002 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
41003 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
41004 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
41005 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
41006 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
41007 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
41008 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
41009 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
41010 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
41012 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41017 # If the user did not use the arguments to specify the items to instantiate,
41018 # then the envvar interface is used. Set only those that are not.
41019 # We use the long form for the default assignment because of an extremely
41020 # bizarre bug on SunOS 4.1.3.
41021 if $ac_need_defaults; then
41022 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41023 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41024 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41027 # Have a temporary directory for convenience. Make it in the build tree
41028 # simply because there is no reason against having it here, and in addition,
41029 # creating and moving files from /tmp can sometimes cause problems.
41030 # Hook for its removal unless debugging.
41031 # Note that there is a small window in which the directory will not be cleaned:
41032 # after its creation but before its name has been assigned to `$tmp'.
41036 trap 'exit_status=$?
41037 : "${ac_tmp:=$tmp}"
41038 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
41040 trap 'as_fn_exit 1' 1 2 13 15
41042 # Create a (secure) tmp directory for tmp files.
41045 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41049 tmp=./conf$$-$RANDOM
41050 (umask 077 && mkdir "$tmp")
41051 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
41054 # Set up the scripts for CONFIG_FILES section.
41055 # No need to generate them if there are no CONFIG_FILES.
41056 # This happens for instance with `./config.status config.h'.
41057 if test -n "$CONFIG_FILES"; then
41060 ac_cr=`echo X | tr X '\015'`
41061 # On cygwin, bash can eat \r inside `` if the user requested igncr.
41062 # But we know of no other shell where ac_cr would be empty at this
41063 # point, so we can use a bashism as a fallback.
41064 if test "x$ac_cr" = x; then
41065 eval ac_cr=\$\'\\r\'
41067 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
41068 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
41071 ac_cs_awk_cr=$ac_cr
41074 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
41079 echo "cat >conf$$subs.awk <<_ACEOF" &&
41080 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
41082 } >conf$$subs.sh ||
41083 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41084 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
41086 for ac_last_try in false false false false false :; do
41087 . ./conf$$subs.sh ||
41088 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41090 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
41091 if test $ac_delim_n = $ac_delim_num; then
41093 elif $ac_last_try; then
41094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41096 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41099 rm -f conf$$subs.sh
41101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41102 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
41106 s/^/S["/; s/!.*/"]=/
41116 s/\(.\{148\}\)..*/\1/
41118 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
41123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41130 s/\(.\{148\}\)..*/\1/
41132 s/["\\]/\\&/g; s/^/"/; s/$/"/
41136 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41141 ' <conf$$subs.awk | sed '
41146 ' >>$CONFIG_STATUS || ac_write_fail=1
41147 rm -f conf$$subs.awk
41148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41150 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
41151 for (key in S) S_is_set[key] = 1
41157 nfields = split(line, field, "@")
41159 len = length(field[1])
41160 for (i = 2; i < nfields; i++) {
41162 keylen = length(key)
41163 if (S_is_set[key]) {
41165 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
41166 len += length(value) + length(field[++i])
41177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41178 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
41179 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
41182 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
41183 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
41186 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
41187 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
41188 # trailing colons and then remove the whole line if VPATH becomes empty
41189 # (actually we leave an empty line to preserve line numbers).
41190 if test "x$srcdir" = x.; then
41191 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
41209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41210 fi # test -n "$CONFIG_FILES"
41212 # Set up the scripts for CONFIG_HEADERS section.
41213 # No need to generate them if there are no CONFIG_HEADERS.
41214 # This happens for instance with `./config.status Makefile'.
41215 if test -n "$CONFIG_HEADERS"; then
41216 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
41220 # Transform confdefs.h into an awk script `defines.awk', embedded as
41221 # here-document in config.status, that substitutes the proper values into
41222 # config.h.in to produce config.h.
41224 # Create a delimiter string that does not exist in confdefs.h, to ease
41225 # handling of long lines.
41227 for ac_last_try in false false :; do
41228 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
41229 if test -z "$ac_tt"; then
41231 elif $ac_last_try; then
41232 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
41234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41238 # For the awk script, D is an array of macro values keyed by name,
41239 # likewise P contains macro parameters if any. Preserve backslash
41240 # newline sequences.
41242 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41244 s/.\{148\}/&'"$ac_delim"'/g
41247 s/^[ ]*#[ ]*define[ ][ ]*/ /
41254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
41256 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
41260 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
41261 D["\1"]=" \3\\\\\\n"\\/p
41263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
41268 s/.\{148\}/&'"$ac_delim"'/g
41273 s/["\\]/\\&/g; s/^/"/; s/$/"/p
41276 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
41278 ' <confdefs.h | sed '
41279 s/'"$ac_delim"'/"\\\
41280 "/g' >>$CONFIG_STATUS || ac_write_fail=1
41282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41283 for (key in D) D_is_set[key] = 1
41286 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
41288 split(line, arg, " ")
41289 if (arg[1] == "#") {
41293 defundef = substr(arg[1], 2)
41296 split(mac1, mac2, "(") #)
41298 prefix = substr(line, 1, index(line, defundef) - 1)
41299 if (D_is_set[macro]) {
41300 # Preserve the white space surrounding the "#".
41301 print prefix "define", macro P[macro] D[macro]
41304 # Replace #undef with comments. This is necessary, for example,
41305 # in the case of _POSIX_SOURCE, which is predefined and required
41306 # on some systems where configure will not decide to define it.
41307 if (defundef == "undef") {
41308 print "/*", prefix defundef, macro, "*/"
41316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41317 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
41318 fi # test -n "$CONFIG_HEADERS"
41321 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
41326 :[FHLC]) ac_mode=$ac_tag; continue;;
41328 case $ac_mode$ac_tag in
41330 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
41331 :[FH]-) ac_tag=-:-;;
41332 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41349 -) ac_f="$ac_tmp/stdin";;
41350 *) # Look for the file first in the build tree, then in the source tree
41351 # (if the path is not absolute). The absolute path cannot be DOS-style,
41352 # because $ac_f cannot contain `:'.
41356 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41358 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
41360 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
41361 as_fn_append ac_file_inputs " '$ac_f'"
41364 # Let's still pretend it is `configure' which instantiates (i.e., don't
41365 # use $as_me), people would be surprised to read:
41366 # /* config.h. Generated by config.status. */
41367 configure_input='Generated from '`
41368 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
41370 if test x"$ac_file" != x-; then
41371 configure_input="$ac_file. $configure_input"
41372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
41373 $as_echo "$as_me: creating $ac_file" >&6;}
41375 # Neutralize special characters interpreted by sed in replacement strings.
41376 case $configure_input in #(
41377 *\&* | *\|* | *\\* )
41378 ac_sed_conf_input=`$as_echo "$configure_input" |
41379 sed 's/[\\\\&|]/\\\\&/g'`;; #(
41380 *) ac_sed_conf_input=$configure_input;;
41384 *:-:* | *:-) cat >"$ac_tmp/stdin" \
41385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
41390 ac_dir=`$as_dirname -- "$ac_file" ||
41391 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41392 X"$ac_file" : 'X\(//\)[^/]' \| \
41393 X"$ac_file" : 'X\(//\)$' \| \
41394 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41395 $as_echo X"$ac_file" |
41396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41400 /^X\(\/\/\)[^/].*/{
41413 as_dir="$ac_dir"; as_fn_mkdir_p
41417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41420 # A ".." for each directory in $ac_dir_suffix.
41421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41422 case $ac_top_builddir_sub in
41423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41427 ac_abs_top_builddir=$ac_pwd
41428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41429 # for backward compatibility:
41430 ac_top_builddir=$ac_top_build_prefix
41433 .) # We are building in place.
41435 ac_top_srcdir=$ac_top_builddir_sub
41436 ac_abs_top_srcdir=$ac_pwd ;;
41437 [\\/]* | ?:[\\/]* ) # Absolute name.
41438 ac_srcdir=$srcdir$ac_dir_suffix;
41439 ac_top_srcdir=$srcdir
41440 ac_abs_top_srcdir=$srcdir ;;
41441 *) # Relative name.
41442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41443 ac_top_srcdir=$ac_top_build_prefix$srcdir
41444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41456 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41457 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41459 ac_MKDIR_P=$MKDIR_P
41461 [\\/$]* | ?:[\\/]* ) ;;
41462 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41467 # If the template does not know about datarootdir, expand it.
41468 # FIXME: This hack should be removed a few years after 2.60.
41469 ac_datarootdir_hack=; ac_datarootdir_seen=
41480 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
41481 *datarootdir*) ac_datarootdir_seen=yes;;
41482 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41484 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41487 ac_datarootdir_hack='
41488 s&@datadir@&$datadir&g
41489 s&@docdir@&$docdir&g
41490 s&@infodir@&$infodir&g
41491 s&@localedir@&$localedir&g
41492 s&@mandir@&$mandir&g
41493 s&\\\${datarootdir}&$datarootdir&g' ;;
41497 # Neutralize VPATH when `$srcdir' = `.'.
41498 # Shell code in configure.ac might set extrasub.
41499 # FIXME: do we really want to maintain this feature?
41500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41501 ac_sed_extra="$ac_vpsub
41504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41507 s|@configure_input@|$ac_sed_conf_input|;t t
41508 s&@top_builddir@&$ac_top_builddir_sub&;t t
41509 s&@top_build_prefix@&$ac_top_build_prefix&;t t
41510 s&@srcdir@&$ac_srcdir&;t t
41511 s&@abs_srcdir@&$ac_abs_srcdir&;t t
41512 s&@top_srcdir@&$ac_top_srcdir&;t t
41513 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
41514 s&@builddir@&$ac_builddir&;t t
41515 s&@abs_builddir@&$ac_abs_builddir&;t t
41516 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
41517 s&@INSTALL@&$ac_INSTALL&;t t
41518 s&@MKDIR_P@&$ac_MKDIR_P&;t t
41519 $ac_datarootdir_hack
41521 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
41522 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41524 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41525 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
41526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
41527 "$ac_tmp/out"`; test -z "$ac_out"; } &&
41528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41529 which seems to be undefined. Please make sure it is defined" >&5
41530 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41531 which seems to be undefined. Please make sure it is defined" >&2;}
41533 rm -f "$ac_tmp/stdin"
41535 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
41536 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
41538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41544 if test x"$ac_file" != x-; then
41546 $as_echo "/* $configure_input */" \
41547 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
41548 } >"$ac_tmp/config.h" \
41549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41550 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
41551 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
41552 $as_echo "$as_me: $ac_file is unchanged" >&6;}
41555 mv "$ac_tmp/config.h" "$ac_file" \
41556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41559 $as_echo "/* $configure_input */" \
41560 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
41561 || as_fn_error $? "could not create -" "$LINENO" 5
41563 # Compute "$ac_file"'s index in $config_headers.
41566 for _am_header in $config_headers :; do
41567 case $_am_header in
41568 $_am_arg | $_am_arg:* )
41571 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41574 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41575 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41576 X"$_am_arg" : 'X\(//\)[^/]' \| \
41577 X"$_am_arg" : 'X\(//\)$' \| \
41578 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41579 $as_echo X"$_am_arg" |
41580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41584 /^X\(\/\/\)[^/].*/{
41596 s/.*/./; q'`/stamp-h$_am_stamp_count
41599 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41600 $as_echo "$as_me: executing $ac_file commands" >&6;}
41605 case $ac_file$ac_mode in
41606 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41607 # Older Autoconf quotes --file arguments for eval, but not when files
41608 # are listed without --file. Let's play safe and only enable the eval
41609 # if we detect the quoting.
41610 case $CONFIG_FILES in
41611 *\'*) eval set x "$CONFIG_FILES" ;;
41612 *) set x $CONFIG_FILES ;;
41617 # Strip MF so we end up with the name of the file.
41618 mf=`echo "$mf" | sed -e 's/:.*$//'`
41619 # Check whether this is an Automake generated Makefile or not.
41620 # We used to match only the files named 'Makefile.in', but
41621 # some people rename them; so instead we look at the file content.
41622 # Grep'ing the first line is not enough: some people post-process
41623 # each Makefile.in and add a new line on top of each file to say so.
41624 # Grep'ing the whole file is not good either: AIX grep has a line
41625 # limit of 2048, but all sed's we know have understand at least 4000.
41626 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41627 dirpart=`$as_dirname -- "$mf" ||
41628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41629 X"$mf" : 'X\(//\)[^/]' \| \
41630 X"$mf" : 'X\(//\)$' \| \
41631 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41637 /^X\(\/\/\)[^/].*/{
41653 # Extract the definition of DEPDIR, am__include, and am__quote
41654 # from the Makefile without running 'make'.
41655 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41656 test -z "$DEPDIR" && continue
41657 am__include=`sed -n 's/^am__include = //p' < "$mf"`
41658 test -z "$am__include" && continue
41659 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41660 # Find all dependency output files, they are included files with
41661 # $(DEPDIR) in their names. We invoke sed twice because it is the
41662 # simplest approach to changing $(DEPDIR) to its actual value in the
41664 for file in `sed -n "
41665 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
41667 # Make sure the directory exists.
41668 test -f "$dirpart/$file" && continue
41669 fdir=`$as_dirname -- "$file" ||
41670 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41671 X"$file" : 'X\(//\)[^/]' \| \
41672 X"$file" : 'X\(//\)$' \| \
41673 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41674 $as_echo X"$file" |
41675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41679 /^X\(\/\/\)[^/].*/{
41692 as_dir=$dirpart/$fdir; as_fn_mkdir_p
41693 # echo "creating $dirpart/$file"
41694 echo '# dummy' > "$dirpart/$file"
41701 # See if we are running on zsh, and set the options which allow our
41702 # commands through without removal of \ escapes.
41703 if test -n "${ZSH_VERSION+set}" ; then
41704 setopt NO_GLOB_SUBST
41707 cfgfile="${ofile}T"
41708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41711 cat <<_LT_EOF >> "$cfgfile"
41714 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
41715 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
41716 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41717 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
41719 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41720 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
41722 # Written by Gordon Matzigkeit, 1996
41724 # This file is part of GNU Libtool.
41726 # GNU Libtool is free software; you can redistribute it and/or
41727 # modify it under the terms of the GNU General Public License as
41728 # published by the Free Software Foundation; either version 2 of
41729 # the License, or (at your option) any later version.
41731 # As a special exception to the GNU General Public License,
41732 # if you distribute this file as part of a program or library that
41733 # is built using GNU Libtool, you may include this file under the
41734 # same distribution terms that you use for the rest of that program.
41736 # GNU Libtool is distributed in the hope that it will be useful,
41737 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41738 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41739 # GNU General Public License for more details.
41741 # You should have received a copy of the GNU General Public License
41742 # along with GNU Libtool; see the file COPYING. If not, a copy
41743 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
41744 # obtained by writing to the Free Software Foundation, Inc.,
41745 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41748 # The names of the tagged configurations supported by this script.
41751 # ### BEGIN LIBTOOL CONFIG
41753 # Which release of libtool.m4 was used?
41754 macro_version=$macro_version
41755 macro_revision=$macro_revision
41757 # Assembler program.
41760 # DLL creation program.
41761 DLLTOOL=$lt_DLLTOOL
41763 # Object dumper program.
41764 OBJDUMP=$lt_OBJDUMP
41766 # Whether or not to build shared libraries.
41767 build_libtool_libs=$enable_shared
41769 # Whether or not to build static libraries.
41770 build_old_libs=$enable_static
41772 # What type of objects to build.
41775 # Whether or not to optimize for fast installation.
41776 fast_install=$enable_fast_install
41778 # Shell to use when invoking shell scripts.
41781 # An echo program that protects backslashes.
41784 # The PATH separator for the build system.
41785 PATH_SEPARATOR=$lt_PATH_SEPARATOR
41788 host_alias=$host_alias
41792 # The build system.
41793 build_alias=$build_alias
41797 # A sed program that does not truncate output.
41800 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
41801 Xsed="\$SED -e 1s/^X//"
41803 # A grep program that handles long lines.
41809 # A literal string matcher.
41812 # A BSD- or MS-compatible name lister.
41815 # Whether we need soft or hard links.
41818 # What is the maximum length of a command?
41819 max_cmd_len=$max_cmd_len
41821 # Object file suffix (normally "o").
41824 # Executable file suffix (normally "").
41827 # whether the shell understands "unset".
41830 # turn spaces into newlines.
41833 # turn newlines into spaces.
41836 # convert \$build file names to \$host format.
41837 to_host_file_cmd=$lt_cv_to_host_file_cmd
41839 # convert \$build files to toolchain format.
41840 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41842 # Method to check whether dependent libraries are shared objects.
41843 deplibs_check_method=$lt_deplibs_check_method
41845 # Command to use when deplibs_check_method = "file_magic".
41846 file_magic_cmd=$lt_file_magic_cmd
41848 # How to find potential files when deplibs_check_method = "file_magic".
41849 file_magic_glob=$lt_file_magic_glob
41851 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41852 want_nocaseglob=$lt_want_nocaseglob
41854 # Command to associate shared and link libraries.
41855 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41860 # Flags to create an archive.
41861 AR_FLAGS=$lt_AR_FLAGS
41863 # How to feed a file listing to the archiver.
41864 archiver_list_spec=$lt_archiver_list_spec
41866 # A symbol stripping program.
41869 # Commands used to install an old-style archive.
41871 old_postinstall_cmds=$lt_old_postinstall_cmds
41872 old_postuninstall_cmds=$lt_old_postuninstall_cmds
41874 # Whether to use a lock for old archive extraction.
41875 lock_old_archive_extraction=$lock_old_archive_extraction
41880 # LTCC compiler flags.
41881 LTCFLAGS=$lt_CFLAGS
41883 # Take the output of nm and produce a listing of raw symbols and C names.
41884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41886 # Transform the output of nm in a proper C declaration.
41887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41889 # Transform the output of nm in a C name address pair.
41890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41892 # Transform the output of nm in a C name address pair when lib prefix is needed.
41893 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41895 # Specify filename containing input files for \$NM.
41896 nm_file_list_spec=$lt_nm_file_list_spec
41898 # The root where to search for dependent libraries,and in which our libraries should be installed.
41899 lt_sysroot=$lt_sysroot
41901 # The name of the directory that contains temporary libtool files.
41904 # Used to examine libraries when file_magic_cmd begins with "file".
41905 MAGIC_CMD=$MAGIC_CMD
41907 # Must we lock files when doing compilation?
41908 need_locks=$lt_need_locks
41911 MANIFEST_TOOL=$lt_MANIFEST_TOOL
41913 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41914 DSYMUTIL=$lt_DSYMUTIL
41916 # Tool to change global to local symbols on Mac OS X.
41919 # Tool to manipulate fat objects and archives on Mac OS X.
41922 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
41925 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41926 OTOOL64=$lt_OTOOL64
41928 # Old archive suffix (normally "a").
41931 # Shared library suffix (normally ".so").
41932 shrext_cmds=$lt_shrext_cmds
41934 # The commands to extract the exported symbol list from a shared archive.
41935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
41937 # Variables whose values should be saved in libtool wrapper scripts and
41938 # restored at link time.
41939 variables_saved_for_relink=$lt_variables_saved_for_relink
41941 # Do we need the "lib" prefix for modules?
41942 need_lib_prefix=$need_lib_prefix
41944 # Do we need a version for libraries?
41945 need_version=$need_version
41947 # Library versioning type.
41948 version_type=$version_type
41950 # Shared library runtime path variable.
41951 runpath_var=$runpath_var
41953 # Shared library path variable.
41954 shlibpath_var=$shlibpath_var
41956 # Is shlibpath searched before the hard-coded library search path?
41957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41959 # Format of library name prefix.
41960 libname_spec=$lt_libname_spec
41962 # List of archive names. First name is the real one, the rest are links.
41963 # The last name is the one that the linker finds with -lNAME
41964 library_names_spec=$lt_library_names_spec
41966 # The coded name of the library, if different from the real name.
41967 soname_spec=$lt_soname_spec
41969 # Permission mode override for installation of shared libraries.
41970 install_override_mode=$lt_install_override_mode
41972 # Command to use after installation of a shared archive.
41973 postinstall_cmds=$lt_postinstall_cmds
41975 # Command to use after uninstallation of a shared archive.
41976 postuninstall_cmds=$lt_postuninstall_cmds
41978 # Commands used to finish a libtool library installation in a directory.
41979 finish_cmds=$lt_finish_cmds
41981 # As "finish_cmds", except a single script fragment to be evaled but
41983 finish_eval=$lt_finish_eval
41985 # Whether we should hardcode library paths into libraries.
41986 hardcode_into_libs=$hardcode_into_libs
41988 # Compile-time system search path for libraries.
41989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41991 # Run-time system search path for libraries.
41992 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
41994 # Whether dlopen is supported.
41995 dlopen_support=$enable_dlopen
41997 # Whether dlopen of programs is supported.
41998 dlopen_self=$enable_dlopen_self
42000 # Whether dlopen of statically linked programs is supported.
42001 dlopen_self_static=$enable_dlopen_self_static
42003 # Commands to strip libraries.
42004 old_striplib=$lt_old_striplib
42005 striplib=$lt_striplib
42008 # The linker used to build libraries.
42011 # How to create reloadable object files.
42012 reload_flag=$lt_reload_flag
42013 reload_cmds=$lt_reload_cmds
42015 # Commands used to build an old-style archive.
42016 old_archive_cmds=$lt_old_archive_cmds
42018 # A language specific compiler.
42021 # Is the compiler the GNU compiler?
42024 # Compiler flag to turn off builtin functions.
42025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
42027 # Additional compiler flags for building library objects.
42028 pic_flag=$lt_lt_prog_compiler_pic
42030 # How to pass a linker flag through the compiler.
42031 wl=$lt_lt_prog_compiler_wl
42033 # Compiler flag to prevent dynamic linking.
42034 link_static_flag=$lt_lt_prog_compiler_static
42036 # Does compiler simultaneously support -c and -o options?
42037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
42039 # Whether or not to add -lc for building shared libraries.
42040 build_libtool_need_lc=$archive_cmds_need_lc
42042 # Whether or not to disallow shared libs when runtime libs are static.
42043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
42045 # Compiler flag to allow reflexive dlopens.
42046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
42048 # Compiler flag to generate shared objects directly from archives.
42049 whole_archive_flag_spec=$lt_whole_archive_flag_spec
42051 # Whether the compiler copes with passing no objects directly.
42052 compiler_needs_object=$lt_compiler_needs_object
42054 # Create an old-style archive from a shared archive.
42055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
42057 # Create a temporary old-style archive to link instead of a shared archive.
42058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
42060 # Commands used to build a shared archive.
42061 archive_cmds=$lt_archive_cmds
42062 archive_expsym_cmds=$lt_archive_expsym_cmds
42064 # Commands used to build a loadable module if different from building
42065 # a shared archive.
42066 module_cmds=$lt_module_cmds
42067 module_expsym_cmds=$lt_module_expsym_cmds
42069 # Whether we are building with GNU ld or not.
42070 with_gnu_ld=$lt_with_gnu_ld
42072 # Flag that allows shared libraries with undefined symbols to be built.
42073 allow_undefined_flag=$lt_allow_undefined_flag
42075 # Flag that enforces no undefined symbols.
42076 no_undefined_flag=$lt_no_undefined_flag
42078 # Flag to hardcode \$libdir into a binary during linking.
42079 # This must work even if \$libdir does not exist
42080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
42082 # Whether we need a single "-rpath" flag with a separated argument.
42083 hardcode_libdir_separator=$lt_hardcode_libdir_separator
42085 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42086 # DIR into the resulting binary.
42087 hardcode_direct=$hardcode_direct
42089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42090 # DIR into the resulting binary and the resulting library dependency is
42091 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
42092 # library is relocated.
42093 hardcode_direct_absolute=$hardcode_direct_absolute
42095 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42096 # into the resulting binary.
42097 hardcode_minus_L=$hardcode_minus_L
42099 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42100 # into the resulting binary.
42101 hardcode_shlibpath_var=$hardcode_shlibpath_var
42103 # Set to "yes" if building a shared library automatically hardcodes DIR
42104 # into the library and all subsequent libraries and executables linked
42106 hardcode_automatic=$hardcode_automatic
42108 # Set to yes if linker adds runtime paths of dependent libraries
42109 # to runtime path list.
42110 inherit_rpath=$inherit_rpath
42112 # Whether libtool must link a program against all its dependency libraries.
42113 link_all_deplibs=$link_all_deplibs
42115 # Set to "yes" if exported symbols are required.
42116 always_export_symbols=$always_export_symbols
42118 # The commands to list exported symbols.
42119 export_symbols_cmds=$lt_export_symbols_cmds
42121 # Symbols that should not be listed in the preloaded symbols.
42122 exclude_expsyms=$lt_exclude_expsyms
42124 # Symbols that must always be exported.
42125 include_expsyms=$lt_include_expsyms
42127 # Commands necessary for linking programs (against libraries) with templates.
42128 prelink_cmds=$lt_prelink_cmds
42130 # Commands necessary for finishing linking programs.
42131 postlink_cmds=$lt_postlink_cmds
42133 # Specify filename containing input files.
42134 file_list_spec=$lt_file_list_spec
42136 # How to hardcode a shared library path into an executable.
42137 hardcode_action=$hardcode_action
42139 # ### END LIBTOOL CONFIG
42145 cat <<\_LT_EOF >> "$cfgfile"
42146 # AIX sometimes has problems with the GCC collect2 program. For some
42147 # reason, if we set the COLLECT_NAMES environment variable, the problems
42148 # vanish in a puff of smoke.
42149 if test "X${COLLECT_NAMES+set}" != Xset; then
42151 export COLLECT_NAMES
42158 ltmain="$ac_aux_dir/ltmain.sh"
42161 # We use sed instead of cat because bash on DJGPP gets confused if
42162 # if finds mixed CR/LF and LF-only lines. Since sed operates in
42163 # text mode, it properly converts lines to CR/LF. This bash problem
42164 # is reportedly fixed, but why not run on old versions too?
42165 sed '$q' "$ltmain" >> "$cfgfile" \
42166 || (rm -f "$cfgfile"; exit 1)
42168 if test x"$xsi_shell" = xyes; then
42169 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
42173 \ */*) func_dirname_result="${1%/*}${2}" ;;\
42174 \ * ) func_dirname_result="${3}" ;;\
42176 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
42177 && mv -f "$cfgfile.tmp" "$cfgfile" \
42178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42179 test 0 -eq $? || _lt_function_replace_fail=:
42182 sed -e '/^func_basename ()$/,/^} # func_basename /c\
42185 \ func_basename_result="${1##*/}"\
42186 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
42187 && mv -f "$cfgfile.tmp" "$cfgfile" \
42188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42189 test 0 -eq $? || _lt_function_replace_fail=:
42192 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
42193 func_dirname_and_basename ()\
42196 \ */*) func_dirname_result="${1%/*}${2}" ;;\
42197 \ * ) func_dirname_result="${3}" ;;\
42199 \ func_basename_result="${1##*/}"\
42200 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
42201 && mv -f "$cfgfile.tmp" "$cfgfile" \
42202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42203 test 0 -eq $? || _lt_function_replace_fail=:
42206 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
42209 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
42210 \ # positional parameters, so assign one to ordinary parameter first.\
42211 \ func_stripname_result=${3}\
42212 \ func_stripname_result=${func_stripname_result#"${1}"}\
42213 \ func_stripname_result=${func_stripname_result%"${2}"}\
42214 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
42215 && mv -f "$cfgfile.tmp" "$cfgfile" \
42216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42217 test 0 -eq $? || _lt_function_replace_fail=:
42220 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
42221 func_split_long_opt ()\
42223 \ func_split_long_opt_name=${1%%=*}\
42224 \ func_split_long_opt_arg=${1#*=}\
42225 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
42226 && mv -f "$cfgfile.tmp" "$cfgfile" \
42227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42228 test 0 -eq $? || _lt_function_replace_fail=:
42231 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
42232 func_split_short_opt ()\
42234 \ func_split_short_opt_arg=${1#??}\
42235 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
42236 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
42237 && mv -f "$cfgfile.tmp" "$cfgfile" \
42238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42239 test 0 -eq $? || _lt_function_replace_fail=:
42242 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
42246 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
42247 \ *) func_lo2o_result=${1} ;;\
42249 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
42250 && mv -f "$cfgfile.tmp" "$cfgfile" \
42251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42252 test 0 -eq $? || _lt_function_replace_fail=:
42255 sed -e '/^func_xform ()$/,/^} # func_xform /c\
42258 func_xform_result=${1%.*}.lo\
42259 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
42260 && mv -f "$cfgfile.tmp" "$cfgfile" \
42261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42262 test 0 -eq $? || _lt_function_replace_fail=:
42265 sed -e '/^func_arith ()$/,/^} # func_arith /c\
42268 func_arith_result=$(( $* ))\
42269 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
42270 && mv -f "$cfgfile.tmp" "$cfgfile" \
42271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42272 test 0 -eq $? || _lt_function_replace_fail=:
42275 sed -e '/^func_len ()$/,/^} # func_len /c\
42278 func_len_result=${#1}\
42279 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
42280 && mv -f "$cfgfile.tmp" "$cfgfile" \
42281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42282 test 0 -eq $? || _lt_function_replace_fail=:
42286 if test x"$lt_shell_append" = xyes; then
42287 sed -e '/^func_append ()$/,/^} # func_append /c\
42290 eval "${1}+=\\${2}"\
42291 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
42292 && mv -f "$cfgfile.tmp" "$cfgfile" \
42293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42294 test 0 -eq $? || _lt_function_replace_fail=:
42297 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
42298 func_append_quoted ()\
42300 \ func_quote_for_eval "${2}"\
42301 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
42302 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
42303 && mv -f "$cfgfile.tmp" "$cfgfile" \
42304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42305 test 0 -eq $? || _lt_function_replace_fail=:
42308 # Save a `func_append' function call where possible by direct use of '+='
42309 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
42310 && mv -f "$cfgfile.tmp" "$cfgfile" \
42311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42312 test 0 -eq $? || _lt_function_replace_fail=:
42314 # Save a `func_append' function call even when '+=' is not available
42315 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
42316 && mv -f "$cfgfile.tmp" "$cfgfile" \
42317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42318 test 0 -eq $? || _lt_function_replace_fail=:
42321 if test x"$_lt_function_replace_fail" = x":"; then
42322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
42323 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
42327 mv -f "$cfgfile" "$ofile" ||
42328 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
42339 ac_clean_files=$ac_clean_files_save
42341 test $ac_write_fail = 0 ||
42342 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
42345 # configure is writing to config.log, and then calls config.status.
42346 # config.status does its own redirection, appending to config.log.
42347 # Unfortunately, on DOS this fails, as config.log is still kept open
42348 # by configure, so config.status won't be able to write to it; its
42349 # output is simply discarded. So we exec the FD to /dev/null,
42350 # effectively closing config.log, so it can be properly (re)opened and
42351 # appended to by config.status. When coming back to configure, we
42352 # need to make the FD available again.
42353 if test "$no_create" != yes; then
42355 ac_config_status_args=
42356 test "$silent" = yes &&
42357 ac_config_status_args="$ac_config_status_args --quiet"
42359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42362 # would make configure fail if this is the last instruction.
42363 $ac_cs_success || as_fn_exit 1
42367 # CONFIG_SUBDIRS section.
42369 if test "$no_recursion" != yes; then
42371 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
42372 # so they do not pile up.
42373 ac_sub_configure_args=
42375 eval "set x $ac_configure_args"
42379 if test -n "$ac_prev"; then
42384 -cache-file | --cache-file | --cache-fil | --cache-fi \
42385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42386 ac_prev=cache_file ;;
42387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42391 --config-cache | -C)
42393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42397 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42399 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42401 --disable-option-checking)
42405 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42407 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
42411 # Always prepend --prefix to ensure using the same prefix
42412 # in subdir configurations.
42413 ac_arg="--prefix=$prefix"
42415 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42417 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
42420 if test "$silent" = yes; then
42421 ac_sub_configure_args="--silent $ac_sub_configure_args"
42424 # Always prepend --disable-option-checking to silence warnings, since
42425 # different subdirs can have different --enable and --with options.
42426 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
42429 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42431 # Do not complain, so a configure script can configure whichever
42432 # parts of a large source tree are present.
42433 test -d "$srcdir/$ac_dir" || continue
42435 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
42436 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
42437 $as_echo "$ac_msg" >&6
42438 as_dir="$ac_dir"; as_fn_mkdir_p
42442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42445 # A ".." for each directory in $ac_dir_suffix.
42446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42447 case $ac_top_builddir_sub in
42448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42452 ac_abs_top_builddir=$ac_pwd
42453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42454 # for backward compatibility:
42455 ac_top_builddir=$ac_top_build_prefix
42458 .) # We are building in place.
42460 ac_top_srcdir=$ac_top_builddir_sub
42461 ac_abs_top_srcdir=$ac_pwd ;;
42462 [\\/]* | ?:[\\/]* ) # Absolute name.
42463 ac_srcdir=$srcdir$ac_dir_suffix;
42464 ac_top_srcdir=$srcdir
42465 ac_abs_top_srcdir=$srcdir ;;
42466 *) # Relative name.
42467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42468 ac_top_srcdir=$ac_top_build_prefix$srcdir
42469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42476 # Check for guested configure; otherwise get Cygnus style configure.
42477 if test -f "$ac_srcdir/configure.gnu"; then
42478 ac_sub_configure=$ac_srcdir/configure.gnu
42479 elif test -f "$ac_srcdir/configure"; then
42480 ac_sub_configure=$ac_srcdir/configure
42481 elif test -f "$ac_srcdir/configure.in"; then
42482 # This should be Cygnus configure.
42483 ac_sub_configure=$ac_aux_dir/configure
42485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
42486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42490 # The recursion is here.
42491 if test -n "$ac_sub_configure"; then
42492 # Make the cache file name correct relative to the subdirectory.
42493 case $cache_file in
42494 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42495 *) # Relative name.
42496 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
42499 { $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
42500 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42501 # The eval makes quoting arguments work.
42502 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
42503 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
42504 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
42510 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
42511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
42512 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42517 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
42518 if test -z "$tmp_cpp"; then
42521 cat >./tests/configurehelp.pm <<_EOF
42522 # This is a generated file. Do not edit.
42524 package configurehelp;
42536 @ISA = qw(Exporter);
42542 \$Cpreprocessor = '$tmp_cpp';
42549 ## ---------------------------------- ##
42550 ## Start of distclean amending code ##
42551 ## ---------------------------------- ##
42553 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
42556 if test ! -f "$xc_subdir/Makefile"; then
42557 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
42561 # Fetch dependency tracking file list from Makefile include lines.
42563 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
42564 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
42566 # --disable-dependency-tracking might have been used, consequently
42567 # there is nothing to amend without a dependency tracking file list.
42569 if test $xc_cnt_words -gt 0; then
42571 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
42572 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
42574 # Build Makefile specific patch hunk.
42576 xc_p="$xc_subdir/xc_patch.tmp"
42578 xc_rm_depfiles=`echo "$xc_inc_lines" \
42579 | $SED 's%include% -rm -f%' 2>/dev/null`
42581 xc_dep_subdirs=`echo "$xc_inc_lines" \
42582 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
42583 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
42586 echo "$xc_rm_depfiles" >$xc_p
42588 for xc_dep_dir in $xc_dep_subdirs; do
42589 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
42590 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
42591 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
42592 echo "${xc_tab}fi" >>$xc_p
42595 # Build Makefile patching sed scripts.
42597 xc_s1="$xc_subdir/xc_script_1.tmp"
42598 xc_s2="$xc_subdir/xc_script_2.tmp"
42599 xc_s3="$xc_subdir/xc_script_3.tmp"
42601 cat >$xc_s1 <<\_EOT
42602 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
42603 s/^.*(DEPDIR)/___xc_depdir_line___/
42605 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
42606 s/^.*(DEPDIR)/___xc_depdir_line___/
42610 cat >$xc_s2 <<\_EOT
42611 /___xc_depdir_line___$/{
42613 /___xc_depdir_line___$/D
42618 /^___xc_depdir_line___/{
42624 # Apply patch to Makefile and cleanup.
42626 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
42627 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
42628 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
42630 if test -f "$xc_subdir/Makefile.tmp3"; then
42631 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
42634 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
42635 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
42636 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
42638 test -f "$xc_p" && rm -f "$xc_p"
42639 test -f "$xc_s1" && rm -f "$xc_s1"
42640 test -f "$xc_s2" && rm -f "$xc_s2"
42641 test -f "$xc_s3" && rm -f "$xc_s3"
42647 ## -------------------------------- ##
42648 ## End of distclean amending code ##
42649 ## -------------------------------- ##
42653 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
42655 curl version: ${CURLVERSION}
42656 Host setup: ${host}
42657 Install prefix: ${prefix}
42659 SSL support: ${curl_ssl_msg}
42660 SSH support: ${curl_ssh_msg}
42661 zlib support: ${curl_zlib_msg}
42662 GSS-API support: ${curl_gss_msg}
42663 TLS-SRP support: ${curl_tls_srp_msg}
42664 resolver: ${curl_res_msg}
42665 IPv6 support: ${curl_ipv6_msg}
42666 Unix sockets support: ${curl_unix_sockets_msg}
42667 IDN support: ${curl_idn_msg}
42668 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
42669 Built-in manual: ${curl_manual_msg}
42670 --libcurl option: ${curl_libcurl_msg}
42671 Verbose errors: ${curl_verbose_msg}
42672 SSPI support: ${curl_sspi_msg}
42673 ca cert bundle: ${ca}
42674 ca cert path: ${capath}
42675 LDAP support: ${curl_ldap_msg}
42676 LDAPS support: ${curl_ldaps_msg}
42677 RTSP support: ${curl_rtsp_msg}
42678 RTMP support: ${curl_rtmp_msg}
42679 metalink support: ${curl_mtlnk_msg}
42680 HTTP2 support: ${curl_h2_msg}
42681 Protocols: ${SUPPORT_PROTOCOLS}
42683 $as_echo "$as_me: Configured to build curl/libcurl:
42685 curl version: ${CURLVERSION}
42686 Host setup: ${host}
42687 Install prefix: ${prefix}
42689 SSL support: ${curl_ssl_msg}
42690 SSH support: ${curl_ssh_msg}
42691 zlib support: ${curl_zlib_msg}
42692 GSS-API support: ${curl_gss_msg}
42693 TLS-SRP support: ${curl_tls_srp_msg}
42694 resolver: ${curl_res_msg}
42695 IPv6 support: ${curl_ipv6_msg}
42696 Unix sockets support: ${curl_unix_sockets_msg}
42697 IDN support: ${curl_idn_msg}
42698 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
42699 Built-in manual: ${curl_manual_msg}
42700 --libcurl option: ${curl_libcurl_msg}
42701 Verbose errors: ${curl_verbose_msg}
42702 SSPI support: ${curl_sspi_msg}
42703 ca cert bundle: ${ca}
42704 ca cert path: ${capath}
42705 LDAP support: ${curl_ldap_msg}
42706 LDAPS support: ${curl_ldaps_msg}
42707 RTSP support: ${curl_rtsp_msg}
42708 RTMP support: ${curl_rtmp_msg}
42709 metalink support: ${curl_mtlnk_msg}
42710 HTTP2 support: ${curl_h2_msg}
42711 Protocols: ${SUPPORT_PROTOCOLS}
42714 if test "x$soname_bump" = "xyes"; then
42717 SONAME bump: yes - WARNING: this library will be built with the SONAME
42718 number bumped due to (a detected) ABI breakage.
42719 See lib/README.curl_off_t for details on this.