2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for curl -.
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
18 ## -------------------------------- ##
19 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20 ## -------------------------------- ##
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
26 # Set IFS to space, tab and newline.
33 IFS="$xc_space$xc_tab$xc_newline"
36 # Set internationalization behavior variables.
47 # Some useful variables.
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
55 # Verify that 'echo' command is available, otherwise abort.
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
72 # Verify that 'test' command is available, otherwise abort.
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
88 # Verify that 'PATH' variable is set, otherwise abort.
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
104 # Verify that 'expr' command is available, otherwise abort.
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
141 (`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
198 case "x$xc_tst_str" in # ((
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
212 # Directory count in 'PATH' when using a colon separator.
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222 # Directory count in 'PATH' when using a semicolon separator.
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
236 # Stop dead until user provides 'PATH_SEPARATOR' definition.
237 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
241 # Separator with the greater directory count is the auto-detected one.
242 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243 xc_tst_auto_separator=';'
245 xc_tst_auto_separator=':'
247 if test -z "$PATH_SEPARATOR"; then
248 # Simply use the auto-detected one when not already set.
249 PATH_SEPARATOR=$xc_tst_auto_separator
250 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254 xc_PATH_SEPARATOR=$PATH_SEPARATOR
256 xc_configure_preamble_result='yes'
259 ## -------------------- ##
260 ## M4sh Initialization. ##
261 ## -------------------- ##
263 # Be more Bourne compatible
264 DUALCASE=1; export DUALCASE # for MKS sh
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in #(
285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289 # Prefer a ksh shell builtin over an external printf program on Solaris,
290 # but without wasting forks for bash or zsh.
291 if test -z "$BASH_VERSION$ZSH_VERSION" \
292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293 as_echo='print -r --'
294 as_echo_n='print -rn --'
295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296 as_echo='printf %s\n'
297 as_echo_n='printf %s'
299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301 as_echo_n='/usr/ucb/echo -n'
303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
308 expr "X$arg" : "X\\(.*\\)$as_nl";
309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 export as_echo_n_body
314 as_echo_n='sh -c $as_echo_n_body as_echo'
317 as_echo='sh -c $as_echo_body as_echo'
323 # We need space, tab and new line, in precisely that order. Quoting is
324 # there to prevent editors from complaining about space-tab.
325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
326 # splitting by setting IFS to empty value.)
329 # Find who we are. Look in the path if we contain no directory separator.
332 *[\\/]* ) as_myself=$0 ;;
333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
337 test -z "$as_dir" && as_dir=.
338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
344 # We did not find ourselves, most probably we were run as `sh COMMAND'
345 # in which case we are not to be found in the path.
346 if test "x$as_myself" = x; then
349 if test ! -f "$as_myself"; then
350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
354 # Unset variables that we do not need and which cause bugs (e.g. in
355 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
356 # suppresses any "Segmentation fault" message there. '((' could
357 # trigger a bug in pdksh 5.2.14.
358 for as_var in BASH_ENV ENV MAIL MAILPATH
359 do eval test x\${$as_var+set} = xset \
360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375 # Use a proper internal environment variable to ensure we don't fall
376 # into an infinite loop, continuously re-executing ourselves.
377 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378 _as_can_reexec=no; export _as_can_reexec;
379 # We cannot yet assume a decent shell, so we have to provide a
380 # neutralization value for shells without unset; and this also
381 # works around shells that cannot unset nonexistent variables.
382 # Preserve -v and -x to the replacement shell.
385 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387 *v*x* | *x*v* ) as_opts=-vx ;;
392 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393 # Admittedly, this is quite paranoid, since all the known shells bail
394 # out after a failed `exec'.
395 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
398 # We don't want this to propagate to other subprocesses.
399 { _as_can_reexec=; unset _as_can_reexec;}
400 if test "x$CONFIG_SHELL" = x; then
401 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
404 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405 # is contrary to our usage. Disable this feature.
406 alias -g '\${1+\"\$@\"}'='\"\$@\"'
409 case \`(set -o) 2>/dev/null\` in #(
417 as_required="as_fn_return () { (exit \$1); }
418 as_fn_success () { as_fn_return 0; }
419 as_fn_failure () { as_fn_return 1; }
420 as_fn_ret_success () { return 0; }
421 as_fn_ret_failure () { return 1; }
424 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
431 exitcode=1; echo positional parameters were not saved.
433 test x\$exitcode = x0 || exit 1
435 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439 test \$(( 1 + 1 )) = 2 || exit 1
441 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 PATH=/empty FPATH=/empty; export PATH FPATH
446 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448 if (eval "$as_required") 2>/dev/null; then :
453 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
461 test -z "$as_dir" && as_dir=.
465 for as_base in sh bash ksh sh5; do
466 # Try only shells that exist, to save several forks.
467 as_shell=$as_dir/$as_base
468 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470 CONFIG_SHELL=$as_shell as_have_required=yes
471 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
479 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481 CONFIG_SHELL=$SHELL as_have_required=yes
486 if test "x$CONFIG_SHELL" != x; then :
488 # We cannot yet assume a decent shell, so we have to provide a
489 # neutralization value for shells without unset; and this also
490 # works around shells that cannot unset nonexistent variables.
491 # Preserve -v and -x to the replacement shell.
494 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496 *v*x* | *x*v* ) as_opts=-vx ;;
501 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502 # Admittedly, this is quite paranoid, since all the known shells bail
503 # out after a failed `exec'.
504 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
508 if test x$as_have_required = xno; then :
509 $as_echo "$0: This script requires a shell more modern than all"
510 $as_echo "$0: the shells that I found on your system."
511 if test x${ZSH_VERSION+set} = xset ; then
512 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516 $0: mailing list: https://curl.haxx.se/mail/ about your
517 $0: system, including any error possibly output before this
518 $0: message. Then install a modern shell, or manually run
519 $0: the script under such a shell if you do have one."
525 SHELL=${CONFIG_SHELL-/bin/sh}
527 # Unset more variables known to interfere with behavior of common tools.
528 CLICOLOR_FORCE= GREP_OPTIONS=
529 unset CLICOLOR_FORCE GREP_OPTIONS
531 ## --------------------- ##
532 ## M4sh Shell Functions. ##
533 ## --------------------- ##
536 # Portably unset VAR.
539 { eval $1=; unset $1;}
543 # as_fn_set_status STATUS
544 # -----------------------
545 # Set $? to STATUS, without forking.
553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
563 # Create "$as_dir" as a directory, including parents if necessary.
568 -*) as_dir=./$as_dir;;
570 test -d "$as_dir" || eval $as_mkdir_p || {
574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
577 as_dirs="'$as_qdir' $as_dirs"
578 as_dir=`$as_dirname -- "$as_dir" ||
579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580 X"$as_dir" : 'X\(//\)[^/]' \| \
581 X"$as_dir" : 'X\(//\)$' \| \
582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583 $as_echo X"$as_dir" |
584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
601 test -d "$as_dir" && break
603 test -z "$as_dirs" || eval "mkdir $as_dirs"
604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
609 # as_fn_executable_p FILE
610 # -----------------------
611 # Test if FILE is an executable regular file.
612 as_fn_executable_p ()
614 test -f "$1" && test -x "$1"
615 } # as_fn_executable_p
616 # as_fn_append VAR VALUE
617 # ----------------------
618 # Append the text in VALUE to the end of the definition contained in VAR. Take
619 # advantage of any shell optimizations that allow amortized linear growth over
620 # repeated appends, instead of the typical quadratic growth present in naive
622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623 eval 'as_fn_append ()
636 # Perform arithmetic evaluation on the ARGs, and store the result in the
637 # global $as_val. Take advantage of shells that can avoid forks. The arguments
638 # must be portable across $(()) and expr.
639 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
647 as_val=`expr "$@" || test $? -eq 1`
652 # as_fn_error STATUS ERROR [LINENO LOG_FD]
653 # ----------------------------------------
654 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656 # script with STATUS, using 1 if that was 0.
659 as_status=$1; test $as_status -eq 0 && as_status=1
661 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 $as_echo "$as_me: error: $2" >&2
665 as_fn_exit $as_status
668 if expr a : '\(a\)' >/dev/null 2>&1 &&
669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
687 as_me=`$as_basename -- "$0" ||
688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689 X"$0" : 'X\(//\)$' \| \
690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692 sed '/^.*\/\([^/][^/]*\)\/*$/{
706 # Avoid depending upon Character Ranges.
707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710 as_cr_digits='0123456789'
711 as_cr_alnum=$as_cr_Letters$as_cr_digits
714 as_lineno_1=$LINENO as_lineno_1a=$LINENO
715 as_lineno_2=$LINENO as_lineno_2a=$LINENO
716 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
734 chmod +x "$as_me.lineno" ||
735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738 # already done that, so ensure we don't try to do so again and fall
739 # in an infinite loop. This has already happened in practice.
740 _as_can_reexec=no; export _as_can_reexec
741 # Don't try to exec as it changes $[0], causing all sort of problems
742 # (the dirname of $[0] is not the place where we might find the
743 # original and so on. Autoconf is especially sensitive to this).
745 # Exit status is that of the last command.
749 ECHO_C= ECHO_N= ECHO_T=
750 case `echo -n x` in #(((((
752 case `echo 'xy\c'` in
753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
762 rm -f conf$$ conf$$.exe conf$$.file
763 if test -d conf$$.dir; then
764 rm -f conf$$.dir/conf$$.file
767 mkdir conf$$.dir 2>/dev/null
769 if (echo >conf$$.file) 2>/dev/null; then
770 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 # ... but there are two gotchas:
773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775 # In both cases, we have to default to `cp -pR'.
776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 elif ln conf$$.file conf$$ 2>/dev/null; then
786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787 rmdir conf$$.dir 2>/dev/null
789 if mkdir -p . 2>/dev/null; then
790 as_mkdir_p='mkdir -p "$as_dir"'
792 test -d ./-p && rmdir ./-p
797 as_executable_p=as_fn_executable_p
799 # Sed expression to map a string onto a valid CPP name.
800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802 # Sed expression to map a string onto a valid variable name.
803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805 SHELL=${CONFIG_SHELL-/bin/sh}
808 test -n "$DJDIR" || exec 7<&0 </dev/null
812 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813 # so uname gets run too.
814 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
819 ac_default_prefix=/usr/local
821 ac_config_libobj_dir=.
828 # Identity of this package.
830 PACKAGE_TARNAME='curl'
832 PACKAGE_STRING='curl -'
833 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
836 ac_unique_file="lib/urldata.h"
837 # Factoring default headers for most tests.
838 ac_includes_default="\
840 #ifdef HAVE_SYS_TYPES_H
841 # include <sys/types.h>
843 #ifdef HAVE_SYS_STAT_H
844 # include <sys/stat.h>
850 # ifdef HAVE_STDLIB_H
855 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
860 #ifdef HAVE_STRINGS_H
861 # include <strings.h>
863 #ifdef HAVE_INTTYPES_H
864 # include <inttypes.h>
873 enable_option_checking=no
874 ac_subst_vars='am__EXEEXT_FALSE
885 CURL_NETWORK_AND_TIME_LIBS
888 CFLAG_CURL_SYMBOL_HIDING
889 DOING_CURL_SYMBOL_HIDING_FALSE
890 DOING_CURL_SYMBOL_HIDING_TRUE
892 BUILD_LIBHOSTNAME_FALSE
893 BUILD_LIBHOSTNAME_TRUE
894 USE_EMBEDDED_ARES_FALSE
895 USE_EMBEDDED_ARES_TRUE
907 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
908 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
909 CURL_LT_SHLIB_VERSIONED_FLAVOUR
960 DOING_NATIVE_WINDOWS_FALSE
961 DOING_NATIVE_WINDOWS_TRUE
962 BUILD_UNITTESTS_FALSE
966 USE_EXPLICIT_LIB_DEPS_FALSE
967 USE_EXPLICIT_LIB_DEPS_TRUE
969 CPPFLAG_CURL_STATICLIB
970 USE_CPPFLAG_CURL_STATICLIB_FALSE
971 USE_CPPFLAG_CURL_STATICLIB_TRUE
972 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
973 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
974 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
975 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
976 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
977 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1028 INSTALL_STRIP_PROGRAM
1058 CODE_COVERAGE_LDFLAGS
1060 CODE_COVERAGE_CXXFLAGS
1061 CODE_COVERAGE_CFLAGS
1062 CODE_COVERAGE_CPPFLAGS
1066 CODE_COVERAGE_ENABLED
1067 CODE_COVERAGE_ENABLED_FALSE
1068 CODE_COVERAGE_ENABLED_TRUE
1071 AM_DEFAULT_VERBOSITY
1075 MAINTAINER_MODE_FALSE
1076 MAINTAINER_MODE_TRUE
1105 program_transform_name
1118 enable_option_checking
1119 enable_maintainer_mode
1126 enable_symbol_hiding
1127 enable_hidden_symbols
1131 enable_code_coverage
1132 enable_dependency_tracking
1158 enable_libcurl_option
1164 with_gssapi_includes
1167 with_default_ssl_backend
1186 enable_versioned_symbols
1190 with_zsh_functions_dir
1191 enable_threaded_resolver
1201 ac_precious_vars='build_alias
1210 LT_SYS_LIBRARY_PATH'
1211 ac_subdirs_all='ares'
1213 # Initialize some variables set by options.
1215 ac_init_version=false
1216 ac_unrecognized_opts=
1217 ac_unrecognized_sep=
1218 # The variables have the same names as the options, with
1219 # dashes changed to underlines.
1220 cache_file=/dev/null
1227 program_transform_name=s,x,x,
1235 # Installation directory options.
1236 # These are left unexpanded so users can "make install exec_prefix=/foo"
1237 # and all the variables that are supposed to be based on exec_prefix
1238 # by default will actually change.
1239 # Use braces instead of parens because sh, perl, etc. also accept them.
1240 # (The list follows the same order as the GNU Coding Standards.)
1241 bindir='${exec_prefix}/bin'
1242 sbindir='${exec_prefix}/sbin'
1243 libexecdir='${exec_prefix}/libexec'
1244 datarootdir='${prefix}/share'
1245 datadir='${datarootdir}'
1246 sysconfdir='${prefix}/etc'
1247 sharedstatedir='${prefix}/com'
1248 localstatedir='${prefix}/var'
1249 runstatedir='${localstatedir}/run'
1250 includedir='${prefix}/include'
1251 oldincludedir='/usr/include'
1252 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1253 infodir='${datarootdir}/info'
1258 libdir='${exec_prefix}/lib'
1259 localedir='${datarootdir}/locale'
1260 mandir='${datarootdir}/man'
1266 # If the previous option needs an argument, assign it.
1267 if test -n "$ac_prev"; then
1268 eval $ac_prev=\$ac_option
1274 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1279 # Accept the important Cygnus configure options, so we can diagnose typos.
1281 case $ac_dashdash$ac_option in
1285 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1287 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1288 bindir=$ac_optarg ;;
1290 -build | --build | --buil | --bui | --bu)
1291 ac_prev=build_alias ;;
1292 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1293 build_alias=$ac_optarg ;;
1295 -cache-file | --cache-file | --cache-fil | --cache-fi \
1296 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1297 ac_prev=cache_file ;;
1298 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1299 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1300 cache_file=$ac_optarg ;;
1302 --config-cache | -C)
1303 cache_file=config.cache ;;
1305 -datadir | --datadir | --datadi | --datad)
1307 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1308 datadir=$ac_optarg ;;
1310 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1311 | --dataroo | --dataro | --datar)
1312 ac_prev=datarootdir ;;
1313 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1314 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1315 datarootdir=$ac_optarg ;;
1317 -disable-* | --disable-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error $? "invalid feature name: $ac_useropt"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1326 "enable_$ac_useropt"
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1331 eval enable_$ac_useropt=no ;;
1333 -docdir | --docdir | --docdi | --doc | --do)
1335 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1336 docdir=$ac_optarg ;;
1338 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1340 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1341 dvidir=$ac_optarg ;;
1343 -enable-* | --enable-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid feature name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1352 "enable_$ac_useropt"
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1357 eval enable_$ac_useropt=\$ac_optarg ;;
1359 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1360 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1361 | --exec | --exe | --ex)
1362 ac_prev=exec_prefix ;;
1363 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1364 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1365 | --exec=* | --exe=* | --ex=*)
1366 exec_prefix=$ac_optarg ;;
1368 -gas | --gas | --ga | --g)
1369 # Obsolete; use --with-gas.
1372 -help | --help | --hel | --he | -h)
1373 ac_init_help=long ;;
1374 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1375 ac_init_help=recursive ;;
1376 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1377 ac_init_help=short ;;
1379 -host | --host | --hos | --ho)
1380 ac_prev=host_alias ;;
1381 -host=* | --host=* | --hos=* | --ho=*)
1382 host_alias=$ac_optarg ;;
1384 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1386 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1388 htmldir=$ac_optarg ;;
1390 -includedir | --includedir | --includedi | --included | --include \
1391 | --includ | --inclu | --incl | --inc)
1392 ac_prev=includedir ;;
1393 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1394 | --includ=* | --inclu=* | --incl=* | --inc=*)
1395 includedir=$ac_optarg ;;
1397 -infodir | --infodir | --infodi | --infod | --info | --inf)
1399 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1400 infodir=$ac_optarg ;;
1402 -libdir | --libdir | --libdi | --libd)
1404 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1405 libdir=$ac_optarg ;;
1407 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1408 | --libexe | --libex | --libe)
1409 ac_prev=libexecdir ;;
1410 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1411 | --libexe=* | --libex=* | --libe=*)
1412 libexecdir=$ac_optarg ;;
1414 -localedir | --localedir | --localedi | --localed | --locale)
1415 ac_prev=localedir ;;
1416 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1417 localedir=$ac_optarg ;;
1419 -localstatedir | --localstatedir | --localstatedi | --localstated \
1420 | --localstate | --localstat | --localsta | --localst | --locals)
1421 ac_prev=localstatedir ;;
1422 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1423 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1424 localstatedir=$ac_optarg ;;
1426 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1428 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1429 mandir=$ac_optarg ;;
1431 -nfp | --nfp | --nf)
1432 # Obsolete; use --without-fp.
1435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1436 | --no-cr | --no-c | -n)
1439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1443 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1444 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1445 | --oldin | --oldi | --old | --ol | --o)
1446 ac_prev=oldincludedir ;;
1447 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1448 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1449 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1450 oldincludedir=$ac_optarg ;;
1452 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1454 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1455 prefix=$ac_optarg ;;
1457 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1458 | --program-pre | --program-pr | --program-p)
1459 ac_prev=program_prefix ;;
1460 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1461 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1462 program_prefix=$ac_optarg ;;
1464 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1465 | --program-suf | --program-su | --program-s)
1466 ac_prev=program_suffix ;;
1467 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1468 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1469 program_suffix=$ac_optarg ;;
1471 -program-transform-name | --program-transform-name \
1472 | --program-transform-nam | --program-transform-na \
1473 | --program-transform-n | --program-transform- \
1474 | --program-transform | --program-transfor \
1475 | --program-transfo | --program-transf \
1476 | --program-trans | --program-tran \
1477 | --progr-tra | --program-tr | --program-t)
1478 ac_prev=program_transform_name ;;
1479 -program-transform-name=* | --program-transform-name=* \
1480 | --program-transform-nam=* | --program-transform-na=* \
1481 | --program-transform-n=* | --program-transform-=* \
1482 | --program-transform=* | --program-transfor=* \
1483 | --program-transfo=* | --program-transf=* \
1484 | --program-trans=* | --program-tran=* \
1485 | --progr-tra=* | --program-tr=* | --program-t=*)
1486 program_transform_name=$ac_optarg ;;
1488 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1490 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1491 pdfdir=$ac_optarg ;;
1493 -psdir | --psdir | --psdi | --psd | --ps)
1495 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499 | -silent | --silent | --silen | --sile | --sil)
1502 -runstatedir | --runstatedir | --runstatedi | --runstated \
1503 | --runstate | --runstat | --runsta | --runst | --runs \
1504 | --run | --ru | --r)
1505 ac_prev=runstatedir ;;
1506 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1507 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1508 | --run=* | --ru=* | --r=*)
1509 runstatedir=$ac_optarg ;;
1511 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1513 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1515 sbindir=$ac_optarg ;;
1517 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1518 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1519 | --sharedst | --shareds | --shared | --share | --shar \
1521 ac_prev=sharedstatedir ;;
1522 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1523 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1524 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1526 sharedstatedir=$ac_optarg ;;
1528 -site | --site | --sit)
1530 -site=* | --site=* | --sit=*)
1533 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1535 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1536 srcdir=$ac_optarg ;;
1538 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1539 | --syscon | --sysco | --sysc | --sys | --sy)
1540 ac_prev=sysconfdir ;;
1541 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1542 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1543 sysconfdir=$ac_optarg ;;
1545 -target | --target | --targe | --targ | --tar | --ta | --t)
1546 ac_prev=target_alias ;;
1547 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1548 target_alias=$ac_optarg ;;
1550 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1553 -version | --version | --versio | --versi | --vers | -V)
1554 ac_init_version=: ;;
1557 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1558 # Reject names that are not valid shell variable names.
1559 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1560 as_fn_error $? "invalid package name: $ac_useropt"
1561 ac_useropt_orig=$ac_useropt
1562 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563 case $ac_user_opts in
1567 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1568 ac_unrecognized_sep=', ';;
1570 eval with_$ac_useropt=\$ac_optarg ;;
1572 -without-* | --without-*)
1573 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1574 # Reject names that are not valid shell variable names.
1575 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1576 as_fn_error $? "invalid package name: $ac_useropt"
1577 ac_useropt_orig=$ac_useropt
1578 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579 case $ac_user_opts in
1583 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1584 ac_unrecognized_sep=', ';;
1586 eval with_$ac_useropt=no ;;
1589 # Obsolete; use --with-x.
1592 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1593 | --x-incl | --x-inc | --x-in | --x-i)
1594 ac_prev=x_includes ;;
1595 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1596 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1597 x_includes=$ac_optarg ;;
1599 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1600 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1601 ac_prev=x_libraries ;;
1602 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1603 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1604 x_libraries=$ac_optarg ;;
1606 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1607 Try \`$0 --help' for more information"
1611 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1612 # Reject names that are not valid shell variable names.
1613 case $ac_envvar in #(
1614 '' | [0-9]* | *[!_$as_cr_alnum]* )
1615 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1617 eval $ac_envvar=\$ac_optarg
1618 export $ac_envvar ;;
1621 # FIXME: should be removed in autoconf 3.0.
1622 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1623 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1624 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1625 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1631 if test -n "$ac_prev"; then
1632 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1633 as_fn_error $? "missing argument to $ac_option"
1636 if test -n "$ac_unrecognized_opts"; then
1637 case $enable_option_checking in
1639 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1640 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 # Check all directory arguments for consistency.
1645 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1646 datadir sysconfdir sharedstatedir localstatedir includedir \
1647 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1648 libdir localedir mandir runstatedir
1650 eval ac_val=\$$ac_var
1651 # Remove trailing slashes.
1654 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1655 eval $ac_var=\$ac_val;;
1657 # Be sure to have absolute directory names.
1659 [\\/$]* | ?:[\\/]* ) continue;;
1660 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1662 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1665 # There might be people who depend on the old broken behavior: `$host'
1666 # used to hold the argument of --host etc.
1667 # FIXME: To remove some day.
1670 target=$target_alias
1672 # FIXME: To remove some day.
1673 if test "x$host_alias" != x; then
1674 if test "x$build_alias" = x; then
1675 cross_compiling=maybe
1676 elif test "x$build_alias" != "x$host_alias"; then
1682 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1684 test "$silent" = yes && exec 6>/dev/null
1687 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1688 ac_ls_di=`ls -di .` &&
1689 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1690 as_fn_error $? "working directory cannot be determined"
1691 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1692 as_fn_error $? "pwd does not report name of working directory"
1695 # Find the source files, if location was not specified.
1696 if test -z "$srcdir"; then
1697 ac_srcdir_defaulted=yes
1698 # Try the directory containing this script, then the parent directory.
1699 ac_confdir=`$as_dirname -- "$as_myself" ||
1700 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1701 X"$as_myself" : 'X\(//\)[^/]' \| \
1702 X"$as_myself" : 'X\(//\)$' \| \
1703 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1704 $as_echo X"$as_myself" |
1705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1723 if test ! -r "$srcdir/$ac_unique_file"; then
1727 ac_srcdir_defaulted=no
1729 if test ! -r "$srcdir/$ac_unique_file"; then
1730 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1731 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1733 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1735 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1737 # When building in place, set srcdir=.
1738 if test "$ac_abs_confdir" = "$ac_pwd"; then
1741 # Remove unnecessary trailing slashes from srcdir.
1742 # Double slashes in file names in object file debugging info
1743 # mess up M-x gdb in Emacs.
1745 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1747 for ac_var in $ac_precious_vars; do
1748 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1749 eval ac_env_${ac_var}_value=\$${ac_var}
1750 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1751 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755 # Report the --help message.
1757 if test "$ac_init_help" = "long"; then
1758 # Omit some internal or obsolete options to make the list less imposing.
1759 # This message is too long to be a string in the A/UX 3.1 sh.
1761 \`configure' configures curl - to adapt to many kinds of systems.
1763 Usage: $0 [OPTION]... [VAR=VALUE]...
1765 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1766 VAR=VALUE. See below for descriptions of some of the useful variables.
1768 Defaults for the options are specified in brackets.
1771 -h, --help display this help and exit
1772 --help=short display options specific to this package
1773 --help=recursive display the short help of all the included packages
1774 -V, --version display version information and exit
1775 -q, --quiet, --silent do not print \`checking ...' messages
1776 --cache-file=FILE cache test results in FILE [disabled]
1777 -C, --config-cache alias for \`--cache-file=config.cache'
1778 -n, --no-create do not create output files
1779 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1781 Installation directories:
1782 --prefix=PREFIX install architecture-independent files in PREFIX
1783 [$ac_default_prefix]
1784 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1787 By default, \`make install' will install all the files in
1788 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1789 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1790 for instance \`--prefix=\$HOME'.
1792 For better control, use the options below.
1794 Fine tuning of the installation directories:
1795 --bindir=DIR user executables [EPREFIX/bin]
1796 --sbindir=DIR system admin executables [EPREFIX/sbin]
1797 --libexecdir=DIR program executables [EPREFIX/libexec]
1798 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1799 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1800 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1801 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1802 --libdir=DIR object code libraries [EPREFIX/lib]
1803 --includedir=DIR C header files [PREFIX/include]
1804 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1805 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1806 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1807 --infodir=DIR info documentation [DATAROOTDIR/info]
1808 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1809 --mandir=DIR man documentation [DATAROOTDIR/man]
1810 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1811 --htmldir=DIR html documentation [DOCDIR]
1812 --dvidir=DIR dvi documentation [DOCDIR]
1813 --pdfdir=DIR pdf documentation [DOCDIR]
1814 --psdir=DIR ps documentation [DOCDIR]
1820 --program-prefix=PREFIX prepend PREFIX to installed program names
1821 --program-suffix=SUFFIX append SUFFIX to installed program names
1822 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825 --build=BUILD configure for building on BUILD [guessed]
1826 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1830 if test -n "$ac_init_help"; then
1831 case $ac_init_help in
1832 short | recursive ) echo "Configuration of curl -:";;
1837 --disable-option-checking ignore unrecognized --enable/--with options
1838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1840 --enable-maintainer-mode
1841 enable make rules and dependencies not useful (and
1842 sometimes confusing) to the casual installer
1843 --enable-silent-rules less verbose build output (undo: "make V=1")
1844 --disable-silent-rules verbose build output (undo: "make V=0")
1845 --enable-debug Enable debug build options
1846 --disable-debug Disable debug build options
1847 --enable-optimize Enable compiler optimizations
1848 --disable-optimize Disable compiler optimizations
1849 --enable-warnings Enable strict compiler warnings
1850 --disable-warnings Disable strict compiler warnings
1851 --enable-werror Enable compiler warnings as errors
1852 --disable-werror Disable compiler warnings as errors
1853 --enable-curldebug Enable curl debug memory tracking
1854 --disable-curldebug Disable curl debug memory tracking
1855 --enable-symbol-hiding Enable hiding of library internal symbols
1856 --disable-symbol-hiding Disable hiding of library internal symbols
1857 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1858 --disable-hidden-symbols
1859 To be deprecated, use --disable-symbol-hiding
1860 --enable-ares[=PATH] Enable c-ares for DNS lookups
1861 --disable-ares Disable c-ares for DNS lookups
1862 --disable-rt disable dependency on -lrt
1863 --enable-code-coverage Whether to enable code coverage support
1864 --enable-dependency-tracking
1865 do not reject slow dependency extractors
1866 --disable-dependency-tracking
1867 speeds up one-time build
1868 --disable-largefile omit support for large files
1869 --enable-shared[=PKGS] build shared libraries [default=yes]
1870 --enable-static[=PKGS] build static libraries [default=yes]
1871 --enable-fast-install[=PKGS]
1872 optimize for fast installation [default=yes]
1873 --disable-libtool-lock avoid locking (might break parallel builds)
1874 --enable-http Enable HTTP support
1875 --disable-http Disable HTTP support
1876 --enable-ftp Enable FTP support
1877 --disable-ftp Disable FTP support
1878 --enable-file Enable FILE support
1879 --disable-file Disable FILE support
1880 --enable-ldap Enable LDAP support
1881 --disable-ldap Disable LDAP support
1882 --enable-ldaps Enable LDAPS support
1883 --disable-ldaps Disable LDAPS support
1884 --enable-rtsp Enable RTSP support
1885 --disable-rtsp Disable RTSP support
1886 --enable-proxy Enable proxy support
1887 --disable-proxy Disable proxy support
1888 --enable-dict Enable DICT support
1889 --disable-dict Disable DICT support
1890 --enable-telnet Enable TELNET support
1891 --disable-telnet Disable TELNET support
1892 --enable-tftp Enable TFTP support
1893 --disable-tftp Disable TFTP support
1894 --enable-pop3 Enable POP3 support
1895 --disable-pop3 Disable POP3 support
1896 --enable-imap Enable IMAP support
1897 --disable-imap Disable IMAP support
1898 --enable-smb Enable SMB/CIFS support
1899 --disable-smb Disable SMB/CIFS support
1900 --enable-smtp Enable SMTP support
1901 --disable-smtp Disable SMTP support
1902 --enable-gopher Enable Gopher support
1903 --disable-gopher Disable Gopher support
1904 --enable-manual Enable built-in manual
1905 --disable-manual Disable built-in manual
1906 --enable-libcurl-option Enable --libcurl C code generation support
1907 --disable-libcurl-option
1908 Disable --libcurl C code generation support
1909 --enable-libgcc use libgcc when linking
1910 --enable-ipv6 Enable IPv6 (with IPv4) support
1911 --disable-ipv6 Disable IPv6 support
1912 --enable-versioned-symbols
1913 Enable versioned symbols in shared library
1914 --disable-versioned-symbols
1915 Disable versioned symbols in shared library
1916 --enable-threaded-resolver
1917 Enable threaded resolver
1918 --disable-threaded-resolver
1919 Disable threaded resolver
1920 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1921 --disable-pthreads Disable POSIX threads
1922 --enable-verbose Enable verbose strings
1923 --disable-verbose Disable verbose strings
1924 --enable-sspi Enable SSPI
1925 --disable-sspi Disable SSPI
1926 --enable-crypto-auth Enable cryptographic authentication
1927 --disable-crypto-auth Disable cryptographic authentication
1928 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1929 helper, where FILE is ntlm_auth's absolute filename
1930 (default: /usr/bin/ntlm_auth)
1931 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1933 --enable-tls-srp Enable TLS-SRP authentication
1934 --disable-tls-srp Disable TLS-SRP authentication
1935 --enable-unix-sockets Enable Unix domain sockets
1936 --disable-unix-sockets Disable Unix domain sockets
1937 --enable-cookies Enable cookies support
1938 --disable-cookies Disable cookies support
1941 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1942 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1943 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1944 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1946 --with-aix-soname=aix|svr4|both
1947 shared library versioning (aka "SONAME") variant to
1948 provide on AIX, [default=aix].
1949 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1950 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1951 compiler's sysroot if not specified).
1952 --with-zlib=PATH search for zlib in PATH
1953 --without-zlib disable use of zlib
1954 --with-ldap-lib=libname Specify name of ldap lib file
1955 --with-lber-lib=libname Specify name of lber lib file
1956 --with-gssapi-includes=DIR
1957 Specify location of GSS-API headers
1958 --with-gssapi-libs=DIR Specify location of GSS-API libs
1959 --with-gssapi=DIR Where to look for GSS-API
1960 --with-default-ssl-backend=NAME
1961 Use NAME as default SSL backend
1962 --without-default-ssl-backend
1963 Use implicit default SSL backend
1964 --with-winssl enable Windows native SSL/TLS
1965 --without-winssl disable Windows native SSL/TLS
1966 --with-darwinssl enable Apple OS native SSL/TLS
1967 --without-darwinssl disable Apple OS native SSL/TLS
1968 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1969 installation (default: /usr/local/ssl); when
1970 possible, set the PKG_CONFIG_PATH environment
1971 variable instead of using this option
1972 --without-ssl disable OpenSSL
1973 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1974 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1975 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1977 --without-gnutls disable GnuTLS detection
1978 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1980 --without-polarssl disable PolarSSL detection
1981 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1983 --without-mbedtls disable mbedTLS detection
1984 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1985 installation root (default: system lib default)
1986 --without-cyassl disable CyaSSL detection
1987 --with-nss=PATH where to look for NSS, PATH points to the
1989 --without-nss disable NSS detection
1990 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
1991 installation prefix (default: /usr/local). Ignored
1992 if another SSL engine is selected.
1993 --without-axtls disable axTLS
1994 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
1996 --without-ca-bundle Don't use a default CA bundle
1997 --with-ca-path=DIRECTORY
1998 Path to a directory containing CA certificates
1999 stored individually, with their filenames in a hash
2000 format. This option can be used with OpenSSL, GnuTLS
2001 and PolarSSL backends. Refer to OpenSSL c_rehash for
2002 details. (example: /etc/certificates)
2003 --without-ca-path Don't use a default CA path
2004 --with-ca-fallback Use the built in CA store of the SSL library
2005 --without-ca-fallback Don't use the built in CA store of the SSL library
2006 --without-libpsl disable support for libpsl cookie checking
2007 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2009 --without-libmetalink disable libmetalink detection
2010 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2011 LIBSSH2 installation; when possible, set the
2012 PKG_CONFIG_PATH environment variable instead of
2014 --without-libssh2 disable LIBSSH2
2015 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2016 LIBRTMP installation; when possible, set the
2017 PKG_CONFIG_PATH environment variable instead of
2019 --without-librtmp disable LIBRTMP
2020 --with-winidn=PATH enable Windows native IDN
2021 --without-winidn disable Windows native IDN
2022 --with-libidn2=PATH Enable libidn2 usage
2023 --without-libidn2 Disable libidn2 usage
2024 --with-nghttp2=PATH Enable nghttp2 usage
2025 --without-nghttp2 Disable nghttp2 usage
2026 --with-zsh-functions-dir=PATH
2027 Install zsh completions to PATH
2028 --without-zsh-functions-dir
2029 Do not install zsh completions
2031 Some influential environment variables:
2032 CC C compiler command
2033 CFLAGS C compiler flags
2034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2035 nonstandard directory <lib dir>
2036 LIBS libraries to pass to the linker, e.g. -l<library>
2037 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2038 you have headers in a nonstandard directory <include dir>
2041 User-defined run-time library search path.
2043 Use these variables to override the choices made by `configure' or to help
2044 it to find libraries and programs with nonstandard names/locations.
2046 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2051 if test "$ac_init_help" = "recursive"; then
2052 # If there are subdirs, report their specific --help.
2053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2054 test -d "$ac_dir" ||
2055 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2060 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2062 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2063 # A ".." for each directory in $ac_dir_suffix.
2064 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2065 case $ac_top_builddir_sub in
2066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2070 ac_abs_top_builddir=$ac_pwd
2071 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2072 # for backward compatibility:
2073 ac_top_builddir=$ac_top_build_prefix
2076 .) # We are building in place.
2078 ac_top_srcdir=$ac_top_builddir_sub
2079 ac_abs_top_srcdir=$ac_pwd ;;
2080 [\\/]* | ?:[\\/]* ) # Absolute name.
2081 ac_srcdir=$srcdir$ac_dir_suffix;
2082 ac_top_srcdir=$srcdir
2083 ac_abs_top_srcdir=$srcdir ;;
2085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2086 ac_top_srcdir=$ac_top_build_prefix$srcdir
2087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2089 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2091 cd "$ac_dir" || { ac_status=$?; continue; }
2092 # Check for guested configure.
2093 if test -f "$ac_srcdir/configure.gnu"; then
2095 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2096 elif test -f "$ac_srcdir/configure"; then
2098 $SHELL "$ac_srcdir/configure" --help=recursive
2100 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2102 cd "$ac_pwd" || { ac_status=$?; break; }
2106 test -n "$ac_init_help" && exit $ac_status
2107 if $ac_init_version; then
2110 generated by GNU Autoconf 2.69
2112 Copyright (C) 2012 Free Software Foundation, Inc.
2113 This configure script is free software; the Free Software Foundation
2114 gives unlimited permission to copy, distribute and modify it.
2116 Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2117 This configure script may be copied, distributed and modified under the
2118 terms of the curl license; see COPYING for more details
2123 ## ------------------------ ##
2124 ## Autoconf initialization. ##
2125 ## ------------------------ ##
2127 # ac_fn_c_try_compile LINENO
2128 # --------------------------
2129 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_c_try_compile ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext
2134 if { { ac_try="$ac_compile"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_compile") 2>conftest.err
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest.$ac_objext; then :
2155 $as_echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 as_fn_set_status $ac_retval
2163 } # ac_fn_c_try_compile
2165 # ac_fn_c_try_cpp LINENO
2166 # ----------------------
2167 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 if { { ac_try="$ac_cpp conftest.$ac_ext"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2180 if test -s conftest.err; then
2181 grep -v '^ *+' conftest.err >conftest.er1
2182 cat conftest.er1 >&5
2183 mv -f conftest.er1 conftest.err
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } > conftest.i && {
2187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2188 test ! -s conftest.err
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 as_fn_set_status $ac_retval
2202 # ac_fn_c_try_link LINENO
2203 # -----------------------
2204 # Try to link conftest.$ac_ext, and return whether this succeeded.
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 rm -f conftest.$ac_objext conftest$ac_exeext
2209 if { { ac_try="$ac_link"
2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216 (eval "$ac_link") 2>conftest.err
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } && {
2225 test -z "$ac_c_werror_flag" ||
2226 test ! -s conftest.err
2227 } && test -s conftest$ac_exeext && {
2228 test "$cross_compiling" = yes ||
2229 test -x conftest$ac_exeext
2233 $as_echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2238 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2239 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2240 # interfere with the next link command; also delete a directory that is
2241 # left behind by Apple's compiler. We do this before executing the actions.
2242 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 as_fn_set_status $ac_retval
2246 } # ac_fn_c_try_link
2248 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists and can be compiled using the include files in
2251 # INCLUDES, setting the cache variable VAR accordingly.
2252 ac_fn_c_check_header_compile ()
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if eval \${$3+:} false; then :
2258 $as_echo_n "(cached) " >&6
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2265 if ac_fn_c_try_compile "$LINENO"; then :
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277 } # ac_fn_c_check_header_compile
2279 # ac_fn_c_try_run LINENO
2280 # ----------------------
2281 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2282 # that executables *can* be run.
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 if { { ac_try="$ac_link"
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 $as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>&5
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2297 { { case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_try") 2>&5
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; }; }; then :
2309 $as_echo "$as_me: program exited with status $ac_status" >&5
2310 $as_echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2313 ac_retval=$ac_status
2315 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 as_fn_set_status $ac_retval
2321 # ac_fn_c_check_func LINENO FUNC VAR
2322 # ----------------------------------
2323 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2324 ac_fn_c_check_func ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if eval \${$3+:} false; then :
2330 $as_echo_n "(cached) " >&6
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2335 #define $2 innocuous_$2
2337 # include <limits.h>
2339 # include <assert.h>
2346 #if defined __stub_$2 || defined __stub___$2
2357 if ac_fn_c_try_link "$LINENO"; then :
2362 rm -f core conftest.err conftest.$ac_objext \
2363 conftest$ac_exeext conftest.$ac_ext
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 } # ac_fn_c_check_func
2372 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2373 # -------------------------------------------------------
2374 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2375 # the include files in INCLUDES and setting the cache variable VAR
2377 ac_fn_c_check_header_mongrel ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 if eval \${$3+:} false; then :
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2382 $as_echo_n "checking for $2... " >&6; }
2383 if eval \${$3+:} false; then :
2384 $as_echo_n "(cached) " >&6
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2390 # Is the header compilable?
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2392 $as_echo_n "checking $2 usability... " >&6; }
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399 ac_header_compiler=yes
2401 ac_header_compiler=no
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2405 $as_echo "$ac_header_compiler" >&6; }
2407 # Is the header present?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2409 $as_echo_n "checking $2 presence... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2414 if ac_fn_c_try_cpp "$LINENO"; then :
2415 ac_header_preproc=yes
2417 ac_header_preproc=no
2419 rm -f conftest.err conftest.i conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2421 $as_echo "$ac_header_preproc" >&6; }
2423 # So? What about this header?
2424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2427 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2429 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2433 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2435 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2437 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2439 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2441 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2442 ( $as_echo "## ----------------------------------------------------------------------- ##
2443 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2444 ## ----------------------------------------------------------------------- ##"
2445 ) | sed "s/^/$as_me: WARNING: /" >&2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if eval \${$3+:} false; then :
2451 $as_echo_n "(cached) " >&6
2453 eval "$3=\$ac_header_compiler"
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 } # ac_fn_c_check_header_mongrel
2463 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2464 # --------------------------------------------
2465 # Tries to find the compile-time value of EXPR in a program that includes
2466 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2468 ac_fn_c_compute_int ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 if test "$cross_compiling" = yes; then
2472 # Depending upon the size, compute the lo and hi bounds.
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2478 static int test_array [1 - 2 * !(($2) >= 0)];
2480 return test_array [0];
2486 if ac_fn_c_try_compile "$LINENO"; then :
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2494 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2496 return test_array [0];
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503 ac_hi=$ac_mid; break
2505 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2506 if test $ac_lo -le $ac_mid; then
2510 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2520 static int test_array [1 - 2 * !(($2) < 0)];
2522 return test_array [0];
2528 if ac_fn_c_try_compile "$LINENO"; then :
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2536 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2538 return test_array [0];
2544 if ac_fn_c_try_compile "$LINENO"; then :
2545 ac_lo=$ac_mid; break
2547 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2548 if test $ac_mid -le $ac_hi; then
2552 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 # Binary search between lo and hi bounds.
2563 while test "x$ac_lo" != "x$ac_hi"; do
2564 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2570 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2572 return test_array [0];
2578 if ac_fn_c_try_compile "$LINENO"; then :
2581 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2593 static long int longval () { return $2; }
2594 static unsigned long int ulongval () { return $2; }
2600 FILE *f = fopen ("conftest.val", "w");
2605 long int i = longval ();
2608 fprintf (f, "%ld", i);
2612 unsigned long int i = ulongval ();
2615 fprintf (f, "%lu", i);
2617 /* Do not output a trailing newline, as this causes \r\n confusion
2618 on some platforms. */
2619 return ferror (f) || fclose (f) != 0;
2625 if ac_fn_c_try_run "$LINENO"; then :
2626 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2631 conftest.$ac_objext conftest.beam conftest.$ac_ext
2635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2636 as_fn_set_status $ac_retval
2638 } # ac_fn_c_compute_int
2640 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2641 # -------------------------------------------
2642 # Tests whether TYPE exists after having included INCLUDES, setting cache
2643 # variable VAR accordingly.
2644 ac_fn_c_check_type ()
2646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2648 $as_echo_n "checking for $2... " >&6; }
2649 if eval \${$3+:} false; then :
2650 $as_echo_n "(cached) " >&6
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2676 if ac_fn_c_try_compile "$LINENO"; then :
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 } # ac_fn_c_check_type
2692 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2693 # ----------------------------------------------------
2694 # Tries to find if the field MEMBER exists in type AGGR, after including
2695 # INCLUDES, setting cache variable VAR accordingly.
2696 ac_fn_c_check_member ()
2698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2700 $as_echo_n "checking for $2.$3... " >&6; }
2701 if eval \${$4+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705 /* end confdefs.h. */
2716 if ac_fn_c_try_compile "$LINENO"; then :
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2725 if (sizeof ac_aggr.$3)
2731 if ac_fn_c_try_compile "$LINENO"; then :
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745 } # ac_fn_c_check_member
2746 cat >config.log <<_ACEOF
2747 This file contains any messages produced by compilers while
2748 running configure, to aid debugging if configure makes a mistake.
2750 It was created by curl $as_me -, which was
2751 generated by GNU Autoconf 2.69. Invocation command line was
2763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2775 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 $as_echo "PATH: $as_dir"
2803 # Keep a trace of the command line.
2804 # Strip out --no-create and --no-recursion so they do not pile up.
2805 # Strip out --silent because we don't want to record it for future runs.
2806 # Also quote any args containing shell meta-characters.
2807 # Make two passes to allow for proper duplicate-argument suppression.
2811 ac_must_keep_next=false
2817 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2819 | -silent | --silent | --silen | --sile | --sil)
2822 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2825 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2827 as_fn_append ac_configure_args1 " '$ac_arg'"
2828 if test $ac_must_keep_next = true; then
2829 ac_must_keep_next=false # Got value, back to normal.
2832 *=* | --config-cache | -C | -disable-* | --disable-* \
2833 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2834 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2835 | -with-* | --with-* | -without-* | --without-* | --x)
2836 case "$ac_configure_args0 " in
2837 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2840 -* ) ac_must_keep_next=true ;;
2843 as_fn_append ac_configure_args " '$ac_arg'"
2848 { ac_configure_args0=; unset ac_configure_args0;}
2849 { ac_configure_args1=; unset ac_configure_args1;}
2851 # When interrupted or exit'd, cleanup temporary files, and complete
2852 # config.log. We remove comments because anyway the quotes in there
2853 # would cause problems or look ugly.
2854 # WARNING: Use '\'' to represent an apostrophe within the trap.
2855 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2856 trap 'exit_status=$?
2857 # Save into config.log some information that might help in debugging.
2861 $as_echo "## ---------------- ##
2862 ## Cache variables. ##
2863 ## ---------------- ##"
2865 # The following way of writing the cache mishandles newlines in values,
2867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2868 eval ac_val=\$$ac_var
2872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2876 _ | IFS | as_nl) ;; #(
2877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2878 *) { eval $ac_var=; unset $ac_var;} ;;
2883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2884 *${as_nl}ac_space=\ *)
2886 "s/'\''/'\''\\\\'\'''\''/g;
2887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2897 $as_echo "## ----------------- ##
2898 ## Output variables. ##
2899 ## ----------------- ##"
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2907 $as_echo "$ac_var='\''$ac_val'\''"
2911 if test -n "$ac_subst_files"; then
2912 $as_echo "## ------------------- ##
2913 ## File substitutions. ##
2914 ## ------------------- ##"
2916 for ac_var in $ac_subst_files
2918 eval ac_val=\$$ac_var
2920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2922 $as_echo "$ac_var='\''$ac_val'\''"
2927 if test -s confdefs.h; then
2928 $as_echo "## ----------- ##
2935 test "$ac_signal" != 0 &&
2936 $as_echo "$as_me: caught signal $ac_signal"
2937 $as_echo "$as_me: exit $exit_status"
2939 rm -f core *.core core.conftest.* &&
2940 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2943 for ac_signal in 1 2 13 15; do
2944 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2948 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2949 rm -f -r conftest* confdefs.h
2951 $as_echo "/* confdefs.h */" > confdefs.h
2953 # Predefined preprocessor variables.
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_NAME "$PACKAGE_NAME"
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_STRING "$PACKAGE_STRING"
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_URL "$PACKAGE_URL"
2980 # Let the site file select an alternate cache file if it wants to.
2981 # Prefer an explicitly selected file to automatically selected ones.
2984 if test -n "$CONFIG_SITE"; then
2985 # We do not want a PATH search for config.site.
2986 case $CONFIG_SITE in #((
2987 -*) ac_site_file1=./$CONFIG_SITE;;
2988 */*) ac_site_file1=$CONFIG_SITE;;
2989 *) ac_site_file1=./$CONFIG_SITE;;
2991 elif test "x$prefix" != xNONE; then
2992 ac_site_file1=$prefix/share/config.site
2993 ac_site_file2=$prefix/etc/config.site
2995 ac_site_file1=$ac_default_prefix/share/config.site
2996 ac_site_file2=$ac_default_prefix/etc/config.site
2998 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3000 test "x$ac_site_file" = xNONE && continue
3001 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3003 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3004 sed 's/^/| /' "$ac_site_file" >&5
3006 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error $? "failed to load site script $ac_site_file
3009 See \`config.log' for more details" "$LINENO" 5; }
3013 if test -r "$cache_file"; then
3014 # Some versions of bash will fail to source /dev/null (special files
3015 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3016 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3018 $as_echo "$as_me: loading cache $cache_file" >&6;}
3020 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3021 *) . "./$cache_file";;
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3026 $as_echo "$as_me: creating cache $cache_file" >&6;}
3030 # Check that the precious variables saved in the cache have kept the same
3032 ac_cache_corrupted=false
3033 for ac_var in $ac_precious_vars; do
3034 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3035 eval ac_new_set=\$ac_env_${ac_var}_set
3036 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3037 eval ac_new_val=\$ac_env_${ac_var}_value
3038 case $ac_old_set,$ac_new_set in
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3041 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3042 ac_cache_corrupted=: ;;
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3045 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3046 ac_cache_corrupted=: ;;
3049 if test "x$ac_old_val" != "x$ac_new_val"; then
3050 # differences in whitespace do not lead to failure.
3051 ac_old_val_w=`echo x $ac_old_val`
3052 ac_new_val_w=`echo x $ac_new_val`
3053 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3055 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3056 ac_cache_corrupted=:
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3059 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3060 eval $ac_var=\$ac_old_val
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3063 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3065 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3068 # Pass precious variables to config.status.
3069 if test "$ac_new_set" = set; then
3071 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3072 *) ac_arg=$ac_var=$ac_new_val ;;
3074 case " $ac_configure_args " in
3075 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3076 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3080 if $ac_cache_corrupted; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3084 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3085 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3087 ## -------------------- ##
3088 ## Main body of script. ##
3089 ## -------------------- ##
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 # using curl-override.m4
3109 ac_config_headers="$ac_config_headers lib/curl_config.h"
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3114 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3115 # Check whether --enable-maintainer-mode was given.
3116 if test "${enable_maintainer_mode+set}" = set; then :
3117 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3119 USE_MAINTAINER_MODE=no
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3123 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3124 if test $USE_MAINTAINER_MODE = yes; then
3125 MAINTAINER_MODE_TRUE=
3126 MAINTAINER_MODE_FALSE='#'
3128 MAINTAINER_MODE_TRUE='#'
3129 MAINTAINER_MODE_FALSE=
3132 MAINT=$MAINTAINER_MODE_TRUE
3135 # Check whether --enable-silent-rules was given.
3136 if test "${enable_silent_rules+set}" = set; then :
3137 enableval=$enable_silent_rules;
3140 case $enable_silent_rules in # (((
3141 yes) AM_DEFAULT_VERBOSITY=0;;
3142 no) AM_DEFAULT_VERBOSITY=1;;
3143 *) AM_DEFAULT_VERBOSITY=0;;
3145 am_make=${MAKE-make}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3147 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3148 if ${am_cv_make_support_nested_variables+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 if $as_echo 'TRUE=$(BAR$(V))
3157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3158 am_cv_make_support_nested_variables=yes
3160 am_cv_make_support_nested_variables=no
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3165 if test $am_cv_make_support_nested_variables = yes; then
3167 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3169 AM_V=$AM_DEFAULT_VERBOSITY
3170 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3177 $as_echo_n "checking whether to enable debug build options... " >&6; }
3178 OPT_DEBUG_BUILD="default"
3179 # Check whether --enable-debug was given.
3180 if test "${enable_debug+set}" = set; then :
3181 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3184 case "$OPT_DEBUG_BUILD" in
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3196 $as_echo "$want_debug" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3200 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3201 OPT_COMPILER_OPTIMIZE="default"
3202 # Check whether --enable-optimize was given.
3203 if test "${enable_optimize+set}" = set; then :
3204 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3207 case "$OPT_COMPILER_OPTIMIZE" in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "$want_debug" = "yes"; then
3215 want_optimize="assume_no"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3217 $as_echo "(assumed) no" >&6; }
3219 want_optimize="assume_yes"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3221 $as_echo "(assumed) yes" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3233 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3234 OPT_COMPILER_WARNINGS="default"
3235 # Check whether --enable-warnings was given.
3236 if test "${enable_warnings+set}" = set; then :
3237 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3240 case "$OPT_COMPILER_WARNINGS" in
3245 want_warnings="$want_debug"
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3252 $as_echo "$want_warnings" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3256 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3257 OPT_COMPILER_WERROR="default"
3258 # Check whether --enable-werror was given.
3259 if test "${enable_werror+set}" = set; then :
3260 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3263 case "$OPT_COMPILER_WERROR" in
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3275 $as_echo "$want_werror" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3279 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3280 OPT_CURLDEBUG_BUILD="default"
3281 # Check whether --enable-curldebug was given.
3282 if test "${enable_curldebug+set}" = set; then :
3283 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3286 case "$OPT_CURLDEBUG_BUILD" in
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3293 if test "$want_debug" = "yes"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3295 $as_echo "(assumed) yes" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3300 want_curldebug_assumed="yes"
3301 want_curldebug="$want_debug"
3304 want_curldebug="yes"
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3312 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3313 OPT_SYMBOL_HIDING="default"
3314 # Check whether --enable-symbol-hiding was given.
3315 if test "${enable_symbol_hiding+set}" = set; then :
3316 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3319 # Check whether --enable-hidden-symbols was given.
3320 if test "${enable_hidden_symbols+set}" = set; then :
3321 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3324 case "$OPT_SYMBOL_HIDING" in
3326 want_symbol_hiding="no"
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3331 want_symbol_hiding="yes"
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3336 want_symbol_hiding="yes"
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3344 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3346 # Check whether --enable-ares was given.
3347 if test "${enable_ares+set}" = set; then :
3348 enableval=$enable_ares; OPT_ARES=$enableval
3360 if test -n "$enableval" && test "$enableval" != "yes"; then
3361 want_ares_path="$enableval"
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3366 $as_echo "$want_ares" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3370 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3372 # Check whether --enable-rt was given.
3373 if test "${enable_rt+set}" = set; then :
3374 enableval=$enable_rt; OPT_RT=$enableval
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3386 $as_echo "(assumed no)" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3397 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3400 if test -z "$xc_configure_preamble_result"; then
3401 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3405 # Check that 'PATH_SEPARATOR' has already been set.
3408 if test -z "$xc_PATH_SEPARATOR"; then
3409 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3411 if test -z "$PATH_SEPARATOR"; then
3412 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3415 $as_echo_n "checking for path separator... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3417 $as_echo "$PATH_SEPARATOR" >&6; }
3418 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3420 $as_echo_n "checking for initial path separator... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3422 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3423 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3427 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3428 if ${ac_cv_path_SED+:} false; then :
3429 $as_echo_n "(cached) " >&6
3431 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3432 for ac_i in 1 2 3 4 5 6 7; do
3433 ac_script="$ac_script$as_nl$ac_script"
3435 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3436 { ac_script=; unset ac_script;}
3437 if test -z "$SED"; then
3438 ac_path_SED_found=false
3439 # Loop through the user's path and test for each of PROGNAME-LIST
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_prog in sed gsed; do
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3448 as_fn_executable_p "$ac_path_SED" || continue
3449 # Check for GNU ac_path_SED and select it if it is found.
3450 # Check for GNU $ac_path_SED
3451 case `"$ac_path_SED" --version 2>&1` in
3453 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3456 $as_echo_n 0123456789 >"conftest.in"
3459 cat "conftest.in" "conftest.in" >"conftest.tmp"
3460 mv "conftest.tmp" "conftest.in"
3461 cp "conftest.in" "conftest.nl"
3462 $as_echo '' >> "conftest.nl"
3463 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3465 as_fn_arith $ac_count + 1 && ac_count=$as_val
3466 if test $ac_count -gt ${ac_path_SED_max-0}; then
3467 # Best one so far, save it but keep looking for a better one
3468 ac_cv_path_SED="$ac_path_SED"
3469 ac_path_SED_max=$ac_count
3471 # 10*(2^10) chars as input seems more than enough
3472 test $ac_count -gt 10 && break
3474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3477 $ac_path_SED_found && break 3
3482 if test -z "$ac_cv_path_SED"; then
3483 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3491 $as_echo "$ac_cv_path_SED" >&6; }
3492 SED="$ac_cv_path_SED"
3498 # allow to override gcov location
3500 # Check whether --with-gcov was given.
3501 if test "${with_gcov+set}" = set; then :
3502 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3504 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3509 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3510 # Check whether --enable-code-coverage was given.
3511 if test "${enable_code_coverage+set}" = set; then :
3512 enableval=$enable_code_coverage;
3514 enable_code_coverage=no
3518 if test x$enable_code_coverage = xyes; then
3519 CODE_COVERAGE_ENABLED_TRUE=
3520 CODE_COVERAGE_ENABLED_FALSE='#'
3522 CODE_COVERAGE_ENABLED_TRUE='#'
3523 CODE_COVERAGE_ENABLED_FALSE=
3526 CODE_COVERAGE_ENABLED=$enable_code_coverage
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3529 $as_echo "$enable_code_coverage" >&6; }
3531 if test "$enable_code_coverage" = "yes" ; then :
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_GCOV+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$GCOV"; then
3543 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 GCOV=$ac_cv_prog_GCOV
3563 if test -n "$GCOV"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3565 $as_echo "$GCOV" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_GCOV"; then
3575 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3576 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$ac_ct_GCOV"; then
3583 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3603 if test -n "$ac_ct_GCOV"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3605 $as_echo "$ac_ct_GCOV" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_GCOV" = x; then
3614 case $cross_compiling:$ac_tool_warned in
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3623 GCOV="$ac_cv_prog_GCOV"
3626 if test "X$GCOV" = "X:"; then :
3627 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3631 if test "$GCC" = "no" ; then :
3633 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3637 # Extract the first word of "lcov", so it can be a program name with args.
3638 set dummy lcov; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if ${ac_cv_prog_LCOV+:} false; then :
3642 $as_echo_n "(cached) " >&6
3644 if test -n "$LCOV"; then
3645 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_LCOV="lcov"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 LCOV=$ac_cv_prog_LCOV
3665 if test -n "$LCOV"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3667 $as_echo "$LCOV" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3674 # Extract the first word of "genhtml", so it can be a program name with args.
3675 set dummy genhtml; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_GENHTML+:} false; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$GENHTML"; then
3682 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_GENHTML="genhtml"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 GENHTML=$ac_cv_prog_GENHTML
3702 if test -n "$GENHTML"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3704 $as_echo "$GENHTML" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3712 if test -z "$LCOV" ; then :
3714 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3718 if test -z "$GENHTML" ; then :
3720 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3724 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3725 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3726 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3727 CODE_COVERAGE_LIBS="-lgcov"
3728 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3736 CODE_COVERAGE_RULES_CHECK='
3737 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3738 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3740 CODE_COVERAGE_RULES_CAPTURE='
3741 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
3742 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
3743 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3744 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
3745 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3747 CODE_COVERAGE_RULES_CLEAN='
3748 clean: code-coverage-clean
3749 distclean: code-coverage-clean
3750 code-coverage-clean:
3751 -$(LCOV) --directory $(top_builddir) -z
3752 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3753 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
3758 CODE_COVERAGE_RULES_CHECK='
3759 @echo "Need to reconfigure with --enable-code-coverage"
3761 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
3762 CODE_COVERAGE_RULES_CLEAN=''
3766 CODE_COVERAGE_RULES='
3770 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3771 # Multiple directories may be specified, separated by whitespace.
3772 # (Default: $(top_builddir))
3773 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3774 # by lcov for code coverage. (Default:
3775 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3776 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3777 # reports to be created. (Default:
3778 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3779 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
3780 # set to 0 to disable it and leave empty to stay with the default.
3782 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
3783 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3784 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
3785 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3786 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3787 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
3788 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3789 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
3790 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3791 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
3792 # lcov instance. (Default: empty)
3793 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
3794 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3795 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
3796 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3797 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3798 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3799 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3801 # The generated report will be titled using the $(PACKAGE_NAME) and
3802 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
3803 # use the git-version-gen script, available online.
3805 # Optional variables
3806 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3807 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3808 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3809 CODE_COVERAGE_BRANCH_COVERAGE ?=
3810 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3811 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3812 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3813 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3814 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3815 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3816 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
3817 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3818 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
3819 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3820 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3821 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3822 CODE_COVERAGE_IGNORE_PATTERN ?=
3825 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3827 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
3828 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
3829 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
3830 $(CODE_COVERAGE_OUTPUT_FILE);
3831 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
3832 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
3833 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
3834 $(CODE_COVERAGE_IGNORE_PATTERN);
3835 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
3836 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
3837 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
3838 code_coverage_quiet = $(code_coverage_quiet_$(V))
3839 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
3840 code_coverage_quiet_0 = --quiet
3842 # sanitizes the test-name: replaces with underscores: dashes and dots
3843 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
3845 # Use recursive makes in order to ignore errors during check
3846 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
3848 # Capture code coverage data
3849 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
3851 # Hook rule executed before code-coverage-capture, overridable by the user
3852 code-coverage-capture-hook:
3854 '"$CODE_COVERAGE_RULES_CLEAN"'
3856 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
3857 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3859 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3867 # save the configure arguments
3869 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3872 CURL_CFLAG_EXTRAS=""
3873 if test X"$want_werror" = Xyes; then
3874 CURL_CFLAG_EXTRAS="-Werror"
3878 if test -z "$SED"; then
3879 # Extract the first word of "sed", so it can be a program name with args.
3880 set dummy sed; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_path_SED+:} false; then :
3884 $as_echo_n "(cached) " >&6
3888 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3893 for as_dir in $as_dummy
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3912 if test -n "$SED"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3914 $as_echo "$SED" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3921 if test -z "$SED" || test "$SED" = "not_found"; then
3922 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3927 if test -z "$GREP"; then
3928 # Extract the first word of "grep", so it can be a program name with args.
3929 set dummy grep; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if ${ac_cv_path_GREP+:} false; then :
3933 $as_echo_n "(cached) " >&6
3937 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3942 for as_dir in $as_dummy
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3960 GREP=$ac_cv_path_GREP
3961 if test -n "$GREP"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3963 $as_echo "$GREP" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3970 if test -z "$GREP" || test "$GREP" = "not_found"; then
3971 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3976 if test -z "$EGREP"; then
3977 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3979 $as_echo_n "checking for egrep... " >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3982 $as_echo "$EGREP" >&6; }
3984 # Extract the first word of "egrep", so it can be a program name with args.
3985 set dummy egrep; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_path_EGREP+:} false; then :
3989 $as_echo_n "(cached) " >&6
3993 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3998 for as_dir in $as_dummy
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4016 EGREP=$ac_cv_path_EGREP
4017 if test -n "$EGREP"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4019 $as_echo "$EGREP" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4028 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4029 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
4033 if test -z "$AR"; then
4034 if test -n "$ac_tool_prefix"; then
4035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4036 set dummy ${ac_tool_prefix}ar; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if ${ac_cv_path_AR+:} false; then :
4040 $as_echo_n "(cached) " >&6
4044 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4049 for as_dir in $as_dummy
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 if test -n "$AR"; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4069 $as_echo "$AR" >&6; }
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 $as_echo "no" >&6; }
4077 if test -z "$ac_cv_path_AR"; then
4079 # Extract the first word of "ar", so it can be a program name with args.
4080 set dummy ar; ac_word=$2
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if ${ac_cv_path_ac_pt_AR+:} false; then :
4084 $as_echo_n "(cached) " >&6
4088 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4093 for as_dir in $as_dummy
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 ac_pt_AR=$ac_cv_path_ac_pt_AR
4111 if test -n "$ac_pt_AR"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4113 $as_echo "$ac_pt_AR" >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4119 if test "x$ac_pt_AR" = x; then
4122 case $cross_compiling:$ac_tool_warned in
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126 ac_tool_warned=yes ;;
4134 if test -z "$AR" || test "$AR" = "not_found"; then
4135 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4142 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4144 xc_prog_cc_prev_IFS=$IFS
4145 xc_prog_cc_prev_LIBS=$LIBS
4146 xc_prog_cc_prev_CFLAGS=$CFLAGS
4147 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4148 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4153 for xc_word in $LIBS; do
4163 if test $xc_bad_var_libs = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4165 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4167 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4171 xc_bad_var_ldflags=no
4172 for xc_word in $LDFLAGS; do
4175 xc_bad_var_ldflags=yes
4178 xc_bad_var_ldflags=yes
4181 xc_bad_var_ldflags=yes
4184 xc_bad_var_ldflags=yes
4188 if test $xc_bad_var_ldflags = yes; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4190 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4191 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4192 for xc_word in $LDFLAGS; do
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4196 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4200 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4204 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4208 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4215 xc_bad_var_cppflags=no
4216 for xc_word in $CPPFLAGS; do
4219 xc_bad_var_cppflags=yes
4221 -L* | --library-path=*)
4222 xc_bad_var_cppflags=yes
4225 xc_bad_var_cppflags=yes
4229 if test $xc_bad_var_cppflags = yes; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4231 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4232 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4233 for xc_word in $CPPFLAGS; do
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4237 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4239 -L* | --library-path=*)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4241 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4245 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4252 xc_bad_var_cflags=no
4253 for xc_word in $CFLAGS; do
4256 xc_bad_var_cflags=yes
4259 xc_bad_var_cflags=yes
4262 xc_bad_var_cflags=yes
4265 xc_bad_var_cflags=yes
4267 -L* | --library-path=*)
4268 xc_bad_var_cflags=yes
4271 xc_bad_var_cflags=yes
4275 if test $xc_bad_var_cflags = yes; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4277 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
4278 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4279 for xc_word in $CFLAGS; do
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4283 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4287 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4291 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4295 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4297 -L* | --library-path=*)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4299 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4303 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4309 if test $xc_bad_var_libs = yes ||
4310 test $xc_bad_var_cflags = yes ||
4311 test $xc_bad_var_ldflags = yes ||
4312 test $xc_bad_var_cppflags = yes; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4314 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4319 if test -f "$ac_dir/install-sh"; then
4321 ac_install_sh="$ac_aux_dir/install-sh -c"
4323 elif test -f "$ac_dir/install.sh"; then
4325 ac_install_sh="$ac_aux_dir/install.sh -c"
4327 elif test -f "$ac_dir/shtool"; then
4329 ac_install_sh="$ac_aux_dir/shtool install -c"
4333 if test -z "$ac_aux_dir"; then
4334 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4337 # These three variables are undocumented and unsupported,
4338 # and are intended to be withdrawn in a future Autoconf release.
4339 # They can cause serious problems if a builder's source tree is in a directory
4340 # whose full name contains unusual characters.
4341 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4342 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4343 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4346 # Find a good install program. We prefer a C program (faster),
4347 # so one script is as good as another. But avoid the broken or
4348 # incompatible versions:
4349 # SysV /etc/install, /usr/sbin/install
4350 # SunOS /usr/etc/install
4351 # IRIX /sbin/install
4353 # AmigaOS /C/install, which installs bootblocks on floppy discs
4354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4357 # OS/2's system install, which has a completely different semantic
4358 # ./install, which can be erroneously created by make from ./install.sh.
4359 # Reject install programs that cannot install multiple files.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4362 if test -z "$INSTALL"; then
4363 if ${ac_cv_path_install+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir=.
4371 # Account for people who put trailing slashes in PATH elements.
4372 case $as_dir/ in #((
4373 ./ | .// | /[cC]/* | \
4374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4375 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4378 # OSF1 and SCO ODT 3.0 have their own names for install.
4379 # Don't use installbsd from OSF since it installs stuff as root
4381 for ac_prog in ginstall scoinst install; do
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4384 if test $ac_prog = install &&
4385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4386 # AIX install. It has an incompatible calling convention.
4388 elif test $ac_prog = install &&
4389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4390 # program-specific install script used by HP pwplus--don't use.
4393 rm -rf conftest.one conftest.two conftest.dir
4394 echo one > conftest.one
4395 echo two > conftest.two
4397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4398 test -s conftest.one && test -s conftest.two &&
4399 test -s conftest.dir/conftest.one &&
4400 test -s conftest.dir/conftest.two
4402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4415 rm -rf conftest.one conftest.two conftest.dir
4418 if test "${ac_cv_path_install+set}" = set; then
4419 INSTALL=$ac_cv_path_install
4421 # As a last resort, use the slow shell script. Don't cache a
4422 # value for INSTALL within a source directory, because that will
4423 # break other packages using the cache if that directory is
4424 # removed, or if the value is a relative name.
4425 INSTALL=$ac_install_sh
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4429 $as_echo "$INSTALL" >&6; }
4431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4432 # It thinks the first close brace ends the variable substitution.
4433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4439 # Expand $ac_aux_dir to an absolute path.
4440 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_CC+:} false; then :
4453 $as_echo_n "(cached) " >&6
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 if test -n "$CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4486 if test -z "$ac_cv_prog_CC"; then
4488 # Extract the first word of "gcc", so it can be a program name with args.
4489 set dummy gcc; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$ac_ct_CC"; then
4496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_ac_ct_CC="gcc"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516 if test -n "$ac_ct_CC"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4518 $as_echo "$ac_ct_CC" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4524 if test "x$ac_ct_CC" = x; then
4527 case $cross_compiling:$ac_tool_warned in
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4539 if test -z "$CC"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}cc; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_CC+:} false; then :
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_CC="${ac_tool_prefix}cc"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 if test -n "$CC"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4580 if test -z "$CC"; then
4581 # Extract the first word of "cc", so it can be a program name with args.
4582 set dummy cc; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4600 ac_prog_rejected=yes
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 if test $ac_prog_rejected = yes; then
4612 # We found a bogon in the path, so make sure we never use it.
4613 set dummy $ac_cv_prog_CC
4615 if test $# != 0; then
4616 # We chose a different compiler from the bogus one.
4617 # However, it has the same basename, so the bogon will be chosen
4618 # first if we set CC to just the basename; use the full file name.
4620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4626 if test -n "$CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4636 if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in cl.exe
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_CC+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC="$CC" # Let the user override the test.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 if test -n "$CC"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670 $as_echo "$CC" >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$CC" && break
4680 if test -z "$CC"; then
4682 for ac_prog in cl.exe
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_ac_ct_CC="$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 $as_echo "$ac_ct_CC" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4721 test -n "$ac_ct_CC" && break
4724 if test "x$ac_ct_CC" = x; then
4727 case $cross_compiling:$ac_tool_warned in
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error $? "no acceptable C compiler found in \$PATH
4743 See \`config.log' for more details" "$LINENO" 5; }
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4749 for ac_option in --version -v -V -qversion; do
4750 { { ac_try="$ac_compiler $ac_option >&5"
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4759 if test -s conftest.err; then
4761 ... rest of stderr output deleted ...
4762 10q' conftest.err >conftest.er1
4763 cat conftest.er1 >&5
4765 rm -f conftest.er1 conftest.err
4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4780 ac_clean_files_save=$ac_clean_files
4781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4782 # Try to create an executable without -o first, disregard a.out.
4783 # It will help us diagnose broken compilers, and finding out an intuition
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4786 $as_echo_n "checking whether the C compiler works... " >&6; }
4787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4789 # The possible output files:
4790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4793 for ac_file in $ac_files
4796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4802 if { { ac_try="$ac_link_default"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_link_default") 2>&5
4811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812 test $ac_status = 0; }; then :
4813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4818 for ac_file in $ac_files ''
4820 test -f "$ac_file" || continue
4822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4825 # We found the default executable, but exeext='' is most
4829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4833 # We set ac_cv_exeext here because the later test for it is not
4834 # safe: cross compilers may not add the suffix if given an `-o'
4835 # argument, so we may need to know it at that point already.
4836 # Even if this section looks crufty: it has the advantage of
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4848 if test -z "$ac_file"; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 $as_echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4856 as_fn_error 77 "C compiler cannot create executables
4857 See \`config.log' for more details" "$LINENO" 5; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4863 $as_echo_n "checking for C compiler default output file name... " >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4865 $as_echo "$ac_file" >&6; }
4866 ac_exeext=$ac_cv_exeext
4868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4869 ac_clean_files=$ac_clean_files_save
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4871 $as_echo_n "checking for suffix of executables... " >&6; }
4872 if { { ac_try="$ac_link"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_link") 2>&5
4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882 test $ac_status = 0; }; then :
4883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4885 # work properly (i.e., refer to `conftest.exe'), while it won't with
4887 for ac_file in conftest.exe conftest conftest.*; do
4888 test -f "$ac_file" || continue
4890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4900 See \`config.log' for more details" "$LINENO" 5; }
4902 rm -f conftest conftest$ac_cv_exeext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4904 $as_echo "$ac_cv_exeext" >&6; }
4906 rm -f conftest.$ac_ext
4907 EXEEXT=$ac_cv_exeext
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4914 FILE *f = fopen ("conftest.out", "w");
4915 return ferror (f) || fclose (f) != 0;
4921 ac_clean_files="$ac_clean_files conftest.out"
4922 # Check that the compiler produces executables we can run. If not, either
4923 # the compiler is broken, or we cross compile.
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4925 $as_echo_n "checking whether we are cross compiling... " >&6; }
4926 if test "$cross_compiling" != yes; then
4927 { { ac_try="$ac_link"
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933 $as_echo "$ac_try_echo"; } >&5
4934 (eval "$ac_link") 2>&5
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }
4938 if { ac_try='./conftest$ac_cv_exeext'
4939 { { case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944 $as_echo "$ac_try_echo"; } >&5
4945 (eval "$ac_try") 2>&5
4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948 test $ac_status = 0; }; }; then
4951 if test "$cross_compiling" = maybe; then
4954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4956 as_fn_error $? "cannot run C compiled programs.
4957 If you meant to cross compile, use \`--host'.
4958 See \`config.log' for more details" "$LINENO" 5; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4963 $as_echo "$cross_compiling" >&6; }
4965 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4966 ac_clean_files=$ac_clean_files_save
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4968 $as_echo_n "checking for suffix of object files... " >&6; }
4969 if ${ac_cv_objext+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4982 rm -f conftest.o conftest.obj
4983 if { { ac_try="$ac_compile"
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_compile") 2>&5
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then :
4994 for ac_file in conftest.o conftest.obj conftest.*; do
4995 test -f "$ac_file" || continue;
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5003 $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error $? "cannot compute suffix of object files: cannot compile
5009 See \`config.log' for more details" "$LINENO" 5; }
5011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5014 $as_echo "$ac_cv_objext" >&6; }
5015 OBJEXT=$ac_cv_objext
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5018 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5019 if ${ac_cv_c_compiler_gnu+:} false; then :
5020 $as_echo_n "(cached) " >&6
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5035 if ac_fn_c_try_compile "$LINENO"; then :
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5045 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5046 if test $ac_compiler_gnu = yes; then
5051 ac_test_CFLAGS=${CFLAGS+set}
5052 ac_save_CFLAGS=$CFLAGS
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5054 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5055 if ${ac_cv_prog_cc_g+:} false; then :
5056 $as_echo_n "(cached) " >&6
5058 ac_save_c_werror_flag=$ac_c_werror_flag
5059 ac_c_werror_flag=yes
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5072 if ac_fn_c_try_compile "$LINENO"; then :
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5086 if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_c_werror_flag=$ac_save_c_werror_flag
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5101 if ac_fn_c_try_compile "$LINENO"; then :
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ac_c_werror_flag=$ac_save_c_werror_flag
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5112 $as_echo "$ac_cv_prog_cc_g" >&6; }
5113 if test "$ac_test_CFLAGS" = set; then
5114 CFLAGS=$ac_save_CFLAGS
5115 elif test $ac_cv_prog_cc_g = yes; then
5116 if test "$GCC" = yes; then
5122 if test "$GCC" = yes; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5130 if ${ac_cv_prog_cc_c89+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 ac_cv_prog_cc_c89=no
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5141 struct buf { int x; };
5142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5143 static char *e (p, i)
5149 static char *f (char * (*g) (char **, int), char **p, ...)
5154 s = g (p, va_arg (v,int));
5159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5160 function prototypes and stuff, but not '\xHH' hex character constants.
5161 These don't provoke an error unfortunately, instead are silently treated
5162 as 'x'. The following induces an error, until -std is added to get
5163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5164 array size at least. It's necessary to write '\x00'==0 to get something
5165 that's true only with -std. */
5166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5169 inside strings and character constants. */
5171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5173 int test (int i, double x);
5174 struct s1 {int (*f) (int a);};
5175 struct s2 {int (*f) (double a);};
5176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5189 CC="$ac_save_CC $ac_arg"
5190 if ac_fn_c_try_compile "$LINENO"; then :
5191 ac_cv_prog_cc_c89=$ac_arg
5193 rm -f core conftest.err conftest.$ac_objext
5194 test "x$ac_cv_prog_cc_c89" != "xno" && break
5196 rm -f conftest.$ac_ext
5201 case "x$ac_cv_prog_cc_c89" in
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5204 $as_echo "none needed" >&6; } ;;
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5207 $as_echo "unsupported" >&6; } ;;
5209 CC="$CC $ac_cv_prog_cc_c89"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5213 if test "x$ac_cv_prog_cc_c89" != xno; then :
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5229 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5230 if ${am_cv_prog_cc_c_o+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5243 # Make sure it works both with $CC and with simple cc.
5244 # Following AC_PROG_CC_C_O, we do the test twice because some
5245 # compilers refuse to overwrite an existing .o file with -o,
5246 # though they will create one.
5247 am_cv_prog_cc_c_o=yes
5249 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5250 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } \
5254 && test -f conftest2.$ac_objext; then
5257 am_cv_prog_cc_c_o=no
5261 rm -f core conftest*
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5265 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5266 if test "$am_cv_prog_cc_c_o" != yes; then
5267 # Losing compiler, so override with the script.
5268 # FIXME: It is wrong to rewrite CC.
5269 # But if we don't then we get into trouble of one sort or another.
5270 # A longer-term fix would be to have automake use am__CC in this case,
5271 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5272 CC="$am_aux_dir/compile $CC"
5275 ac_cpp='$CPP $CPPFLAGS'
5276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5288 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5289 # On Suns, sometimes $CPP names a directory.
5290 if test -n "$CPP" && test -d "$CPP"; then
5293 if test -z "$CPP"; then
5294 if ${ac_cv_prog_CPP+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 # Double quotes because CPP needs to be expanded
5298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5301 for ac_c_preproc_warn_flag in '' yes
5303 # Use a header file that comes with gcc, so configuring glibc
5304 # with a fresh cross-compiler works.
5305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306 # <limits.h> exists even on freestanding compilers.
5307 # On the NeXT, cc -E runs the code through the compiler's parser,
5308 # not just through cpp. "Syntax error" is here to catch this case.
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5312 # include <limits.h>
5314 # include <assert.h>
5318 if ac_fn_c_try_cpp "$LINENO"; then :
5321 # Broken: fails on valid input.
5324 rm -f conftest.err conftest.i conftest.$ac_ext
5326 # OK, works on sane cases. Now check whether nonexistent headers
5327 # can be detected and how.
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #include <ac_nonexistent.h>
5332 if ac_fn_c_try_cpp "$LINENO"; then :
5333 # Broken: success on invalid input.
5336 # Passes both tests.
5340 rm -f conftest.err conftest.i conftest.$ac_ext
5343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5344 rm -f conftest.i conftest.err conftest.$ac_ext
5345 if $ac_preproc_ok; then :
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5358 $as_echo "$CPP" >&6; }
5360 for ac_c_preproc_warn_flag in '' yes
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5371 # include <limits.h>
5373 # include <assert.h>
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5380 # Broken: fails on valid input.
5383 rm -f conftest.err conftest.i conftest.$ac_ext
5385 # OK, works on sane cases. Now check whether nonexistent headers
5386 # can be detected and how.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <ac_nonexistent.h>
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392 # Broken: success on invalid input.
5395 # Passes both tests.
5399 rm -f conftest.err conftest.i conftest.$ac_ext
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.i conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5409 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5410 See \`config.log' for more details" "$LINENO" 5; }
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 IFS=$xc_prog_cc_prev_IFS
5421 LIBS=$xc_prog_cc_prev_LIBS
5422 CFLAGS=$xc_prog_cc_prev_CFLAGS
5423 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5424 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5430 am__api_version='1.15'
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5433 $as_echo_n "checking whether build environment is sane... " >&6; }
5434 # Reject unsafe characters in $srcdir or the absolute working directory
5435 # name. Accept space and tab only in the latter.
5439 *[\\\"\#\$\&\'\`$am_lf]*)
5440 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5443 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5444 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5447 # Do 'set' in a subshell so we don't clobber the current shell's
5448 # arguments. Must try -L first in case configure is actually a
5449 # symlink; some systems play weird games with the mod time of symlinks
5450 # (eg FreeBSD returns the mod time of the symlink's containing
5454 for am_try in 1 2; do
5455 echo "timestamp, slept: $am_has_slept" > conftest.file
5456 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5457 if test "$*" = "X"; then
5459 set X `ls -t "$srcdir/configure" conftest.file`
5461 if test "$*" != "X $srcdir/configure conftest.file" \
5462 && test "$*" != "X conftest.file $srcdir/configure"; then
5464 # If neither matched, then we have a broken ls. This can happen
5465 # if, for instance, CONFIG_SHELL is bash and it inherits a
5466 # broken ls alias from the environment. This has actually
5467 # happened. Such a system could not be considered "sane".
5468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5469 alias in your environment" "$LINENO" 5
5471 if test "$2" = conftest.file || test $am_try -eq 2; then
5478 test "$2" = conftest.file
5484 as_fn_error $? "newly created file is older than distributed files!
5485 Check your system clock" "$LINENO" 5
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5489 # If we didn't sleep, we still need to ensure time stamps of config.status and
5490 # generated files are strictly newer.
5492 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5499 test "$program_prefix" != NONE &&
5500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5501 # Use a double $ so make ignores it.
5502 test "$program_suffix" != NONE &&
5503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5504 # Double any \ or $.
5505 # By default was `s,x,x', remove it if useless.
5506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5509 if test x"${MISSING+set}" != xset; then
5512 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5514 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5517 # Use eval to expand $SHELL
5518 if eval "$MISSING --is-lightweight"; then
5519 am_missing_run="$MISSING "
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5523 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5526 if test x"${install_sh+set}" != xset; then
5529 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5531 install_sh="\${SHELL} $am_aux_dir/install-sh"
5535 # Installed binaries are usually stripped using 'strip' when the user
5536 # run "make install-strip". However 'strip' might not be the right
5537 # tool to use in cross-compilation environments, therefore Automake
5538 # will honor the 'STRIP' environment variable to overrule this program.
5539 if test "$cross_compiling" != no; then
5540 if test -n "$ac_tool_prefix"; then
5541 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}strip; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_STRIP+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -n "$STRIP"; then
5549 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 STRIP=$ac_cv_prog_STRIP
5569 if test -n "$STRIP"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5571 $as_echo "$STRIP" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5579 if test -z "$ac_cv_prog_STRIP"; then
5581 # Extract the first word of "strip", so it can be a program name with args.
5582 set dummy strip; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$ac_ct_STRIP"; then
5589 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_ac_ct_STRIP="strip"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5609 if test -n "$ac_ct_STRIP"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5611 $as_echo "$ac_ct_STRIP" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5617 if test "x$ac_ct_STRIP" = x; then
5620 case $cross_compiling:$ac_tool_warned in
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5629 STRIP="$ac_cv_prog_STRIP"
5633 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5636 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5637 if test -z "$MKDIR_P"; then
5638 if ${ac_cv_path_mkdir+:} false; then :
5639 $as_echo_n "(cached) " >&6
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5645 test -z "$as_dir" && as_dir=.
5646 for ac_prog in mkdir gmkdir; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5649 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5650 'mkdir (GNU coreutils) '* | \
5651 'mkdir (coreutils) '* | \
5652 'mkdir (fileutils) '4.1*)
5653 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5663 test -d ./--version && rmdir ./--version
5664 if test "${ac_cv_path_mkdir+set}" = set; then
5665 MKDIR_P="$ac_cv_path_mkdir -p"
5667 # As a last resort, use the slow shell script. Don't cache a
5668 # value for MKDIR_P within a source directory, because that will
5669 # break other packages using the cache if that directory is
5670 # removed, or if the value is a relative name.
5671 MKDIR_P="$ac_install_sh -d"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5675 $as_echo "$MKDIR_P" >&6; }
5677 for ac_prog in gawk mawk nawk awk
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_AWK+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$AWK"; then
5687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_AWK="$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 if test -n "$AWK"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5709 $as_echo "$AWK" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5716 test -n "$AWK" && break
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5724 $as_echo_n "(cached) " >&6
5726 cat >conftest.make <<\_ACEOF
5729 @echo '@@@%%%=$(MAKE)=@@@%%%'
5731 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5734 eval ac_cv_prog_make_${ac_make}_set=yes;;
5736 eval ac_cv_prog_make_${ac_make}_set=no;;
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 SET_MAKE="MAKE=${MAKE-make}"
5750 rm -rf .tst 2>/dev/null
5751 mkdir .tst 2>/dev/null
5752 if test -d .tst; then
5757 rmdir .tst 2>/dev/null
5759 DEPDIR="${am__leading_dot}deps"
5761 ac_config_commands="$ac_config_commands depfiles"
5764 am_make=${MAKE-make}
5765 cat > confinc << 'END'
5767 @echo this is the am__doit target
5770 # If we don't find an include directive, just comment out the code.
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5772 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5776 # First try GNU make style include.
5777 echo "include confinc" > confmf
5778 # Ignore all kinds of additional output from 'make'.
5779 case `$am_make -s -f confmf 2> /dev/null` in #(
5780 *the\ am__doit\ target*)
5786 # Now try BSD make style include.
5787 if test "$am__include" = "#"; then
5788 echo '.include "confinc"' > confmf
5789 case `$am_make -s -f confmf 2> /dev/null` in #(
5790 *the\ am__doit\ target*)
5791 am__include=.include
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5800 $as_echo "$_am_result" >&6; }
5801 rm -f confinc confmf
5803 # Check whether --enable-dependency-tracking was given.
5804 if test "${enable_dependency_tracking+set}" = set; then :
5805 enableval=$enable_dependency_tracking;
5808 if test "x$enable_dependency_tracking" != xno; then
5809 am_depcomp="$ac_aux_dir/depcomp"
5813 if test "x$enable_dependency_tracking" != xno; then
5822 ## --------------------------------------- ##
5823 ## Start of automake initialization code ##
5824 ## --------------------------------------- ##
5826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5828 # is not polluted with repeated "-I."
5829 am__isrc=' -I$(srcdir)'
5830 # test to see if srcdir already configured
5831 if test -f $srcdir/config.status; then
5832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5836 # test whether we have cygpath
5837 if test -z "$CYGPATH_W"; then
5838 if (cygpath --version) >/dev/null 2>/dev/null; then
5839 CYGPATH_W='cygpath -w'
5846 # Define the identity of the package.
5851 cat >>confdefs.h <<_ACEOF
5852 #define PACKAGE "$PACKAGE"
5856 cat >>confdefs.h <<_ACEOF
5857 #define VERSION "$VERSION"
5860 # Some tools Automake needs.
5862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5876 # For better backward compatibility. To be removed once Automake 1.9.x
5877 # dies out for good. For more background, see:
5878 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5879 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5880 mkdir_p='$(MKDIR_P)'
5882 # We need awk for the "check" target (and possibly the TAP driver). The
5883 # system "awk" is bad on some platforms.
5884 # Always define AMTAR for backward compatibility. Yes, it's still used
5885 # in the wild :-( We should find a proper way to deprecate it ...
5889 # We'll loop over all known methods to create a tar archive until one works.
5890 _am_tools='gnutar pax cpio none'
5892 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5898 depcc="$CC" am_compiler_list=
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5901 $as_echo_n "checking dependency style of $depcc... " >&6; }
5902 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5906 # We make a subdir and do the tests there. Otherwise we can end up
5907 # making bogus files that we don't know about and never remove. For
5908 # instance it was reported that on HP-UX the gcc test will end up
5909 # making a dummy file named 'D' -- because '-MD' means "put the output
5913 # Copy depcomp to subdir because otherwise we won't find it if we're
5914 # using a relative directory.
5915 cp "$am_depcomp" conftest.dir
5917 # We will build objects and dependencies in a subdirectory because
5918 # it helps to detect inapplicable dependency modes. For instance
5919 # both Tru64's cc and ICC support -MD to output dependencies as a
5920 # side effect of compilation, but ICC will put the dependencies in
5921 # the current directory while Tru64 will put them in the object
5925 am_cv_CC_dependencies_compiler_type=none
5926 if test "$am_compiler_list" = ""; then
5927 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5930 case " $depcc " in #(
5931 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5934 for depmode in $am_compiler_list; do
5935 # Setup a source with many dependencies, because some compilers
5936 # like to wrap large dependency lists on column 80 (with \), and
5937 # we should not choose a depcomp mode which is confused by this.
5939 # We need to recreate these files for each test, as the compiler may
5940 # overwrite some of them when testing with obscure command lines.
5941 # This happens at least with the AIX C compiler.
5943 for i in 1 2 3 4 5 6; do
5944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5945 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5946 # Solaris 10 /bin/sh.
5947 echo '/* dummy */' > sub/conftst$i.h
5949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5951 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5952 # mode. It turns out that the SunPro C++ compiler does not properly
5953 # handle '-M -o', and we need to detect this. Also, some Intel
5954 # versions had trouble with output in subdirs.
5955 am__obj=sub/conftest.${OBJEXT-o}
5956 am__minus_obj="-o $am__obj"
5959 # This depmode causes a compiler race in universal mode.
5960 test "$am__universal" = false || continue
5963 # After this tag, mechanisms are not by side-effect, so they'll
5964 # only be used when explicitly requested.
5965 if test "x$enable_dependency_tracking" = xyes; then
5971 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5972 # This compiler won't grok '-c -o', but also, the minuso test has
5973 # not run yet. These depmodes are late enough in the game, and
5974 # so weak that their functioning should not be impacted.
5975 am__obj=conftest.${OBJEXT-o}
5980 if depmode=$depmode \
5981 source=sub/conftest.c object=$am__obj \
5982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5984 >/dev/null 2>conftest.err &&
5985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5989 # icc doesn't choke on unknown options, it will just issue warnings
5990 # or remarks (even with -Werror). So we grep stderr for any message
5991 # that says an option was ignored or not supported.
5992 # When given -MP, icc 7.0 and 7.1 complain thusly:
5993 # icc: Command line warning: ignoring option '-M'; no argument required
5994 # The diagnosis changed in icc 8.0:
5995 # icc: Command line remark: option '-MP' not supported
5996 if (grep 'ignoring option' conftest.err ||
5997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5998 am_cv_CC_dependencies_compiler_type=$depmode
6007 am_cv_CC_dependencies_compiler_type=none
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6012 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6013 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6016 test "x$enable_dependency_tracking" != xno \
6017 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6019 am__fastdepCC_FALSE='#'
6021 am__fastdepCC_TRUE='#'
6022 am__fastdepCC_FALSE=
6027 # POSIX will say in a future version that running "rm -f" with no argument
6028 # is OK; and we want to be able to make that assumption in our Makefile
6029 # recipes. So use an aggressive probe to check that the usage we want is
6030 # actually supported "in the wild" to an acceptable degree.
6031 # See automake bug#10828.
6032 # To make any issue more visible, cause the running configure to be aborted
6033 # by default if the 'rm' program in use doesn't match our expectations; the
6034 # user can still override this though.
6035 if rm -f && rm -fr && rm -rf; then : OK; else
6039 Your 'rm' program seems unable to run without file operands specified
6040 on the command line, even when the '-f' option is present. This is contrary
6041 to the behaviour of most rm programs out there, and not conforming with
6042 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6044 Please tell bug-automake@gnu.org about your system, including the value
6045 of your $PATH and any error possibly output before this message. This
6046 can help us improve future automake versions.
6049 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6050 echo 'Configuration will proceed anyway, since you have set the' >&2
6051 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6055 Aborting the configuration process, to ensure you take notice of the issue.
6057 You can download and install GNU coreutils to get an 'rm' implementation
6058 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6060 If you want to complete the configuration process using your problematic
6061 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6062 to "yes", and re-run configure.
6065 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6069 ## ------------------------------------- ##
6070 ## End of automake initialization code ##
6071 ## ------------------------------------- ##
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6075 $as_echo_n "checking curl version... " >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6077 $as_echo "$CURLVERSION" >&6; }
6081 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6084 PKGADD_PKG="HAXXcurl"
6085 PKGADD_NAME="curl - a client that groks URLs"
6086 PKGADD_VENDOR="curl.haxx.se"
6091 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6092 curl_ssh_msg="no (--with-libssh2)"
6093 curl_zlib_msg="no (--with-zlib)"
6094 curl_gss_msg="no (--with-gssapi)"
6095 curl_tls_srp_msg="no (--enable-tls-srp)"
6096 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6097 curl_ipv6_msg="no (--enable-ipv6)"
6098 curl_unix_sockets_msg="no (--enable-unix-sockets)"
6099 curl_idn_msg="no (--with-{libidn2,winidn})"
6100 curl_manual_msg="no (--enable-manual)"
6101 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6102 curl_verbose_msg="enabled (--disable-verbose)"
6103 curl_sspi_msg="no (--enable-sspi)"
6104 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6105 curl_ldaps_msg="no (--enable-ldaps)"
6106 curl_rtsp_msg="no (--enable-rtsp)"
6107 curl_rtmp_msg="no (--with-librtmp)"
6108 curl_mtlnk_msg="no (--with-libmetalink)"
6109 curl_psl_msg="no (--with-libpsl)"
6113 INITIAL_LDFLAGS=$LDFLAGS
6117 # Make sure we can run config.sub.
6118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6119 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6122 $as_echo_n "checking build system type... " >&6; }
6123 if ${ac_cv_build+:} false; then :
6124 $as_echo_n "(cached) " >&6
6126 ac_build_alias=$build_alias
6127 test "x$ac_build_alias" = x &&
6128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6129 test "x$ac_build_alias" = x &&
6130 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6131 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6132 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6136 $as_echo "$ac_cv_build" >&6; }
6137 case $ac_cv_build in
6139 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6142 ac_save_IFS=$IFS; IFS='-'
6148 # Remember, the first character of IFS is used to create $*,
6149 # except with old shells:
6152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6156 $as_echo_n "checking host system type... " >&6; }
6157 if ${ac_cv_host+:} false; then :
6158 $as_echo_n "(cached) " >&6
6160 if test "x$host_alias" = x; then
6161 ac_cv_host=$ac_cv_build
6163 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6164 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6169 $as_echo "$ac_cv_host" >&6; }
6172 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6175 ac_save_IFS=$IFS; IFS='-'
6181 # Remember, the first character of IFS is used to create $*,
6182 # except with old shells:
6185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6189 cat >>confdefs.h <<_ACEOF
6190 #define OS "${host}"
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6199 if ${ac_cv_path_GREP+:} false; then :
6200 $as_echo_n "(cached) " >&6
6202 if test -z "$GREP"; then
6203 ac_path_GREP_found=false
6204 # Loop through the user's path and test for each of PROGNAME-LIST
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6209 test -z "$as_dir" && as_dir=.
6210 for ac_prog in grep ggrep; do
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6213 as_fn_executable_p "$ac_path_GREP" || continue
6214 # Check for GNU ac_path_GREP and select it if it is found.
6215 # Check for GNU $ac_path_GREP
6216 case `"$ac_path_GREP" --version 2>&1` in
6218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6221 $as_echo_n 0123456789 >"conftest.in"
6224 cat "conftest.in" "conftest.in" >"conftest.tmp"
6225 mv "conftest.tmp" "conftest.in"
6226 cp "conftest.in" "conftest.nl"
6227 $as_echo 'GREP' >> "conftest.nl"
6228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6230 as_fn_arith $ac_count + 1 && ac_count=$as_val
6231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6232 # Best one so far, save it but keep looking for a better one
6233 ac_cv_path_GREP="$ac_path_GREP"
6234 ac_path_GREP_max=$ac_count
6236 # 10*(2^10) chars as input seems more than enough
6237 test $ac_count -gt 10 && break
6239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6242 $ac_path_GREP_found && break 3
6247 if test -z "$ac_cv_path_GREP"; then
6248 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6251 ac_cv_path_GREP=$GREP
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6256 $as_echo "$ac_cv_path_GREP" >&6; }
6257 GREP="$ac_cv_path_GREP"
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6261 $as_echo_n "checking for egrep... " >&6; }
6262 if ${ac_cv_path_EGREP+:} false; then :
6263 $as_echo_n "(cached) " >&6
6265 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6266 then ac_cv_path_EGREP="$GREP -E"
6268 if test -z "$EGREP"; then
6269 ac_path_EGREP_found=false
6270 # Loop through the user's path and test for each of PROGNAME-LIST
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6275 test -z "$as_dir" && as_dir=.
6276 for ac_prog in egrep; do
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6279 as_fn_executable_p "$ac_path_EGREP" || continue
6280 # Check for GNU ac_path_EGREP and select it if it is found.
6281 # Check for GNU $ac_path_EGREP
6282 case `"$ac_path_EGREP" --version 2>&1` in
6284 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6287 $as_echo_n 0123456789 >"conftest.in"
6290 cat "conftest.in" "conftest.in" >"conftest.tmp"
6291 mv "conftest.tmp" "conftest.in"
6292 cp "conftest.in" "conftest.nl"
6293 $as_echo 'EGREP' >> "conftest.nl"
6294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6296 as_fn_arith $ac_count + 1 && ac_count=$as_val
6297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6298 # Best one so far, save it but keep looking for a better one
6299 ac_cv_path_EGREP="$ac_path_EGREP"
6300 ac_path_EGREP_max=$ac_count
6302 # 10*(2^10) chars as input seems more than enough
6303 test $ac_count -gt 10 && break
6305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6308 $ac_path_EGREP_found && break 3
6313 if test -z "$ac_cv_path_EGREP"; then
6314 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6317 ac_cv_path_EGREP=$EGREP
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6323 $as_echo "$ac_cv_path_EGREP" >&6; }
6324 EGREP="$ac_cv_path_EGREP"
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6330 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343 $as_echo "yes" >&6; }
6344 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6360 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6372 force compilation error
6380 if ac_fn_c_try_compile "$LINENO"; then :
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6383 $as_echo "yes" >&6; }
6384 tmp_thread_safe_initially_defined="yes"
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390 tmp_thread_safe_initially_defined="no"
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 if test "$tmp_thread_safe_initially_defined" = "no"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6397 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6400 aix[123].* | aix4.[012].*)
6401 tmp_need_thread_safe="no"
6404 tmp_need_thread_safe="yes"
6407 tmp_need_thread_safe="no"
6411 if test "$tmp_need_thread_safe" = "yes"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6413 $as_echo "yes" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6421 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6422 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6423 test "$tmp_need_thread_safe" = "yes"; then
6426 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6428 cat >>confdefs.h <<_EOF
6429 #ifndef _THREAD_SAFE
6430 # define _THREAD_SAFE
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6435 $as_echo "yes" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6445 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6457 force compilation error
6465 if ac_fn_c_try_compile "$LINENO"; then :
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6468 $as_echo "yes" >&6; }
6469 tmp_reentrant_initially_defined="yes"
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 tmp_reentrant_initially_defined="no"
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 if test "$tmp_reentrant_initially_defined" = "no"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6482 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6486 tmp_need_reentrant="yes"
6489 tmp_need_reentrant="no"
6493 if test "$tmp_need_reentrant" = "no"; then
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6512 if ac_fn_c_try_compile "$LINENO"; then :
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 if test "$tmp_errno" = "yes"; then
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6535 force compilation error
6543 if ac_fn_c_try_compile "$LINENO"; then :
6545 tmp_errno="errno_macro_defined"
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6562 force compilation error
6570 if ac_fn_c_try_compile "$LINENO"; then :
6572 tmp_errno="errno_macro_needs_reentrant"
6573 tmp_need_reentrant="yes"
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 if test "$tmp_need_reentrant" = "no"; then
6585 if test "$tmp_need_reentrant" = "no"; then
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6591 #define gmtime_r innocuous_gmtime_r
6593 # include <limits.h>
6595 # include <assert.h>
6602 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6614 if ac_fn_c_try_link "$LINENO"; then :
6623 rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625 if test "$tmp_gmtime_r" = "yes"; then
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6629 #include <sys/types.h>
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6636 tmp_gmtime_r="proto_declared"
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6644 #include <sys/types.h>
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6651 tmp_gmtime_r="proto_needs_reentrant"
6652 tmp_need_reentrant="yes"
6664 if test "$tmp_need_reentrant" = "no"; then
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6670 #define localtime_r innocuous_localtime_r
6672 # include <limits.h>
6674 # include <assert.h>
6680 char localtime_r ();
6681 #if defined __stub_localtime_r || defined __stub___localtime_r
6687 return localtime_r ();
6693 if ac_fn_c_try_link "$LINENO"; then :
6695 tmp_localtime_r="yes"
6699 tmp_localtime_r="no"
6702 rm -f core conftest.err conftest.$ac_objext \
6703 conftest$ac_exeext conftest.$ac_ext
6704 if test "$tmp_localtime_r" = "yes"; then
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6708 #include <sys/types.h>
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 $EGREP "localtime_r" >/dev/null 2>&1; then :
6715 tmp_localtime_r="proto_declared"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6723 #include <sys/types.h>
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728 $EGREP "localtime_r" >/dev/null 2>&1; then :
6730 tmp_localtime_r="proto_needs_reentrant"
6731 tmp_need_reentrant="yes"
6743 if test "$tmp_need_reentrant" = "no"; then
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6749 #define strerror_r innocuous_strerror_r
6751 # include <limits.h>
6753 # include <assert.h>
6760 #if defined __stub_strerror_r || defined __stub___strerror_r
6766 return strerror_r ();
6772 if ac_fn_c_try_link "$LINENO"; then :
6774 tmp_strerror_r="yes"
6781 rm -f core conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6783 if test "$tmp_strerror_r" = "yes"; then
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6787 #include <sys/types.h>
6791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6792 $EGREP "strerror_r" >/dev/null 2>&1; then :
6794 tmp_strerror_r="proto_declared"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6802 #include <sys/types.h>
6806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807 $EGREP "strerror_r" >/dev/null 2>&1; then :
6809 tmp_strerror_r="proto_needs_reentrant"
6810 tmp_need_reentrant="yes"
6822 if test "$tmp_need_reentrant" = "no"; then
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6828 #define strtok_r innocuous_strtok_r
6830 # include <limits.h>
6832 # include <assert.h>
6839 #if defined __stub_strtok_r || defined __stub___strtok_r
6851 if ac_fn_c_try_link "$LINENO"; then :
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 if test "$tmp_strtok_r" = "yes"; then
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6866 #include <sys/types.h>
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 $EGREP "strtok_r" >/dev/null 2>&1; then :
6873 tmp_strtok_r="proto_declared"
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6881 #include <sys/types.h>
6885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6886 $EGREP "strtok_r" >/dev/null 2>&1; then :
6888 tmp_strtok_r="proto_needs_reentrant"
6889 tmp_need_reentrant="yes"
6901 if test "$tmp_need_reentrant" = "no"; then
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6907 #define inet_ntoa_r innocuous_inet_ntoa_r
6909 # include <limits.h>
6911 # include <assert.h>
6917 char inet_ntoa_r ();
6918 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6924 return inet_ntoa_r ();
6930 if ac_fn_c_try_link "$LINENO"; then :
6932 tmp_inet_ntoa_r="yes"
6936 tmp_inet_ntoa_r="no"
6939 rm -f core conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6941 if test "$tmp_inet_ntoa_r" = "yes"; then
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6945 #include <sys/types.h>
6946 #include <sys/socket.h>
6947 #include <netinet/in.h>
6948 #include <arpa/inet.h>
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6954 tmp_inet_ntoa_r="proto_declared"
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6962 #include <sys/types.h>
6963 #include <sys/socket.h>
6964 #include <netinet/in.h>
6965 #include <arpa/inet.h>
6968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6969 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6971 tmp_inet_ntoa_r="proto_needs_reentrant"
6972 tmp_need_reentrant="yes"
6984 if test "$tmp_need_reentrant" = "no"; then
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6990 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6992 # include <limits.h>
6994 # include <assert.h>
6996 #undef gethostbyaddr_r
7000 char gethostbyaddr_r ();
7001 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7007 return gethostbyaddr_r ();
7013 if ac_fn_c_try_link "$LINENO"; then :
7015 tmp_gethostbyaddr_r="yes"
7019 tmp_gethostbyaddr_r="no"
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 if test "$tmp_gethostbyaddr_r" = "yes"; then
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7028 #include <sys/types.h>
7032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7033 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7035 tmp_gethostbyaddr_r="proto_declared"
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7043 #include <sys/types.h>
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7050 tmp_gethostbyaddr_r="proto_needs_reentrant"
7051 tmp_need_reentrant="yes"
7063 if test "$tmp_need_reentrant" = "no"; then
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7069 #define gethostbyname_r innocuous_gethostbyname_r
7071 # include <limits.h>
7073 # include <assert.h>
7075 #undef gethostbyname_r
7079 char gethostbyname_r ();
7080 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7086 return gethostbyname_r ();
7092 if ac_fn_c_try_link "$LINENO"; then :
7094 tmp_gethostbyname_r="yes"
7098 tmp_gethostbyname_r="no"
7101 rm -f core conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7103 if test "$tmp_gethostbyname_r" = "yes"; then
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7107 #include <sys/types.h>
7111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7114 tmp_gethostbyname_r="proto_declared"
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7122 #include <sys/types.h>
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7129 tmp_gethostbyname_r="proto_needs_reentrant"
7130 tmp_need_reentrant="yes"
7142 if test "$tmp_need_reentrant" = "no"; then
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7148 #define getprotobyname_r innocuous_getprotobyname_r
7150 # include <limits.h>
7152 # include <assert.h>
7154 #undef getprotobyname_r
7158 char getprotobyname_r ();
7159 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7165 return getprotobyname_r ();
7171 if ac_fn_c_try_link "$LINENO"; then :
7173 tmp_getprotobyname_r="yes"
7177 tmp_getprotobyname_r="no"
7180 rm -f core conftest.err conftest.$ac_objext \
7181 conftest$ac_exeext conftest.$ac_ext
7182 if test "$tmp_getprotobyname_r" = "yes"; then
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7186 #include <sys/types.h>
7190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7191 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7193 tmp_getprotobyname_r="proto_declared"
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7201 #include <sys/types.h>
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7208 tmp_getprotobyname_r="proto_needs_reentrant"
7209 tmp_need_reentrant="yes"
7221 if test "$tmp_need_reentrant" = "no"; then
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7227 #define getservbyport_r innocuous_getservbyport_r
7229 # include <limits.h>
7231 # include <assert.h>
7233 #undef getservbyport_r
7237 char getservbyport_r ();
7238 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7244 return getservbyport_r ();
7250 if ac_fn_c_try_link "$LINENO"; then :
7252 tmp_getservbyport_r="yes"
7256 tmp_getservbyport_r="no"
7259 rm -f core conftest.err conftest.$ac_objext \
7260 conftest$ac_exeext conftest.$ac_ext
7261 if test "$tmp_getservbyport_r" = "yes"; then
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7265 #include <sys/types.h>
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7272 tmp_getservbyport_r="proto_declared"
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7280 #include <sys/types.h>
7284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7285 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7287 tmp_getservbyport_r="proto_needs_reentrant"
7288 tmp_need_reentrant="yes"
7302 if test "$tmp_need_reentrant" = "yes"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7304 $as_echo "yes" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7312 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7313 if test "$tmp_reentrant_initially_defined" = "yes" ||
7314 test "$tmp_need_reentrant" = "yes"; then
7317 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7319 cat >>confdefs.h <<_EOF
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7334 # Check whether --enable-largefile was given.
7335 if test "${enable_largefile+set}" = set; then :
7336 enableval=$enable_largefile;
7339 if test "$enable_largefile" != no; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7342 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7343 if ${ac_cv_sys_largefile_CC+:} false; then :
7344 $as_echo_n "(cached) " >&6
7346 ac_cv_sys_largefile_CC=no
7347 if test "$GCC" != yes; then
7350 # IRIX 6.2 and later do not support large files by default,
7351 # so use the C compiler's -n32 option if that helps.
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 #include <sys/types.h>
7355 /* Check that off_t can represent 2**63 - 1 correctly.
7356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7357 since some C++ compilers masquerading as C compilers
7358 incorrectly reject 9223372036854775807. */
7359 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7361 && LARGE_OFF_T % 2147483647 == 1)
7370 if ac_fn_c_try_compile "$LINENO"; then :
7373 rm -f core conftest.err conftest.$ac_objext
7375 if ac_fn_c_try_compile "$LINENO"; then :
7376 ac_cv_sys_largefile_CC=' -n32'; break
7378 rm -f core conftest.err conftest.$ac_objext
7382 rm -f conftest.$ac_ext
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7386 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7387 if test "$ac_cv_sys_largefile_CC" != no; then
7388 CC=$CC$ac_cv_sys_largefile_CC
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7392 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7393 if ${ac_cv_sys_file_offset_bits+:} false; then :
7394 $as_echo_n "(cached) " >&6
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7399 #include <sys/types.h>
7400 /* Check that off_t can represent 2**63 - 1 correctly.
7401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7402 since some C++ compilers masquerading as C compilers
7403 incorrectly reject 9223372036854775807. */
7404 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7406 && LARGE_OFF_T % 2147483647 == 1)
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 ac_cv_sys_file_offset_bits=no; break
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 #define _FILE_OFFSET_BITS 64
7422 #include <sys/types.h>
7423 /* Check that off_t can represent 2**63 - 1 correctly.
7424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7425 since some C++ compilers masquerading as C compilers
7426 incorrectly reject 9223372036854775807. */
7427 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7429 && LARGE_OFF_T % 2147483647 == 1)
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439 ac_cv_sys_file_offset_bits=64; break
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 ac_cv_sys_file_offset_bits=unknown
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7447 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7448 case $ac_cv_sys_file_offset_bits in #(
7451 cat >>confdefs.h <<_ACEOF
7452 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7457 if test $ac_cv_sys_file_offset_bits = unknown; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7459 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7460 if ${ac_cv_sys_large_files+:} false; then :
7461 $as_echo_n "(cached) " >&6
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 /* Check that off_t can represent 2**63 - 1 correctly.
7468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7469 since some C++ compilers masquerading as C compilers
7470 incorrectly reject 9223372036854775807. */
7471 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7473 && LARGE_OFF_T % 2147483647 == 1)
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483 ac_cv_sys_large_files=no; break
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #define _LARGE_FILES 1
7489 #include <sys/types.h>
7490 /* Check that off_t can represent 2**63 - 1 correctly.
7491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7492 since some C++ compilers masquerading as C compilers
7493 incorrectly reject 9223372036854775807. */
7494 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7496 && LARGE_OFF_T % 2147483647 == 1)
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 ac_cv_sys_large_files=1; break
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 ac_cv_sys_large_files=unknown
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7514 $as_echo "$ac_cv_sys_large_files" >&6; }
7515 case $ac_cv_sys_large_files in #(
7518 cat >>confdefs.h <<_ACEOF
7519 #define _LARGE_FILES $ac_cv_sys_large_files
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7533 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7538 macro_version='2.4.6'
7539 macro_revision='2.4.6'
7553 ltmain=$ac_aux_dir/ltmain.sh
7555 # Backslashify metacharacters that are still active within
7556 # double-quoted strings.
7557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7559 # Same as above, but do not quote variable references.
7560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7562 # Sed substitution to delay expansion of an escaped shell variable in a
7563 # double_quote_subst'ed string.
7564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7566 # Sed substitution to delay expansion of an escaped single quote.
7567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7569 # Sed substitution to avoid accidental globbing in evaled expressions
7570 no_glob_subst='s/\*/\\\*/g'
7572 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7573 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7574 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7577 $as_echo_n "checking how to print strings... " >&6; }
7578 # Test print first, because it will be a builtin if present.
7579 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7580 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7582 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7585 # Use this function as a fallback that always works.
7586 func_fallback_echo ()
7588 eval 'cat <<_LTECHO_EOF
7592 ECHO='func_fallback_echo'
7595 # func_echo_all arg...
7596 # Invoke $ECHO with all args, space-separated.
7603 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7604 $as_echo "printf" >&6; } ;;
7605 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7606 $as_echo "print -r" >&6; } ;;
7607 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7608 $as_echo "cat" >&6; } ;;
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7626 if ${ac_cv_path_SED+:} false; then :
7627 $as_echo_n "(cached) " >&6
7629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7630 for ac_i in 1 2 3 4 5 6 7; do
7631 ac_script="$ac_script$as_nl$ac_script"
7633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7634 { ac_script=; unset ac_script;}
7635 if test -z "$SED"; then
7636 ac_path_SED_found=false
7637 # Loop through the user's path and test for each of PROGNAME-LIST
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_prog in sed gsed; do
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7646 as_fn_executable_p "$ac_path_SED" || continue
7647 # Check for GNU ac_path_SED and select it if it is found.
7648 # Check for GNU $ac_path_SED
7649 case `"$ac_path_SED" --version 2>&1` in
7651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7654 $as_echo_n 0123456789 >"conftest.in"
7657 cat "conftest.in" "conftest.in" >"conftest.tmp"
7658 mv "conftest.tmp" "conftest.in"
7659 cp "conftest.in" "conftest.nl"
7660 $as_echo '' >> "conftest.nl"
7661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7663 as_fn_arith $ac_count + 1 && ac_count=$as_val
7664 if test $ac_count -gt ${ac_path_SED_max-0}; then
7665 # Best one so far, save it but keep looking for a better one
7666 ac_cv_path_SED="$ac_path_SED"
7667 ac_path_SED_max=$ac_count
7669 # 10*(2^10) chars as input seems more than enough
7670 test $ac_count -gt 10 && break
7672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7675 $ac_path_SED_found && break 3
7680 if test -z "$ac_cv_path_SED"; then
7681 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7689 $as_echo "$ac_cv_path_SED" >&6; }
7690 SED="$ac_cv_path_SED"
7693 test -z "$SED" && SED=sed
7694 Xsed="$SED -e 1s/^X//"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7707 $as_echo_n "checking for fgrep... " >&6; }
7708 if ${ac_cv_path_FGREP+:} false; then :
7709 $as_echo_n "(cached) " >&6
7711 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7712 then ac_cv_path_FGREP="$GREP -F"
7714 if test -z "$FGREP"; then
7715 ac_path_FGREP_found=false
7716 # Loop through the user's path and test for each of PROGNAME-LIST
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7721 test -z "$as_dir" && as_dir=.
7722 for ac_prog in fgrep; do
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7725 as_fn_executable_p "$ac_path_FGREP" || continue
7726 # Check for GNU ac_path_FGREP and select it if it is found.
7727 # Check for GNU $ac_path_FGREP
7728 case `"$ac_path_FGREP" --version 2>&1` in
7730 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7733 $as_echo_n 0123456789 >"conftest.in"
7736 cat "conftest.in" "conftest.in" >"conftest.tmp"
7737 mv "conftest.tmp" "conftest.in"
7738 cp "conftest.in" "conftest.nl"
7739 $as_echo 'FGREP' >> "conftest.nl"
7740 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7742 as_fn_arith $ac_count + 1 && ac_count=$as_val
7743 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7744 # Best one so far, save it but keep looking for a better one
7745 ac_cv_path_FGREP="$ac_path_FGREP"
7746 ac_path_FGREP_max=$ac_count
7748 # 10*(2^10) chars as input seems more than enough
7749 test $ac_count -gt 10 && break
7751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7754 $ac_path_FGREP_found && break 3
7759 if test -z "$ac_cv_path_FGREP"; then
7760 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7763 ac_cv_path_FGREP=$FGREP
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7769 $as_echo "$ac_cv_path_FGREP" >&6; }
7770 FGREP="$ac_cv_path_FGREP"
7773 test -z "$GREP" && GREP=grep
7793 # Check whether --with-gnu-ld was given.
7794 if test "${with_gnu_ld+set}" = set; then :
7795 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7801 if test yes = "$GCC"; then
7802 # Check if gcc -print-prog-name=ld gives a path.
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7804 $as_echo_n "checking for ld used by $CC... " >&6; }
7807 # gcc leaves a trailing carriage return, which upsets mingw
7808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7813 # Accept absolute paths.
7815 re_direlt='/[^/][^/]*/\.\./'
7816 # Canonicalize the pathname of ld
7817 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7818 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7819 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7821 test -z "$LD" && LD=$ac_prog
7824 # If it fails, then pretend we aren't using GCC.
7828 # If it is relative, then search for the first ld in PATH.
7832 elif test yes = "$with_gnu_ld"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7834 $as_echo_n "checking for GNU ld... " >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7837 $as_echo_n "checking for non-GNU ld... " >&6; }
7839 if ${lt_cv_path_LD+:} false; then :
7840 $as_echo_n "(cached) " >&6
7842 if test -z "$LD"; then
7843 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7844 for ac_dir in $PATH; do
7846 test -z "$ac_dir" && ac_dir=.
7847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7848 lt_cv_path_LD=$ac_dir/$ac_prog
7849 # Check to see if the program is GNU ld. I'd rather use --version,
7850 # but apparently some variants of GNU ld only accept -v.
7851 # Break only if it was the GNU/non-GNU ld that we prefer.
7852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7853 *GNU* | *'with BFD'*)
7854 test no != "$with_gnu_ld" && break
7857 test yes != "$with_gnu_ld" && break
7864 lt_cv_path_LD=$LD # Let the user override the test with a path.
7869 if test -n "$LD"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7871 $as_echo "$LD" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7876 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7879 if ${lt_cv_prog_gnu_ld+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7883 case `$LD -v 2>&1 </dev/null` in
7884 *GNU* | *'with BFD'*)
7885 lt_cv_prog_gnu_ld=yes
7888 lt_cv_prog_gnu_ld=no
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7893 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7894 with_gnu_ld=$lt_cv_prog_gnu_ld
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7905 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7906 if ${lt_cv_path_NM+:} false; then :
7907 $as_echo_n "(cached) " >&6
7909 if test -n "$NM"; then
7910 # Let the user override the test.
7913 lt_nm_to_check=${ac_tool_prefix}nm
7914 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7915 lt_nm_to_check="$lt_nm_to_check nm"
7917 for lt_tmp_nm in $lt_nm_to_check; do
7918 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7919 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7921 test -z "$ac_dir" && ac_dir=.
7922 tmp_nm=$ac_dir/$lt_tmp_nm
7923 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7924 # Check to see if the nm accepts a BSD-compat flag.
7925 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7926 # nm: unknown option "B" ignored
7927 # Tru64's nm complains that /dev/null is an invalid object file
7928 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7930 mingw*) lt_bad_file=conftest.nm/nofile ;;
7931 *) lt_bad_file=/dev/null ;;
7933 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7934 *$lt_bad_file* | *'Invalid file or object type'*)
7935 lt_cv_path_NM="$tmp_nm -B"
7939 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7941 lt_cv_path_NM="$tmp_nm -p"
7945 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7946 continue # so that we can try to find one that supports BSD flags
7955 : ${lt_cv_path_NM=no}
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7959 $as_echo "$lt_cv_path_NM" >&6; }
7960 if test no != "$lt_cv_path_NM"; then
7963 # Didn't find any BSD compatible name lister, look for dumpbin.
7964 if test -n "$DUMPBIN"; then :
7965 # Let the user override the test.
7967 if test -n "$ac_tool_prefix"; then
7968 for ac_prog in dumpbin "link -dump"
7970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_DUMPBIN+:} false; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$DUMPBIN"; then
7978 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 DUMPBIN=$ac_cv_prog_DUMPBIN
7998 if test -n "$DUMPBIN"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8000 $as_echo "$DUMPBIN" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8007 test -n "$DUMPBIN" && break
8010 if test -z "$DUMPBIN"; then
8011 ac_ct_DUMPBIN=$DUMPBIN
8012 for ac_prog in dumpbin "link -dump"
8014 # Extract the first word of "$ac_prog", so it can be a program name with args.
8015 set dummy $ac_prog; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8019 $as_echo_n "(cached) " >&6
8021 if test -n "$ac_ct_DUMPBIN"; then
8022 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8042 if test -n "$ac_ct_DUMPBIN"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8044 $as_echo "$ac_ct_DUMPBIN" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8051 test -n "$ac_ct_DUMPBIN" && break
8054 if test "x$ac_ct_DUMPBIN" = x; then
8057 case $cross_compiling:$ac_tool_warned in
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061 ac_tool_warned=yes ;;
8063 DUMPBIN=$ac_ct_DUMPBIN
8067 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8069 DUMPBIN="$DUMPBIN -symbols -headers"
8077 if test : != "$DUMPBIN"; then
8081 test -z "$NM" && NM=nm
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8089 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8090 if ${lt_cv_nm_interface+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 lt_cv_nm_interface="BSD nm"
8094 echo "int some_variable = 0;" > conftest.$ac_ext
8095 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8096 (eval "$ac_compile" 2>conftest.err)
8097 cat conftest.err >&5
8098 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8099 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8100 cat conftest.err >&5
8101 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8102 cat conftest.out >&5
8103 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8104 lt_cv_nm_interface="MS dumpbin"
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8109 $as_echo "$lt_cv_nm_interface" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8112 $as_echo_n "checking whether ln -s works... " >&6; }
8114 if test "$LN_S" = "ln -s"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8116 $as_echo "yes" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8119 $as_echo "no, using $LN_S" >&6; }
8122 # find the maximum length of command line arguments
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8124 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8125 if ${lt_cv_sys_max_cmd_len+:} false; then :
8126 $as_echo_n "(cached) " >&6
8133 # On DJGPP, this test can blow up pretty badly due to problems in libc
8134 # (any single argument exceeding 2000 bytes causes a buffer overrun
8135 # during glob expansion). Even if it were fixed, the result of this
8136 # check would be larger than it should be.
8137 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8141 # Under GNU Hurd, this test is not required because there is
8142 # no limit to the length of command line arguments.
8143 # Libtool will interpret -1 as no limit whatsoever
8144 lt_cv_sys_max_cmd_len=-1;
8147 cygwin* | mingw* | cegcc*)
8148 # On Win9x/ME, this test blows up -- it succeeds, but takes
8149 # about 5 minutes as the teststring grows exponentially.
8150 # Worse, since 9x/ME are not pre-emptively multitasking,
8151 # you end up with a "frozen" computer, even though with patience
8152 # the test eventually succeeds (with a max line length of 256k).
8153 # Instead, let's just punt: use the minimum linelength reported by
8154 # all of the supported platforms: 8192 (on NT/2K/XP).
8155 lt_cv_sys_max_cmd_len=8192;
8159 # On MiNT this can take a long time and run out of memory.
8160 lt_cv_sys_max_cmd_len=8192;
8164 # On AmigaOS with pdksh, this test takes hours, literally.
8165 # So we just punt and use a minimum line length of 8192.
8166 lt_cv_sys_max_cmd_len=8192;
8169 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8170 # This has been around since 386BSD, at least. Likely further.
8171 if test -x /sbin/sysctl; then
8172 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8173 elif test -x /usr/sbin/sysctl; then
8174 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8176 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8178 # And add a safety zone
8179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8184 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8185 lt_cv_sys_max_cmd_len=196608
8189 # The test takes a long time on OS/2.
8190 lt_cv_sys_max_cmd_len=8192
8194 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8195 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8196 # nice to cause kernel panics so lets avoid the loop below.
8197 # First set a reasonable default.
8198 lt_cv_sys_max_cmd_len=16384
8200 if test -x /sbin/sysconfig; then
8201 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8202 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8207 lt_cv_sys_max_cmd_len=102400
8209 sysv5* | sco5v6* | sysv4.2uw2*)
8210 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8211 if test -n "$kargmax"; then
8212 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8214 lt_cv_sys_max_cmd_len=32768
8218 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8219 if test -n "$lt_cv_sys_max_cmd_len" && \
8220 test undefined != "$lt_cv_sys_max_cmd_len"; then
8221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8224 # Make teststring a little bigger before we do anything with it.
8225 # a 1K string should be a reasonable start.
8226 for i in 1 2 3 4 5 6 7 8; do
8227 teststring=$teststring$teststring
8229 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8230 # If test is not a shell built-in, we'll probably end up computing a
8231 # maximum length that is only half of the actual maximum length, but
8233 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8234 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8235 test 17 != "$i" # 1/2 MB should be enough
8238 teststring=$teststring$teststring
8240 # Only check the string length outside the loop.
8241 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8243 # Add a significant safety factor because C++ compilers can tack on
8244 # massive amounts of additional arguments before passing them to the
8245 # linker. It appears as though 1/2 is a usable value.
8246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8253 if test -n "$lt_cv_sys_max_cmd_len"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8255 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8258 $as_echo "none" >&6; }
8260 max_cmd_len=$lt_cv_sys_max_cmd_len
8271 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8281 # test EBCDIC or ASCII
8282 case `echo X|tr X '\101'` in
8283 A) # ASCII based system
8284 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8285 lt_SP2NL='tr \040 \012'
8286 lt_NL2SP='tr \015\012 \040\040'
8288 *) # EBCDIC based system
8289 lt_SP2NL='tr \100 \n'
8290 lt_NL2SP='tr \r\n \100\100'
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8303 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8304 if ${lt_cv_to_host_file_cmd+:} false; then :
8305 $as_echo_n "(cached) " >&6
8310 *-*-mingw* ) # actually msys
8311 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8314 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8316 * ) # otherwise, assume *nix
8317 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8323 *-*-mingw* ) # actually msys
8324 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8327 lt_cv_to_host_file_cmd=func_convert_file_noop
8329 * ) # otherwise, assume *nix
8330 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8334 * ) # unhandled hosts (and "normal" native builds)
8335 lt_cv_to_host_file_cmd=func_convert_file_noop
8341 to_host_file_cmd=$lt_cv_to_host_file_cmd
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8343 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8350 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8351 if ${lt_cv_to_tool_file_cmd+:} false; then :
8352 $as_echo_n "(cached) " >&6
8354 #assume ordinary cross tools, or native build.
8355 lt_cv_to_tool_file_cmd=func_convert_file_noop
8359 *-*-mingw* ) # actually msys
8360 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8368 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8370 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8377 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8378 if ${lt_cv_ld_reload_flag+:} false; then :
8379 $as_echo_n "(cached) " >&6
8381 lt_cv_ld_reload_flag='-r'
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8384 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8385 reload_flag=$lt_cv_ld_reload_flag
8386 case $reload_flag in
8388 *) reload_flag=" $reload_flag" ;;
8390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8392 cygwin* | mingw* | pw32* | cegcc*)
8393 if test yes != "$GCC"; then
8398 if test yes = "$GCC"; then
8399 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8414 if test -n "$ac_tool_prefix"; then
8415 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8416 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_prog_OBJDUMP+:} false; then :
8420 $as_echo_n "(cached) " >&6
8422 if test -n "$OBJDUMP"; then
8423 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 OBJDUMP=$ac_cv_prog_OBJDUMP
8443 if test -n "$OBJDUMP"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8445 $as_echo "$OBJDUMP" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8453 if test -z "$ac_cv_prog_OBJDUMP"; then
8454 ac_ct_OBJDUMP=$OBJDUMP
8455 # Extract the first word of "objdump", so it can be a program name with args.
8456 set dummy objdump; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8460 $as_echo_n "(cached) " >&6
8462 if test -n "$ac_ct_OBJDUMP"; then
8463 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8482 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8483 if test -n "$ac_ct_OBJDUMP"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8485 $as_echo "$ac_ct_OBJDUMP" >&6; }
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8491 if test "x$ac_ct_OBJDUMP" = x; then
8494 case $cross_compiling:$ac_tool_warned in
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8498 ac_tool_warned=yes ;;
8500 OBJDUMP=$ac_ct_OBJDUMP
8503 OBJDUMP="$ac_cv_prog_OBJDUMP"
8506 test -z "$OBJDUMP" && OBJDUMP=objdump
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8514 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8515 if ${lt_cv_deplibs_check_method+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 lt_cv_file_magic_cmd='$MAGIC_CMD'
8519 lt_cv_file_magic_test_file=
8520 lt_cv_deplibs_check_method='unknown'
8521 # Need to set the preceding variable on all platforms that support
8522 # interlibrary dependencies.
8523 # 'none' -- dependencies not supported.
8524 # 'unknown' -- same as none, but documents that we really don't know.
8525 # 'pass_all' -- all dependencies passed with no checks.
8526 # 'test_compile' -- check by making test program.
8527 # 'file_magic [[regex]]' -- check by looking for files in library path
8528 # that responds to the $file_magic_cmd with a given extended regex.
8529 # If you have 'file' or equivalent on your system and you're not sure
8530 # whether 'pass_all' will *always* work, you probably want this one.
8534 lt_cv_deplibs_check_method=pass_all
8538 lt_cv_deplibs_check_method=pass_all
8542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8543 lt_cv_file_magic_cmd='/usr/bin/file -L'
8544 lt_cv_file_magic_test_file=/shlib/libc.so
8548 # func_win32_libid is a shell function defined in ltmain.sh
8549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8550 lt_cv_file_magic_cmd='func_win32_libid'
8554 # Base MSYS/MinGW do not provide the 'file' command needed by
8555 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8556 # unless we find 'file', for example because we are cross-compiling.
8557 if ( file / ) >/dev/null 2>&1; then
8558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8559 lt_cv_file_magic_cmd='func_win32_libid'
8561 # Keep this pattern in sync with the one in func_win32_libid.
8562 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8563 lt_cv_file_magic_cmd='$OBJDUMP -f'
8568 # use the weaker test based on 'objdump'. See mingw*.
8569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8570 lt_cv_file_magic_cmd='$OBJDUMP -f'
8573 darwin* | rhapsody*)
8574 lt_cv_deplibs_check_method=pass_all
8577 freebsd* | dragonfly*)
8578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8581 # Not sure whether the presence of OpenBSD here was a mistake.
8582 # Let's accept both of them until this is cleared up.
8583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8584 lt_cv_file_magic_cmd=/usr/bin/file
8585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8589 lt_cv_deplibs_check_method=pass_all
8594 lt_cv_deplibs_check_method=pass_all
8597 hpux10.20* | hpux11*)
8598 lt_cv_file_magic_cmd=/usr/bin/file
8601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8605 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]'
8606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8620 irix5* | irix6* | nonstopux*)
8622 *-32|*"-32 ") libmagic=32-bit;;
8623 *-n32|*"-n32 ") libmagic=N32;;
8624 *-64|*"-64 ") libmagic=64-bit;;
8625 *) libmagic=never-match;;
8627 lt_cv_deplibs_check_method=pass_all
8630 # This must be glibc/ELF.
8631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8632 lt_cv_deplibs_check_method=pass_all
8635 netbsd* | netbsdelf*-gnu)
8636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8645 lt_cv_file_magic_cmd=/usr/bin/file
8646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8650 lt_cv_deplibs_check_method=pass_all
8654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8661 osf3* | osf4* | osf5*)
8662 lt_cv_deplibs_check_method=pass_all
8666 lt_cv_deplibs_check_method=pass_all
8670 lt_cv_deplibs_check_method=pass_all
8673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8674 lt_cv_deplibs_check_method=pass_all
8678 case $host_vendor in
8680 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]'
8681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8684 lt_cv_deplibs_check_method=pass_all
8687 lt_cv_file_magic_cmd='/bin/file'
8688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8691 lt_cv_file_magic_cmd='/bin/file'
8692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8693 lt_cv_file_magic_test_file=/lib/libc.so
8696 lt_cv_deplibs_check_method=pass_all
8699 lt_cv_deplibs_check_method=pass_all
8705 lt_cv_deplibs_check_method=pass_all
8708 lt_cv_deplibs_check_method=pass_all
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8714 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8718 if test "$build" = "$host"; then
8721 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8724 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8730 file_magic_cmd=$lt_cv_file_magic_cmd
8731 deplibs_check_method=$lt_cv_deplibs_check_method
8732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8755 if test -n "$ac_tool_prefix"; then
8756 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8757 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_DLLTOOL+:} false; then :
8761 $as_echo_n "(cached) " >&6
8763 if test -n "$DLLTOOL"; then
8764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 DLLTOOL=$ac_cv_prog_DLLTOOL
8784 if test -n "$DLLTOOL"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8786 $as_echo "$DLLTOOL" >&6; }
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8794 if test -z "$ac_cv_prog_DLLTOOL"; then
8795 ac_ct_DLLTOOL=$DLLTOOL
8796 # Extract the first word of "dlltool", so it can be a program name with args.
8797 set dummy dlltool; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8801 $as_echo_n "(cached) " >&6
8803 if test -n "$ac_ct_DLLTOOL"; then
8804 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8824 if test -n "$ac_ct_DLLTOOL"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8826 $as_echo "$ac_ct_DLLTOOL" >&6; }
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8832 if test "x$ac_ct_DLLTOOL" = x; then
8835 case $cross_compiling:$ac_tool_warned in
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8839 ac_tool_warned=yes ;;
8841 DLLTOOL=$ac_ct_DLLTOOL
8844 DLLTOOL="$ac_cv_prog_DLLTOOL"
8847 test -z "$DLLTOOL" && DLLTOOL=dlltool
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8856 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8857 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8858 $as_echo_n "(cached) " >&6
8860 lt_cv_sharedlib_from_linklib_cmd='unknown'
8863 cygwin* | mingw* | pw32* | cegcc*)
8864 # two different shell functions defined in ltmain.sh;
8865 # decide which one to use based on capabilities of $DLLTOOL
8866 case `$DLLTOOL --help 2>&1` in
8867 *--identify-strict*)
8868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8871 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8876 # fallback: assume linklib IS sharedlib
8877 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8883 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8884 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8885 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8893 if test -n "$ac_tool_prefix"; then
8896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_prog_AR+:} false; then :
8901 $as_echo_n "(cached) " >&6
8903 if test -n "$AR"; then
8904 ac_cv_prog_AR="$AR" # Let the user override the test.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 if test -n "$AR"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8926 $as_echo "$AR" >&6; }
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8933 test -n "$AR" && break
8936 if test -z "$AR"; then
8940 # Extract the first word of "$ac_prog", so it can be a program name with args.
8941 set dummy $ac_prog; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8945 $as_echo_n "(cached) " >&6
8947 if test -n "$ac_ct_AR"; then
8948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957 ac_cv_prog_ac_ct_AR="$ac_prog"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8968 if test -n "$ac_ct_AR"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8970 $as_echo "$ac_ct_AR" >&6; }
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8977 test -n "$ac_ct_AR" && break
8980 if test "x$ac_ct_AR" = x; then
8983 case $cross_compiling:$ac_tool_warned in
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8987 ac_tool_warned=yes ;;
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9007 $as_echo_n "checking for archiver @FILE support... " >&6; }
9008 if ${lt_cv_ar_at_file+:} false; then :
9009 $as_echo_n "(cached) " >&6
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9022 if ac_fn_c_try_compile "$LINENO"; then :
9023 echo conftest.$ac_objext > conftest.lst
9024 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9026 (eval $lt_ar_try) 2>&5
9028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9029 test $ac_status = 0; }
9030 if test 0 -eq "$ac_status"; then
9031 # Ensure the archiver fails upon bogus file names.
9032 rm -f conftest.$ac_objext libconftest.a
9033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9034 (eval $lt_ar_try) 2>&5
9036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9037 test $ac_status = 0; }
9038 if test 0 -ne "$ac_status"; then
9042 rm -f conftest.* libconftest.a
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9049 $as_echo "$lt_cv_ar_at_file" >&6; }
9051 if test no = "$lt_cv_ar_at_file"; then
9054 archiver_list_spec=$lt_cv_ar_at_file
9063 if test -n "$ac_tool_prefix"; then
9064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9065 set dummy ${ac_tool_prefix}strip; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if ${ac_cv_prog_STRIP+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 if test -n "$STRIP"; then
9072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 STRIP=$ac_cv_prog_STRIP
9092 if test -n "$STRIP"; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9094 $as_echo "$STRIP" >&6; }
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9102 if test -z "$ac_cv_prog_STRIP"; then
9104 # Extract the first word of "strip", so it can be a program name with args.
9105 set dummy strip; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9109 $as_echo_n "(cached) " >&6
9111 if test -n "$ac_ct_STRIP"; then
9112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 test -z "$as_dir" && as_dir=.
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9121 ac_cv_prog_ac_ct_STRIP="strip"
9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9132 if test -n "$ac_ct_STRIP"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9134 $as_echo "$ac_ct_STRIP" >&6; }
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9140 if test "x$ac_ct_STRIP" = x; then
9143 case $cross_compiling:$ac_tool_warned in
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9147 ac_tool_warned=yes ;;
9152 STRIP="$ac_cv_prog_STRIP"
9155 test -z "$STRIP" && STRIP=:
9162 if test -n "$ac_tool_prefix"; then
9163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if ${ac_cv_prog_RANLIB+:} false; then :
9168 $as_echo_n "(cached) " >&6
9170 if test -n "$RANLIB"; then
9171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 RANLIB=$ac_cv_prog_RANLIB
9191 if test -n "$RANLIB"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9193 $as_echo "$RANLIB" >&6; }
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9201 if test -z "$ac_cv_prog_RANLIB"; then
9202 ac_ct_RANLIB=$RANLIB
9203 # Extract the first word of "ranlib", so it can be a program name with args.
9204 set dummy ranlib; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9208 $as_echo_n "(cached) " >&6
9210 if test -n "$ac_ct_RANLIB"; then
9211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9220 ac_cv_prog_ac_ct_RANLIB="ranlib"
9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9231 if test -n "$ac_ct_RANLIB"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9233 $as_echo "$ac_ct_RANLIB" >&6; }
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9239 if test "x$ac_ct_RANLIB" = x; then
9242 case $cross_compiling:$ac_tool_warned in
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9246 ac_tool_warned=yes ;;
9248 RANLIB=$ac_ct_RANLIB
9251 RANLIB="$ac_cv_prog_RANLIB"
9254 test -z "$RANLIB" && RANLIB=:
9261 # Determine commands to create old-style static archives.
9262 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9263 old_postinstall_cmds='chmod 644 $oldlib'
9264 old_postuninstall_cmds=
9266 if test -n "$RANLIB"; then
9269 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9275 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9280 lock_old_archive_extraction=yes ;;
9282 lock_old_archive_extraction=no ;;
9323 # If no C compiler was specified, use CC.
9326 # If no C compiler flags were specified, use CFLAGS.
9327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9329 # Allow CC to be a program name with arguments.
9333 # Check for command to grab the raw symbol name followed by C symbol from nm.
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9335 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9336 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9337 $as_echo_n "(cached) " >&6
9340 # These are sane defaults that work on at least a few old systems.
9341 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9343 # Character class describing NM global symbol codes.
9344 symcode='[BCDEGRST]'
9346 # Regexp to match symbols that can be accessed directly from C.
9347 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9349 # Define system-specific variables.
9354 cygwin* | mingw* | pw32* | cegcc*)
9355 symcode='[ABCDGISTW]'
9358 if test ia64 = "$host_cpu"; then
9359 symcode='[ABCDEGRST]'
9363 symcode='[BCDEGRST]'
9366 symcode='[BCDEGQRST]'
9377 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9385 # If we're using GNU nm, then use its standard symbol codes.
9386 case `$NM -V 2>&1` in
9387 *GNU* | *'with BFD'*)
9388 symcode='[ABCDGIRSTW]' ;;
9391 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9392 # Gets list of data symbols to import.
9393 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9394 # Adjust the below global symbol transforms to fixup imported variables.
9395 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9396 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9397 lt_c_name_lib_hook="\
9398 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9399 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9401 # Disable hooks by default.
9402 lt_cv_sys_global_symbol_to_import=
9408 # Transform an extracted symbol line into a proper C declaration.
9409 # Some systems (esp. on ia64) link data and code symbols differently,
9410 # so use this general approach.
9411 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9413 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9414 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9416 # Transform an extracted symbol line into symbol name and symbol address
9417 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9419 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9420 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9422 # Transform an extracted symbol line into symbol name with lib prefix and
9424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9425 $lt_c_name_lib_hook\
9426 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9427 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9428 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9430 # Handle CRLF in mingw tool chain
9434 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9438 # Try without a prefix underscore, then with it.
9439 for ac_symprfx in "" "_"; do
9441 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9442 symxfrm="\\1 $ac_symprfx\\2 \\2"
9444 # Write the raw and C identifiers.
9445 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9446 # Fake it for dumpbin and say T for any non-static function,
9447 # D for any global variable and I for any imported variable.
9448 # Also find C++ and __fastcall symbols from MSVC++,
9449 # which start with @ or ?.
9450 lt_cv_sys_global_symbol_pipe="$AWK '"\
9451 " {last_section=section; section=\$ 3};"\
9452 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9453 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9454 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9455 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9456 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9457 " \$ 0!~/External *\|/{next};"\
9458 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9459 " {if(hide[section]) next};"\
9460 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9461 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9462 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9463 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9464 " ' prfx=^$ac_symprfx"
9466 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9468 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9470 # Check to see that the pipe works correctly.
9474 cat > conftest.$ac_ext <<_LT_EOF
9479 void nm_test_func(void);
9480 void nm_test_func(void){}
9484 int main(){nm_test_var='a';nm_test_func();return(0);}
9487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9488 (eval $ac_compile) 2>&5
9490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9491 test $ac_status = 0; }; then
9492 # Now try to grab the symbols.
9494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9495 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9498 test $ac_status = 0; } && test -s "$nlist"; then
9499 # Try sorting and uniquifying the output.
9500 if sort "$nlist" | uniq > "$nlist"T; then
9501 mv -f "$nlist"T "$nlist"
9506 # Make sure that we snagged all the symbols we need.
9507 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9508 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9509 cat <<_LT_EOF > conftest.$ac_ext
9510 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9511 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9512 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9513 relocations are performed -- see ld's documentation on pseudo-relocs. */
9514 # define LT_DLSYM_CONST
9515 #elif defined __osf__
9516 /* This system does not cope well with relocations in const data. */
9517 # define LT_DLSYM_CONST
9519 # define LT_DLSYM_CONST const
9527 # Now generate the symbol file.
9528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9530 cat <<_LT_EOF >> conftest.$ac_ext
9532 /* The mapping between symbol names and symbols. */
9533 LT_DLSYM_CONST struct {
9537 lt__PROGRAM__LTX_preloaded_symbols[] =
9539 { "@PROGRAM@", (void *) 0 },
9541 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9542 cat <<\_LT_EOF >> conftest.$ac_ext
9546 /* This works around a problem in FreeBSD linker */
9547 #ifdef FREEBSD_WORKAROUND
9548 static const void *lt_preloaded_setup() {
9549 return lt__PROGRAM__LTX_preloaded_symbols;
9557 # Now try linking the two files.
9558 mv -f conftest.$ac_objext conftstm.$ac_objext
9559 lt_globsym_save_LIBS=$LIBS
9560 lt_globsym_save_CFLAGS=$CFLAGS
9561 LIBS=conftstm.$ac_objext
9562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9564 (eval $ac_link) 2>&5
9566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9567 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9570 LIBS=$lt_globsym_save_LIBS
9571 CFLAGS=$lt_globsym_save_CFLAGS
9573 echo "cannot find nm_test_func in $nlist" >&5
9576 echo "cannot find nm_test_var in $nlist" >&5
9579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9582 echo "$progname: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9585 rm -rf conftest* conftst*
9587 # Do not use the global_symbol_pipe unless it works.
9588 if test yes = "$pipe_works"; then
9591 lt_cv_sys_global_symbol_pipe=
9597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9598 lt_cv_sys_global_symbol_to_cdecl=
9600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9602 $as_echo "failed" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9605 $as_echo "ok" >&6; }
9608 # Response file support.
9609 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9610 nm_file_list_spec='@'
9611 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9612 nm_file_list_spec='@'
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9652 $as_echo_n "checking for sysroot... " >&6; }
9654 # Check whether --with-sysroot was given.
9655 if test "${with_sysroot+set}" = set; then :
9656 withval=$with_sysroot;
9663 case $with_sysroot in #(
9665 if test yes = "$GCC"; then
9666 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9670 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9676 $as_echo "$with_sysroot" >&6; }
9677 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9682 $as_echo "${lt_sysroot:-no}" >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9689 $as_echo_n "checking for a working dd... " >&6; }
9690 if ${ac_cv_path_lt_DD+:} false; then :
9691 $as_echo_n "(cached) " >&6
9693 printf 0123456789abcdef0123456789abcdef >conftest.i
9694 cat conftest.i conftest.i >conftest2.i
9696 if test -z "$lt_DD"; then
9697 ac_path_lt_DD_found=false
9698 # Loop through the user's path and test for each of PROGNAME-LIST
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 test -z "$as_dir" && as_dir=.
9704 for ac_prog in dd; do
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9707 as_fn_executable_p "$ac_path_lt_DD" || continue
9708 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9709 cmp -s conftest.i conftest.out \
9710 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9712 $ac_path_lt_DD_found && break 3
9717 if test -z "$ac_cv_path_lt_DD"; then
9721 ac_cv_path_lt_DD=$lt_DD
9724 rm -f conftest.i conftest2.i conftest.out
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9727 $as_echo "$ac_cv_path_lt_DD" >&6; }
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9731 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9732 if ${lt_cv_truncate_bin+:} false; then :
9733 $as_echo_n "(cached) " >&6
9735 printf 0123456789abcdef0123456789abcdef >conftest.i
9736 cat conftest.i conftest.i >conftest2.i
9738 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9739 cmp -s conftest.i conftest.out \
9740 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9742 rm -f conftest.i conftest2.i conftest.out
9743 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9746 $as_echo "$lt_cv_truncate_bin" >&6; }
9754 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9757 for cc_temp in $*""; do
9759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9765 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9768 # Check whether --enable-libtool-lock was given.
9769 if test "${enable_libtool_lock+set}" = set; then :
9770 enableval=$enable_libtool_lock;
9773 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9775 # Some flags need to be propagated to the compiler or linker for good
9779 # Find out what ABI is being produced by ac_compile, and set mode
9780 # options accordingly.
9781 echo 'int i;' > conftest.$ac_ext
9782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9783 (eval $ac_compile) 2>&5
9785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786 test $ac_status = 0; }; then
9787 case `/usr/bin/file conftest.$ac_objext` in
9799 # Find out what ABI is being produced by ac_compile, and set linker
9800 # options accordingly.
9801 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9803 (eval $ac_compile) 2>&5
9805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9806 test $ac_status = 0; }; then
9807 if test yes = "$lt_cv_prog_gnu_ld"; then
9808 case `/usr/bin/file conftest.$ac_objext` in
9810 LD="${LD-ld} -melf32bsmip"
9813 LD="${LD-ld} -melf32bmipn32"
9816 LD="${LD-ld} -melf64bmip"
9820 case `/usr/bin/file conftest.$ac_objext` in
9837 # Find out what ABI is being produced by ac_compile, and set linker
9838 # options accordingly.
9839 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9841 (eval $ac_compile) 2>&5
9843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844 test $ac_status = 0; }; then
9846 case `/usr/bin/file conftest.$ac_objext` in
9854 case `/usr/bin/file conftest.$ac_objext` in
9856 emul="${emul}btsmip"
9859 emul="${emul}ltsmip"
9862 case `/usr/bin/file conftest.$ac_objext` in
9867 LD="${LD-ld} -m $emul"
9872 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9873 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9874 # Find out what ABI is being produced by ac_compile, and set linker
9875 # options accordingly. Note that the listed cases only cover the
9876 # situations where additional linker options are needed (such as when
9877 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9878 # vice versa); the common cases where no linker options are needed do
9879 # not appear in the list.
9880 echo 'int i;' > conftest.$ac_ext
9881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9882 (eval $ac_compile) 2>&5
9884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; }; then
9886 case `/usr/bin/file conftest.o` in
9889 x86_64-*kfreebsd*-gnu)
9890 LD="${LD-ld} -m elf_i386_fbsd"
9893 case `/usr/bin/file conftest.o` in
9895 LD="${LD-ld} -m elf32_x86_64"
9898 LD="${LD-ld} -m elf_i386"
9902 powerpc64le-*linux*)
9903 LD="${LD-ld} -m elf32lppclinux"
9906 LD="${LD-ld} -m elf32ppclinux"
9909 LD="${LD-ld} -m elf_s390"
9912 LD="${LD-ld} -m elf32_sparc"
9918 x86_64-*kfreebsd*-gnu)
9919 LD="${LD-ld} -m elf_x86_64_fbsd"
9922 LD="${LD-ld} -m elf_x86_64"
9925 LD="${LD-ld} -m elf64lppc"
9928 LD="${LD-ld} -m elf64ppc"
9930 s390*-*linux*|s390*-*tpf*)
9931 LD="${LD-ld} -m elf64_s390"
9934 LD="${LD-ld} -m elf64_sparc"
9944 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9946 CFLAGS="$CFLAGS -belf"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9948 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9949 if ${lt_cv_cc_needs_belf+:} false; then :
9950 $as_echo_n "(cached) " >&6
9953 ac_cpp='$CPP $CPPFLAGS'
9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9968 if ac_fn_c_try_link "$LINENO"; then :
9969 lt_cv_cc_needs_belf=yes
9971 lt_cv_cc_needs_belf=no
9973 rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9976 ac_cpp='$CPP $CPPFLAGS'
9977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9983 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9984 if test yes != "$lt_cv_cc_needs_belf"; then
9985 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9990 # Find out what ABI is being produced by ac_compile, and set linker
9991 # options accordingly.
9992 echo 'int i;' > conftest.$ac_ext
9993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9994 (eval $ac_compile) 2>&5
9996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9997 test $ac_status = 0; }; then
9998 case `/usr/bin/file conftest.o` in
10000 case $lt_cv_prog_gnu_ld in
10003 i?86-*-solaris*|x86_64-*-solaris*)
10004 LD="${LD-ld} -m elf_x86_64"
10007 LD="${LD-ld} -m elf64_sparc"
10010 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10011 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10028 need_locks=$enable_libtool_lock
10030 if test -n "$ac_tool_prefix"; then
10031 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10032 set dummy ${ac_tool_prefix}mt; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10036 $as_echo_n "(cached) " >&6
10038 if test -n "$MANIFEST_TOOL"; then
10039 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10045 test -z "$as_dir" && as_dir=.
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10059 if test -n "$MANIFEST_TOOL"; then
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10061 $as_echo "$MANIFEST_TOOL" >&6; }
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10069 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10070 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10071 # Extract the first word of "mt", so it can be a program name with args.
10072 set dummy mt; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10076 $as_echo_n "(cached) " >&6
10078 if test -n "$ac_ct_MANIFEST_TOOL"; then
10079 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10099 if test -n "$ac_ct_MANIFEST_TOOL"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10101 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10107 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10110 case $cross_compiling:$ac_tool_warned in
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10114 ac_tool_warned=yes ;;
10116 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10119 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10122 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10124 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10125 if ${lt_cv_path_mainfest_tool+:} false; then :
10126 $as_echo_n "(cached) " >&6
10128 lt_cv_path_mainfest_tool=no
10129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10131 cat conftest.err >&5
10132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10133 lt_cv_path_mainfest_tool=yes
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10138 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10139 if test yes != "$lt_cv_path_mainfest_tool"; then
10149 rhapsody* | darwin*)
10150 if test -n "$ac_tool_prefix"; then
10151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10156 $as_echo_n "(cached) " >&6
10158 if test -n "$DSYMUTIL"; then
10159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10179 if test -n "$DSYMUTIL"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10181 $as_echo "$DSYMUTIL" >&6; }
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10189 if test -z "$ac_cv_prog_DSYMUTIL"; then
10190 ac_ct_DSYMUTIL=$DSYMUTIL
10191 # Extract the first word of "dsymutil", so it can be a program name with args.
10192 set dummy dsymutil; ac_word=$2
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194 $as_echo_n "checking for $ac_word... " >&6; }
10195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10196 $as_echo_n "(cached) " >&6
10198 if test -n "$ac_ct_DSYMUTIL"; then
10199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10219 if test -n "$ac_ct_DSYMUTIL"; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10221 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 $as_echo "no" >&6; }
10227 if test "x$ac_ct_DSYMUTIL" = x; then
10230 case $cross_compiling:$ac_tool_warned in
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10234 ac_tool_warned=yes ;;
10236 DSYMUTIL=$ac_ct_DSYMUTIL
10239 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10242 if test -n "$ac_tool_prefix"; then
10243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 $as_echo_n "checking for $ac_word... " >&6; }
10247 if ${ac_cv_prog_NMEDIT+:} false; then :
10248 $as_echo_n "(cached) " >&6
10250 if test -n "$NMEDIT"; then
10251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 NMEDIT=$ac_cv_prog_NMEDIT
10271 if test -n "$NMEDIT"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10273 $as_echo "$NMEDIT" >&6; }
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10281 if test -z "$ac_cv_prog_NMEDIT"; then
10282 ac_ct_NMEDIT=$NMEDIT
10283 # Extract the first word of "nmedit", so it can be a program name with args.
10284 set dummy nmedit; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10288 $as_echo_n "(cached) " >&6
10290 if test -n "$ac_ct_NMEDIT"; then
10291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10311 if test -n "$ac_ct_NMEDIT"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10313 $as_echo "$ac_ct_NMEDIT" >&6; }
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10319 if test "x$ac_ct_NMEDIT" = x; then
10322 case $cross_compiling:$ac_tool_warned in
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10326 ac_tool_warned=yes ;;
10328 NMEDIT=$ac_ct_NMEDIT
10331 NMEDIT="$ac_cv_prog_NMEDIT"
10334 if test -n "$ac_tool_prefix"; then
10335 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10336 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 $as_echo_n "checking for $ac_word... " >&6; }
10339 if ${ac_cv_prog_LIPO+:} false; then :
10340 $as_echo_n "(cached) " >&6
10342 if test -n "$LIPO"; then
10343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 LIPO=$ac_cv_prog_LIPO
10363 if test -n "$LIPO"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10365 $as_echo "$LIPO" >&6; }
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10373 if test -z "$ac_cv_prog_LIPO"; then
10375 # Extract the first word of "lipo", so it can be a program name with args.
10376 set dummy lipo; ac_word=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10380 $as_echo_n "(cached) " >&6
10382 if test -n "$ac_ct_LIPO"; then
10383 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392 ac_cv_prog_ac_ct_LIPO="lipo"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10403 if test -n "$ac_ct_LIPO"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10405 $as_echo "$ac_ct_LIPO" >&6; }
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10411 if test "x$ac_ct_LIPO" = x; then
10414 case $cross_compiling:$ac_tool_warned in
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10418 ac_tool_warned=yes ;;
10423 LIPO="$ac_cv_prog_LIPO"
10426 if test -n "$ac_tool_prefix"; then
10427 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10428 set dummy ${ac_tool_prefix}otool; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_prog_OTOOL+:} false; then :
10432 $as_echo_n "(cached) " >&6
10434 if test -n "$OTOOL"; then
10435 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 OTOOL=$ac_cv_prog_OTOOL
10455 if test -n "$OTOOL"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10457 $as_echo "$OTOOL" >&6; }
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10465 if test -z "$ac_cv_prog_OTOOL"; then
10467 # Extract the first word of "otool", so it can be a program name with args.
10468 set dummy otool; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10472 $as_echo_n "(cached) " >&6
10474 if test -n "$ac_ct_OTOOL"; then
10475 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_ac_ct_OTOOL="otool"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10495 if test -n "$ac_ct_OTOOL"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10497 $as_echo "$ac_ct_OTOOL" >&6; }
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10503 if test "x$ac_ct_OTOOL" = x; then
10506 case $cross_compiling:$ac_tool_warned in
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10510 ac_tool_warned=yes ;;
10515 OTOOL="$ac_cv_prog_OTOOL"
10518 if test -n "$ac_tool_prefix"; then
10519 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10520 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522 $as_echo_n "checking for $ac_word... " >&6; }
10523 if ${ac_cv_prog_OTOOL64+:} false; then :
10524 $as_echo_n "(cached) " >&6
10526 if test -n "$OTOOL64"; then
10527 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530 for as_dir in $PATH
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 OTOOL64=$ac_cv_prog_OTOOL64
10547 if test -n "$OTOOL64"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10549 $as_echo "$OTOOL64" >&6; }
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10557 if test -z "$ac_cv_prog_OTOOL64"; then
10558 ac_ct_OTOOL64=$OTOOL64
10559 # Extract the first word of "otool64", so it can be a program name with args.
10560 set dummy otool64; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10564 $as_echo_n "(cached) " >&6
10566 if test -n "$ac_ct_OTOOL64"; then
10567 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_prog_ac_ct_OTOOL64="otool64"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10587 if test -n "$ac_ct_OTOOL64"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10589 $as_echo "$ac_ct_OTOOL64" >&6; }
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10595 if test "x$ac_ct_OTOOL64" = x; then
10598 case $cross_compiling:$ac_tool_warned in
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10602 ac_tool_warned=yes ;;
10604 OTOOL64=$ac_ct_OTOOL64
10607 OTOOL64="$ac_cv_prog_OTOOL64"
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10637 $as_echo_n "checking for -single_module linker flag... " >&6; }
10638 if ${lt_cv_apple_cc_single_mod+:} false; then :
10639 $as_echo_n "(cached) " >&6
10641 lt_cv_apple_cc_single_mod=no
10642 if test -z "$LT_MULTI_MODULE"; then
10643 # By default we will add the -single_module flag. You can override
10644 # by either setting the environment variable LT_MULTI_MODULE
10645 # non-empty at configure time, or by adding -multi_module to the
10647 rm -rf libconftest.dylib*
10648 echo "int foo(void){return 1;}" > conftest.c
10649 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10650 -dynamiclib -Wl,-single_module conftest.c" >&5
10651 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10652 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10654 # If there is a non-empty error log, and "single_module"
10655 # appears in it, assume the flag caused a linker warning
10656 if test -s conftest.err && $GREP single_module conftest.err; then
10657 cat conftest.err >&5
10658 # Otherwise, if the output was created with a 0 exit code from
10659 # the compiler, it worked.
10660 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10661 lt_cv_apple_cc_single_mod=yes
10663 cat conftest.err >&5
10665 rm -rf libconftest.dylib*
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10670 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10673 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10674 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10675 $as_echo_n "(cached) " >&6
10677 lt_cv_ld_exported_symbols_list=no
10678 save_LDFLAGS=$LDFLAGS
10679 echo "_main" > conftest.sym
10680 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10691 if ac_fn_c_try_link "$LINENO"; then :
10692 lt_cv_ld_exported_symbols_list=yes
10694 lt_cv_ld_exported_symbols_list=no
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LDFLAGS=$save_LDFLAGS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10702 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10705 $as_echo_n "checking for -force_load linker flag... " >&6; }
10706 if ${lt_cv_ld_force_load+:} false; then :
10707 $as_echo_n "(cached) " >&6
10709 lt_cv_ld_force_load=no
10710 cat > conftest.c << _LT_EOF
10711 int forced_loaded() { return 2;}
10713 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10714 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10715 echo "$AR cru libconftest.a conftest.o" >&5
10716 $AR cru libconftest.a conftest.o 2>&5
10717 echo "$RANLIB libconftest.a" >&5
10718 $RANLIB libconftest.a 2>&5
10719 cat > conftest.c << _LT_EOF
10720 int main() { return 0;}
10722 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10723 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10725 if test -s conftest.err && $GREP force_load conftest.err; then
10726 cat conftest.err >&5
10727 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10728 lt_cv_ld_force_load=yes
10730 cat conftest.err >&5
10732 rm -f conftest.err libconftest.a conftest conftest.c
10733 rm -rf conftest.dSYM
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10737 $as_echo "$lt_cv_ld_force_load" >&6; }
10739 rhapsody* | darwin1.[012])
10740 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10742 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10743 darwin*) # darwin 5.x on
10744 # if running on 10.5 or later, the deployment target defaults
10745 # to the OS version, if on x86, and 10.4, the deployment
10746 # target defaults to 10.4. Don't you love it?
10747 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10748 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10749 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10751 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10753 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10757 if test yes = "$lt_cv_apple_cc_single_mod"; then
10758 _lt_dar_single_mod='$single_module'
10760 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10761 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10763 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10765 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10766 _lt_dsymutil='~$DSYMUTIL $lib || :'
10773 # func_munge_path_list VARIABLE PATH
10774 # -----------------------------------
10775 # VARIABLE is name of variable containing _space_ separated list of
10776 # directories to be munged by the contents of PATH, which is string
10779 # string "DIR[ DIR]" will be prepended to VARIABLE
10781 # string "DIR[ DIR]" will be appended to VARIABLE
10782 # "DIRP[:DIRP]::[DIRA:]DIRA"
10783 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10784 # "DIRA[ DIRA]" will be appended to VARIABLE
10786 # VARIABLE will be replaced by "DIR[ DIR]"
10787 func_munge_path_list ()
10793 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10796 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10799 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10800 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10803 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10809 $as_echo_n "checking for ANSI C header files... " >&6; }
10810 if ${ac_cv_header_stdc+:} false; then :
10811 $as_echo_n "(cached) " >&6
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815 #include <stdlib.h>
10816 #include <stdarg.h>
10817 #include <string.h>
10827 if ac_fn_c_try_compile "$LINENO"; then :
10828 ac_cv_header_stdc=yes
10830 ac_cv_header_stdc=no
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10834 if test $ac_cv_header_stdc = yes; then
10835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838 #include <string.h>
10841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10842 $EGREP "memchr" >/dev/null 2>&1; then :
10845 ac_cv_header_stdc=no
10851 if test $ac_cv_header_stdc = yes; then
10852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 #include <stdlib.h>
10858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10859 $EGREP "free" >/dev/null 2>&1; then :
10862 ac_cv_header_stdc=no
10868 if test $ac_cv_header_stdc = yes; then
10869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10870 if test "$cross_compiling" = yes; then :
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10876 #include <stdlib.h>
10877 #if ((' ' & 0x0FF) == 0x020)
10878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10881 # define ISLOWER(c) \
10882 (('a' <= (c) && (c) <= 'i') \
10883 || ('j' <= (c) && (c) <= 'r') \
10884 || ('s' <= (c) && (c) <= 'z'))
10885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10893 for (i = 0; i < 256; i++)
10894 if (XOR (islower (i), ISLOWER (i))
10895 || toupper (i) != TOUPPER (i))
10900 if ac_fn_c_try_run "$LINENO"; then :
10903 ac_cv_header_stdc=no
10905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10906 conftest.$ac_objext conftest.beam conftest.$ac_ext
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10912 $as_echo "$ac_cv_header_stdc" >&6; }
10913 if test $ac_cv_header_stdc = yes; then
10915 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10921 inttypes.h stdint.h unistd.h
10923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10927 cat >>confdefs.h <<_ACEOF
10928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10936 for ac_header in dlfcn.h
10938 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10940 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10941 cat >>confdefs.h <<_ACEOF
10942 #define HAVE_DLFCN_H 1
10949 # ------------------------------------ #
10950 # Determine libtool default behavior #
10951 # ------------------------------------ #
10954 # Default behavior is to enable shared and static libraries on systems
10955 # where libtool knows how to build both library versions, and does not
10956 # require separate configuration and build runs for each flavor.
10959 xc_lt_want_enable_shared='yes'
10960 xc_lt_want_enable_static='yes'
10963 # User may have disabled shared or static libraries.
10965 case "x$enable_shared" in # (
10967 xc_lt_want_enable_shared='no'
10970 case "x$enable_static" in # (
10972 xc_lt_want_enable_static='no'
10975 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10976 test "x$xc_lt_want_enable_static" = 'xno'; then
10977 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10981 # Default behavior on systems that require independent configuration
10982 # and build runs for shared and static is to enable shared libraries
10983 # and disable static ones. On these systems option '--disable-shared'
10984 # must be used in order to build a proper static library.
10987 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10988 test "x$xc_lt_want_enable_static" = 'xyes'; then
10989 case $host_os in # (
10990 pw32* | cegcc* | os2* | aix*)
10991 xc_lt_want_enable_static='no'
10997 # Make libtool aware of current shared and static library preferences
10998 # taking in account that, depending on host characteristics, libtool
10999 # may modify these option preferences later in this configure script.
11002 enable_shared=$xc_lt_want_enable_shared
11003 enable_static=$xc_lt_want_enable_static
11006 # Default behavior is to build PIC objects for shared libraries and
11007 # non-PIC objects for static libraries.
11010 xc_lt_want_with_pic='default'
11013 # User may have specified PIC preference.
11016 case "x$with_pic" in # ((
11018 xc_lt_want_with_pic='no'
11021 xc_lt_want_with_pic='yes'
11026 # Default behavior on some systems where building a shared library out
11027 # of non-PIC compiled objects will fail with following linker error
11028 # "relocation R_X86_64_32 can not be used when making a shared object"
11029 # is to build PIC objects even for static libraries. This behavior may
11030 # be overridden using 'configure --disable-shared --without-pic'.
11033 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11034 case $host_cpu in # (
11035 x86_64 | amd64 | ia64)
11036 case $host_os in # (
11038 xc_lt_want_with_pic='yes'
11046 # Make libtool aware of current PIC preference taking in account that,
11047 # depending on host characteristics, libtool may modify PIC default
11048 # behavior to fit host system idiosyncrasies later in this script.
11051 with_pic=$xc_lt_want_with_pic
11053 ## ----------------------- ##
11054 ## Start of libtool code ##
11055 ## ----------------------- ##
11061 enable_win32_dll=yes
11064 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11065 if test -n "$ac_tool_prefix"; then
11066 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11067 set dummy ${ac_tool_prefix}as; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_prog_AS+:} false; then :
11071 $as_echo_n "(cached) " >&6
11073 if test -n "$AS"; then
11074 ac_cv_prog_AS="$AS" # Let the user override the test.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_AS="${ac_tool_prefix}as"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 if test -n "$AS"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11096 $as_echo "$AS" >&6; }
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11104 if test -z "$ac_cv_prog_AS"; then
11106 # Extract the first word of "as", so it can be a program name with args.
11107 set dummy as; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11111 $as_echo_n "(cached) " >&6
11113 if test -n "$ac_ct_AS"; then
11114 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_prog_ac_ct_AS="as"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11134 if test -n "$ac_ct_AS"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11136 $as_echo "$ac_ct_AS" >&6; }
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11142 if test "x$ac_ct_AS" = x; then
11145 case $cross_compiling:$ac_tool_warned in
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11149 ac_tool_warned=yes ;;
11154 AS="$ac_cv_prog_AS"
11157 if test -n "$ac_tool_prefix"; then
11158 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if ${ac_cv_prog_DLLTOOL+:} false; then :
11163 $as_echo_n "(cached) " >&6
11165 if test -n "$DLLTOOL"; then
11166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 DLLTOOL=$ac_cv_prog_DLLTOOL
11186 if test -n "$DLLTOOL"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11188 $as_echo "$DLLTOOL" >&6; }
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11196 if test -z "$ac_cv_prog_DLLTOOL"; then
11197 ac_ct_DLLTOOL=$DLLTOOL
11198 # Extract the first word of "dlltool", so it can be a program name with args.
11199 set dummy dlltool; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11203 $as_echo_n "(cached) " >&6
11205 if test -n "$ac_ct_DLLTOOL"; then
11206 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11226 if test -n "$ac_ct_DLLTOOL"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11228 $as_echo "$ac_ct_DLLTOOL" >&6; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11234 if test "x$ac_ct_DLLTOOL" = x; then
11237 case $cross_compiling:$ac_tool_warned in
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11241 ac_tool_warned=yes ;;
11243 DLLTOOL=$ac_ct_DLLTOOL
11246 DLLTOOL="$ac_cv_prog_DLLTOOL"
11249 if test -n "$ac_tool_prefix"; then
11250 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11251 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if ${ac_cv_prog_OBJDUMP+:} false; then :
11255 $as_echo_n "(cached) " >&6
11257 if test -n "$OBJDUMP"; then
11258 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 OBJDUMP=$ac_cv_prog_OBJDUMP
11278 if test -n "$OBJDUMP"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11280 $as_echo "$OBJDUMP" >&6; }
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11288 if test -z "$ac_cv_prog_OBJDUMP"; then
11289 ac_ct_OBJDUMP=$OBJDUMP
11290 # Extract the first word of "objdump", so it can be a program name with args.
11291 set dummy objdump; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11295 $as_echo_n "(cached) " >&6
11297 if test -n "$ac_ct_OBJDUMP"; then
11298 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11318 if test -n "$ac_ct_OBJDUMP"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11320 $as_echo "$ac_ct_OBJDUMP" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11326 if test "x$ac_ct_OBJDUMP" = x; then
11329 case $cross_compiling:$ac_tool_warned in
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11333 ac_tool_warned=yes ;;
11335 OBJDUMP=$ac_ct_OBJDUMP
11338 OBJDUMP="$ac_cv_prog_OBJDUMP"
11344 test -z "$AS" && AS=as
11350 test -z "$DLLTOOL" && DLLTOOL=dlltool
11356 test -z "$OBJDUMP" && OBJDUMP=objdump
11368 # Check whether --enable-shared was given.
11369 if test "${enable_shared+set}" = set; then :
11370 enableval=$enable_shared; p=${PACKAGE-default}
11372 yes) enable_shared=yes ;;
11373 no) enable_shared=no ;;
11376 # Look at the argument we got. We use all the common list separators.
11377 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11378 for pkg in $enableval; do
11380 if test "X$pkg" = "X$p"; then
11399 # Check whether --enable-static was given.
11400 if test "${enable_static+set}" = set; then :
11401 enableval=$enable_static; p=${PACKAGE-default}
11403 yes) enable_static=yes ;;
11404 no) enable_static=no ;;
11407 # Look at the argument we got. We use all the common list separators.
11408 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11409 for pkg in $enableval; do
11411 if test "X$pkg" = "X$p"; then
11431 # Check whether --with-pic was given.
11432 if test "${with_pic+set}" = set; then :
11433 withval=$with_pic; lt_p=${PACKAGE-default}
11435 yes|no) pic_mode=$withval ;;
11438 # Look at the argument we got. We use all the common list separators.
11439 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11440 for lt_pkg in $withval; do
11442 if test "X$lt_pkg" = "X$lt_p"; then
11460 # Check whether --enable-fast-install was given.
11461 if test "${enable_fast_install+set}" = set; then :
11462 enableval=$enable_fast_install; p=${PACKAGE-default}
11464 yes) enable_fast_install=yes ;;
11465 no) enable_fast_install=no ;;
11467 enable_fast_install=no
11468 # Look at the argument we got. We use all the common list separators.
11469 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11470 for pkg in $enableval; do
11472 if test "X$pkg" = "X$p"; then
11473 enable_fast_install=yes
11480 enable_fast_install=yes
11490 shared_archive_member_spec=
11491 case $host,$enable_shared in
11492 power*-*-aix[5-9]*,yes)
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11494 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11496 # Check whether --with-aix-soname was given.
11497 if test "${with_aix_soname+set}" = set; then :
11498 withval=$with_aix_soname; case $withval in
11502 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11505 lt_cv_with_aix_soname=$with_aix_soname
11507 if ${lt_cv_with_aix_soname+:} false; then :
11508 $as_echo_n "(cached) " >&6
11510 lt_cv_with_aix_soname=aix
11513 with_aix_soname=$lt_cv_with_aix_soname
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11517 $as_echo "$with_aix_soname" >&6; }
11518 if test aix != "$with_aix_soname"; then
11519 # For the AIX way of multilib, we name the shared archive member
11520 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11521 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11522 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11523 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11524 if test 64 = "${OBJECT_MODE-32}"; then
11525 shared_archive_member_spec=shr_64
11527 shared_archive_member_spec=shr
11532 with_aix_soname=aix
11545 # This can be used to rebuild libtool when needed
11546 LIBTOOL_DEPS=$ltmain
11548 # Always use our own libtool.
11549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11580 test -z "$LN_S" && LN_S="ln -s"
11595 if test -n "${ZSH_VERSION+set}"; then
11596 setopt NO_GLOB_SUBST
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11600 $as_echo_n "checking for objdir... " >&6; }
11601 if ${lt_cv_objdir+:} false; then :
11602 $as_echo_n "(cached) " >&6
11604 rm -f .libs 2>/dev/null
11605 mkdir .libs 2>/dev/null
11606 if test -d .libs; then
11609 # MS-DOS does not allow filenames that begin with a dot.
11612 rmdir .libs 2>/dev/null
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11615 $as_echo "$lt_cv_objdir" >&6; }
11616 objdir=$lt_cv_objdir
11622 cat >>confdefs.h <<_ACEOF
11623 #define LT_OBJDIR "$lt_cv_objdir/"
11631 # AIX sometimes has problems with the GCC collect2 program. For some
11632 # reason, if we set the COLLECT_NAMES environment variable, the problems
11633 # vanish in a puff of smoke.
11634 if test set != "${COLLECT_NAMES+set}"; then
11636 export COLLECT_NAMES
11641 # Global variables:
11643 can_build_shared=yes
11645 # All known linkers require a '.a' archive for static linking (except MSVC,
11646 # which needs '.lib').
11649 with_gnu_ld=$lt_cv_prog_gnu_ld
11654 # Set sane defaults for various variables
11655 test -z "$CC" && CC=cc
11656 test -z "$LTCC" && LTCC=$CC
11657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11658 test -z "$LD" && LD=ld
11659 test -z "$ac_objext" && ac_objext=o
11661 func_cc_basename $compiler
11662 cc_basename=$func_cc_basename_result
11665 # Only perform the check for file, if the check method requires it
11666 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11667 case $deplibs_check_method in
11669 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11671 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11672 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11673 $as_echo_n "(cached) " >&6
11677 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11680 lt_save_MAGIC_CMD=$MAGIC_CMD
11681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11682 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11683 for ac_dir in $ac_dummy; do
11685 test -z "$ac_dir" && ac_dir=.
11686 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11687 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11688 if test -n "$file_magic_test_file"; then
11689 case $deplibs_check_method in
11691 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11692 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11693 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11694 $EGREP "$file_magic_regex" > /dev/null; then
11699 *** Warning: the command libtool uses to detect shared libraries,
11700 *** $file_magic_cmd, produces output that libtool cannot recognize.
11701 *** The result is that libtool may fail to recognize shared libraries
11702 *** as such. This will affect the creation of libtool libraries that
11703 *** depend on shared libraries, but programs linked with such libtool
11704 *** libraries will work regardless of this problem. Nevertheless, you
11705 *** may want to report the problem to your system manager and/or to
11706 *** bug-libtool@gnu.org
11716 MAGIC_CMD=$lt_save_MAGIC_CMD
11721 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11722 if test -n "$MAGIC_CMD"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11724 $as_echo "$MAGIC_CMD" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11734 if test -z "$lt_cv_path_MAGIC_CMD"; then
11735 if test -n "$ac_tool_prefix"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11737 $as_echo_n "checking for file... " >&6; }
11738 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11739 $as_echo_n "(cached) " >&6
11743 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11746 lt_save_MAGIC_CMD=$MAGIC_CMD
11747 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11748 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11749 for ac_dir in $ac_dummy; do
11751 test -z "$ac_dir" && ac_dir=.
11752 if test -f "$ac_dir/file"; then
11753 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11754 if test -n "$file_magic_test_file"; then
11755 case $deplibs_check_method in
11757 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11758 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11759 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11760 $EGREP "$file_magic_regex" > /dev/null; then
11765 *** Warning: the command libtool uses to detect shared libraries,
11766 *** $file_magic_cmd, produces output that libtool cannot recognize.
11767 *** The result is that libtool may fail to recognize shared libraries
11768 *** as such. This will affect the creation of libtool libraries that
11769 *** depend on shared libraries, but programs linked with such libtool
11770 *** libraries will work regardless of this problem. Nevertheless, you
11771 *** may want to report the problem to your system manager and/or to
11772 *** bug-libtool@gnu.org
11782 MAGIC_CMD=$lt_save_MAGIC_CMD
11787 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11788 if test -n "$MAGIC_CMD"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11790 $as_echo "$MAGIC_CMD" >&6; }
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11806 # Use C for the default configuration in the libtool script
11810 ac_cpp='$CPP $CPPFLAGS'
11811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816 # Source file extension for C test sources.
11819 # Object file extension for compiled C test sources.
11823 # Code to be used in simple compile tests
11824 lt_simple_compile_test_code="int some_variable = 0;"
11826 # Code to be used in simple link tests
11827 lt_simple_link_test_code='int main(){return(0);}'
11835 # If no C compiler was specified, use CC.
11838 # If no C compiler flags were specified, use CFLAGS.
11839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11841 # Allow CC to be a program name with arguments.
11844 # Save the default compiler, since it gets overwritten when the other
11845 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11846 compiler_DEFAULT=$CC
11848 # save warnings/boilerplate of simple test code
11849 ac_outfile=conftest.$ac_objext
11850 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11852 _lt_compiler_boilerplate=`cat conftest.err`
11855 ac_outfile=conftest.$ac_objext
11856 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_linker_boilerplate=`cat conftest.err`
11863 ## There is no encapsulation within the following macros, do not change
11864 ## the running order or otherwise move them around unless you know exactly
11865 ## what you are doing...
11866 if test -n "$compiler"; then
11868 lt_prog_compiler_no_builtin_flag=
11870 if test yes = "$GCC"; then
11871 case $cc_basename in
11873 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11875 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11879 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11880 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11881 $as_echo_n "(cached) " >&6
11883 lt_cv_prog_compiler_rtti_exceptions=no
11884 ac_outfile=conftest.$ac_objext
11885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11886 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11887 # Insert the option either (1) after the last *FLAGS variable, or
11888 # (2) before a word containing "conftest.", or (3) at the end.
11889 # Note that $ac_compile itself does not contain backslashes and begins
11890 # with a dollar sign (not a hyphen), so the echo should work correctly.
11891 # The option is referenced via a variable to avoid confusing sed.
11892 lt_compile=`echo "$ac_compile" | $SED \
11893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11895 -e 's:$: $lt_compiler_flag:'`
11896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11897 (eval "$lt_compile" 2>conftest.err)
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 if (exit $ac_status) && test -s "$ac_outfile"; then
11902 # The compiler can only warn and ignore the option if not recognized
11903 # So say no if there are warnings other than the usual output.
11904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11907 lt_cv_prog_compiler_rtti_exceptions=yes
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11914 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11916 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11917 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11929 lt_prog_compiler_wl=
11930 lt_prog_compiler_pic=
11931 lt_prog_compiler_static=
11934 if test yes = "$GCC"; then
11935 lt_prog_compiler_wl='-Wl,'
11936 lt_prog_compiler_static='-static'
11940 # All AIX code is PIC.
11941 if test ia64 = "$host_cpu"; then
11942 # AIX 5 now supports IA64 processor
11943 lt_prog_compiler_static='-Bstatic'
11945 lt_prog_compiler_pic='-fPIC'
11951 # see comment about AmigaOS4 .so support
11952 lt_prog_compiler_pic='-fPIC'
11955 # FIXME: we need at least 68020 code to build shared libraries, but
11956 # adding the '-m68020' flag to GCC prevents building anything better,
11958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11964 # PIC is the default for these OSes.
11967 mingw* | cygwin* | pw32* | os2* | cegcc*)
11968 # This hack is so that the source file can tell whether it is being
11969 # built for inclusion in a dll (and should export symbols for example).
11970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11971 # (--disable-auto-import) libraries
11972 lt_prog_compiler_pic='-DDLL_EXPORT'
11975 lt_prog_compiler_static='$wl-static'
11980 darwin* | rhapsody*)
11981 # PIC is the default on this platform
11982 # Common symbols not allowed in MH_DYLIB files
11983 lt_prog_compiler_pic='-fno-common'
11987 # PIC is the default for Haiku.
11988 # The "-static" flag exists, but is broken.
11989 lt_prog_compiler_static=
11993 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11994 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11995 # sets the default TLS model and affects inlining.
12001 lt_prog_compiler_pic='-fPIC'
12007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12008 # Instead, we relocate shared libraries at runtime.
12012 # Just because we use GCC doesn't mean we suddenly get shared libraries
12013 # on systems that don't support them.
12014 lt_prog_compiler_can_build_shared=no
12019 # QNX uses GNU C++, but need to define -shared option too, otherwise
12020 # it will coredump.
12021 lt_prog_compiler_pic='-fPIC -shared'
12025 if test -d /usr/nec; then
12026 lt_prog_compiler_pic=-Kconform_pic
12031 lt_prog_compiler_pic='-fPIC'
12035 case $cc_basename in
12036 nvcc*) # Cuda Compiler Driver 2.2
12037 lt_prog_compiler_wl='-Xlinker '
12038 if test -n "$lt_prog_compiler_pic"; then
12039 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12044 # PORTME Check for flag to pass linker flags through the system compiler.
12047 lt_prog_compiler_wl='-Wl,'
12048 if test ia64 = "$host_cpu"; then
12049 # AIX 5 now supports IA64 processor
12050 lt_prog_compiler_static='-Bstatic'
12052 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12056 darwin* | rhapsody*)
12057 # PIC is the default on this platform
12058 # Common symbols not allowed in MH_DYLIB files
12059 lt_prog_compiler_pic='-fno-common'
12060 case $cc_basename in
12062 # NAG Fortran compiler
12063 lt_prog_compiler_wl='-Wl,-Wl,,'
12064 lt_prog_compiler_pic='-PIC'
12065 lt_prog_compiler_static='-Bstatic'
12070 mingw* | cygwin* | pw32* | os2* | cegcc*)
12071 # This hack is so that the source file can tell whether it is being
12072 # built for inclusion in a dll (and should export symbols for example).
12073 lt_prog_compiler_pic='-DDLL_EXPORT'
12076 lt_prog_compiler_static='$wl-static'
12081 hpux9* | hpux10* | hpux11*)
12082 lt_prog_compiler_wl='-Wl,'
12083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12084 # not for PA HP-UX.
12090 lt_prog_compiler_pic='+Z'
12093 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12094 lt_prog_compiler_static='$wl-a ${wl}archive'
12097 irix5* | irix6* | nonstopux*)
12098 lt_prog_compiler_wl='-Wl,'
12099 # PIC (with -KPIC) is the default.
12100 lt_prog_compiler_static='-non_shared'
12103 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12104 case $cc_basename in
12105 # old Intel for x86_64, which still supported -KPIC.
12107 lt_prog_compiler_wl='-Wl,'
12108 lt_prog_compiler_pic='-KPIC'
12109 lt_prog_compiler_static='-static'
12111 # icc used to be incompatible with GCC.
12112 # ICC 10 doesn't accept -KPIC any more.
12114 lt_prog_compiler_wl='-Wl,'
12115 lt_prog_compiler_pic='-fPIC'
12116 lt_prog_compiler_static='-static'
12118 # Lahey Fortran 8.1.
12120 lt_prog_compiler_wl='-Wl,'
12121 lt_prog_compiler_pic='--shared'
12122 lt_prog_compiler_static='--static'
12125 # NAG Fortran compiler
12126 lt_prog_compiler_wl='-Wl,-Wl,,'
12127 lt_prog_compiler_pic='-PIC'
12128 lt_prog_compiler_static='-Bstatic'
12131 # Fabrice Bellard et al's Tiny C Compiler
12132 lt_prog_compiler_wl='-Wl,'
12133 lt_prog_compiler_pic='-fPIC'
12134 lt_prog_compiler_static='-static'
12136 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12137 # Portland Group compilers (*not* the Pentium gcc compiler,
12138 # which looks to be a dead project)
12139 lt_prog_compiler_wl='-Wl,'
12140 lt_prog_compiler_pic='-fpic'
12141 lt_prog_compiler_static='-Bstatic'
12144 lt_prog_compiler_wl='-Wl,'
12145 # All Alpha code is PIC.
12146 lt_prog_compiler_static='-non_shared'
12148 xl* | bgxl* | bgf* | mpixl*)
12149 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12150 lt_prog_compiler_wl='-Wl,'
12151 lt_prog_compiler_pic='-qpic'
12152 lt_prog_compiler_static='-qstaticlink'
12155 case `$CC -V 2>&1 | sed 5q` in
12156 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12157 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12158 lt_prog_compiler_pic='-KPIC'
12159 lt_prog_compiler_static='-Bstatic'
12160 lt_prog_compiler_wl=''
12162 *Sun\ F* | *Sun*Fortran*)
12163 lt_prog_compiler_pic='-KPIC'
12164 lt_prog_compiler_static='-Bstatic'
12165 lt_prog_compiler_wl='-Qoption ld '
12169 lt_prog_compiler_pic='-KPIC'
12170 lt_prog_compiler_static='-Bstatic'
12171 lt_prog_compiler_wl='-Wl,'
12173 *Intel*\ [CF]*Compiler*)
12174 lt_prog_compiler_wl='-Wl,'
12175 lt_prog_compiler_pic='-fPIC'
12176 lt_prog_compiler_static='-static'
12179 lt_prog_compiler_wl='-Wl,'
12180 lt_prog_compiler_pic='-fpic'
12181 lt_prog_compiler_static='-Bstatic'
12189 lt_prog_compiler_pic='-KPIC'
12190 lt_prog_compiler_static='-Bstatic'
12194 # QNX uses GNU C++, but need to define -shared option too, otherwise
12195 # it will coredump.
12196 lt_prog_compiler_pic='-fPIC -shared'
12199 osf3* | osf4* | osf5*)
12200 lt_prog_compiler_wl='-Wl,'
12201 # All OSF/1 code is PIC.
12202 lt_prog_compiler_static='-non_shared'
12206 lt_prog_compiler_static='-non_shared'
12210 lt_prog_compiler_pic='-KPIC'
12211 lt_prog_compiler_static='-Bstatic'
12212 case $cc_basename in
12213 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12214 lt_prog_compiler_wl='-Qoption ld ';;
12216 lt_prog_compiler_wl='-Wl,';;
12221 lt_prog_compiler_wl='-Qoption ld '
12222 lt_prog_compiler_pic='-PIC'
12223 lt_prog_compiler_static='-Bstatic'
12226 sysv4 | sysv4.2uw2* | sysv4.3*)
12227 lt_prog_compiler_wl='-Wl,'
12228 lt_prog_compiler_pic='-KPIC'
12229 lt_prog_compiler_static='-Bstatic'
12233 if test -d /usr/nec; then
12234 lt_prog_compiler_pic='-Kconform_pic'
12235 lt_prog_compiler_static='-Bstatic'
12239 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12240 lt_prog_compiler_wl='-Wl,'
12241 lt_prog_compiler_pic='-KPIC'
12242 lt_prog_compiler_static='-Bstatic'
12246 lt_prog_compiler_wl='-Wl,'
12247 lt_prog_compiler_can_build_shared=no
12251 lt_prog_compiler_pic='-pic'
12252 lt_prog_compiler_static='-Bstatic'
12256 lt_prog_compiler_can_build_shared=no
12262 # For platforms that do not support PIC, -DPIC is meaningless:
12264 lt_prog_compiler_pic=
12267 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12273 if ${lt_cv_prog_compiler_pic+:} false; then :
12274 $as_echo_n "(cached) " >&6
12276 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12279 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12280 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12283 # Check to make sure the PIC flag actually works.
12285 if test -n "$lt_prog_compiler_pic"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12287 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12288 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12289 $as_echo_n "(cached) " >&6
12291 lt_cv_prog_compiler_pic_works=no
12292 ac_outfile=conftest.$ac_objext
12293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12294 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12295 # Insert the option either (1) after the last *FLAGS variable, or
12296 # (2) before a word containing "conftest.", or (3) at the end.
12297 # Note that $ac_compile itself does not contain backslashes and begins
12298 # with a dollar sign (not a hyphen), so the echo should work correctly.
12299 # The option is referenced via a variable to avoid confusing sed.
12300 lt_compile=`echo "$ac_compile" | $SED \
12301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303 -e 's:$: $lt_compiler_flag:'`
12304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12305 (eval "$lt_compile" 2>conftest.err)
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 if (exit $ac_status) && test -s "$ac_outfile"; then
12310 # The compiler can only warn and ignore the option if not recognized
12311 # So say no if there are warnings other than the usual output.
12312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12315 lt_cv_prog_compiler_pic_works=yes
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12322 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12324 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12325 case $lt_prog_compiler_pic in
12327 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12330 lt_prog_compiler_pic=
12331 lt_prog_compiler_can_build_shared=no
12347 # Check to make sure the static flag actually works.
12349 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12351 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12352 if ${lt_cv_prog_compiler_static_works+:} false; then :
12353 $as_echo_n "(cached) " >&6
12355 lt_cv_prog_compiler_static_works=no
12356 save_LDFLAGS=$LDFLAGS
12357 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12358 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12359 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12360 # The linker can only warn and ignore the option if not recognized
12361 # So say no if there are warnings
12362 if test -s conftest.err; then
12363 # Append any errors to the config.log.
12364 cat conftest.err 1>&5
12365 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12367 if diff conftest.exp conftest.er2 >/dev/null; then
12368 lt_cv_prog_compiler_static_works=yes
12371 lt_cv_prog_compiler_static_works=yes
12375 LDFLAGS=$save_LDFLAGS
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12379 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12381 if test yes = "$lt_cv_prog_compiler_static_works"; then
12384 lt_prog_compiler_static=
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12395 if ${lt_cv_prog_compiler_c_o+:} false; then :
12396 $as_echo_n "(cached) " >&6
12398 lt_cv_prog_compiler_c_o=no
12399 $RM -r conftest 2>/dev/null
12403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12405 lt_compiler_flag="-o out/conftest2.$ac_objext"
12406 # Insert the option either (1) after the last *FLAGS variable, or
12407 # (2) before a word containing "conftest.", or (3) at the end.
12408 # Note that $ac_compile itself does not contain backslashes and begins
12409 # with a dollar sign (not a hyphen), so the echo should work correctly.
12410 lt_compile=`echo "$ac_compile" | $SED \
12411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12413 -e 's:$: $lt_compiler_flag:'`
12414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12415 (eval "$lt_compile" 2>out/conftest.err)
12417 cat out/conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12421 # The compiler can only warn and ignore the option if not recognized
12422 # So say no if there are warnings
12423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12424 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12425 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12426 lt_cv_prog_compiler_c_o=yes
12431 # SGI C++ compiler will create directory out/ii_files/ for
12432 # template instantiation
12433 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12434 $RM out/* && rmdir out
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12441 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12450 if ${lt_cv_prog_compiler_c_o+:} false; then :
12451 $as_echo_n "(cached) " >&6
12453 lt_cv_prog_compiler_c_o=no
12454 $RM -r conftest 2>/dev/null
12458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12460 lt_compiler_flag="-o out/conftest2.$ac_objext"
12461 # Insert the option either (1) after the last *FLAGS variable, or
12462 # (2) before a word containing "conftest.", or (3) at the end.
12463 # Note that $ac_compile itself does not contain backslashes and begins
12464 # with a dollar sign (not a hyphen), so the echo should work correctly.
12465 lt_compile=`echo "$ac_compile" | $SED \
12466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12468 -e 's:$: $lt_compiler_flag:'`
12469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12470 (eval "$lt_compile" 2>out/conftest.err)
12472 cat out/conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12476 # The compiler can only warn and ignore the option if not recognized
12477 # So say no if there are warnings
12478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12481 lt_cv_prog_compiler_c_o=yes
12486 # SGI C++ compiler will create directory out/ii_files/ for
12487 # template instantiation
12488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12489 $RM out/* && rmdir out
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12496 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12501 hard_links=nottested
12502 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12503 # do not overwrite the value of need_locks provided by the user
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12505 $as_echo_n "checking if we can lock with hard links... " >&6; }
12508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12510 ln conftest.a conftest.b 2>&5 || hard_links=no
12511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12513 $as_echo "$hard_links" >&6; }
12514 if test no = "$hard_links"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12516 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12529 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12532 allow_undefined_flag=
12533 always_export_symbols=no
12535 archive_expsym_cmds=
12536 compiler_needs_object=no
12537 enable_shared_with_static_runtimes=no
12538 export_dynamic_flag_spec=
12539 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12540 hardcode_automatic=no
12542 hardcode_direct_absolute=no
12543 hardcode_libdir_flag_spec=
12544 hardcode_libdir_separator=
12545 hardcode_minus_L=no
12546 hardcode_shlibpath_var=unsupported
12548 link_all_deplibs=unknown
12550 module_expsym_cmds=
12551 old_archive_from_new_cmds=
12552 old_archive_from_expsyms_cmds=
12553 thread_safe_flag_spec=
12554 whole_archive_flag_spec=
12555 # include_expsyms should be a list of space-separated symbols to be *always*
12556 # included in the symbol list
12558 # exclude_expsyms can be an extended regexp of symbols to exclude
12559 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12560 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12561 # as well as any symbol that contains 'd'.
12562 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12564 # platforms (ab)use it in PIC code, but their linkers get confused if
12565 # the symbol is explicitly referenced. Since portable code cannot
12566 # rely on this symbol name, it's probably fine to never include it in
12567 # preloaded symbol tables.
12568 # Exclude shared library initialization/finalization symbols.
12569 extract_expsyms_cmds=
12572 cygwin* | mingw* | pw32* | cegcc*)
12573 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12574 # When not using gcc, we currently assume that we are using
12575 # Microsoft Visual C++.
12576 if test yes != "$GCC"; then
12581 # we just hope/assume this is gcc and not c89 (= MSVC++)
12584 openbsd* | bitrig*)
12587 linux* | k*bsd*-gnu | gnu*)
12588 link_all_deplibs=no
12594 # On some targets, GNU ld is compatible enough with the native linker
12595 # that we're better off using the native interface for both.
12596 lt_use_gnu_ld_interface=no
12597 if test yes = "$with_gnu_ld"; then
12600 # The AIX port of GNU ld has always aspired to compatibility
12601 # with the native linker. However, as the warning in the GNU ld
12602 # block says, versions before 2.19.5* couldn't really create working
12603 # shared libraries, regardless of the interface used.
12604 case `$LD -v 2>&1` in
12605 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12606 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12607 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12609 lt_use_gnu_ld_interface=yes
12614 lt_use_gnu_ld_interface=yes
12619 if test yes = "$lt_use_gnu_ld_interface"; then
12620 # If archive_cmds runs LD, not CC, wlarc should be empty
12623 # Set some defaults for GNU ld with shared library support. These
12624 # are reset later if shared libraries are not supported. Putting them
12625 # here allows them to be overridden if necessary.
12626 runpath_var=LD_RUN_PATH
12627 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12628 export_dynamic_flag_spec='$wl--export-dynamic'
12629 # ancient GNU ld didn't support --whole-archive et. al.
12630 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12631 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12633 whole_archive_flag_spec=
12635 supports_anon_versioning=no
12636 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12637 *GNU\ gold*) supports_anon_versioning=yes ;;
12638 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12641 *\ 2.11.*) ;; # other 2.11 versions
12642 *) supports_anon_versioning=yes ;;
12645 # See if GNU ld supports shared libraries.
12648 # On AIX/PPC, the GNU linker is very broken
12649 if test ia64 != "$host_cpu"; then
12653 *** Warning: the GNU linker, at least up to release 2.19, is reported
12654 *** to be unable to reliably create shared libraries on AIX.
12655 *** Therefore, libtool is disabling shared libraries support. If you
12656 *** really care for shared libraries, you may want to install binutils
12657 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12658 *** You will then need to restart the configuration process.
12667 # see comment about AmigaOS4 .so support
12668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12669 archive_expsym_cmds=''
12672 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)'
12673 hardcode_libdir_flag_spec='-L$libdir'
12674 hardcode_minus_L=yes
12680 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12681 allow_undefined_flag=unsupported
12682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12683 # support --undefined. This deserves some investigation. FIXME
12684 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12690 cygwin* | mingw* | pw32* | cegcc*)
12691 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12692 # as there is no search path for DLLs.
12693 hardcode_libdir_flag_spec='-L$libdir'
12694 export_dynamic_flag_spec='$wl--export-all-symbols'
12695 allow_undefined_flag=unsupported
12696 always_export_symbols=no
12697 enable_shared_with_static_runtimes=yes
12698 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'
12699 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12701 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12703 # If the export-symbols file already is a .def file, use it as
12704 # is; otherwise, prepend EXPORTS...
12705 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12706 cp $export_symbols $output_objdir/$soname.def;
12708 echo EXPORTS > $output_objdir/$soname.def;
12709 cat $export_symbols >> $output_objdir/$soname.def;
12711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12719 link_all_deplibs=yes
12723 hardcode_libdir_flag_spec='-L$libdir'
12724 hardcode_minus_L=yes
12725 allow_undefined_flag=unsupported
12727 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12728 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12729 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12730 $ECHO EXPORTS >> $output_objdir/$libname.def~
12731 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12732 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12733 emximp -o $lib $output_objdir/$libname.def'
12734 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12737 $ECHO EXPORTS >> $output_objdir/$libname.def~
12738 prefix_cmds="$SED"~
12739 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12740 prefix_cmds="$prefix_cmds -e 1d";
12742 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12743 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12744 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12745 emximp -o $lib $output_objdir/$libname.def'
12746 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12747 enable_shared_with_static_runtimes=yes
12752 hardcode_shlibpath_var=no
12753 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12754 export_dynamic_flag_spec='$wl-E'
12755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12756 # Instead, shared libraries are loaded at an image base (0x10000000 by
12757 # default) and relocated if they conflict, which is a slow very memory
12758 # consuming and fragmenting process. To avoid this, we pick a random,
12759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12762 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'
12765 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12767 if test linux-dietlibc = "$host_os"; then
12768 case $cc_basename in
12769 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12772 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12773 && test no = "$tmp_diet"
12775 tmp_addflag=' $pic_flag'
12776 tmp_sharedflag='-shared'
12777 case $cc_basename,$host_cpu in
12778 pgcc*) # Portland Group C compiler
12779 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'
12780 tmp_addflag=' $pic_flag'
12782 pgf77* | pgf90* | pgf95* | pgfortran*)
12783 # Portland Group f77 and f90 compilers
12784 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'
12785 tmp_addflag=' $pic_flag -Mnomain' ;;
12786 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12787 tmp_addflag=' -i_dynamic' ;;
12788 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12789 tmp_addflag=' -i_dynamic -nofor_main' ;;
12790 ifc* | ifort*) # Intel Fortran compiler
12791 tmp_addflag=' -nofor_main' ;;
12792 lf95*) # Lahey Fortran 8.1
12793 whole_archive_flag_spec=
12794 tmp_sharedflag='--shared' ;;
12795 nagfor*) # NAGFOR 5.3
12796 tmp_sharedflag='-Wl,-shared' ;;
12797 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12798 tmp_sharedflag='-qmkshrobj'
12800 nvcc*) # Cuda Compiler Driver 2.2
12801 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'
12802 compiler_needs_object=yes
12805 case `$CC -V 2>&1 | sed 5q` in
12806 *Sun\ C*) # Sun C 5.9
12807 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'
12808 compiler_needs_object=yes
12809 tmp_sharedflag='-G' ;;
12810 *Sun\ F*) # Sun Fortran 8.3
12811 tmp_sharedflag='-G' ;;
12813 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12815 if test yes = "$supports_anon_versioning"; then
12816 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12818 echo "local: *; };" >> $output_objdir/$libname.ver~
12819 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12822 case $cc_basename in
12824 export_dynamic_flag_spec='-rdynamic'
12826 xlf* | bgf* | bgxlf* | mpixlf*)
12827 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12828 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12829 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12830 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12831 if test yes = "$supports_anon_versioning"; then
12832 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12834 echo "local: *; };" >> $output_objdir/$libname.ver~
12835 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12844 netbsd* | netbsdelf*-gnu)
12845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12846 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12850 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12855 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12859 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12860 *** create shared libraries on Solaris systems. Therefore, libtool
12861 *** is disabling shared libraries support. We urge you to upgrade GNU
12862 *** binutils to release 2.9.1 or newer. Another option is to modify
12863 *** your PATH or compiler configuration so that the native linker is
12864 *** used, and then restart.
12867 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12869 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12876 case `$LD -v 2>&1` in
12877 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12881 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12882 *** reliably create shared libraries on SCO systems. Therefore, libtool
12883 *** is disabling shared libraries support. We urge you to upgrade GNU
12884 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12885 *** your PATH or compiler configuration so that the native linker is
12886 *** used, and then restart.
12891 # For security reasons, it is highly recommended that you always
12892 # use absolute paths for naming shared libraries, and exclude the
12893 # DT_RUNPATH tag from executables and libraries. But doing so
12894 # requires that you compile everything twice, which is a pain.
12895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12907 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_direct=yes
12910 hardcode_shlibpath_var=no
12914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12916 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12923 if test no = "$ld_shlibs"; then
12925 hardcode_libdir_flag_spec=
12926 export_dynamic_flag_spec=
12927 whole_archive_flag_spec=
12930 # PORTME fill in a description of your system's linker (not GNU ld)
12933 allow_undefined_flag=unsupported
12934 always_export_symbols=yes
12935 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'
12936 # Note: this linker hardcodes the directories in LIBPATH if there
12937 # are no directories specified by -L.
12938 hardcode_minus_L=yes
12939 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12940 # Neither direct hardcoding nor static linking is supported with a
12942 hardcode_direct=unsupported
12947 if test ia64 = "$host_cpu"; then
12948 # On IA64, the linker does run time linking by default, so we don't
12949 # have to do anything special.
12950 aix_use_runtimelinking=no
12951 exp_sym_flag='-Bexport'
12954 # If we're using GNU nm, then we don't want the "-C" option.
12955 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12956 # Without the "-l" option, or with the "-B" option, AIX nm treats
12957 # weak defined symbols like other global defined symbols, whereas
12958 # GNU nm marks them as "W".
12959 # While the 'weak' keyword is ignored in the Export File, we need
12960 # it in the Import File for the 'aix-soname' feature, so we have
12961 # to replace the "-B" option with "-P" for AIX nm.
12962 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12963 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12965 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12967 aix_use_runtimelinking=no
12969 # Test if we are trying to use run time linking or normal
12970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12971 # have runtime linking enabled, and use it for executables.
12972 # For shared libraries, we enable/disable runtime linking
12973 # depending on the kind of the shared library created -
12974 # when "with_aix_soname,aix_use_runtimelinking" is:
12975 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12976 # "aix,yes" lib.so shared, rtl:yes, for executables
12977 # lib.a static archive
12978 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12979 # lib.a(lib.so.V) shared, rtl:no, for executables
12980 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12981 # lib.a(lib.so.V) shared, rtl:no
12982 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12983 # lib.a static archive
12984 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12985 for ld_flag in $LDFLAGS; do
12986 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12987 aix_use_runtimelinking=yes
12991 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12992 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12993 # so we don't have lib.a shared libs to link our executables.
12994 # We have to force runtime linking in this case.
12995 aix_use_runtimelinking=yes
12996 LDFLAGS="$LDFLAGS -Wl,-brtl"
13001 exp_sym_flag='-bexport'
13002 no_entry_flag='-bnoentry'
13005 # When large executables or shared objects are built, AIX ld can
13006 # have problems creating the table of contents. If linking a library
13007 # or program results in "error TOC overflow" add -mminimal-toc to
13008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13012 hardcode_direct=yes
13013 hardcode_direct_absolute=yes
13014 hardcode_libdir_separator=':'
13015 link_all_deplibs=yes
13016 file_list_spec='$wl-f,'
13017 case $with_aix_soname,$aix_use_runtimelinking in
13018 aix,*) ;; # traditional, no import file
13019 svr4,* | *,yes) # use import file
13020 # The Import File defines what to hardcode.
13022 hardcode_direct_absolute=no
13026 if test yes = "$GCC"; then
13027 case $host_os in aix4.[012]|aix4.[012].*)
13028 # We only want to do this on AIX 4.2 and lower, the check
13029 # below for broken collect2 doesn't work under 4.3+
13030 collect2name=`$CC -print-prog-name=collect2`
13031 if test -f "$collect2name" &&
13032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13034 # We have reworked collect2
13037 # We have old collect2
13038 hardcode_direct=unsupported
13039 # It fails to find uninstalled libraries when the uninstalled
13040 # path is not listed in the libpath. Setting hardcode_minus_L
13041 # to unsupported forces relinking
13042 hardcode_minus_L=yes
13043 hardcode_libdir_flag_spec='-L$libdir'
13044 hardcode_libdir_separator=
13048 shared_flag='-shared'
13049 if test yes = "$aix_use_runtimelinking"; then
13050 shared_flag="$shared_flag "'$wl-G'
13052 # Need to ensure runtime linking is disabled for the traditional
13053 # shared library, or the linker may eventually find shared libraries
13054 # /with/ Import File - we do not want to mix them.
13055 shared_flag_aix='-shared'
13056 shared_flag_svr4='-shared $wl-G'
13059 if test ia64 = "$host_cpu"; then
13060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13061 # chokes on -Wl,-G. The following line is correct:
13064 if test yes = "$aix_use_runtimelinking"; then
13065 shared_flag='$wl-G'
13067 shared_flag='$wl-bM:SRE'
13069 shared_flag_aix='$wl-bM:SRE'
13070 shared_flag_svr4='$wl-G'
13074 export_dynamic_flag_spec='$wl-bexpall'
13075 # It seems that -bexpall does not export symbols beginning with
13076 # underscore (_), so it is better to generate a list of symbols to export.
13077 always_export_symbols=yes
13078 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13079 # Warning - without using the other runtime loading flags (-brtl),
13080 # -berok will link without error, but may produce a broken library.
13081 allow_undefined_flag='-berok'
13082 # Determine the default libpath from the value encoded in an
13083 # empty executable.
13084 if test set = "${lt_cv_aix_libpath+set}"; then
13085 aix_libpath=$lt_cv_aix_libpath
13087 if ${lt_cv_aix_libpath_+:} false; then :
13088 $as_echo_n "(cached) " >&6
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13100 if ac_fn_c_try_link "$LINENO"; then :
13102 lt_aix_libpath_sed='
13103 /Import File Strings/,/^$/ {
13105 s/^0 *\([^ ]*\) *$/\1/
13109 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13110 # Check for a 64-bit object if we didn't find anything.
13111 if test -z "$lt_cv_aix_libpath_"; then
13112 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 if test -z "$lt_cv_aix_libpath_"; then
13118 lt_cv_aix_libpath_=/usr/lib:/lib
13123 aix_libpath=$lt_cv_aix_libpath_
13126 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13127 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13129 if test ia64 = "$host_cpu"; then
13130 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13131 allow_undefined_flag="-z nodefs"
13132 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"
13134 # Determine the default libpath from the value encoded in an
13135 # empty executable.
13136 if test set = "${lt_cv_aix_libpath+set}"; then
13137 aix_libpath=$lt_cv_aix_libpath
13139 if ${lt_cv_aix_libpath_+:} false; then :
13140 $as_echo_n "(cached) " >&6
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13152 if ac_fn_c_try_link "$LINENO"; then :
13154 lt_aix_libpath_sed='
13155 /Import File Strings/,/^$/ {
13157 s/^0 *\([^ ]*\) *$/\1/
13161 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13162 # Check for a 64-bit object if we didn't find anything.
13163 if test -z "$lt_cv_aix_libpath_"; then
13164 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 if test -z "$lt_cv_aix_libpath_"; then
13170 lt_cv_aix_libpath_=/usr/lib:/lib
13175 aix_libpath=$lt_cv_aix_libpath_
13178 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13179 # Warning - without using the other run time loading flags,
13180 # -berok will link without error, but may produce a broken library.
13181 no_undefined_flag=' $wl-bernotok'
13182 allow_undefined_flag=' $wl-berok'
13183 if test yes = "$with_gnu_ld"; then
13184 # We only use this code for GNU lds that support --whole-archive.
13185 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13187 # Exported symbols can be pulled into shared objects from archives
13188 whole_archive_flag_spec='$convenience'
13190 archive_cmds_need_lc=yes
13191 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13192 # -brtl affects multiple linker settings, -berok does not and is overridden later
13193 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13194 if test svr4 != "$with_aix_soname"; then
13195 # This is similar to how AIX traditionally builds its shared libraries.
13196 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13198 if test aix != "$with_aix_soname"; then
13199 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13201 # used by -dlpreopen to get the symbols
13202 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13204 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13212 # see comment about AmigaOS4 .so support
13213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13214 archive_expsym_cmds=''
13217 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)'
13218 hardcode_libdir_flag_spec='-L$libdir'
13219 hardcode_minus_L=yes
13225 export_dynamic_flag_spec=-rdynamic
13228 cygwin* | mingw* | pw32* | cegcc*)
13229 # When not using gcc, we currently assume that we are using
13230 # Microsoft Visual C++.
13231 # hardcode_libdir_flag_spec is actually meaningless, as there is
13232 # no search path for DLLs.
13233 case $cc_basename in
13236 hardcode_libdir_flag_spec=' '
13237 allow_undefined_flag=unsupported
13238 always_export_symbols=yes
13240 # Tell ltmain to make .lib files, not .a files.
13242 # Tell ltmain to make .dll files, not .so files.
13244 # FIXME: Setting linknames here is a bad hack.
13245 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13246 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13247 cp "$export_symbols" "$output_objdir/$soname.def";
13248 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13250 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13252 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13254 # The linker will not automatically build a static lib if we build a DLL.
13255 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13256 enable_shared_with_static_runtimes=yes
13257 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13258 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13260 old_postinstall_cmds='chmod 644 $oldlib'
13261 postlink_cmds='lt_outputfile="@OUTPUT@"~
13262 lt_tool_outputfile="@TOOL_OUTPUT@"~
13263 case $lt_outputfile in
13266 lt_outputfile=$lt_outputfile.exe
13267 lt_tool_outputfile=$lt_tool_outputfile.exe
13270 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13271 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13272 $RM "$lt_outputfile.manifest";
13276 # Assume MSVC wrapper
13277 hardcode_libdir_flag_spec=' '
13278 allow_undefined_flag=unsupported
13279 # Tell ltmain to make .lib files, not .a files.
13281 # Tell ltmain to make .dll files, not .so files.
13283 # FIXME: Setting linknames here is a bad hack.
13284 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13285 # The linker will automatically build a .lib file if we build a DLL.
13286 old_archive_from_new_cmds='true'
13287 # FIXME: Should let the user specify the lib program.
13288 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13289 enable_shared_with_static_runtimes=yes
13294 darwin* | rhapsody*)
13297 archive_cmds_need_lc=no
13299 hardcode_automatic=yes
13300 hardcode_shlibpath_var=unsupported
13301 if test yes = "$lt_cv_ld_force_load"; then
13302 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\"`'
13305 whole_archive_flag_spec=''
13307 link_all_deplibs=yes
13308 allow_undefined_flag=$_lt_dar_allow_undefined
13309 case $cc_basename in
13310 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13311 *) _lt_dar_can_shared=$GCC ;;
13313 if test yes = "$_lt_dar_can_shared"; then
13314 output_verbose_link_cmd=func_echo_all
13315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13317 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"
13318 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"
13327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13328 hardcode_libdir_flag_spec='-L$libdir'
13329 hardcode_shlibpath_var=no
13332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13333 # support. Future versions do this automatically, but an explicit c++rt0.o
13334 # does not break anything, and helps significantly (at the cost of a little
13337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13338 hardcode_libdir_flag_spec='-R$libdir'
13339 hardcode_direct=yes
13340 hardcode_shlibpath_var=no
13343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13346 hardcode_direct=yes
13347 hardcode_minus_L=yes
13348 hardcode_shlibpath_var=no
13351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13352 freebsd* | dragonfly*)
13353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13354 hardcode_libdir_flag_spec='-R$libdir'
13355 hardcode_direct=yes
13356 hardcode_shlibpath_var=no
13360 if test yes = "$GCC"; then
13361 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13363 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13365 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13366 hardcode_libdir_separator=:
13367 hardcode_direct=yes
13369 # hardcode_minus_L: Not really in the search PATH,
13370 # but as the default location of the library.
13371 hardcode_minus_L=yes
13372 export_dynamic_flag_spec='$wl-E'
13376 if test yes,no = "$GCC,$with_gnu_ld"; then
13377 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13381 if test no = "$with_gnu_ld"; then
13382 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13383 hardcode_libdir_separator=:
13384 hardcode_direct=yes
13385 hardcode_direct_absolute=yes
13386 export_dynamic_flag_spec='$wl-E'
13387 # hardcode_minus_L: Not really in the search PATH,
13388 # but as the default location of the library.
13389 hardcode_minus_L=yes
13394 if test yes,no = "$GCC,$with_gnu_ld"; then
13397 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13400 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13403 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13409 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13412 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13416 # Older versions of the 11.00 compiler do not understand -b yet
13417 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13419 $as_echo_n "checking if $CC understands -b... " >&6; }
13420 if ${lt_cv_prog_compiler__b+:} false; then :
13421 $as_echo_n "(cached) " >&6
13423 lt_cv_prog_compiler__b=no
13424 save_LDFLAGS=$LDFLAGS
13425 LDFLAGS="$LDFLAGS -b"
13426 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13427 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13428 # The linker can only warn and ignore the option if not recognized
13429 # So say no if there are warnings
13430 if test -s conftest.err; then
13431 # Append any errors to the config.log.
13432 cat conftest.err 1>&5
13433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13435 if diff conftest.exp conftest.er2 >/dev/null; then
13436 lt_cv_prog_compiler__b=yes
13439 lt_cv_prog_compiler__b=yes
13443 LDFLAGS=$save_LDFLAGS
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13447 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13449 if test yes = "$lt_cv_prog_compiler__b"; then
13450 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13452 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13458 if test no = "$with_gnu_ld"; then
13459 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13460 hardcode_libdir_separator=:
13465 hardcode_shlibpath_var=no
13468 hardcode_direct=yes
13469 hardcode_direct_absolute=yes
13470 export_dynamic_flag_spec='$wl-E'
13472 # hardcode_minus_L: Not really in the search PATH,
13473 # but as the default location of the library.
13474 hardcode_minus_L=yes
13480 irix5* | irix6* | nonstopux*)
13481 if test yes = "$GCC"; then
13482 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'
13483 # Try to use the -exported_symbol ld option, if it does not
13484 # work, assume that -exports_file does not work either and
13485 # implicitly export all symbols.
13486 # This should be the same for all languages, so no per-tag cache variable.
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13488 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13489 if ${lt_cv_irix_exported_symbol+:} false; then :
13490 $as_echo_n "(cached) " >&6
13492 save_LDFLAGS=$LDFLAGS
13493 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 int foo (void) { return 0; }
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 lt_cv_irix_exported_symbol=yes
13501 lt_cv_irix_exported_symbol=no
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LDFLAGS=$save_LDFLAGS
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13508 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13509 if test yes = "$lt_cv_irix_exported_symbol"; then
13510 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'
13512 link_all_deplibs=no
13514 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'
13515 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'
13517 archive_cmds_need_lc='no'
13518 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13519 hardcode_libdir_separator=:
13521 link_all_deplibs=yes
13525 case $cc_basename in
13527 # Fabrice Bellard et al's Tiny C Compiler
13529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13534 netbsd* | netbsdelf*-gnu)
13535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13538 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13540 hardcode_libdir_flag_spec='-R$libdir'
13541 hardcode_direct=yes
13542 hardcode_shlibpath_var=no
13546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13547 hardcode_direct=yes
13548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13549 hardcode_libdir_separator=:
13550 hardcode_shlibpath_var=no
13556 openbsd* | bitrig*)
13557 if test -f /usr/libexec/ld.so; then
13558 hardcode_direct=yes
13559 hardcode_shlibpath_var=no
13560 hardcode_direct_absolute=yes
13561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13563 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13564 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13565 export_dynamic_flag_spec='$wl-E'
13567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13568 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13576 hardcode_libdir_flag_spec='-L$libdir'
13577 hardcode_minus_L=yes
13578 allow_undefined_flag=unsupported
13580 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13581 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13582 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13583 $ECHO EXPORTS >> $output_objdir/$libname.def~
13584 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13585 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13586 emximp -o $lib $output_objdir/$libname.def'
13587 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13588 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13589 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13590 $ECHO EXPORTS >> $output_objdir/$libname.def~
13591 prefix_cmds="$SED"~
13592 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13593 prefix_cmds="$prefix_cmds -e 1d";
13595 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13596 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13597 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13598 emximp -o $lib $output_objdir/$libname.def'
13599 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13600 enable_shared_with_static_runtimes=yes
13604 if test yes = "$GCC"; then
13605 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13606 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'
13608 allow_undefined_flag=' -expect_unresolved \*'
13609 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'
13611 archive_cmds_need_lc='no'
13612 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13613 hardcode_libdir_separator=:
13616 osf4* | osf5*) # as osf3* with the addition of -msym flag
13617 if test yes = "$GCC"; then
13618 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13619 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'
13620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13622 allow_undefined_flag=' -expect_unresolved \*'
13623 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'
13624 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~
13625 $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'
13627 # Both c and cxx compiler support -rpath directly
13628 hardcode_libdir_flag_spec='-rpath $libdir'
13630 archive_cmds_need_lc='no'
13631 hardcode_libdir_separator=:
13635 no_undefined_flag=' -z defs'
13636 if test yes = "$GCC"; then
13638 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640 $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'
13642 case `$CC -V 2>&1` in
13645 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13647 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13651 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13657 hardcode_libdir_flag_spec='-R$libdir'
13658 hardcode_shlibpath_var=no
13660 solaris2.[0-5] | solaris2.[0-5].*) ;;
13662 # The compiler driver will combine and reorder linker options,
13663 # but understands '-z linker_flag'. GCC discards it without '$wl',
13664 # but is careful enough not to reorder.
13665 # Supported since Solaris 2.6 (maybe 2.5.1?)
13666 if test yes = "$GCC"; then
13667 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13669 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13673 link_all_deplibs=yes
13677 if test sequent = "$host_vendor"; then
13678 # Use $CC to link under sequent, because it throws in some extra .o
13679 # files that make .init and .fini sections work.
13680 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec='-L$libdir'
13685 hardcode_direct=yes
13686 hardcode_minus_L=yes
13687 hardcode_shlibpath_var=no
13691 case $host_vendor in
13693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13694 hardcode_direct=yes # is this really true???
13697 ## LD is ld it makes a PLAMLIB
13698 ## CC just makes a GrossModule.
13699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13700 reload_cmds='$CC -r -o $output$reload_objs'
13704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13708 runpath_var='LD_RUN_PATH'
13709 hardcode_shlibpath_var=no
13713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_shlibpath_var=no
13715 export_dynamic_flag_spec='-Bexport'
13719 if test -d /usr/nec; then
13720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721 hardcode_shlibpath_var=no
13722 runpath_var=LD_RUN_PATH
13723 hardcode_runpath_var=yes
13728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13729 no_undefined_flag='$wl-z,text'
13730 archive_cmds_need_lc=no
13731 hardcode_shlibpath_var=no
13732 runpath_var='LD_RUN_PATH'
13734 if test yes = "$GCC"; then
13735 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 sysv5* | sco3.2v5* | sco5v6*)
13744 # Note: We CANNOT use -z defs as we might desire, because we do not
13745 # link with -lc, and that would cause any symbols used from libc to
13746 # always be unresolved, which means just about no library would
13747 # ever link correctly. If we're not using GNU ld we use -z text
13748 # though, which does catch some bad symbols but isn't as heavy-handed
13750 no_undefined_flag='$wl-z,text'
13751 allow_undefined_flag='$wl-z,nodefs'
13752 archive_cmds_need_lc=no
13753 hardcode_shlibpath_var=no
13754 hardcode_libdir_flag_spec='$wl-R,$libdir'
13755 hardcode_libdir_separator=':'
13756 link_all_deplibs=yes
13757 export_dynamic_flag_spec='$wl-Bexport'
13758 runpath_var='LD_RUN_PATH'
13760 if test yes = "$GCC"; then
13761 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_libdir_flag_spec='-L$libdir'
13772 hardcode_shlibpath_var=no
13780 if test sni = "$host_vendor"; then
13782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13783 export_dynamic_flag_spec='$wl-Blargedynsym'
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13790 $as_echo "$ld_shlibs" >&6; }
13791 test no = "$ld_shlibs" && can_build_shared=no
13793 with_gnu_ld=$with_gnu_ld
13810 # Do we need to explicitly link libc?
13812 case "x$archive_cmds_need_lc" in
13814 # Assume -lc should be added
13815 archive_cmds_need_lc=yes
13817 if test yes,yes = "$GCC,$enable_shared"; then
13818 case $archive_cmds in
13820 # FIXME: we may have to deal with multi-command sequences.
13823 # Test whether the compiler implicitly links with -lc since on some
13824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13825 # to ld, don't add -lc before -lgcc.
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13827 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13828 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13829 $as_echo_n "(cached) " >&6
13832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13835 (eval $ac_compile) 2>&5
13837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13838 test $ac_status = 0; } 2>conftest.err; then
13841 libobjs=conftest.$ac_objext
13843 wl=$lt_prog_compiler_wl
13844 pic_flag=$lt_prog_compiler_pic
13850 lt_save_allow_undefined_flag=$allow_undefined_flag
13851 allow_undefined_flag=
13852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13853 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }
13858 lt_cv_archive_cmds_need_lc=no
13860 lt_cv_archive_cmds_need_lc=yes
13862 allow_undefined_flag=$lt_save_allow_undefined_flag
13864 cat conftest.err 1>&5
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13870 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13871 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14030 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14032 if test yes = "$GCC"; then
14034 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14035 *) lt_awk_arg='/^libraries:/' ;;
14038 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14039 *) lt_sed_strip_eq='s|=/|/|g' ;;
14041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14042 case $lt_search_path_spec in
14044 # if the path contains ";" then we assume it to be the separator
14045 # otherwise default to the standard path separator (i.e. ":") - it is
14046 # assumed that no part of a normal pathname contains ";" but that should
14047 # okay in the real world where ";" in dirpaths is itself problematic.
14048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14054 # Ok, now we have the path, separated by spaces, we can step through it
14055 # and add multilib dir if necessary...
14056 lt_tmp_lt_search_path_spec=
14057 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14058 # ...but if some path component already ends with the multilib dir we assume
14059 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14060 case "$lt_multi_os_dir; $lt_search_path_spec " in
14061 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14065 for lt_sys_path in $lt_search_path_spec; do
14066 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14068 elif test -n "$lt_multi_os_dir"; then
14069 test -d "$lt_sys_path" && \
14070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14073 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14074 BEGIN {RS = " "; FS = "/|\n";} {
14077 for (lt_i = NF; lt_i > 0; lt_i--) {
14078 if ($lt_i != "" && $lt_i != ".") {
14079 if ($lt_i == "..") {
14082 if (lt_count == 0) {
14083 lt_foo = "/" $lt_i lt_foo;
14090 if (lt_foo != "") { lt_freq[lt_foo]++; }
14091 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14093 # AWK program above erroneously prepends '/' to C:/dos/paths
14096 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14097 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14099 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14103 library_names_spec=
14104 libname_spec='lib$name'
14108 postuninstall_cmds=
14112 shlibpath_overrides_runpath=unknown
14114 dynamic_linker="$host_os ld.so"
14115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14116 need_lib_prefix=unknown
14117 hardcode_into_libs=no
14119 # when you set need_version to no, make sure it does not cause -set_version
14120 # flags to be left without arguments
14121 need_version=unknown
14127 version_type=linux # correct to gnu/linux during the next big refactor
14128 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14129 shlibpath_var=LIBPATH
14131 # AIX 3 has no versioning support, so we append a major version to the name.
14132 soname_spec='$libname$release$shared_ext$major'
14136 version_type=linux # correct to gnu/linux during the next big refactor
14139 hardcode_into_libs=yes
14140 if test ia64 = "$host_cpu"; then
14141 # AIX 5 supports IA64
14142 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14143 shlibpath_var=LD_LIBRARY_PATH
14145 # With GCC up to 2.95.x, collect2 would create an import file
14146 # for dependence libraries. The import file would start with
14147 # the line '#! .'. This would cause the generated library to
14148 # depend on '.', always an invalid library. This was fixed in
14149 # development snapshots of GCC prior to 3.0.
14151 aix4 | aix4.[01] | aix4.[01].*)
14152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14154 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14157 can_build_shared=no
14161 # Using Import Files as archive members, it is possible to support
14162 # filename-based versioning of shared library archives on AIX. While
14163 # this would work for both with and without runtime linking, it will
14164 # prevent static linking of such archives. So we do filename-based
14165 # shared library versioning with .so extension only, which is used
14166 # when both runtime linking and shared linking is enabled.
14167 # Unfortunately, runtime linking may impact performance, so we do
14168 # not want this to be the default eventually. Also, we use the
14169 # versioned .so libs for executables only if there is the -brtl
14170 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14171 # To allow for filename-based versioning support, we need to create
14172 # libNAME.so.V as an archive file, containing:
14173 # *) an Import File, referring to the versioned filename of the
14174 # archive as well as the shared archive member, telling the
14175 # bitwidth (32 or 64) of that shared object, and providing the
14176 # list of exported symbols of that shared object, eventually
14177 # decorated with the 'weak' keyword
14178 # *) the shared object with the F_LOADONLY flag set, to really avoid
14179 # it being seen by the linker.
14180 # At run time we better use the real file rather than another symlink,
14181 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14183 case $with_aix_soname,$aix_use_runtimelinking in
14184 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14185 # soname into executable. Probably we can add versioning support to
14186 # collect2, so additional links can be useful in future.
14187 aix,yes) # traditional libtool
14188 dynamic_linker='AIX unversionable lib.so'
14189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14190 # instead of lib<name>.a to let people know that these are not
14191 # typical AIX shared libraries.
14192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14194 aix,no) # traditional AIX only
14195 dynamic_linker='AIX lib.a(lib.so.V)'
14196 # We preserve .a as extension for shared libraries through AIX4.2
14197 # and later when we are not doing run time linking.
14198 library_names_spec='$libname$release.a $libname.a'
14199 soname_spec='$libname$release$shared_ext$major'
14201 svr4,*) # full svr4 only
14202 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14203 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14204 # We do not specify a path in Import Files, so LIBPATH fires.
14205 shlibpath_overrides_runpath=yes
14207 *,yes) # both, prefer svr4
14208 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14209 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14210 # unpreferred sharedlib libNAME.a needs extra handling
14211 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14212 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14213 # We do not specify a path in Import Files, so LIBPATH fires.
14214 shlibpath_overrides_runpath=yes
14216 *,no) # both, prefer aix
14217 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14218 library_names_spec='$libname$release.a $libname.a'
14219 soname_spec='$libname$release$shared_ext$major'
14220 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14221 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14222 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14225 shlibpath_var=LIBPATH
14232 # Since July 2007 AmigaOS4 officially supports .so libraries.
14233 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14237 library_names_spec='$libname.ixlibrary $libname.a'
14238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14239 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14245 library_names_spec='$libname$shared_ext'
14246 dynamic_linker="$host_os ld.so"
14247 shlibpath_var=LIBRARY_PATH
14251 version_type=linux # correct to gnu/linux during the next big refactor
14253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14254 soname_spec='$libname$release$shared_ext$major'
14255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14259 # the default ld.so.conf also contains /usr/contrib/lib and
14260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14261 # libtool to hard-code these into programs
14264 cygwin* | mingw* | pw32* | cegcc*)
14265 version_type=windows
14270 case $GCC,$cc_basename in
14273 library_names_spec='$libname.dll.a'
14274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14275 postinstall_cmds='base_file=`basename \$file`~
14276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14277 dldir=$destdir/`dirname \$dlpath`~
14278 test -d \$dldir || mkdir -p \$dldir~
14279 $install_prog $dir/$dlname \$dldir/$dlname~
14280 chmod a+x \$dldir/$dlname~
14281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14285 dlpath=$dir/\$dldll~
14287 shlibpath_overrides_runpath=yes
14291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14292 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14297 # MinGW DLLs use traditional 'lib' prefix
14298 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14301 # pw32 DLLs use 'pw' prefix rather than 'lib'
14302 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14305 dynamic_linker='Win32 ld.exe'
14310 libname_spec='$name'
14311 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14312 library_names_spec='$libname.dll.lib'
14316 sys_lib_search_path_spec=
14319 for lt_path in $LIB
14322 # Let DOS variable expansion print the short 8.3 style file name.
14323 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14324 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14327 # Convert to MSYS style.
14328 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14331 # Convert to unix form, then to dos form, then back to unix form
14332 # but this time dos style (no spaces!) so that the unix form looks
14333 # like /cygdrive/c/PROGRA~1:/cygdr...
14334 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14335 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14336 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14339 sys_lib_search_path_spec=$LIB
14340 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14341 # It is most probably a Windows format PATH.
14342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14344 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14346 # FIXME: find the short name or the path components, as spaces are
14347 # common. (e.g. "Program Files" -> "PROGRA~1")
14351 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14352 postinstall_cmds='base_file=`basename \$file`~
14353 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14354 dldir=$destdir/`dirname \$dlpath`~
14355 test -d \$dldir || mkdir -p \$dldir~
14356 $install_prog $dir/$dlname \$dldir/$dlname'
14357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14358 dlpath=$dir/\$dldll~
14360 shlibpath_overrides_runpath=yes
14361 dynamic_linker='Win32 link.exe'
14365 # Assume MSVC wrapper
14366 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14367 dynamic_linker='Win32 ld.exe'
14370 # FIXME: first we should search . and the directory the executable is in
14374 darwin* | rhapsody*)
14375 dynamic_linker="$host_os dyld"
14376 version_type=darwin
14379 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14380 soname_spec='$libname$release$major$shared_ext'
14381 shlibpath_overrides_runpath=yes
14382 shlibpath_var=DYLD_LIBRARY_PATH
14383 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14390 version_type=linux # correct to gnu/linux during the next big refactor
14393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14394 soname_spec='$libname$release$shared_ext$major'
14395 shlibpath_var=LD_LIBRARY_PATH
14398 freebsd* | dragonfly*)
14399 # DragonFly does not have aout. When/if they implement a new
14400 # versioning mechanism, adjust this.
14401 if test -x /usr/bin/objformat; then
14402 objformat=`/usr/bin/objformat`
14405 freebsd[23].*) objformat=aout ;;
14406 *) objformat=elf ;;
14409 version_type=freebsd-$objformat
14410 case $version_type in
14412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14413 soname_spec='$libname$release$shared_ext$major'
14418 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14422 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=yes
14427 freebsd3.[01]* | freebsdelf3.[01]*)
14428 shlibpath_overrides_runpath=yes
14429 hardcode_into_libs=yes
14431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14433 shlibpath_overrides_runpath=no
14434 hardcode_into_libs=yes
14436 *) # from 4.6 on, and DragonFly
14437 shlibpath_overrides_runpath=yes
14438 hardcode_into_libs=yes
14444 version_type=linux # correct to gnu/linux during the next big refactor
14447 dynamic_linker="$host_os runtime_loader"
14448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14449 soname_spec='$libname$release$shared_ext$major'
14450 shlibpath_var=LIBRARY_PATH
14451 shlibpath_overrides_runpath=no
14452 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14453 hardcode_into_libs=yes
14456 hpux9* | hpux10* | hpux11*)
14457 # Give a soname corresponding to the major version so that dld.sl refuses to
14458 # link against other versions.
14465 hardcode_into_libs=yes
14466 dynamic_linker="$host_os dld.so"
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14470 soname_spec='$libname$release$shared_ext$major'
14471 if test 32 = "$HPUX_IA64_MODE"; then
14472 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14473 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14476 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14481 hardcode_into_libs=yes
14482 dynamic_linker="$host_os dld.sl"
14483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14486 soname_spec='$libname$release$shared_ext$major'
14487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14492 dynamic_linker="$host_os dld.sl"
14493 shlibpath_var=SHLIB_PATH
14494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
14499 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14500 postinstall_cmds='chmod 555 $lib'
14501 # or fails outright, so override atomically:
14502 install_override_mode=555
14506 version_type=linux # correct to gnu/linux during the next big refactor
14509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14510 soname_spec='$libname$release$shared_ext$major'
14511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14512 shlibpath_var=LD_LIBRARY_PATH
14513 shlibpath_overrides_runpath=no
14514 hardcode_into_libs=yes
14517 irix5* | irix6* | nonstopux*)
14519 nonstopux*) version_type=nonstopux ;;
14521 if test yes = "$lt_cv_prog_gnu_ld"; then
14522 version_type=linux # correct to gnu/linux during the next big refactor
14529 soname_spec='$libname$release$shared_ext$major'
14530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14532 irix5* | nonstopux*)
14533 libsuff= shlibsuff=
14536 case $LD in # libtool.m4 will add one of these switches to LD
14537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14538 libsuff= shlibsuff= libmagic=32-bit;;
14539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14540 libsuff=32 shlibsuff=N32 libmagic=N32;;
14541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14542 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14543 *) libsuff= shlibsuff= libmagic=never-match;;
14547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14548 shlibpath_overrides_runpath=no
14549 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14550 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14551 hardcode_into_libs=yes
14554 # No shared lib support for Linux oldld, aout, or coff.
14555 linux*oldld* | linux*aout* | linux*coff*)
14560 version_type=none # Android doesn't support versioned libraries.
14563 library_names_spec='$libname$release$shared_ext'
14564 soname_spec='$libname$release$shared_ext'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 shlibpath_overrides_runpath=yes
14569 # This implies no fast_install, which is unacceptable.
14570 # Some rework will be needed to allow for fast_install
14571 # before this can be enabled.
14572 hardcode_into_libs=yes
14574 dynamic_linker='Android linker'
14575 # Don't embed -rpath directories since the linker doesn't support them.
14576 hardcode_libdir_flag_spec='-L$libdir'
14579 # This must be glibc/ELF.
14580 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14581 version_type=linux # correct to gnu/linux during the next big refactor
14584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14585 soname_spec='$libname$release$shared_ext$major'
14586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 shlibpath_overrides_runpath=no
14590 # Some binutils ld are patched to set DT_RUNPATH
14591 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14592 $as_echo_n "(cached) " >&6
14594 lt_cv_shlibpath_overrides_runpath=no
14595 save_LDFLAGS=$LDFLAGS
14596 save_libdir=$libdir
14597 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14598 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14609 if ac_fn_c_try_link "$LINENO"; then :
14610 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14611 lt_cv_shlibpath_overrides_runpath=yes
14614 rm -f core conftest.err conftest.$ac_objext \
14615 conftest$ac_exeext conftest.$ac_ext
14616 LDFLAGS=$save_LDFLAGS
14617 libdir=$save_libdir
14621 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14623 # This implies no fast_install, which is unacceptable.
14624 # Some rework will be needed to allow for fast_install
14625 # before this can be enabled.
14626 hardcode_into_libs=yes
14628 # Ideally, we could use ldconfig to report *all* directores which are
14629 # searched for libraries, however this is still not possible. Aside from not
14630 # being certain /sbin/ldconfig is available, command
14631 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14632 # even though it is searched at run-time. Try to do the best guess by
14633 # appending ld.so.conf contents (and includes) to the search path.
14634 if test -f /etc/ld.so.conf; then
14635 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' ' '`
14636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14639 # We used to test for /lib/ld.so.1 and disable shared libraries on
14640 # powerpc, because MkLinux only supported shared libraries with the
14641 # GNU dynamic linker. Since this was broken with cross compilers,
14642 # most powerpc-linux boxes support dynamic linking these days and
14643 # people can always --disable-shared, the test was removed, and we
14644 # assume the GNU/Linux dynamic linker is in use.
14645 dynamic_linker='GNU/Linux ld.so'
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=no
14656 hardcode_into_libs=yes
14657 dynamic_linker='NetBSD ld.elf_so'
14664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14667 dynamic_linker='NetBSD (a.out) ld.so'
14669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14670 soname_spec='$libname$release$shared_ext$major'
14671 dynamic_linker='NetBSD ld.elf_so'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=yes
14675 hardcode_into_libs=yes
14679 version_type=linux # correct to gnu/linux during the next big refactor
14680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14690 soname_spec='$libname$release$shared_ext$major'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=no
14693 hardcode_into_libs=yes
14694 dynamic_linker='ldqnx.so'
14697 openbsd* | bitrig*)
14699 sys_lib_dlsearch_path_spec=/usr/lib
14701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14706 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=yes
14713 libname_spec='$name'
14714 version_type=windows
14718 # OS/2 can only load a DLL with a base name of 8 characters or less.
14719 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14720 v=$($ECHO $release$versuffix | tr -d .-);
14721 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14722 $ECHO $n$v`$shared_ext'
14723 library_names_spec='${libname}_dll.$libext'
14724 dynamic_linker='OS/2 ld.exe'
14725 shlibpath_var=BEGINLIBPATH
14726 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14728 postinstall_cmds='base_file=`basename \$file`~
14729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14730 dldir=$destdir/`dirname \$dlpath`~
14731 test -d \$dldir || mkdir -p \$dldir~
14732 $install_prog $dir/$dlname \$dldir/$dlname~
14733 chmod a+x \$dldir/$dlname~
14734 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14735 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14737 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14738 dlpath=$dir/\$dldll~
14742 osf3* | osf4* | osf5*)
14746 soname_spec='$libname$release$shared_ext$major'
14747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14758 version_type=linux # correct to gnu/linux during the next big refactor
14761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14762 soname_spec='$libname$release$shared_ext$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=yes
14765 hardcode_into_libs=yes
14766 # ldd complains unless libraries are executable
14767 postinstall_cmds='chmod +x $lib'
14772 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14776 if test yes = "$with_gnu_ld"; then
14783 version_type=linux # correct to gnu/linux during the next big refactor
14784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14785 soname_spec='$libname$release$shared_ext$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 case $host_vendor in
14789 shlibpath_overrides_runpath=no
14791 runpath_var=LD_RUN_PATH
14799 shlibpath_overrides_runpath=no
14800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14806 if test -d /usr/nec; then
14807 version_type=linux # correct to gnu/linux during the next big refactor
14808 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14809 soname_spec='$libname$shared_ext.$major'
14810 shlibpath_var=LD_LIBRARY_PATH
14814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14819 soname_spec='$libname$release$shared_ext$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=yes
14822 hardcode_into_libs=yes
14823 if test yes = "$with_gnu_ld"; then
14824 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14826 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14829 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14833 sys_lib_dlsearch_path_spec='/usr/lib'
14837 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14838 version_type=linux # correct to gnu/linux during the next big refactor
14841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 shlibpath_overrides_runpath=no
14844 hardcode_into_libs=yes
14848 version_type=linux # correct to gnu/linux during the next big refactor
14849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14850 soname_spec='$libname$release$shared_ext$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14859 $as_echo "$dynamic_linker" >&6; }
14860 test no = "$dynamic_linker" && can_build_shared=no
14862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14863 if test yes = "$GCC"; then
14864 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14867 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14868 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14871 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14872 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14875 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14876 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14878 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14879 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14881 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14882 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14983 if test -n "$hardcode_libdir_flag_spec" ||
14984 test -n "$runpath_var" ||
14985 test yes = "$hardcode_automatic"; then
14987 # We can hardcode non-existent directories.
14988 if test no != "$hardcode_direct" &&
14989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14990 # have to relink, otherwise we might link with an installed library
14991 # when we should be linking with a yet-to-be-installed one
14992 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14993 test no != "$hardcode_minus_L"; then
14994 # Linking always hardcodes the temporary library directory.
14995 hardcode_action=relink
14997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14998 hardcode_action=immediate
15001 # We cannot hardcode anything, or else we can only hardcode existing
15003 hardcode_action=unsupported
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15006 $as_echo "$hardcode_action" >&6; }
15008 if test relink = "$hardcode_action" ||
15009 test yes = "$inherit_rpath"; then
15010 # Fast installation is not supported
15011 enable_fast_install=no
15012 elif test yes = "$shlibpath_overrides_runpath" ||
15013 test no = "$enable_shared"; then
15014 # Fast installation is not necessary
15015 enable_fast_install=needless
15023 if test yes != "$enable_dlopen"; then
15024 enable_dlopen=unknown
15025 enable_dlopen_self=unknown
15026 enable_dlopen_self_static=unknown
15033 lt_cv_dlopen=load_add_on
15035 lt_cv_dlopen_self=yes
15038 mingw* | pw32* | cegcc*)
15039 lt_cv_dlopen=LoadLibrary
15044 lt_cv_dlopen=dlopen
15049 # if libdl is installed we need to link against it
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15051 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15052 if ${ac_cv_lib_dl_dlopen+:} false; then :
15053 $as_echo_n "(cached) " >&6
15055 ac_check_lib_save_LIBS=$LIBS
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15072 if ac_fn_c_try_link "$LINENO"; then :
15073 ac_cv_lib_dl_dlopen=yes
15075 ac_cv_lib_dl_dlopen=no
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15083 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15084 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15089 lt_cv_dlopen_self=yes
15096 # Don't try to run any link tests for TPF. We know it's impossible
15097 # because TPF is a cross-compiler, and we know how we open DSOs.
15098 lt_cv_dlopen=dlopen
15100 lt_cv_dlopen_self=no
15104 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15105 if test "x$ac_cv_func_shl_load" = xyes; then :
15106 lt_cv_dlopen=shl_load
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15109 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15110 if ${ac_cv_lib_dld_shl_load+:} false; then :
15111 $as_echo_n "(cached) " >&6
15113 ac_check_lib_save_LIBS=$LIBS
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15125 return shl_load ();
15130 if ac_fn_c_try_link "$LINENO"; then :
15131 ac_cv_lib_dld_shl_load=yes
15133 ac_cv_lib_dld_shl_load=no
15135 rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15137 LIBS=$ac_check_lib_save_LIBS
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15140 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15141 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15142 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15144 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15145 if test "x$ac_cv_func_dlopen" = xyes; then :
15146 lt_cv_dlopen=dlopen
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15150 if ${ac_cv_lib_dl_dlopen+:} false; then :
15151 $as_echo_n "(cached) " >&6
15153 ac_check_lib_save_LIBS=$LIBS
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15170 if ac_fn_c_try_link "$LINENO"; then :
15171 ac_cv_lib_dl_dlopen=yes
15173 ac_cv_lib_dl_dlopen=no
15175 rm -f core conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15181 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15182 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15185 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15186 if ${ac_cv_lib_svld_dlopen+:} false; then :
15187 $as_echo_n "(cached) " >&6
15189 ac_check_lib_save_LIBS=$LIBS
15190 LIBS="-lsvld $LIBS"
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15206 if ac_fn_c_try_link "$LINENO"; then :
15207 ac_cv_lib_svld_dlopen=yes
15209 ac_cv_lib_svld_dlopen=no
15211 rm -f core conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
15213 LIBS=$ac_check_lib_save_LIBS
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15216 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15217 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15221 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15222 if ${ac_cv_lib_dld_dld_link+:} false; then :
15223 $as_echo_n "(cached) " >&6
15225 ac_check_lib_save_LIBS=$LIBS
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15237 return dld_link ();
15242 if ac_fn_c_try_link "$LINENO"; then :
15243 ac_cv_lib_dld_dld_link=yes
15245 ac_cv_lib_dld_dld_link=no
15247 rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15252 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15253 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15254 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15275 if test no = "$lt_cv_dlopen"; then
15281 case $lt_cv_dlopen in
15283 save_CPPFLAGS=$CPPFLAGS
15284 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15286 save_LDFLAGS=$LDFLAGS
15287 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15290 LIBS="$lt_cv_dlopen_libs $LIBS"
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15293 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15294 if ${lt_cv_dlopen_self+:} false; then :
15295 $as_echo_n "(cached) " >&6
15297 if test yes = "$cross_compiling"; then :
15298 lt_cv_dlopen_self=cross
15300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15301 lt_status=$lt_dlunknown
15302 cat > conftest.$ac_ext <<_LT_EOF
15303 #line $LINENO "configure"
15304 #include "confdefs.h"
15313 # define LT_DLGLOBAL RTLD_GLOBAL
15316 # define LT_DLGLOBAL DL_GLOBAL
15318 # define LT_DLGLOBAL 0
15322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15323 find out it does not work in some platform. */
15324 #ifndef LT_DLLAZY_OR_NOW
15326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15329 # define LT_DLLAZY_OR_NOW DL_LAZY
15332 # define LT_DLLAZY_OR_NOW RTLD_NOW
15335 # define LT_DLLAZY_OR_NOW DL_NOW
15337 # define LT_DLLAZY_OR_NOW 0
15344 /* When -fvisibility=hidden is used, assume the code has been annotated
15345 correspondingly for the symbols needed. */
15346 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15347 int fnord () __attribute__((visibility("default")));
15350 int fnord () { return 42; }
15353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15354 int status = $lt_dlunknown;
15358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15361 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15362 else puts (dlerror ());
15364 /* dlclose (self); */
15372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15373 (eval $ac_link) 2>&5
15375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15376 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15377 (./conftest; exit; ) >&5 2>/dev/null
15379 case x$lt_status in
15380 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15381 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15382 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15385 # compilation failed
15386 lt_cv_dlopen_self=no
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15394 $as_echo "$lt_cv_dlopen_self" >&6; }
15396 if test yes = "$lt_cv_dlopen_self"; then
15397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15399 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15400 if ${lt_cv_dlopen_self_static+:} false; then :
15401 $as_echo_n "(cached) " >&6
15403 if test yes = "$cross_compiling"; then :
15404 lt_cv_dlopen_self_static=cross
15406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15407 lt_status=$lt_dlunknown
15408 cat > conftest.$ac_ext <<_LT_EOF
15409 #line $LINENO "configure"
15410 #include "confdefs.h"
15419 # define LT_DLGLOBAL RTLD_GLOBAL
15422 # define LT_DLGLOBAL DL_GLOBAL
15424 # define LT_DLGLOBAL 0
15428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15429 find out it does not work in some platform. */
15430 #ifndef LT_DLLAZY_OR_NOW
15432 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15435 # define LT_DLLAZY_OR_NOW DL_LAZY
15438 # define LT_DLLAZY_OR_NOW RTLD_NOW
15441 # define LT_DLLAZY_OR_NOW DL_NOW
15443 # define LT_DLLAZY_OR_NOW 0
15450 /* When -fvisibility=hidden is used, assume the code has been annotated
15451 correspondingly for the symbols needed. */
15452 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15453 int fnord () __attribute__((visibility("default")));
15456 int fnord () { return 42; }
15459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15460 int status = $lt_dlunknown;
15464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15467 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15468 else puts (dlerror ());
15470 /* dlclose (self); */
15478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15479 (eval $ac_link) 2>&5
15481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15483 (./conftest; exit; ) >&5 2>/dev/null
15485 case x$lt_status in
15486 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15487 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15488 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15491 # compilation failed
15492 lt_cv_dlopen_self_static=no
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15500 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15503 CPPFLAGS=$save_CPPFLAGS
15504 LDFLAGS=$save_LDFLAGS
15509 case $lt_cv_dlopen_self in
15510 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15511 *) enable_dlopen_self=unknown ;;
15514 case $lt_cv_dlopen_self_static in
15515 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15516 *) enable_dlopen_self_static=unknown ;;
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15539 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15540 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15541 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15542 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544 $as_echo "yes" >&6; }
15546 # FIXME - insert some real tests, host_os isn't really good enough
15549 if test -n "$STRIP"; then
15550 striplib="$STRIP -x"
15551 old_striplib="$STRIP -S"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15553 $as_echo "yes" >&6; }
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15561 $as_echo "no" >&6; }
15577 # Report what library types will actually be built
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15579 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15581 $as_echo "$can_build_shared" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15584 $as_echo_n "checking whether to build shared libraries... " >&6; }
15585 test no = "$can_build_shared" && enable_shared=no
15587 # On AIX, shared libraries and static libraries use the same namespace, and
15588 # are all built from PIC.
15591 test yes = "$enable_shared" && enable_static=no
15592 if test -n "$RANLIB"; then
15593 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15594 postinstall_cmds='$RANLIB $lib'
15599 if test ia64 != "$host_cpu"; then
15600 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15601 yes,aix,yes) ;; # shared object as lib.so file only
15602 yes,svr4,*) ;; # shared object as lib.so archive member only
15603 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15609 $as_echo "$enable_shared" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15612 $as_echo_n "checking whether to build static libraries... " >&6; }
15613 # Make sure either enable_shared or enable_static is yes.
15614 test yes = "$enable_shared" || enable_static=yes
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15616 $as_echo "$enable_static" >&6; }
15623 ac_cpp='$CPP $CPPFLAGS'
15624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15644 ac_config_commands="$ac_config_commands libtool"
15649 # Only expand once:
15652 ## --------------------- ##
15653 ## End of libtool code ##
15654 ## --------------------- ##
15657 # Verify if finally libtool shared libraries will be built
15660 case "x$enable_shared" in # ((
15662 xc_lt_build_shared=$enable_shared
15665 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15670 # Verify if finally libtool static libraries will be built
15673 case "x$enable_static" in # ((
15675 xc_lt_build_static=$enable_static
15678 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15683 # Verify if libtool shared libraries should be linked using flag -version-info
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15687 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15688 xc_lt_shlib_use_version_info='yes'
15689 if test "x$version_type" = 'xnone'; then
15690 xc_lt_shlib_use_version_info='no'
15692 case $host_os in # (
15694 xc_lt_shlib_use_version_info='yes'
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15698 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15701 # Verify if libtool shared libraries should be linked using flag -no-undefined
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15705 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15706 xc_lt_shlib_use_no_undefined='no'
15707 if test "x$allow_undefined" = 'xno'; then
15708 xc_lt_shlib_use_no_undefined='yes'
15709 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15710 xc_lt_shlib_use_no_undefined='yes'
15712 case $host_os in # (
15713 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15714 xc_lt_shlib_use_no_undefined='yes'
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15718 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15721 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15725 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15726 xc_lt_shlib_use_mimpure_text='no'
15727 case $host_os in # (
15729 if test "x$GCC" = 'xyes'; then
15730 xc_lt_shlib_use_mimpure_text='yes'
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15735 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15738 # Find out whether libtool libraries would be built wit PIC
15741 case "x$pic_mode" in # ((((
15743 xc_lt_build_shared_with_pic='yes'
15744 xc_lt_build_static_with_pic='no'
15747 xc_lt_build_shared_with_pic='yes'
15748 xc_lt_build_static_with_pic='yes'
15751 xc_lt_build_shared_with_pic='no'
15752 xc_lt_build_static_with_pic='no'
15755 xc_lt_build_shared_with_pic='unknown'
15756 xc_lt_build_static_with_pic='unknown'
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15758 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15762 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15764 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15766 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15768 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15771 # Verify if libtool shared libraries will be built while static not built
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15775 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15776 if test "$xc_lt_build_shared" = 'yes' &&
15777 test "$xc_lt_build_static" = 'no'; then
15778 xc_lt_build_shared_only='yes'
15780 xc_lt_build_shared_only='no'
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15783 $as_echo "$xc_lt_build_shared_only" >&6; }
15786 # Verify if libtool static libraries will be built while shared not built
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15790 $as_echo_n "checking whether to build static libraries only... " >&6; }
15791 if test "$xc_lt_build_static" = 'yes' &&
15792 test "$xc_lt_build_shared" = 'no'; then
15793 xc_lt_build_static_only='yes'
15795 xc_lt_build_static_only='no'
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15798 $as_echo "$xc_lt_build_static_only" >&6; }
15804 # Automake conditionals based on libtool related checks
15807 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15808 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15809 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15811 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15812 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15815 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15816 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15817 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15819 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15820 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15823 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15824 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15825 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15827 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15828 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15833 # Due to libtool and automake machinery limitations of not allowing
15834 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15835 # inclusion of these in shared or static libraries, we are forced to
15836 # build using separate configure runs for shared and static libraries
15837 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15838 # to compile objects for each kind of library. Notice that relying on
15839 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15840 # user might for example choose to build static libraries with PIC.
15844 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15845 # targeting a static library and not building its shared counterpart.
15848 if test "x$xc_lt_build_static_only" = 'xyes'; then
15849 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15850 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15852 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15853 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15858 # Make staticlib CPPFLAG variable and its definition visible in output
15859 # files unconditionally, providing an empty definition unless strictly
15860 # targeting a static library and not building its shared counterpart.
15863 CPPFLAG_CURL_STATICLIB=
15864 if test "x$xc_lt_build_static_only" = 'xyes'; then
15865 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15870 # Determine whether all dependent libraries must be specified when linking
15871 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15873 REQUIRE_LIB_DEPS=no
15875 REQUIRE_LIB_DEPS=yes
15878 if test x$REQUIRE_LIB_DEPS = xyes; then
15879 USE_EXPLICIT_LIB_DEPS_TRUE=
15880 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15882 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15883 USE_EXPLICIT_LIB_DEPS_FALSE=
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15888 $as_echo_n "checking for inline... " >&6; }
15889 if ${ac_cv_c_inline+:} false; then :
15890 $as_echo_n "(cached) " >&6
15893 for ac_kw in inline __inline__ __inline; do
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896 #ifndef __cplusplus
15898 static $ac_kw foo_t static_foo () {return 0; }
15899 $ac_kw foo_t foo () {return 0; }
15903 if ac_fn_c_try_compile "$LINENO"; then :
15904 ac_cv_c_inline=$ac_kw
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 test "$ac_cv_c_inline" != no && break
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15912 $as_echo "$ac_cv_c_inline" >&6; }
15914 case $ac_cv_c_inline in
15917 case $ac_cv_c_inline in
15919 *) ac_val=$ac_cv_c_inline;;
15921 cat >>confdefs.h <<_ACEOF
15922 #ifndef __cplusplus
15923 #define inline $ac_val
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15933 $as_echo_n "checking if cpp -P is needed... " >&6; }
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15942 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15950 $as_echo "$cpp" >&6; }
15952 if test "x$cpp" = "xyes"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15954 $as_echo_n "checking if cpp -P works... " >&6; }
15955 OLDCPPFLAGS=$CPPFLAGS
15956 CPPFLAGS="$CPPFLAGS -P"
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15965 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15973 $as_echo "$cpp_p" >&6; }
15975 if test "x$cpp_p" = "xno"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15977 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15984 CPPFLAGS=$OLDCPPFLAGS
15992 compiler_id="unknown"
15995 flags_dbg_all="unknown"
15996 flags_dbg_yes="unknown"
15997 flags_dbg_off="unknown"
15998 flags_opt_all="unknown"
15999 flags_opt_yes="unknown"
16000 flags_opt_off="unknown"
16002 flags_prefer_cppflags="no"
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16006 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16008 OLDCPPFLAGS=$CPPFLAGS
16009 # CPPPFLAG comes from CURL_CPP_P
16010 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16011 if test -z "$SED"; then
16012 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16014 if test -z "$GREP"; then
16015 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16024 CURL_DEF_TOKEN __DECC
16029 if ac_fn_c_try_cpp "$LINENO"; then :
16031 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16032 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16033 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16034 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16035 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16040 rm -f conftest.err conftest.i conftest.$ac_ext
16041 if test -z "$tmp_exp"; then
16042 curl_cv_have_def___DECC=no
16045 curl_cv_have_def___DECC=yes
16046 curl_cv_def___DECC=$tmp_exp
16049 CPPFLAGS=$OLDCPPFLAGS
16052 OLDCPPFLAGS=$CPPFLAGS
16053 # CPPPFLAG comes from CURL_CPP_P
16054 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16055 if test -z "$SED"; then
16056 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16058 if test -z "$GREP"; then
16059 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16068 CURL_DEF_TOKEN __DECC_VER
16073 if ac_fn_c_try_cpp "$LINENO"; then :
16075 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16076 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16077 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16078 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16079 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16084 rm -f conftest.err conftest.i conftest.$ac_ext
16085 if test -z "$tmp_exp"; then
16086 curl_cv_have_def___DECC_VER=no
16089 curl_cv_have_def___DECC_VER=yes
16090 curl_cv_def___DECC_VER=$tmp_exp
16093 CPPFLAGS=$OLDCPPFLAGS
16095 if test "$curl_cv_have_def___DECC" = "yes" &&
16096 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16098 $as_echo "yes" >&6; }
16099 compiler_id="DEC_C"
16100 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16101 flags_dbg_yes="-g2"
16103 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16104 flags_opt_yes="-O1"
16105 flags_opt_off="-O0"
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16113 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16115 OLDCPPFLAGS=$CPPFLAGS
16116 # CPPPFLAG comes from CURL_CPP_P
16117 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16118 if test -z "$SED"; then
16119 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16121 if test -z "$GREP"; then
16122 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16131 CURL_DEF_TOKEN __HP_cc
16136 if ac_fn_c_try_cpp "$LINENO"; then :
16138 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16139 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16140 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16141 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16142 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16147 rm -f conftest.err conftest.i conftest.$ac_ext
16148 if test -z "$tmp_exp"; then
16149 curl_cv_have_def___HP_cc=no
16152 curl_cv_have_def___HP_cc=yes
16153 curl_cv_def___HP_cc=$tmp_exp
16156 CPPFLAGS=$OLDCPPFLAGS
16158 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16160 $as_echo "yes" >&6; }
16161 compiler_id="HP_UX_C"
16162 flags_dbg_all="-g -s"
16165 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16166 flags_opt_yes="+O2"
16167 flags_opt_off="+O0"
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170 $as_echo "no" >&6; }
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16175 $as_echo_n "checking if compiler is IBM C... " >&6; }
16177 OLDCPPFLAGS=$CPPFLAGS
16178 # CPPPFLAG comes from CURL_CPP_P
16179 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16180 if test -z "$SED"; then
16181 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16183 if test -z "$GREP"; then
16184 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16193 CURL_DEF_TOKEN __IBMC__
16198 if ac_fn_c_try_cpp "$LINENO"; then :
16200 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16201 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16202 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16203 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16204 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16209 rm -f conftest.err conftest.i conftest.$ac_ext
16210 if test -z "$tmp_exp"; then
16211 curl_cv_have_def___IBMC__=no
16214 curl_cv_have_def___IBMC__=yes
16215 curl_cv_def___IBMC__=$tmp_exp
16218 CPPFLAGS=$OLDCPPFLAGS
16220 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16222 $as_echo "yes" >&6; }
16223 compiler_id="IBM_C"
16224 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16227 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16228 flags_opt_all="$flags_opt_all -qnooptimize"
16229 flags_opt_all="$flags_opt_all -qoptimize=0"
16230 flags_opt_all="$flags_opt_all -qoptimize=1"
16231 flags_opt_all="$flags_opt_all -qoptimize=2"
16232 flags_opt_all="$flags_opt_all -qoptimize=3"
16233 flags_opt_all="$flags_opt_all -qoptimize=4"
16234 flags_opt_all="$flags_opt_all -qoptimize=5"
16235 flags_opt_yes="-O2"
16236 flags_opt_off="-qnooptimize"
16237 flags_prefer_cppflags="yes"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16245 $as_echo_n "checking if compiler is Intel C... " >&6; }
16247 OLDCPPFLAGS=$CPPFLAGS
16248 # CPPPFLAG comes from CURL_CPP_P
16249 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16250 if test -z "$SED"; then
16251 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16253 if test -z "$GREP"; then
16254 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h. */
16262 #ifdef __INTEL_COMPILER
16263 CURL_DEF_TOKEN __INTEL_COMPILER
16268 if ac_fn_c_try_cpp "$LINENO"; then :
16270 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16271 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16272 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16273 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16274 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16279 rm -f conftest.err conftest.i conftest.$ac_ext
16280 if test -z "$tmp_exp"; then
16281 curl_cv_have_def___INTEL_COMPILER=no
16284 curl_cv_have_def___INTEL_COMPILER=yes
16285 curl_cv_def___INTEL_COMPILER=$tmp_exp
16288 CPPFLAGS=$OLDCPPFLAGS
16290 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16292 $as_echo "yes" >&6; }
16293 compiler_num="$curl_cv_def___INTEL_COMPILER"
16295 OLDCPPFLAGS=$CPPFLAGS
16296 # CPPPFLAG comes from CURL_CPP_P
16297 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16298 if test -z "$SED"; then
16299 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16301 if test -z "$GREP"; then
16302 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16311 CURL_DEF_TOKEN __unix__
16316 if ac_fn_c_try_cpp "$LINENO"; then :
16318 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16319 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16320 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16321 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16322 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16327 rm -f conftest.err conftest.i conftest.$ac_ext
16328 if test -z "$tmp_exp"; then
16329 curl_cv_have_def___unix__=no
16332 curl_cv_have_def___unix__=yes
16333 curl_cv_def___unix__=$tmp_exp
16336 CPPFLAGS=$OLDCPPFLAGS
16338 if test "$curl_cv_have_def___unix__" = "yes"; then
16339 compiler_id="INTEL_UNIX_C"
16340 flags_dbg_all="-g -g0"
16343 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16344 flags_opt_yes="-O2"
16345 flags_opt_off="-O0"
16347 compiler_id="INTEL_WINDOWS_C"
16348 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16349 flags_dbg_all="$flags_dbg_all /debug"
16350 flags_dbg_all="$flags_dbg_all /debug:none"
16351 flags_dbg_all="$flags_dbg_all /debug:minimal"
16352 flags_dbg_all="$flags_dbg_all /debug:partial"
16353 flags_dbg_all="$flags_dbg_all /debug:full"
16354 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16355 flags_dbg_all="$flags_dbg_all /debug:extended"
16356 flags_dbg_yes="/Zi /Oy-"
16357 flags_dbg_off="/debug:none /Oy-"
16358 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16359 flags_opt_yes="/O2"
16360 flags_opt_off="/Od"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16364 $as_echo "no" >&6; }
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16369 $as_echo_n "checking if compiler is clang... " >&6; }
16371 OLDCPPFLAGS=$CPPFLAGS
16372 # CPPPFLAG comes from CURL_CPP_P
16373 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16374 if test -z "$SED"; then
16375 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16377 if test -z "$GREP"; then
16378 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16387 CURL_DEF_TOKEN __clang__
16392 if ac_fn_c_try_cpp "$LINENO"; then :
16394 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16395 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16396 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16397 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16398 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16403 rm -f conftest.err conftest.i conftest.$ac_ext
16404 if test -z "$tmp_exp"; then
16405 curl_cv_have_def___clang__=no
16408 curl_cv_have_def___clang__=yes
16409 curl_cv_def___clang__=$tmp_exp
16412 CPPFLAGS=$OLDCPPFLAGS
16414 if test "$curl_cv_have_def___clang__" = "yes"; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16416 $as_echo "yes" >&6; }
16417 compiler_id="CLANG"
16418 fullclangver=`$CC -v 2>&1 | grep version`
16419 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16420 if test -z "$clangver"; then
16421 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16424 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16427 clangvhi=`echo $clangver | cut -d . -f1`
16428 clangvlo=`echo $clangver | cut -d . -f2`
16429 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16430 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16431 flags_dbg_all="$flags_dbg_all -ggdb"
16432 flags_dbg_all="$flags_dbg_all -gstabs"
16433 flags_dbg_all="$flags_dbg_all -gstabs+"
16434 flags_dbg_all="$flags_dbg_all -gcoff"
16435 flags_dbg_all="$flags_dbg_all -gxcoff"
16436 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16437 flags_dbg_all="$flags_dbg_all -gvms"
16440 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16441 flags_opt_yes="-Os"
16442 flags_opt_off="-O0"
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16450 $as_echo_n "checking if compiler is GNU C... " >&6; }
16452 OLDCPPFLAGS=$CPPFLAGS
16453 # CPPPFLAG comes from CURL_CPP_P
16454 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16455 if test -z "$SED"; then
16456 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16458 if test -z "$GREP"; then
16459 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16468 CURL_DEF_TOKEN __GNUC__
16473 if ac_fn_c_try_cpp "$LINENO"; then :
16475 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16476 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16477 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16478 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16479 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16484 rm -f conftest.err conftest.i conftest.$ac_ext
16485 if test -z "$tmp_exp"; then
16486 curl_cv_have_def___GNUC__=no
16489 curl_cv_have_def___GNUC__=yes
16490 curl_cv_def___GNUC__=$tmp_exp
16493 CPPFLAGS=$OLDCPPFLAGS
16495 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16496 test "$compiler_id" = "unknown"; then
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16498 $as_echo "yes" >&6; }
16499 compiler_id="GNU_C"
16500 gccver=`$CC -dumpversion`
16501 gccvhi=`echo $gccver | cut -d . -f1`
16502 gccvlo=`echo $gccver | cut -d . -f2`
16503 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16504 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16505 flags_dbg_all="$flags_dbg_all -ggdb"
16506 flags_dbg_all="$flags_dbg_all -gstabs"
16507 flags_dbg_all="$flags_dbg_all -gstabs+"
16508 flags_dbg_all="$flags_dbg_all -gcoff"
16509 flags_dbg_all="$flags_dbg_all -gxcoff"
16510 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16511 flags_dbg_all="$flags_dbg_all -gvms"
16514 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16515 flags_opt_yes="-O2"
16516 flags_opt_off="-O0"
16518 OLDCPPFLAGS=$CPPFLAGS
16519 # CPPPFLAG comes from CURL_CPP_P
16520 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16521 if test -z "$SED"; then
16522 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16524 if test -z "$GREP"; then
16525 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16534 CURL_DEF_TOKEN _WIN32
16539 if ac_fn_c_try_cpp "$LINENO"; then :
16541 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16542 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16543 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16544 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16545 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16550 rm -f conftest.err conftest.i conftest.$ac_ext
16551 if test -z "$tmp_exp"; then
16552 curl_cv_have_def__WIN32=no
16555 curl_cv_have_def__WIN32=yes
16556 curl_cv_def__WIN32=$tmp_exp
16559 CPPFLAGS=$OLDCPPFLAGS
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 $as_echo "no" >&6; }
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16568 $as_echo_n "checking if compiler is LCC... " >&6; }
16570 OLDCPPFLAGS=$CPPFLAGS
16571 # CPPPFLAG comes from CURL_CPP_P
16572 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16573 if test -z "$SED"; then
16574 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16576 if test -z "$GREP"; then
16577 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16586 CURL_DEF_TOKEN __LCC__
16591 if ac_fn_c_try_cpp "$LINENO"; then :
16593 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16594 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16595 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16596 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16597 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16602 rm -f conftest.err conftest.i conftest.$ac_ext
16603 if test -z "$tmp_exp"; then
16604 curl_cv_have_def___LCC__=no
16607 curl_cv_have_def___LCC__=yes
16608 curl_cv_def___LCC__=$tmp_exp
16611 CPPFLAGS=$OLDCPPFLAGS
16613 if test "$curl_cv_have_def___LCC__" = "yes"; then
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16615 $as_echo "yes" >&6; }
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625 $as_echo "no" >&6; }
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16630 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16632 OLDCPPFLAGS=$CPPFLAGS
16633 # CPPPFLAG comes from CURL_CPP_P
16634 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16635 if test -z "$SED"; then
16636 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16638 if test -z "$GREP"; then
16639 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16648 CURL_DEF_TOKEN __GNUC__
16653 if ac_fn_c_try_cpp "$LINENO"; then :
16655 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16656 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16657 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16658 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16659 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16664 rm -f conftest.err conftest.i conftest.$ac_ext
16665 if test -z "$tmp_exp"; then
16666 curl_cv_have_def___GNUC__=no
16669 curl_cv_have_def___GNUC__=yes
16670 curl_cv_def___GNUC__=$tmp_exp
16673 CPPFLAGS=$OLDCPPFLAGS
16676 OLDCPPFLAGS=$CPPFLAGS
16677 # CPPPFLAG comes from CURL_CPP_P
16678 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16679 if test -z "$SED"; then
16680 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16682 if test -z "$GREP"; then
16683 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16691 #ifdef _COMPILER_VERSION
16692 CURL_DEF_TOKEN _COMPILER_VERSION
16697 if ac_fn_c_try_cpp "$LINENO"; then :
16699 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16700 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16701 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16702 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16703 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16708 rm -f conftest.err conftest.i conftest.$ac_ext
16709 if test -z "$tmp_exp"; then
16710 curl_cv_have_def__COMPILER_VERSION=no
16713 curl_cv_have_def__COMPILER_VERSION=yes
16714 curl_cv_def__COMPILER_VERSION=$tmp_exp
16717 CPPFLAGS=$OLDCPPFLAGS
16720 OLDCPPFLAGS=$CPPFLAGS
16721 # CPPPFLAG comes from CURL_CPP_P
16722 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16723 if test -z "$SED"; then
16724 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16726 if test -z "$GREP"; then
16727 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16735 #ifdef _SGI_COMPILER_VERSION
16736 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16741 if ac_fn_c_try_cpp "$LINENO"; then :
16743 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16744 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16745 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16746 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16747 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16752 rm -f conftest.err conftest.i conftest.$ac_ext
16753 if test -z "$tmp_exp"; then
16754 curl_cv_have_def__SGI_COMPILER_VERSION=no
16757 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16758 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16761 CPPFLAGS=$OLDCPPFLAGS
16763 if test "$curl_cv_have_def___GNUC__" = "no" &&
16764 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16765 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16767 $as_echo "yes" >&6; }
16768 compiler_id="SGI_MIPSPRO_C"
16769 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16772 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16773 flags_opt_yes="-O2"
16774 flags_opt_off="-O0"
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16777 $as_echo "no" >&6; }
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16782 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16784 OLDCPPFLAGS=$CPPFLAGS
16785 # CPPPFLAG comes from CURL_CPP_P
16786 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16787 if test -z "$SED"; then
16788 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16790 if test -z "$GREP"; then
16791 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16800 CURL_DEF_TOKEN __GNUC__
16805 if ac_fn_c_try_cpp "$LINENO"; then :
16807 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16808 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16809 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16810 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16811 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16816 rm -f conftest.err conftest.i conftest.$ac_ext
16817 if test -z "$tmp_exp"; then
16818 curl_cv_have_def___GNUC__=no
16821 curl_cv_have_def___GNUC__=yes
16822 curl_cv_def___GNUC__=$tmp_exp
16825 CPPFLAGS=$OLDCPPFLAGS
16828 OLDCPPFLAGS=$CPPFLAGS
16829 # CPPPFLAG comes from CURL_CPP_P
16830 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16831 if test -z "$SED"; then
16832 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16834 if test -z "$GREP"; then
16835 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h. */
16844 CURL_DEF_TOKEN __sgi
16849 if ac_fn_c_try_cpp "$LINENO"; then :
16851 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16852 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16853 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16854 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16855 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16860 rm -f conftest.err conftest.i conftest.$ac_ext
16861 if test -z "$tmp_exp"; then
16862 curl_cv_have_def___sgi=no
16865 curl_cv_have_def___sgi=yes
16866 curl_cv_def___sgi=$tmp_exp
16869 CPPFLAGS=$OLDCPPFLAGS
16871 if test "$curl_cv_have_def___GNUC__" = "no" &&
16872 test "$curl_cv_have_def___sgi" = "yes" &&
16873 test "$compiler_id" = "unknown"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16876 compiler_id="SGI_MIPS_C"
16877 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16880 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16881 flags_opt_yes="-O2"
16882 flags_opt_off="-O0"
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16885 $as_echo "no" >&6; }
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16890 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16892 OLDCPPFLAGS=$CPPFLAGS
16893 # CPPPFLAG comes from CURL_CPP_P
16894 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16895 if test -z "$SED"; then
16896 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16898 if test -z "$GREP"; then
16899 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16908 CURL_DEF_TOKEN __SUNPRO_C
16913 if ac_fn_c_try_cpp "$LINENO"; then :
16915 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16916 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16917 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16918 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16919 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16924 rm -f conftest.err conftest.i conftest.$ac_ext
16925 if test -z "$tmp_exp"; then
16926 curl_cv_have_def___SUNPRO_C=no
16929 curl_cv_have_def___SUNPRO_C=yes
16930 curl_cv_def___SUNPRO_C=$tmp_exp
16933 CPPFLAGS=$OLDCPPFLAGS
16935 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16937 $as_echo "yes" >&6; }
16938 compiler_id="SUNPRO_C"
16939 flags_dbg_all="-g -s"
16942 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16943 flags_opt_yes="-xO2"
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16952 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16954 OLDCPPFLAGS=$CPPFLAGS
16955 # CPPPFLAG comes from CURL_CPP_P
16956 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16957 if test -z "$SED"; then
16958 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16960 if test -z "$GREP"; then
16961 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h. */
16970 CURL_DEF_TOKEN __TINYC__
16975 if ac_fn_c_try_cpp "$LINENO"; then :
16977 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16978 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16979 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16980 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16981 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16986 rm -f conftest.err conftest.i conftest.$ac_ext
16987 if test -z "$tmp_exp"; then
16988 curl_cv_have_def___TINYC__=no
16991 curl_cv_have_def___TINYC__=yes
16992 curl_cv_def___TINYC__=$tmp_exp
16995 CPPFLAGS=$OLDCPPFLAGS
16997 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16999 $as_echo "yes" >&6; }
17000 compiler_id="TINY_C"
17001 flags_dbg_all="-g -b"
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17009 $as_echo "no" >&6; }
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17014 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17016 OLDCPPFLAGS=$CPPFLAGS
17017 # CPPPFLAG comes from CURL_CPP_P
17018 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17019 if test -z "$SED"; then
17020 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17022 if test -z "$GREP"; then
17023 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17032 CURL_DEF_TOKEN __WATCOMC__
17037 if ac_fn_c_try_cpp "$LINENO"; then :
17039 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17040 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17041 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17042 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17043 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17048 rm -f conftest.err conftest.i conftest.$ac_ext
17049 if test -z "$tmp_exp"; then
17050 curl_cv_have_def___WATCOMC__=no
17053 curl_cv_have_def___WATCOMC__=yes
17054 curl_cv_def___WATCOMC__=$tmp_exp
17057 CPPFLAGS=$OLDCPPFLAGS
17059 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17061 $as_echo "yes" >&6; }
17063 OLDCPPFLAGS=$CPPFLAGS
17064 # CPPPFLAG comes from CURL_CPP_P
17065 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17066 if test -z "$SED"; then
17067 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17069 if test -z "$GREP"; then
17070 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17079 CURL_DEF_TOKEN __UNIX__
17084 if ac_fn_c_try_cpp "$LINENO"; then :
17086 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17087 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17088 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17089 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17090 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17095 rm -f conftest.err conftest.i conftest.$ac_ext
17096 if test -z "$tmp_exp"; then
17097 curl_cv_have_def___UNIX__=no
17100 curl_cv_have_def___UNIX__=yes
17101 curl_cv_def___UNIX__=$tmp_exp
17104 CPPFLAGS=$OLDCPPFLAGS
17106 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17107 compiler_id="WATCOM_UNIX_C"
17108 flags_dbg_all="-g1 -g1+ -g2 -g3"
17109 flags_dbg_yes="-g2"
17111 flags_opt_all="-O0 -O1 -O2 -O3"
17112 flags_opt_yes="-O2"
17113 flags_opt_off="-O0"
17115 compiler_id="WATCOM_WINDOWS_C"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125 $as_echo "no" >&6; }
17129 if test "$compiler_id" = "unknown"; then
17132 *** Warning: This configure script does not have information about the
17133 *** compiler you are using, relative to the flags required to enable or
17134 *** disable generation of debug info, optimization options or warnings.
17136 *** Whatever settings are present in CFLAGS will be used for this run.
17138 *** If you wish to help the curl project to better support your compiler
17139 *** you can report this and the required info on the libcurl development
17140 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17148 eval _sqz_input=\$$1
17149 for _sqz_token in $_sqz_input; do
17150 if test -z "$_sqz_result"; then
17151 _sqz_result="$_sqz_token"
17153 _sqz_result="$_sqz_result $_sqz_token"
17156 eval $1=\$_sqz_result
17162 if test "$compiler_id" != "unknown"; then
17164 if test "$compiler_id" = "GNU_C" ||
17165 test "$compiler_id" = "CLANG"; then
17167 if test "$compiler_id" = "GNU_C" ||
17168 test "$compiler_id" = "CLANG"; then
17169 tmp_has_include="no"
17170 tmp_chg_FLAGS="$CFLAGS"
17171 for word1 in $tmp_chg_FLAGS; do
17174 tmp_has_include="yes"
17178 if test "$tmp_has_include" = "yes"; then
17179 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17180 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17181 CFLAGS="$tmp_chg_FLAGS"
17184 tmp_has_include="no"
17185 tmp_chg_FLAGS="$CPPFLAGS"
17186 for word1 in $tmp_chg_FLAGS; do
17189 tmp_has_include="yes"
17193 if test "$tmp_has_include" = "yes"; then
17194 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17195 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17196 CPPFLAGS="$tmp_chg_FLAGS"
17203 tmp_save_CPPFLAGS="$CPPFLAGS"
17204 tmp_save_CFLAGS="$CFLAGS"
17208 case "$compiler_id" in
17212 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17217 tmp_CFLAGS="$tmp_CFLAGS -std1"
17218 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17219 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17220 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17225 if test "$compiler_num" -ge "295"; then
17226 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17232 tmp_CFLAGS="$tmp_CFLAGS -z"
17233 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17238 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17239 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17240 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17245 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17246 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17247 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17252 tmp_CFLAGS="$tmp_CFLAGS"
17257 tmp_CFLAGS="$tmp_CFLAGS -n"
17262 tmp_CFLAGS="$tmp_CFLAGS"
17267 tmp_CFLAGS="$tmp_CFLAGS"
17272 tmp_CFLAGS="$tmp_CFLAGS"
17277 tmp_CFLAGS="$tmp_CFLAGS"
17282 tmp_CFLAGS="$tmp_CFLAGS"
17287 tmp_CFLAGS="$tmp_CFLAGS"
17292 squeeze tmp_CPPFLAGS
17295 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17297 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17298 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17299 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17303 tmp_compiler_works="unknown"
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17320 if ac_fn_c_try_compile "$LINENO"; then :
17322 tmp_compiler_works="yes"
17326 tmp_compiler_works="no"
17328 sed 's/^/cc-fail: /' conftest.err >&6
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333 if test "$tmp_compiler_works" = "yes"; then
17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h. */
17350 if ac_fn_c_try_link "$LINENO"; then :
17352 tmp_compiler_works="yes"
17356 tmp_compiler_works="no"
17358 sed 's/^/link-fail: /' conftest.err >&6
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17365 if test "x$cross_compiling" != "xyes" &&
17366 test "$tmp_compiler_works" = "yes"; then
17367 if test "$cross_compiling" = yes; then :
17368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17370 as_fn_error $? "cannot run test program while cross compiling
17371 See \`config.log' for more details" "$LINENO" 5; }
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17378 # include <stdlib.h>
17392 if ac_fn_c_try_run "$LINENO"; then :
17394 tmp_compiler_works="yes"
17398 tmp_compiler_works="no"
17400 echo "run-fail: test program exited with status $ac_status" >&6
17404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17405 conftest.$ac_objext conftest.beam conftest.$ac_ext
17409 if test "$tmp_compiler_works" = "yes"; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17412 $as_echo "yes" >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17414 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17421 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17422 CPPFLAGS="$tmp_save_CPPFLAGS"
17423 CFLAGS="$tmp_save_CFLAGS"
17433 if test "$compiler_id" != "unknown"; then
17435 tmp_save_CFLAGS="$CFLAGS"
17436 tmp_save_CPPFLAGS="$CPPFLAGS"
17439 tmp_CFLAGS="$CFLAGS"
17440 tmp_CPPFLAGS="$CPPFLAGS"
17443 for word1 in $tmp_CFLAGS; do
17444 ac_var_strip_word="no"
17445 for word2 in $flags_dbg_all; do
17446 if test "$word1" = "$word2"; then
17447 ac_var_strip_word="yes"
17450 if test "$ac_var_strip_word" = "no"; then
17451 ac_var_stripped="$ac_var_stripped $word1"
17454 tmp_CFLAGS="$ac_var_stripped"
17459 for word1 in $tmp_CPPFLAGS; do
17460 ac_var_strip_word="no"
17461 for word2 in $flags_dbg_all; do
17462 if test "$word1" = "$word2"; then
17463 ac_var_strip_word="yes"
17466 if test "$ac_var_strip_word" = "no"; then
17467 ac_var_stripped="$ac_var_stripped $word1"
17470 tmp_CPPFLAGS="$ac_var_stripped"
17471 squeeze tmp_CPPFLAGS
17474 if test "$want_debug" = "yes"; then
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17476 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17477 tmp_options="$flags_dbg_yes"
17479 if test "$want_debug" = "no"; then
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17481 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17482 tmp_options="$flags_dbg_off"
17485 if test "$flags_prefer_cppflags" = "yes"; then
17486 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17487 CFLAGS="$tmp_CFLAGS"
17489 CPPFLAGS="$tmp_CPPFLAGS"
17490 CFLAGS="$tmp_CFLAGS $tmp_options"
17495 tmp_compiler_works="unknown"
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17512 if ac_fn_c_try_compile "$LINENO"; then :
17514 tmp_compiler_works="yes"
17518 tmp_compiler_works="no"
17520 sed 's/^/cc-fail: /' conftest.err >&6
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525 if test "$tmp_compiler_works" = "yes"; then
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17542 if ac_fn_c_try_link "$LINENO"; then :
17544 tmp_compiler_works="yes"
17548 tmp_compiler_works="no"
17550 sed 's/^/link-fail: /' conftest.err >&6
17554 rm -f core conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17557 if test "x$cross_compiling" != "xyes" &&
17558 test "$tmp_compiler_works" = "yes"; then
17559 if test "$cross_compiling" = yes; then :
17560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17562 as_fn_error $? "cannot run test program while cross compiling
17563 See \`config.log' for more details" "$LINENO" 5; }
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17570 # include <stdlib.h>
17584 if ac_fn_c_try_run "$LINENO"; then :
17586 tmp_compiler_works="yes"
17590 tmp_compiler_works="no"
17592 echo "run-fail: test program exited with status $ac_status" >&6
17596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17597 conftest.$ac_objext conftest.beam conftest.$ac_ext
17601 if test "$tmp_compiler_works" = "yes"; then
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17604 $as_echo "yes" >&6; }
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17606 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17613 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17614 CPPFLAGS="$tmp_save_CPPFLAGS"
17615 CFLAGS="$tmp_save_CFLAGS"
17624 if test "$compiler_id" != "unknown"; then
17626 tmp_save_CFLAGS="$CFLAGS"
17627 tmp_save_CPPFLAGS="$CPPFLAGS"
17630 tmp_CFLAGS="$CFLAGS"
17631 tmp_CPPFLAGS="$CPPFLAGS"
17632 honor_optimize_option="yes"
17635 if test "$want_optimize" = "assume_no" ||
17636 test "$want_optimize" = "assume_yes"; then
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17638 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17641 ac_var_match_word="no"
17642 for word1 in $tmp_CFLAGS; do
17643 for word2 in $flags_opt_all; do
17644 if test "$word1" = "$word2"; then
17645 ac_var_match_word="yes"
17650 if test "$ac_var_match_word" = "yes"; then
17652 honor_optimize_option="no"
17659 ac_var_match_word="no"
17660 for word1 in $tmp_CPPFLAGS; do
17661 for word2 in $flags_opt_all; do
17662 if test "$word1" = "$word2"; then
17663 ac_var_match_word="yes"
17668 if test "$ac_var_match_word" = "yes"; then
17670 honor_optimize_option="no"
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17676 $as_echo "$honor_optimize_option" >&6; }
17677 if test "$honor_optimize_option" = "yes"; then
17678 if test "$want_optimize" = "assume_yes"; then
17679 want_optimize="yes"
17681 if test "$want_optimize" = "assume_no"; then
17687 if test "$honor_optimize_option" = "yes"; then
17690 for word1 in $tmp_CFLAGS; do
17691 ac_var_strip_word="no"
17692 for word2 in $flags_opt_all; do
17693 if test "$word1" = "$word2"; then
17694 ac_var_strip_word="yes"
17697 if test "$ac_var_strip_word" = "no"; then
17698 ac_var_stripped="$ac_var_stripped $word1"
17701 tmp_CFLAGS="$ac_var_stripped"
17706 for word1 in $tmp_CPPFLAGS; do
17707 ac_var_strip_word="no"
17708 for word2 in $flags_opt_all; do
17709 if test "$word1" = "$word2"; then
17710 ac_var_strip_word="yes"
17713 if test "$ac_var_strip_word" = "no"; then
17714 ac_var_stripped="$ac_var_stripped $word1"
17717 tmp_CPPFLAGS="$ac_var_stripped"
17718 squeeze tmp_CPPFLAGS
17720 if test "$want_optimize" = "yes"; then
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17722 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17723 tmp_options="$flags_opt_yes"
17725 if test "$want_optimize" = "no"; then
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17727 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17728 tmp_options="$flags_opt_off"
17730 if test "$flags_prefer_cppflags" = "yes"; then
17731 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17732 CFLAGS="$tmp_CFLAGS"
17734 CPPFLAGS="$tmp_CPPFLAGS"
17735 CFLAGS="$tmp_CFLAGS $tmp_options"
17740 tmp_compiler_works="unknown"
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17757 if ac_fn_c_try_compile "$LINENO"; then :
17759 tmp_compiler_works="yes"
17763 tmp_compiler_works="no"
17765 sed 's/^/cc-fail: /' conftest.err >&6
17769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770 if test "$tmp_compiler_works" = "yes"; then
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17787 if ac_fn_c_try_link "$LINENO"; then :
17789 tmp_compiler_works="yes"
17793 tmp_compiler_works="no"
17795 sed 's/^/link-fail: /' conftest.err >&6
17799 rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17802 if test "x$cross_compiling" != "xyes" &&
17803 test "$tmp_compiler_works" = "yes"; then
17804 if test "$cross_compiling" = yes; then :
17805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17807 as_fn_error $? "cannot run test program while cross compiling
17808 See \`config.log' for more details" "$LINENO" 5; }
17810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h. */
17815 # include <stdlib.h>
17829 if ac_fn_c_try_run "$LINENO"; then :
17831 tmp_compiler_works="yes"
17835 tmp_compiler_works="no"
17837 echo "run-fail: test program exited with status $ac_status" >&6
17841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17842 conftest.$ac_objext conftest.beam conftest.$ac_ext
17846 if test "$tmp_compiler_works" = "yes"; then
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17849 $as_echo "yes" >&6; }
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17851 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17856 $as_echo "no" >&6; }
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17858 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17859 CPPFLAGS="$tmp_save_CPPFLAGS"
17860 CFLAGS="$tmp_save_CFLAGS"
17870 if test "$compiler_id" != "unknown"; then
17872 tmp_save_CPPFLAGS="$CPPFLAGS"
17873 tmp_save_CFLAGS="$CFLAGS"
17877 case "$compiler_id" in
17881 if test "$want_warnings" = "yes"; then
17882 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17883 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17884 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17885 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17886 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17887 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17888 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17889 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17890 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17891 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17892 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17893 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17894 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17895 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17896 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17897 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17898 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17900 if test "$compiler_num" -ge "101"; then
17901 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17904 if test "$compiler_num" -ge "208"; then
17905 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17908 if test "$compiler_num" -ge "209"; then
17909 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17912 if test "$compiler_num" -ge "302"; then
17917 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17922 if test "$compiler_num" -ge "306"; then
17923 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17926 if test "$compiler_num" -ge "309"; then
17927 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17928 # avoid the varargs warning, fixed in 4.0
17929 # https://bugs.llvm.org/show_bug.cgi?id=29140
17930 if test "$compiler_num" -lt "400"; then
17931 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17939 if test "$want_warnings" = "yes"; then
17940 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17946 if test "$want_warnings" = "yes"; then
17948 if test "x$cross_compiling" != "xyes" ||
17949 test "$compiler_num" -ge "300"; then
17950 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17953 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17955 if test "$compiler_num" -ge "104"; then
17956 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17957 if test "x$cross_compiling" != "xyes" ||
17958 test "$compiler_num" -ge "300"; then
17959 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17963 if test "$compiler_num" -ge "207"; then
17964 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17965 if test "x$cross_compiling" != "xyes" ||
17966 test "$compiler_num" -ge "300"; then
17967 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17968 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17972 if test "$compiler_num" -ge "295"; then
17973 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17976 if test "$compiler_num" -ge "296"; then
17977 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17978 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17979 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17982 if test "$compiler_num" -ge "297"; then
17983 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17986 if test "$compiler_num" -ge "300"; then
17987 tmp_CFLAGS="$tmp_CFLAGS"
17990 if test "$compiler_num" -ge "303"; then
17991 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17994 if test "$compiler_num" -ge "304"; then
17995 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17998 if test "$compiler_num" -ge "400"; then
17999 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18002 if test "$compiler_num" -ge "402"; then
18003 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18006 if test "$compiler_num" -ge "403"; then
18007 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18008 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18009 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18010 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18013 if test "$compiler_num" -ge "405"; then
18014 if test "$curl_cv_have_def__WIN32" = "yes"; then
18015 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18019 if test "$compiler_num" -ge "406"; then
18020 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18025 if test "$compiler_num" -ge "300"; then
18026 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18028 if test "x$cross_compiling" = "xyes"; then
18029 if test "$compiler_num" -ge "104"; then
18030 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18032 if test "$compiler_num" -ge "207"; then
18033 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18034 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18042 if test "$want_warnings" = "yes"; then
18043 tmp_CFLAGS="$tmp_CFLAGS +w1"
18049 tmp_CFLAGS="$tmp_CFLAGS"
18054 if test "$want_warnings" = "yes"; then
18055 if test "$compiler_num" -gt "600"; then
18056 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18057 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18058 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18059 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18060 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18061 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18062 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18063 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18064 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18065 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18066 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18069 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18070 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18071 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18072 if test "$compiler_num" -ge "1000"; then
18073 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18079 tmp_CFLAGS="$tmp_CFLAGS"
18084 if test "$want_warnings" = "yes"; then
18085 tmp_CFLAGS="$tmp_CFLAGS"
18091 if test "$want_warnings" = "yes"; then
18092 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18098 if test "$want_warnings" = "yes"; then
18099 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18100 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18106 if test "$want_warnings" = "yes"; then
18107 tmp_CFLAGS="$tmp_CFLAGS -v"
18113 if test "$want_warnings" = "yes"; then
18114 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18115 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18116 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18122 if test "$want_warnings" = "yes"; then
18123 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18129 tmp_CFLAGS="$tmp_CFLAGS"
18134 squeeze tmp_CPPFLAGS
18137 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18139 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18140 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18141 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18145 tmp_compiler_works="unknown"
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18162 if ac_fn_c_try_compile "$LINENO"; then :
18164 tmp_compiler_works="yes"
18168 tmp_compiler_works="no"
18170 sed 's/^/cc-fail: /' conftest.err >&6
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175 if test "$tmp_compiler_works" = "yes"; then
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18192 if ac_fn_c_try_link "$LINENO"; then :
18194 tmp_compiler_works="yes"
18198 tmp_compiler_works="no"
18200 sed 's/^/link-fail: /' conftest.err >&6
18204 rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18207 if test "x$cross_compiling" != "xyes" &&
18208 test "$tmp_compiler_works" = "yes"; then
18209 if test "$cross_compiling" = yes; then :
18210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18212 as_fn_error $? "cannot run test program while cross compiling
18213 See \`config.log' for more details" "$LINENO" 5; }
18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h. */
18220 # include <stdlib.h>
18234 if ac_fn_c_try_run "$LINENO"; then :
18236 tmp_compiler_works="yes"
18240 tmp_compiler_works="no"
18242 echo "run-fail: test program exited with status $ac_status" >&6
18246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18247 conftest.$ac_objext conftest.beam conftest.$ac_ext
18251 if test "$tmp_compiler_works" = "yes"; then
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18254 $as_echo "yes" >&6; }
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18256 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261 $as_echo "no" >&6; }
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18263 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18264 CPPFLAGS="$tmp_save_CPPFLAGS"
18265 CFLAGS="$tmp_save_CFLAGS"
18274 if test "$compiler_id" = "INTEL_UNIX_C"; then
18276 if test "$compiler_num" -ge "1000"; then
18277 CFLAGS="$CFLAGS -shared-intel"
18278 elif test "$compiler_num" -ge "900"; then
18279 CFLAGS="$CFLAGS -i-dynamic"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18286 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18295 force compilation error
18302 if ac_fn_c_try_compile "$LINENO"; then :
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18306 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18311 $as_echo "yes" >&6; }
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18318 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18323 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18335 if ac_fn_c_try_compile "$LINENO"; then :
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18339 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18344 $as_echo "yes" >&6; }
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18351 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18356 # include <stdlib.h>
18370 int j = rand(i[0]);
18379 if ac_fn_c_try_compile "$LINENO"; then :
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382 $as_echo "no" >&6; }
18383 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18388 $as_echo "yes" >&6; }
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18395 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18396 supports_symbol_hiding="no"
18397 symbol_hiding_CFLAGS=""
18398 symbol_hiding_EXTERN=""
18401 case "$compiler_id" in
18403 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18404 tmp_CFLAGS="-fvisibility=hidden"
18405 supports_symbol_hiding="yes"
18408 if test "$compiler_num" -ge "304"; then
18409 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18410 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18411 tmp_CFLAGS="-fvisibility=hidden"
18412 supports_symbol_hiding="yes"
18417 if test "$compiler_num" -ge "900"; then
18418 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18419 tmp_save_CFLAGS="$CFLAGS"
18420 CFLAGS="$CFLAGS -fvisibility=hidden"
18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18425 # include <stdio.h>
18430 printf("icc fvisibility bug test");
18437 if ac_fn_c_try_link "$LINENO"; then :
18439 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18440 tmp_CFLAGS="-fvisibility=hidden"
18441 supports_symbol_hiding="yes"
18444 rm -f core conftest.err conftest.$ac_objext \
18445 conftest$ac_exeext conftest.$ac_ext
18446 CFLAGS="$tmp_save_CFLAGS"
18451 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18452 tmp_EXTERN="__global"
18453 tmp_CFLAGS="-xldscope=hidden"
18454 supports_symbol_hiding="yes"
18458 if test "$supports_symbol_hiding" = "yes"; then
18459 tmp_save_CFLAGS="$CFLAGS"
18460 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h. */
18466 $tmp_EXTERN char *dummy(char *buff);
18467 char *dummy(char *buff)
18479 char *r = dummy(&b[0]);
18488 if ac_fn_c_try_compile "$LINENO"; then :
18490 supports_symbol_hiding="yes"
18491 if test -f conftest.err; then
18492 grep 'visibility' conftest.err >/dev/null
18493 if test "$?" -eq "0"; then
18494 supports_symbol_hiding="no"
18500 supports_symbol_hiding="no"
18502 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18503 sed 's/^/cc-err: /' conftest.err >&6
18507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18508 CFLAGS="$tmp_save_CFLAGS"
18510 if test "$supports_symbol_hiding" = "yes"; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18512 $as_echo "yes" >&6; }
18513 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18514 symbol_hiding_EXTERN="$tmp_EXTERN"
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18517 $as_echo "no" >&6; }
18522 supports_curldebug="unknown"
18523 if test "$want_curldebug" = "yes"; then
18524 if test "x$enable_shared" != "xno" &&
18525 test "x$enable_shared" != "xyes"; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18527 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18528 supports_curldebug="no"
18530 if test "x$enable_static" != "xno" &&
18531 test "x$enable_static" != "xyes"; then
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18533 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18534 supports_curldebug="no"
18536 if test "$supports_curldebug" != "no"; then
18537 if test "$enable_shared" = "yes" &&
18538 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18539 supports_curldebug="no"
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18541 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18546 if test "$want_curldebug" = "yes"; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18548 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18549 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18551 $as_echo "$supports_curldebug" >&6; }
18552 if test "$supports_curldebug" = "no"; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18554 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18555 want_curldebug="no"
18559 if test "$want_curldebug" = "yes"; then
18560 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18563 if test "$want_debug" = "yes"; then
18564 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18568 if test x$want_curldebug = xyes; then
18570 CURLDEBUG_FALSE='#'
18577 supports_unittests=yes
18578 # cross-compilation of unit tests static library/programs fails when
18579 # libcurl shared library is built. This might be due to a libtool or
18580 # automake issue. In this case we disable unit tests.
18581 if test "x$cross_compiling" != "xno" &&
18582 test "x$enable_shared" != "xno"; then
18583 supports_unittests=no
18586 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18587 # a problem related with OpenSSL headers and library versions not matching.
18588 # Disable unit tests while time to further investigate this is found.
18591 if test "$compiler_id" = "GNU_C"; then
18592 supports_unittests=no
18597 # All AIX autobuilds fails unit tests linking against unittests library
18598 # due to unittests library being built with no symbols or members. Libtool ?
18599 # Disable unit tests while time to further investigate this is found.
18602 supports_unittests=no
18606 if test "x$want_debug" = "xyes" &&
18607 test "x$supports_unittests" = "xyes"; then
18612 if test x$want_unittests = xyes; then
18613 BUILD_UNITTESTS_TRUE=
18614 BUILD_UNITTESTS_FALSE='#'
18616 BUILD_UNITTESTS_TRUE='#'
18617 BUILD_UNITTESTS_FALSE=
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18625 $as_echo_n "checking for windows.h... " >&6; }
18626 if ${curl_cv_header_windows_h+:} false; then :
18627 $as_echo_n "(cached) " >&6
18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18635 #ifndef WIN32_LEAN_AND_MEAN
18636 #define WIN32_LEAN_AND_MEAN
18638 #include <windows.h>
18643 #if defined(__CYGWIN__) || defined(__CEGCC__)
18644 HAVE_WINDOWS_H shall not be defined.
18646 int dummy=2*WINVER;
18654 if ac_fn_c_try_compile "$LINENO"; then :
18656 curl_cv_header_windows_h="yes"
18660 curl_cv_header_windows_h="no"
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18667 $as_echo "$curl_cv_header_windows_h" >&6; }
18668 case "$curl_cv_header_windows_h" in
18671 cat >>confdefs.h <<_ACEOF
18672 #define HAVE_WINDOWS_H 1
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18680 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18681 if ${curl_cv_native_windows+:} false; then :
18682 $as_echo_n "(cached) " >&6
18685 if test "$curl_cv_header_windows_h" = "no"; then
18686 curl_cv_native_windows="no"
18688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h. */
18696 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18697 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18700 Not a native Windows build target.
18708 if ac_fn_c_try_compile "$LINENO"; then :
18710 curl_cv_native_windows="yes"
18714 curl_cv_native_windows="no"
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18722 $as_echo "$curl_cv_native_windows" >&6; }
18723 if test "x$curl_cv_native_windows" = xyes; then
18724 DOING_NATIVE_WINDOWS_TRUE=
18725 DOING_NATIVE_WINDOWS_FALSE='#'
18727 DOING_NATIVE_WINDOWS_TRUE='#'
18728 DOING_NATIVE_WINDOWS_FALSE=
18732 case X-"$curl_cv_native_windows" in
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18736 $as_echo_n "checking for winsock.h... " >&6; }
18737 if ${curl_cv_header_winsock_h+:} false; then :
18738 $as_echo_n "(cached) " >&6
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18746 #ifndef WIN32_LEAN_AND_MEAN
18747 #define WIN32_LEAN_AND_MEAN
18749 #include <windows.h>
18750 #include <winsock.h>
18755 #if defined(__CYGWIN__) || defined(__CEGCC__)
18756 HAVE_WINSOCK_H shall not be defined.
18758 int dummy=WSACleanup();
18766 if ac_fn_c_try_compile "$LINENO"; then :
18768 curl_cv_header_winsock_h="yes"
18772 curl_cv_header_winsock_h="no"
18775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18779 $as_echo "$curl_cv_header_winsock_h" >&6; }
18780 case "$curl_cv_header_winsock_h" in
18783 cat >>confdefs.h <<_ACEOF
18784 #define HAVE_WINSOCK_H 1
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18792 $as_echo_n "checking for winsock2.h... " >&6; }
18793 if ${curl_cv_header_winsock2_h+:} false; then :
18794 $as_echo_n "(cached) " >&6
18797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798 /* end confdefs.h. */
18802 #ifndef WIN32_LEAN_AND_MEAN
18803 #define WIN32_LEAN_AND_MEAN
18805 #include <windows.h>
18806 #include <winsock2.h>
18811 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18812 HAVE_WINSOCK2_H shall not be defined.
18814 int dummy=2*IPPROTO_ESP;
18822 if ac_fn_c_try_compile "$LINENO"; then :
18824 curl_cv_header_winsock2_h="yes"
18828 curl_cv_header_winsock2_h="no"
18831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18835 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18836 case "$curl_cv_header_winsock2_h" in
18839 cat >>confdefs.h <<_ACEOF
18840 #define HAVE_WINSOCK2_H 1
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18848 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18849 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18850 $as_echo_n "(cached) " >&6
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18858 #ifndef WIN32_LEAN_AND_MEAN
18859 #define WIN32_LEAN_AND_MEAN
18861 #include <windows.h>
18862 #include <winsock2.h>
18863 #include <ws2tcpip.h>
18868 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18869 HAVE_WS2TCPIP_H shall not be defined.
18871 int dummy=2*IP_PKTINFO;
18879 if ac_fn_c_try_compile "$LINENO"; then :
18881 curl_cv_header_ws2tcpip_h="yes"
18885 curl_cv_header_ws2tcpip_h="no"
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18892 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18893 case "$curl_cv_header_ws2tcpip_h" in
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_WS2TCPIP_H 1
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18905 $as_echo_n "checking for winldap.h... " >&6; }
18906 if ${curl_cv_header_winldap_h+:} false; then :
18907 $as_echo_n "(cached) " >&6
18910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h. */
18915 #ifdef HAVE_WINDOWS_H
18916 #ifndef WIN32_LEAN_AND_MEAN
18917 #define WIN32_LEAN_AND_MEAN
18919 #include <windows.h>
18921 #include <winldap.h>
18926 #if defined(__CYGWIN__) || defined(__CEGCC__)
18927 HAVE_WINLDAP_H shall not be defined.
18929 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18930 ULONG res = ldap_unbind(ldp);
18938 if ac_fn_c_try_compile "$LINENO"; then :
18940 curl_cv_header_winldap_h="yes"
18944 curl_cv_header_winldap_h="no"
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18951 $as_echo "$curl_cv_header_winldap_h" >&6; }
18952 case "$curl_cv_header_winldap_h" in
18955 cat >>confdefs.h <<_ACEOF
18956 #define HAVE_WINLDAP_H 1
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18964 $as_echo_n "checking for winber.h... " >&6; }
18965 if ${curl_cv_header_winber_h+:} false; then :
18966 $as_echo_n "(cached) " >&6
18969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970 /* end confdefs.h. */
18974 #ifdef HAVE_WINDOWS_H
18975 #ifndef WIN32_LEAN_AND_MEAN
18976 #define WIN32_LEAN_AND_MEAN
18978 #include <windows.h>
18980 #include <winldap.h>
18981 #include <winber.h>
18986 #if defined(__CYGWIN__) || defined(__CEGCC__)
18987 HAVE_WINBER_H shall not be defined.
18989 BERVAL *bvp = NULL;
18990 BerElement *bep = ber_init(bvp);
18999 if ac_fn_c_try_compile "$LINENO"; then :
19001 curl_cv_header_winber_h="yes"
19005 curl_cv_header_winber_h="no"
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19012 $as_echo "$curl_cv_header_winber_h" >&6; }
19013 case "$curl_cv_header_winber_h" in
19016 cat >>confdefs.h <<_ACEOF
19017 #define HAVE_WINBER_H 1
19025 curl_cv_header_winsock_h="no"
19026 curl_cv_header_winsock2_h="no"
19027 curl_cv_header_ws2tcpip_h="no"
19028 curl_cv_header_winldap_h="no"
19029 curl_cv_header_winber_h="no"
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19034 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19035 curl_win32_file_api="no"
19036 if test "$curl_cv_header_windows_h" = "yes"; then
19037 if test x"$enable_largefile" != "xno"; then
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19046 #if !defined(_WIN32_WCE) && \
19047 (defined(__MINGW32__) || \
19048 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19051 WIN32 large file API not supported.
19059 if ac_fn_c_try_compile "$LINENO"; then :
19061 curl_win32_file_api="win32_large_files"
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 if test "$curl_win32_file_api" = "no"; then
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19075 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19078 WIN32 small file API not supported.
19086 if ac_fn_c_try_compile "$LINENO"; then :
19088 curl_win32_file_api="win32_small_files"
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19094 case "$curl_win32_file_api" in
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19097 $as_echo "yes (large file enabled)" >&6; }
19099 cat >>confdefs.h <<_ACEOF
19100 #define USE_WIN32_LARGE_FILES 1
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19106 $as_echo "yes (large file disabled)" >&6; }
19108 cat >>confdefs.h <<_ACEOF
19109 #define USE_WIN32_SMALL_FILES 1
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19115 $as_echo "no" >&6; }
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19130 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19132 $as_echo "$tst_cflags" >&6; };
19134 if test "$tst_cflags" = "yes"; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19136 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19138 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19139 min="-mmacosx-version-min=10.8"
19140 CFLAGS="$CFLAGS $min"
19142 if test -z "$min"; then
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19144 $as_echo "set by user" >&6; }
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19147 $as_echo "$min set" >&6; }
19151 CFLAGS="$CFLAGS -Werror=partial-availability"
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19153 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19164 if ac_fn_c_try_compile "$LINENO"; then :
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19166 $as_echo "yes" >&6; }
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19169 $as_echo "no" >&6; }
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19178 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h. */
19183 #include <stdlib.h>
19188 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19195 if ac_fn_c_try_compile "$LINENO"; then :
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198 $as_echo "yes" >&6; }
19200 cat >>confdefs.h <<_ACEOF
19201 #define HAVE_BUILTIN_AVAILABLE 1
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19208 $as_echo "no" >&6; }
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19215 $as_echo_n "checking whether to support http... " >&6; }
19216 # Check whether --enable-http was given.
19217 if test "${enable_http+set}" = set; then :
19218 enableval=$enable_http; case "$enableval" in
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19221 $as_echo "no" >&6; }
19223 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19227 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19228 CURL_DISABLE_HTTP=1
19231 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19233 CURL_DISABLE_RTSP=1
19236 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19237 $as_echo "yes" >&6; }
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19242 $as_echo "yes" >&6; }
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19247 $as_echo_n "checking whether to support ftp... " >&6; }
19248 # Check whether --enable-ftp was given.
19249 if test "${enable_ftp+set}" = set; then :
19250 enableval=$enable_ftp; case "$enableval" in
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253 $as_echo "no" >&6; }
19255 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19260 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261 $as_echo "yes" >&6; }
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266 $as_echo "yes" >&6; }
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19271 $as_echo_n "checking whether to support file... " >&6; }
19272 # Check whether --enable-file was given.
19273 if test "${enable_file+set}" = set; then :
19274 enableval=$enable_file; case "$enableval" in
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19277 $as_echo "no" >&6; }
19279 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19281 CURL_DISABLE_FILE=1
19284 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19285 $as_echo "yes" >&6; }
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290 $as_echo "yes" >&6; }
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19295 $as_echo_n "checking whether to support ldap... " >&6; }
19296 # Check whether --enable-ldap was given.
19297 if test "${enable_ldap+set}" = set; then :
19298 enableval=$enable_ldap; case "$enableval" in
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19303 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19305 CURL_DISABLE_LDAP=1
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19310 $as_echo "yes" >&6; }
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19316 $as_echo "yes" >&6; }
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19321 $as_echo_n "checking whether to support ldaps... " >&6; }
19322 # Check whether --enable-ldaps was given.
19323 if test "${enable_ldaps+set}" = set; then :
19324 enableval=$enable_ldaps; case "$enableval" in
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327 $as_echo "no" >&6; }
19329 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19331 CURL_DISABLE_LDAPS=1
19334 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19336 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19338 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19340 CURL_DISABLE_LDAPS=1
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19344 $as_echo "yes" >&6; }
19346 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19355 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19357 $as_echo "no" >&6; }
19359 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19361 CURL_DISABLE_LDAPS=1
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19365 $as_echo "yes" >&6; }
19367 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19377 $as_echo_n "checking whether to support rtsp... " >&6; }
19378 # Check whether --enable-rtsp was given.
19379 if test "${enable_rtsp+set}" = set; then :
19380 enableval=$enable_rtsp; case "$enableval" in
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19383 $as_echo "no" >&6; }
19385 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19387 CURL_DISABLE_RTSP=1
19390 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19391 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394 $as_echo "yes" >&6; }
19395 curl_rtsp_msg="enabled"
19400 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19402 $as_echo "yes" >&6; }
19403 curl_rtsp_msg="enabled"
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406 $as_echo "no" >&6; }
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19413 $as_echo_n "checking whether to support proxies... " >&6; }
19414 # Check whether --enable-proxy was given.
19415 if test "${enable_proxy+set}" = set; then :
19416 enableval=$enable_proxy; case "$enableval" in
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419 $as_echo "no" >&6; }
19421 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19423 CURL_DISABLE_PROXY=1
19426 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19427 $as_echo "yes" >&6; }
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19432 $as_echo "yes" >&6; }
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19438 $as_echo_n "checking whether to support dict... " >&6; }
19439 # Check whether --enable-dict was given.
19440 if test "${enable_dict+set}" = set; then :
19441 enableval=$enable_dict; case "$enableval" in
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19446 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19448 CURL_DISABLE_DICT=1
19451 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19452 $as_echo "yes" >&6; }
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19457 $as_echo "yes" >&6; }
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19462 $as_echo_n "checking whether to support telnet... " >&6; }
19463 # Check whether --enable-telnet was given.
19464 if test "${enable_telnet+set}" = set; then :
19465 enableval=$enable_telnet; case "$enableval" in
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19468 $as_echo "no" >&6; }
19470 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19472 CURL_DISABLE_TELNET=1
19475 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19476 $as_echo "yes" >&6; }
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481 $as_echo "yes" >&6; }
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19486 $as_echo_n "checking whether to support tftp... " >&6; }
19487 # Check whether --enable-tftp was given.
19488 if test "${enable_tftp+set}" = set; then :
19489 enableval=$enable_tftp; case "$enableval" in
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19492 $as_echo "no" >&6; }
19494 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19496 CURL_DISABLE_TFTP=1
19499 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19500 $as_echo "yes" >&6; }
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19505 $as_echo "yes" >&6; }
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19511 $as_echo_n "checking whether to support pop3... " >&6; }
19512 # Check whether --enable-pop3 was given.
19513 if test "${enable_pop3+set}" = set; then :
19514 enableval=$enable_pop3; case "$enableval" in
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 $as_echo "no" >&6; }
19519 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19521 CURL_DISABLE_POP3=1
19524 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19525 $as_echo "yes" >&6; }
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19530 $as_echo "yes" >&6; }
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19537 $as_echo_n "checking whether to support imap... " >&6; }
19538 # Check whether --enable-imap was given.
19539 if test "${enable_imap+set}" = set; then :
19540 enableval=$enable_imap; case "$enableval" in
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19543 $as_echo "no" >&6; }
19545 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19547 CURL_DISABLE_IMAP=1
19550 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19551 $as_echo "yes" >&6; }
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19556 $as_echo "yes" >&6; }
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19563 $as_echo_n "checking whether to support smb... " >&6; }
19564 # Check whether --enable-smb was given.
19565 if test "${enable_smb+set}" = set; then :
19566 enableval=$enable_smb; case "$enableval" in
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19571 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19576 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19577 $as_echo "yes" >&6; }
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582 $as_echo "yes" >&6; }
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19588 $as_echo_n "checking whether to support smtp... " >&6; }
19589 # Check whether --enable-smtp was given.
19590 if test "${enable_smtp+set}" = set; then :
19591 enableval=$enable_smtp; case "$enableval" in
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19594 $as_echo "no" >&6; }
19596 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19598 CURL_DISABLE_SMTP=1
19601 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19602 $as_echo "yes" >&6; }
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19607 $as_echo "yes" >&6; }
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19613 $as_echo_n "checking whether to support gopher... " >&6; }
19614 # Check whether --enable-gopher was given.
19615 if test "${enable_gopher+set}" = set; then :
19616 enableval=$enable_gopher; case "$enableval" in
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19619 $as_echo "no" >&6; }
19621 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19623 CURL_DISABLE_GOPHER=1
19626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19627 $as_echo "yes" >&6; }
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19632 $as_echo "yes" >&6; }
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19640 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19641 # Check whether --enable-manual was given.
19642 if test "${enable_manual+set}" = set; then :
19643 enableval=$enable_manual; case "$enableval" in
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19646 $as_echo "no" >&6; }
19648 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19649 $as_echo "yes" >&6; }
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19655 $as_echo "yes" >&6; }
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19662 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19663 # Check whether --enable-libcurl_option was given.
19664 if test "${enable_libcurl_option+set}" = set; then :
19665 enableval=$enable_libcurl_option; case "$enableval" in
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19668 $as_echo "no" >&6; }
19670 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19672 curl_libcurl_msg="no"
19674 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19675 $as_echo "yes" >&6; }
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19680 $as_echo "yes" >&6; }
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19687 $as_echo_n "checking whether to use libgcc... " >&6; }
19688 # Check whether --enable-libgcc was given.
19689 if test "${enable_libgcc+set}" = set; then :
19690 enableval=$enable_libgcc; case "$enableval" in
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19694 $as_echo "yes" >&6; }
19696 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19697 $as_echo "no" >&6; }
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19702 $as_echo "no" >&6; }
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19709 $as_echo_n "checking if X/Open network library is required... " >&6; }
19710 tst_lib_xnet_required="no"
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19717 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19719 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19722 force compilation error
19728 if ac_fn_c_try_compile "$LINENO"; then :
19730 tst_lib_xnet_required="yes"
19731 LIBS="-lxnet $LIBS"
19734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19736 $as_echo "$tst_lib_xnet_required" >&6; }
19739 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19740 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19741 HAVE_GETHOSTBYNAME="1"
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19745 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19746 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19747 $as_echo_n "(cached) " >&6
19749 ac_check_lib_save_LIBS=$LIBS
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19758 char gethostbyname ();
19761 return gethostbyname ();
19766 if ac_fn_c_try_link "$LINENO"; then :
19767 ac_cv_lib_nsl_gethostbyname=yes
19769 ac_cv_lib_nsl_gethostbyname=no
19771 rm -f core conftest.err conftest.$ac_objext \
19772 conftest$ac_exeext conftest.$ac_ext
19773 LIBS=$ac_check_lib_save_LIBS
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19776 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19777 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19778 HAVE_GETHOSTBYNAME="1"
19787 if test "$HAVE_GETHOSTBYNAME" != "1"
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19790 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19791 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19792 $as_echo_n "(cached) " >&6
19794 ac_check_lib_save_LIBS=$LIBS
19795 LIBS="-lsocket $LIBS"
19796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h. */
19803 char gethostbyname ();
19806 return gethostbyname ();
19811 if ac_fn_c_try_link "$LINENO"; then :
19812 ac_cv_lib_socket_gethostbyname=yes
19814 ac_cv_lib_socket_gethostbyname=no
19816 rm -f core conftest.err conftest.$ac_objext \
19817 conftest$ac_exeext conftest.$ac_ext
19818 LIBS=$ac_check_lib_save_LIBS
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19821 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19822 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19823 HAVE_GETHOSTBYNAME="1"
19824 LIBS="-lsocket $LIBS"
19830 if test "$HAVE_GETHOSTBYNAME" != "1"
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19833 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19834 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19835 $as_echo_n "(cached) " >&6
19837 ac_check_lib_save_LIBS=$LIBS
19838 LIBS="-lwatt $LIBS"
19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h. */
19846 char gethostbyname ();
19849 return gethostbyname ();
19854 if ac_fn_c_try_link "$LINENO"; then :
19855 ac_cv_lib_watt_gethostbyname=yes
19857 ac_cv_lib_watt_gethostbyname=no
19859 rm -f core conftest.err conftest.$ac_objext \
19860 conftest$ac_exeext conftest.$ac_ext
19861 LIBS=$ac_check_lib_save_LIBS
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19864 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19865 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19866 HAVE_GETHOSTBYNAME="1"
19867 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19868 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19869 LIBS="-lwatt $LIBS"
19875 if test "$HAVE_GETHOSTBYNAME" != "1"
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19878 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19879 my_ac_save_LIBS=$LIBS
19880 LIBS="-lnsl -lsocket $LIBS"
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19896 if ac_fn_c_try_link "$LINENO"; then :
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19899 $as_echo "yes" >&6; }
19900 HAVE_GETHOSTBYNAME="1"
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905 $as_echo "no" >&6; }
19906 LIBS=$my_ac_save_LIBS
19909 rm -f core conftest.err conftest.$ac_objext \
19910 conftest$ac_exeext conftest.$ac_ext
19913 if test "$HAVE_GETHOSTBYNAME" != "1"
19915 if test "$curl_cv_header_windows_h" = "yes"; then
19916 if test "$curl_cv_header_winsock_h" = "yes"; then
19919 winsock_LIB="-lwinsock"
19922 winsock_LIB="-lwsock32"
19926 if test "$curl_cv_header_winsock2_h" = "yes"; then
19927 winsock_LIB="-lws2_32"
19929 if test ! -z "$winsock_LIB"; then
19930 my_ac_save_LIBS=$LIBS
19931 LIBS="$winsock_LIB $LIBS"
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19933 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19938 #ifdef HAVE_WINDOWS_H
19939 #ifndef WIN32_LEAN_AND_MEAN
19940 #define WIN32_LEAN_AND_MEAN
19942 #include <windows.h>
19943 #ifdef HAVE_WINSOCK2_H
19944 #include <winsock2.h>
19946 #ifdef HAVE_WINSOCK_H
19947 #include <winsock.h>
19955 gethostbyname("www.dummysite.com");
19962 if ac_fn_c_try_link "$LINENO"; then :
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19965 $as_echo "yes" >&6; }
19966 HAVE_GETHOSTBYNAME="1"
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19971 $as_echo "no" >&6; }
19973 LIBS=$my_ac_save_LIBS
19976 rm -f core conftest.err conftest.$ac_objext \
19977 conftest$ac_exeext conftest.$ac_ext
19982 if test "$HAVE_GETHOSTBYNAME" != "1"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19985 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19990 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19996 gethostbyname("www.dummysite.com");
20003 if ac_fn_c_try_link "$LINENO"; then :
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20006 $as_echo "yes" >&6; }
20007 HAVE_GETHOSTBYNAME="1"
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20012 $as_echo "no" >&6; }
20015 rm -f core conftest.err conftest.$ac_objext \
20016 conftest$ac_exeext conftest.$ac_ext
20019 if test "$HAVE_GETHOSTBYNAME" != "1"
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20022 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20024 /* end confdefs.h. */
20033 gethostbyname("www.dummysite.com");
20040 if ac_fn_c_try_link "$LINENO"; then :
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20043 $as_echo "yes" >&6; }
20044 HAVE_GETHOSTBYNAME="1"
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20052 rm -f core conftest.err conftest.$ac_objext \
20053 conftest$ac_exeext conftest.$ac_ext
20056 if test "$HAVE_GETHOSTBYNAME" != "1"
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20059 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20060 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20061 $as_echo_n "(cached) " >&6
20063 ac_check_lib_save_LIBS=$LIBS
20064 LIBS="-lnetwork $LIBS"
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066 /* end confdefs.h. */
20072 char gethostbyname ();
20075 return gethostbyname ();
20080 if ac_fn_c_try_link "$LINENO"; then :
20081 ac_cv_lib_network_gethostbyname=yes
20083 ac_cv_lib_network_gethostbyname=no
20085 rm -f core conftest.err conftest.$ac_objext \
20086 conftest$ac_exeext conftest.$ac_ext
20087 LIBS=$ac_check_lib_save_LIBS
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20090 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20091 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20092 HAVE_GETHOSTBYNAME="1"
20093 LIBS="-lnetwork $LIBS"
20099 if test "$HAVE_GETHOSTBYNAME" != "1"
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20102 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20103 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20104 $as_echo_n "(cached) " >&6
20106 ac_check_lib_save_LIBS=$LIBS
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20115 char gethostbyname ();
20118 return gethostbyname ();
20123 if ac_fn_c_try_link "$LINENO"; then :
20124 ac_cv_lib_net_gethostbyname=yes
20126 ac_cv_lib_net_gethostbyname=no
20128 rm -f core conftest.err conftest.$ac_objext \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20133 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20134 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20135 HAVE_GETHOSTBYNAME="1"
20143 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20144 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20148 curl_includes_winsock2="\
20149 /* includes start */
20150 #ifdef HAVE_WINDOWS_H
20151 # ifndef WIN32_LEAN_AND_MEAN
20152 # define WIN32_LEAN_AND_MEAN
20154 # include <windows.h>
20155 # ifdef HAVE_WINSOCK2_H
20156 # include <winsock2.h>
20158 # ifdef HAVE_WINSOCK_H
20159 # include <winsock.h>
20163 /* includes end */"
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20166 $as_echo_n "checking for windows.h... " >&6; }
20167 if ${curl_cv_header_windows_h+:} false; then :
20168 $as_echo_n "(cached) " >&6
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20176 #ifndef WIN32_LEAN_AND_MEAN
20177 #define WIN32_LEAN_AND_MEAN
20179 #include <windows.h>
20184 #if defined(__CYGWIN__) || defined(__CEGCC__)
20185 HAVE_WINDOWS_H shall not be defined.
20187 int dummy=2*WINVER;
20195 if ac_fn_c_try_compile "$LINENO"; then :
20197 curl_cv_header_windows_h="yes"
20201 curl_cv_header_windows_h="no"
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20208 $as_echo "$curl_cv_header_windows_h" >&6; }
20209 case "$curl_cv_header_windows_h" in
20212 cat >>confdefs.h <<_ACEOF
20213 #define HAVE_WINDOWS_H 1
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20221 $as_echo_n "checking for winsock.h... " >&6; }
20222 if ${curl_cv_header_winsock_h+:} false; then :
20223 $as_echo_n "(cached) " >&6
20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20231 #ifndef WIN32_LEAN_AND_MEAN
20232 #define WIN32_LEAN_AND_MEAN
20234 #include <windows.h>
20235 #include <winsock.h>
20240 #if defined(__CYGWIN__) || defined(__CEGCC__)
20241 HAVE_WINSOCK_H shall not be defined.
20243 int dummy=WSACleanup();
20251 if ac_fn_c_try_compile "$LINENO"; then :
20253 curl_cv_header_winsock_h="yes"
20257 curl_cv_header_winsock_h="no"
20260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20264 $as_echo "$curl_cv_header_winsock_h" >&6; }
20265 case "$curl_cv_header_winsock_h" in
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_WINSOCK_H 1
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20277 $as_echo_n "checking for winsock2.h... " >&6; }
20278 if ${curl_cv_header_winsock2_h+:} false; then :
20279 $as_echo_n "(cached) " >&6
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20287 #ifndef WIN32_LEAN_AND_MEAN
20288 #define WIN32_LEAN_AND_MEAN
20290 #include <windows.h>
20291 #include <winsock2.h>
20296 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20297 HAVE_WINSOCK2_H shall not be defined.
20299 int dummy=2*IPPROTO_ESP;
20307 if ac_fn_c_try_compile "$LINENO"; then :
20309 curl_cv_header_winsock2_h="yes"
20313 curl_cv_header_winsock2_h="no"
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20320 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20321 case "$curl_cv_header_winsock2_h" in
20324 cat >>confdefs.h <<_ACEOF
20325 #define HAVE_WINSOCK2_H 1
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20334 $as_echo_n "checking for connect in libraries... " >&6; }
20335 tst_connect_save_LIBS="$LIBS"
20336 tst_connect_need_LIBS="unknown"
20337 for tst_lib in '' '-lsocket' ; do
20338 if test "$tst_connect_need_LIBS" = "unknown"; then
20339 LIBS="$tst_lib $tst_connect_save_LIBS"
20340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20341 /* end confdefs.h. */
20344 $curl_includes_winsock2
20345 #ifndef HAVE_WINDOWS_H
20346 int connect(int, void*, int);
20352 if(0 != connect(0, 0, 0))
20360 if ac_fn_c_try_link "$LINENO"; then :
20362 tst_connect_need_LIBS="$tst_lib"
20365 rm -f core conftest.err conftest.$ac_objext \
20366 conftest$ac_exeext conftest.$ac_ext
20369 LIBS="$tst_connect_save_LIBS"
20371 case X-"$tst_connect_need_LIBS" in
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20374 $as_echo "cannot find connect" >&6; }
20375 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20379 $as_echo "yes" >&6; }
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20383 $as_echo "$tst_connect_need_LIBS" >&6; }
20384 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20389 CURL_NETWORK_LIBS=$LIBS
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20392 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20393 if ${ac_cv_header_time+:} false; then :
20394 $as_echo_n "(cached) " >&6
20396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20398 #include <sys/types.h>
20399 #include <sys/time.h>
20404 if ((struct tm *) 0)
20410 if ac_fn_c_try_compile "$LINENO"; then :
20411 ac_cv_header_time=yes
20413 ac_cv_header_time=no
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20418 $as_echo "$ac_cv_header_time" >&6; }
20419 if test $ac_cv_header_time = yes; then
20421 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20426 for ac_header in sys/types.h sys/time.h time.h
20428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20429 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20431 cat >>confdefs.h <<_ACEOF
20432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20440 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20442 if test "x$dontwant_rt" = "xno" ; then
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20447 #ifdef HAVE_SYS_TYPES_H
20448 #include <sys/types.h>
20450 #ifdef HAVE_SYS_TIME_H
20451 #include <sys/time.h>
20452 #ifdef TIME_WITH_SYS_TIME
20464 struct timespec ts;
20465 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20472 if ac_fn_c_try_compile "$LINENO"; then :
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20475 $as_echo "yes" >&6; }
20476 curl_func_clock_gettime="yes"
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20481 $as_echo "no" >&6; }
20482 curl_func_clock_gettime="no"
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 if test "$curl_func_clock_gettime" = "yes"; then
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20493 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20495 curl_cv_save_LIBS="$LIBS"
20496 curl_cv_gclk_LIBS="unknown"
20498 for x_xlibs in '' '-lrt' '-lposix4' ; do
20499 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20500 if test -z "$x_xlibs"; then
20501 LIBS="$curl_cv_save_LIBS"
20503 LIBS="$x_xlibs $curl_cv_save_LIBS"
20505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h. */
20509 #ifdef HAVE_SYS_TYPES_H
20510 #include <sys/types.h>
20512 #ifdef HAVE_SYS_TIME_H
20513 #include <sys/time.h>
20514 #ifdef TIME_WITH_SYS_TIME
20526 struct timespec ts;
20527 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20534 if ac_fn_c_try_link "$LINENO"; then :
20536 curl_cv_gclk_LIBS="$x_xlibs"
20539 rm -f core conftest.err conftest.$ac_objext \
20540 conftest$ac_exeext conftest.$ac_ext
20544 LIBS="$curl_cv_save_LIBS"
20546 case X-"$curl_cv_gclk_LIBS" in
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20549 $as_echo "cannot find clock_gettime" >&6; }
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20551 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20552 curl_func_clock_gettime="no"
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20556 $as_echo "no additional lib required" >&6; }
20557 curl_func_clock_gettime="yes"
20560 if test -z "$curl_cv_save_LIBS"; then
20561 LIBS="$curl_cv_gclk_LIBS"
20563 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20566 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20567 curl_func_clock_gettime="yes"
20571 if test "x$cross_compiling" != "xyes" &&
20572 test "$curl_func_clock_gettime" = "yes"; then
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20574 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20575 if test "$cross_compiling" = yes; then :
20576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20578 as_fn_error $? "cannot run test program while cross compiling
20579 See \`config.log' for more details" "$LINENO" 5; }
20581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582 /* end confdefs.h. */
20585 #ifdef HAVE_STDLIB_H
20586 #include <stdlib.h>
20588 #ifdef HAVE_SYS_TYPES_H
20589 #include <sys/types.h>
20591 #ifdef HAVE_SYS_TIME_H
20592 #include <sys/time.h>
20593 #ifdef TIME_WITH_SYS_TIME
20605 struct timespec ts;
20606 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20616 if ac_fn_c_try_run "$LINENO"; then :
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20619 $as_echo "yes" >&6; }
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20624 $as_echo "no" >&6; }
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20626 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20627 curl_func_clock_gettime="no"
20628 LIBS="$curl_cv_save_LIBS"
20631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20632 conftest.$ac_objext conftest.beam conftest.$ac_ext
20637 case "$curl_func_clock_gettime" in
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20651 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20655 clean_CPPFLAGS=$CPPFLAGS
20656 clean_LDFLAGS=$LDFLAGS
20660 # Check whether --with-zlib was given.
20661 if test "${with_zlib+set}" = set; then :
20662 withval=$with_zlib; OPT_ZLIB="$withval"
20666 if test "$OPT_ZLIB" = "no" ; then
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20668 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20670 if test "$OPT_ZLIB" = "yes" ; then
20674 if test -z "$OPT_ZLIB" ; then
20676 if test -n "$PKG_CONFIG"; then
20677 PKGCONFIG="$PKG_CONFIG"
20679 if test -n "$ac_tool_prefix"; then
20680 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20681 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20683 $as_echo_n "checking for $ac_word... " >&6; }
20684 if ${ac_cv_path_PKGCONFIG+:} false; then :
20685 $as_echo_n "(cached) " >&6
20689 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20693 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20694 for as_dir in $as_dummy
20697 test -z "$as_dir" && as_dir=.
20698 for ac_exec_ext in '' $ac_executable_extensions; do
20699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20700 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20711 PKGCONFIG=$ac_cv_path_PKGCONFIG
20712 if test -n "$PKGCONFIG"; then
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20714 $as_echo "$PKGCONFIG" >&6; }
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717 $as_echo "no" >&6; }
20722 if test -z "$ac_cv_path_PKGCONFIG"; then
20723 ac_pt_PKGCONFIG=$PKGCONFIG
20724 # Extract the first word of "pkg-config", so it can be a program name with args.
20725 set dummy pkg-config; ac_word=$2
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20727 $as_echo_n "checking for $ac_word... " >&6; }
20728 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20729 $as_echo_n "(cached) " >&6
20731 case $ac_pt_PKGCONFIG in
20733 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20737 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20738 for as_dir in $as_dummy
20741 test -z "$as_dir" && as_dir=.
20742 for ac_exec_ext in '' $ac_executable_extensions; do
20743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20744 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20755 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20756 if test -n "$ac_pt_PKGCONFIG"; then
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20758 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20761 $as_echo "no" >&6; }
20764 if test "x$ac_pt_PKGCONFIG" = x; then
20767 case $cross_compiling:$ac_tool_warned in
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20771 ac_tool_warned=yes ;;
20773 PKGCONFIG=$ac_pt_PKGCONFIG
20776 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20781 if test "x$PKGCONFIG" != "xno"; then
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20783 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20785 if test -n ""; then
20786 PKG_CONFIG_LIBDIR=""
20787 export PKG_CONFIG_LIBDIR
20789 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20791 if test -z "$itexists"; then
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20794 $as_echo "no" >&6; }
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20797 $as_echo "found" >&6; }
20802 if test "$PKGCONFIG" != "no" ; then
20803 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20804 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20805 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20810 if test -z "$HAVE_LIBZ"; then
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20814 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20815 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20816 $as_echo_n "(cached) " >&6
20818 ac_check_lib_save_LIBS=$LIBS
20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20827 char inflateEnd ();
20830 return inflateEnd ();
20835 if ac_fn_c_try_link "$LINENO"; then :
20836 ac_cv_lib_z_inflateEnd=yes
20838 ac_cv_lib_z_inflateEnd=no
20840 rm -f core conftest.err conftest.$ac_objext \
20841 conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20845 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20846 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20850 OPT_ZLIB="/usr/local"
20856 if test -n "$OPT_ZLIB"; then
20857 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20858 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20861 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20862 if test "x$ac_cv_header_zlib_h" = xyes; then :
20865 if test "$HAVE_LIBZ" != "1"; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20867 $as_echo_n "checking for gzread in -lz... " >&6; }
20868 if ${ac_cv_lib_z_gzread+:} false; then :
20869 $as_echo_n "(cached) " >&6
20871 ac_check_lib_save_LIBS=$LIBS
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h. */
20888 if ac_fn_c_try_link "$LINENO"; then :
20889 ac_cv_lib_z_gzread=yes
20891 ac_cv_lib_z_gzread=no
20893 rm -f core conftest.err conftest.$ac_objext \
20894 conftest$ac_exeext conftest.$ac_ext
20895 LIBS=$ac_check_lib_save_LIBS
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20898 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20899 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20905 CPPFLAGS=$clean_CPPFLAGS
20906 LDFLAGS=$clean_LDFLAGS
20913 CPPFLAGS=$clean_CPPFLAGS
20914 LDFLAGS=$clean_LDFLAGS
20920 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20923 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20925 CPPFLAGS=$clean_CPPFLAGS
20926 LDFLAGS=$clean_LDFLAGS
20928 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20931 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20932 CPPFLAGS=$clean_CPPFLAGS
20933 LDFLAGS=$clean_LDFLAGS
20935 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20939 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20942 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20946 LIBS="-lz $clean_LIBS"
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20950 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20951 curl_zlib_msg="enabled"
20955 if test x"$AMFIXLIB" = x1; then
20957 HAVE_LIBZ_FALSE='#'
20968 # Check whether --with-ldap-lib was given.
20969 if test "${with_ldap_lib+set}" = set; then :
20970 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20976 # Check whether --with-lber-lib was given.
20977 if test "${with_lber_lib+set}" = set; then :
20978 withval=$with_lber_lib; LBERLIBNAME="$withval"
20982 if test x$CURL_DISABLE_LDAP != x1 ; then
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20986 $as_echo_n "checking for lber.h... " >&6; }
20987 if ${curl_cv_header_lber_h+:} false; then :
20988 $as_echo_n "(cached) " >&6
20991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20996 #ifdef HAVE_WINDOWS_H
20997 #ifndef WIN32_LEAN_AND_MEAN
20998 #define WIN32_LEAN_AND_MEAN
21000 #include <windows.h>
21002 #ifdef HAVE_SYS_TYPES_H
21003 #include <sys/types.h>
21007 #define NULL (void *)0
21014 BerValue *bvp = NULL;
21015 BerElement *bep = ber_init(bvp);
21023 if ac_fn_c_try_compile "$LINENO"; then :
21025 curl_cv_header_lber_h="yes"
21029 curl_cv_header_lber_h="no"
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21036 $as_echo "$curl_cv_header_lber_h" >&6; }
21037 if test "$curl_cv_header_lber_h" = "yes"; then
21039 cat >>confdefs.h <<_ACEOF
21040 #define HAVE_LBER_H 1
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21049 #ifdef HAVE_WINDOWS_H
21050 #ifndef WIN32_LEAN_AND_MEAN
21051 #define WIN32_LEAN_AND_MEAN
21053 #include <windows.h>
21055 #ifdef HAVE_SYS_TYPES_H
21056 #include <sys/types.h>
21060 #define NULL (void *)0
21062 #ifndef LDAP_DEPRECATED
21063 #define LDAP_DEPRECATED 1
21070 BerValue *bvp = NULL;
21071 BerElement *bep = ber_init(bvp);
21079 if ac_fn_c_try_compile "$LINENO"; then :
21081 curl_cv_need_header_lber_h="no"
21085 curl_cv_need_header_lber_h="yes"
21088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 case "$curl_cv_need_header_lber_h" in
21093 cat >>confdefs.h <<_ACEOF
21094 #define NEED_LBER_H 1
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21103 $as_echo_n "checking for ldap.h... " >&6; }
21104 if ${curl_cv_header_ldap_h+:} false; then :
21105 $as_echo_n "(cached) " >&6
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21113 #ifdef HAVE_WINDOWS_H
21114 #ifndef WIN32_LEAN_AND_MEAN
21115 #define WIN32_LEAN_AND_MEAN
21117 #include <windows.h>
21119 #ifdef HAVE_SYS_TYPES_H
21120 #include <sys/types.h>
21123 #ifndef LDAP_DEPRECATED
21124 #define LDAP_DEPRECATED 1
21134 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21135 int res = ldap_unbind(ldp);
21142 if ac_fn_c_try_compile "$LINENO"; then :
21144 curl_cv_header_ldap_h="yes"
21148 curl_cv_header_ldap_h="no"
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21155 $as_echo "$curl_cv_header_ldap_h" >&6; }
21156 case "$curl_cv_header_ldap_h" in
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_LDAP_H 1
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21168 $as_echo_n "checking for ldapssl.h... " >&6; }
21169 if ${curl_cv_header_ldapssl_h+:} false; then :
21170 $as_echo_n "(cached) " >&6
21173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21174 /* end confdefs.h. */
21178 #ifdef HAVE_WINDOWS_H
21179 #ifndef WIN32_LEAN_AND_MEAN
21180 #define WIN32_LEAN_AND_MEAN
21182 #include <windows.h>
21184 #ifdef HAVE_SYS_TYPES_H
21185 #include <sys/types.h>
21189 #define NULL (void *)0
21191 #ifndef LDAP_DEPRECATED
21192 #define LDAP_DEPRECATED 1
21200 #include <ldapssl.h>
21205 char *cert_label = NULL;
21206 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21213 if ac_fn_c_try_compile "$LINENO"; then :
21215 curl_cv_header_ldapssl_h="yes"
21219 curl_cv_header_ldapssl_h="no"
21222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21226 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21227 case "$curl_cv_header_ldapssl_h" in
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_LDAPSSL_H 1
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21239 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21240 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21241 $as_echo_n "(cached) " >&6
21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245 /* end confdefs.h. */
21249 #ifdef HAVE_WINDOWS_H
21250 #ifndef WIN32_LEAN_AND_MEAN
21251 #define WIN32_LEAN_AND_MEAN
21253 #include <windows.h>
21255 #ifdef HAVE_SYS_TYPES_H
21256 #include <sys/types.h>
21259 #ifndef LDAP_DEPRECATED
21260 #define LDAP_DEPRECATED 1
21268 #include <ldap_ssl.h>
21273 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21280 if ac_fn_c_try_compile "$LINENO"; then :
21282 curl_cv_header_ldap_ssl_h="yes"
21286 curl_cv_header_ldap_ssl_h="no"
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21293 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21294 case "$curl_cv_header_ldap_ssl_h" in
21297 cat >>confdefs.h <<_ACEOF
21298 #define HAVE_LDAP_SSL_H 1
21305 if test -z "$LDAPLIBNAME" ; then
21306 if test "$curl_cv_native_windows" = "yes"; then
21307 LDAPLIBNAME="wldap32"
21312 if test "$LDAPLIBNAME" ; then
21313 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21315 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21316 if eval \${$as_ac_Lib+:} false; then :
21317 $as_echo_n "(cached) " >&6
21319 ac_check_lib_save_LIBS=$LIBS
21320 LIBS="-l"$LDAPLIBNAME" $LIBS"
21321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322 /* end confdefs.h. */
21331 return ldap_init ();
21336 if ac_fn_c_try_link "$LINENO"; then :
21337 eval "$as_ac_Lib=yes"
21339 eval "$as_ac_Lib=no"
21341 rm -f core conftest.err conftest.$ac_objext \
21342 conftest$ac_exeext conftest.$ac_ext
21343 LIBS=$ac_check_lib_save_LIBS
21345 eval ac_res=\$$as_ac_Lib
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21347 $as_echo "$ac_res" >&6; }
21348 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21349 cat >>confdefs.h <<_ACEOF
21350 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21353 LIBS="-l"$LDAPLIBNAME" $LIBS"
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21358 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21360 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21362 CURL_DISABLE_LDAP=1
21365 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21367 CURL_DISABLE_LDAPS=1
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21375 $as_echo_n "checking for LDAP libraries... " >&6; }
21381 curl_cv_save_LIBS="$LIBS"
21382 curl_cv_ldap_LIBS="unknown"
21384 for x_nlibs in '' "$u_libs" \
21388 '-lldapssl -lldapx -lldapsdk' \
21389 '-lldapsdk -lldapx -lldapssl' ; do
21390 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21391 if test -z "$x_nlibs"; then
21392 LIBS="$curl_cv_save_LIBS"
21394 LIBS="$x_nlibs $curl_cv_save_LIBS"
21396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21397 /* end confdefs.h. */
21401 #ifdef HAVE_WINDOWS_H
21402 #ifndef WIN32_LEAN_AND_MEAN
21403 #define WIN32_LEAN_AND_MEAN
21405 #include <windows.h>
21407 #ifdef HAVE_SYS_TYPES_H
21408 #include <sys/types.h>
21412 #define NULL (void *)0
21414 #ifndef LDAP_DEPRECATED
21415 #define LDAP_DEPRECATED 1
21427 BerValue *bvp = NULL;
21428 BerElement *bep = ber_init(bvp);
21429 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21430 int res = ldap_unbind(ldp);
21438 if ac_fn_c_try_link "$LINENO"; then :
21440 curl_cv_ldap_LIBS="$x_nlibs"
21443 rm -f core conftest.err conftest.$ac_objext \
21444 conftest$ac_exeext conftest.$ac_ext
21448 LIBS="$curl_cv_save_LIBS"
21450 case X-"$curl_cv_ldap_LIBS" in
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21453 $as_echo "cannot find LDAP libraries" >&6; }
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21457 $as_echo "no additional lib required" >&6; }
21460 if test -z "$curl_cv_save_LIBS"; then
21461 LIBS="$curl_cv_ldap_LIBS"
21463 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21466 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21471 case X-"$curl_cv_ldap_LIBS" in
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21474 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21476 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21478 CURL_DISABLE_LDAP=1
21481 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21483 CURL_DISABLE_LDAPS=1
21490 if test x$CURL_DISABLE_LDAP != x1 ; then
21492 if test "$LBERLIBNAME" ; then
21493 if test "$LBERLIBNAME" != "no" ; then
21494 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21496 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21497 if eval \${$as_ac_Lib+:} false; then :
21498 $as_echo_n "(cached) " >&6
21500 ac_check_lib_save_LIBS=$LIBS
21501 LIBS="-l"$LBERLIBNAME" $LIBS"
21502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21503 /* end confdefs.h. */
21512 return ber_free ();
21517 if ac_fn_c_try_link "$LINENO"; then :
21518 eval "$as_ac_Lib=yes"
21520 eval "$as_ac_Lib=no"
21522 rm -f core conftest.err conftest.$ac_objext \
21523 conftest$ac_exeext conftest.$ac_ext
21524 LIBS=$ac_check_lib_save_LIBS
21526 eval ac_res=\$$as_ac_Lib
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21528 $as_echo "$ac_res" >&6; }
21529 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21530 cat >>confdefs.h <<_ACEOF
21531 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21534 LIBS="-l"$LBERLIBNAME" $LIBS"
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21539 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21541 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21543 CURL_DISABLE_LDAP=1
21546 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21548 CURL_DISABLE_LDAPS=1
21556 if test x$CURL_DISABLE_LDAP != x1 ; then
21557 for ac_func in ldap_url_parse ldap_init_fd
21559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21561 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21562 cat >>confdefs.h <<_ACEOF
21563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21570 if test "$LDAPLIBNAME" = "wldap32"; then
21571 curl_ldap_msg="enabled (winldap)"
21573 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21576 curl_ldap_msg="enabled (OpenLDAP)"
21577 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21579 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21587 if test x$CURL_DISABLE_LDAPS != x1 ; then
21588 curl_ldaps_msg="enabled"
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21593 $as_echo_n "checking whether to enable IPv6... " >&6; }
21594 # Check whether --enable-ipv6 was given.
21595 if test "${enable_ipv6+set}" = set; then :
21596 enableval=$enable_ipv6; case "$enableval" in
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21599 $as_echo "no" >&6; }
21602 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21603 $as_echo "yes" >&6; }
21608 if test "$cross_compiling" = yes; then :
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21610 $as_echo "yes" >&6; }
21614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21616 /* is AF_INET6 available? */
21617 #include <sys/types.h>
21618 #ifdef HAVE_WINSOCK2_H
21619 #include <winsock2.h>
21621 #include <sys/socket.h>
21623 #include <stdlib.h> /* for exit() */
21626 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21633 if ac_fn_c_try_run "$LINENO"; then :
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21635 $as_echo "yes" >&6; }
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21639 $as_echo "no" >&6; }
21642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21643 conftest.$ac_objext conftest.beam conftest.$ac_ext
21649 if test "$ipv6" = "yes"; then
21650 curl_ipv6_msg="enabled"
21653 # Check if struct sockaddr_in6 have sin6_scope_id member
21654 if test "$ipv6" = yes; then
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21656 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21658 /* end confdefs.h. */
21660 #include <sys/types.h>
21661 #ifdef HAVE_WINSOCK2_H
21662 #include <winsock2.h>
21663 #include <ws2tcpip.h>
21665 #include <netinet/in.h>
21669 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21674 if ac_fn_c_try_compile "$LINENO"; then :
21675 have_sin6_scope_id=yes
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 if test "$have_sin6_scope_id" = yes; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21680 $as_echo "yes" >&6; }
21682 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 $as_echo "no" >&6; }
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21692 $as_echo_n "checking if argv can be written to... " >&6; }
21693 if test "$cross_compiling" = yes; then :
21695 curl_cv_writable_argv=cross
21698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21699 /* end confdefs.h. */
21702 int main(int argc, char ** argv) {
21704 return (argv[0][0] == ' ')?0:1;
21709 if ac_fn_c_try_run "$LINENO"; then :
21711 curl_cv_writable_argv=yes
21715 curl_cv_writable_argv=no
21718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21719 conftest.$ac_objext conftest.beam conftest.$ac_ext
21722 case $curl_cv_writable_argv in
21725 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21728 $as_echo "yes" >&6; }
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21732 $as_echo "no" >&6; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21736 $as_echo "no" >&6; }
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21738 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21746 # Check whether --with-gssapi-includes was given.
21747 if test "${with_gssapi_includes+set}" = set; then :
21748 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21755 # Check whether --with-gssapi-libs was given.
21756 if test "${with_gssapi_libs+set}" = set; then :
21757 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21764 # Check whether --with-gssapi was given.
21765 if test "${with_gssapi+set}" = set; then :
21766 withval=$with_gssapi;
21767 GSSAPI_ROOT="$withval"
21768 if test x"$GSSAPI_ROOT" != xno; then
21770 if test x"$GSSAPI_ROOT" = xyes; then
21778 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21780 save_CPPFLAGS="$CPPFLAGS"
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21782 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21783 if test x"$want_gss" = xyes; then
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21785 $as_echo "yes" >&6; }
21787 if test -z "$GSSAPI_INCS"; then
21788 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21789 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21790 elif test -f "$KRB5CONFIG"; then
21791 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21792 elif test "$GSSAPI_ROOT" != "yes"; then
21793 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21797 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21799 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21800 if test "x$ac_cv_header_gss_h" = xyes; then :
21803 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21809 for ac_header in gssapi/gssapi.h
21811 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21812 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21813 cat >>confdefs.h <<_ACEOF
21814 #define HAVE_GSSAPI_GSSAPI_H 1
21823 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21827 $ac_includes_default
21828 #ifdef HAVE_GSSAPI_GSSAPI_H
21829 #include <gssapi/gssapi.h>
21833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21834 cat >>confdefs.h <<_ACEOF
21835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844 if test "x$not_mit" = "x1"; then
21845 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21846 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21849 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21856 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21864 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21867 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21869 /* end confdefs.h. */
21872 #include <gssapi/gssapi.h>
21873 #include <gssapi/gssapi_generic.h>
21874 #include <gssapi/gssapi_krb5.h>
21882 GSS_C_NT_HOSTBASED_SERVICE,
21890 if ac_fn_c_try_compile "$LINENO"; then :
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21893 $as_echo "yes" >&6; }
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 $as_echo "no" >&6; }
21900 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21913 $as_echo "no" >&6; }
21915 if test x"$want_gss" = xyes; then
21917 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21920 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21922 if test -n "$gnu_gss"; then
21923 curl_gss_msg="enabled (GNU GSS)"
21924 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21926 elif test -z "$GSSAPI_LIB_DIR"; then
21929 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21932 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21933 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21934 LIBS="$gss_libs $LIBS"
21935 elif test -f "$KRB5CONFIG"; then
21936 gss_libs=`$KRB5CONFIG --libs gssapi`
21937 LIBS="$gss_libs $LIBS"
21944 gss_libname="gssapi"
21948 if test "$GSSAPI_ROOT" != "yes"; then
21949 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21950 LIBS="-l$gss_libname $LIBS"
21952 LIBS="-l$gss_libname $LIBS"
21958 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21964 LIBS="-lgssapi $LIBS"
21969 CPPFLAGS="$save_CPPFLAGS"
21972 build_libstubgss=no
21973 if test x"$want_gss" = "xyes"; then
21974 build_libstubgss=yes
21977 if test "x$build_libstubgss" = "xyes"; then
21978 BUILD_STUB_GSS_TRUE=
21979 BUILD_STUB_GSS_FALSE='#'
21981 BUILD_STUB_GSS_TRUE='#'
21982 BUILD_STUB_GSS_FALSE=
21987 DEFAULT_SSL_BACKEND=no
21988 VALID_DEFAULT_SSL_BACKEND=
21990 # Check whether --with-default-ssl-backend was given.
21991 if test "${with_default_ssl_backend+set}" = set; then :
21992 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
21995 case "$DEFAULT_SSL_BACKEND" in
21999 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22003 VALID_DEFAULT_SSL_BACKEND=no
22011 # Check whether --with-winssl was given.
22012 if test "${with_winssl+set}" = set; then :
22013 withval=$with_winssl; OPT_WINSSL=$withval
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22018 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22019 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22021 if test "x$OPT_WINSSL" != "xno" &&
22022 test "x$curl_cv_native_windows" = "xyes"; then
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22026 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22030 ssl_msg="Windows-native"
22031 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22033 # --with-winssl implies --enable-sspi
22035 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22039 curl_sspi_msg="enabled"
22040 LIBS="-lcrypt32 $LIBS"
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22043 $as_echo "no" >&6; }
22045 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22048 $as_echo "no" >&6; }
22053 # Check whether --with-darwinssl was given.
22054 if test "${with_darwinssl+set}" = set; then :
22055 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22060 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22061 if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
22062 if test "x$OPT_DARWINSSL" != "xno" &&
22063 test -d "/System/Library/Frameworks/Security.framework"; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22065 $as_echo "yes" >&6; }
22067 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22071 ssl_msg="Apple OS-native"
22072 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22073 DARWINSSL_ENABLED=1
22074 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22077 $as_echo "no" >&6; }
22079 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22082 $as_echo "no" >&6; }
22089 # Check whether --with-ssl was given.
22090 if test "${with_ssl+set}" = set; then :
22091 withval=$with_ssl; OPT_SSL=$withval
22095 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22096 test X"$OPT_SSL" != Xno; then
22099 CLEANLDFLAGS="$LDFLAGS"
22100 CLEANCPPFLAGS="$CPPFLAGS"
22104 *-*-msys* | *-*-mingw*)
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22106 $as_echo_n "checking for gdi32... " >&6; }
22107 my_ac_save_LIBS=$LIBS
22108 LIBS="-lgdi32 $LIBS"
22109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22110 /* end confdefs.h. */
22111 #include <windef.h>
22112 #include <wingdi.h>
22120 if ac_fn_c_try_link "$LINENO"; then :
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22122 $as_echo "yes" >&6; }
22124 LIBS=$my_ac_save_LIBS
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22126 $as_echo "no" >&6; }
22129 rm -f core conftest.err conftest.$ac_objext \
22130 conftest$ac_exeext conftest.$ac_ext
22136 if test x$cross_compiling != xyes; then
22139 PREFIX_OPENSSL=/usr/local/ssl
22140 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22143 if test x$cross_compiling != xyes; then
22150 PREFIX_OPENSSL=$OPT_SSL
22152 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22154 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22155 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22159 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22160 if test "$PREFIX_OPENSSL" != "/usr" ; then
22161 SSL_LDFLAGS="-L$LIB_OPENSSL"
22162 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22164 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22168 if test "$PKGTEST" = "yes"; then
22171 if test -n "$PKG_CONFIG"; then
22172 PKGCONFIG="$PKG_CONFIG"
22174 if test -n "$ac_tool_prefix"; then
22175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22178 $as_echo_n "checking for $ac_word... " >&6; }
22179 if ${ac_cv_path_PKGCONFIG+:} false; then :
22180 $as_echo_n "(cached) " >&6
22184 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22188 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22189 for as_dir in $as_dummy
22192 test -z "$as_dir" && as_dir=.
22193 for ac_exec_ext in '' $ac_executable_extensions; do
22194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22195 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22206 PKGCONFIG=$ac_cv_path_PKGCONFIG
22207 if test -n "$PKGCONFIG"; then
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22209 $as_echo "$PKGCONFIG" >&6; }
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212 $as_echo "no" >&6; }
22217 if test -z "$ac_cv_path_PKGCONFIG"; then
22218 ac_pt_PKGCONFIG=$PKGCONFIG
22219 # Extract the first word of "pkg-config", so it can be a program name with args.
22220 set dummy pkg-config; ac_word=$2
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222 $as_echo_n "checking for $ac_word... " >&6; }
22223 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22224 $as_echo_n "(cached) " >&6
22226 case $ac_pt_PKGCONFIG in
22228 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22233 for as_dir in $as_dummy
22236 test -z "$as_dir" && as_dir=.
22237 for ac_exec_ext in '' $ac_executable_extensions; do
22238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22239 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22250 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22251 if test -n "$ac_pt_PKGCONFIG"; then
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22253 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22256 $as_echo "no" >&6; }
22259 if test "x$ac_pt_PKGCONFIG" = x; then
22262 case $cross_compiling:$ac_tool_warned in
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22266 ac_tool_warned=yes ;;
22268 PKGCONFIG=$ac_pt_PKGCONFIG
22271 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22276 if test "x$PKGCONFIG" != "xno"; then
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22278 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22280 if test -n "$OPENSSL_PCDIR"; then
22281 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22282 export PKG_CONFIG_LIBDIR
22284 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22286 if test -z "$itexists"; then
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22289 $as_echo "no" >&6; }
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22292 $as_echo "found" >&6; }
22297 if test "$PKGCONFIG" != "no" ; then
22299 if test -n "$OPENSSL_PCDIR"; then
22300 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22301 export PKG_CONFIG_LIBDIR
22303 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22306 if test -n "$OPENSSL_PCDIR"; then
22307 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22308 export PKG_CONFIG_LIBDIR
22310 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22313 if test -n "$OPENSSL_PCDIR"; then
22314 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22315 export PKG_CONFIG_LIBDIR
22317 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22321 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22323 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22325 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22327 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22329 LIBS="$SSL_LIBS $LIBS"
22333 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22334 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22337 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22338 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22339 $as_echo_n "(cached) " >&6
22341 ac_check_lib_save_LIBS=$LIBS
22342 LIBS="-lcrypto $LIBS"
22343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22344 /* end confdefs.h. */
22350 char HMAC_Update ();
22353 return HMAC_Update ();
22358 if ac_fn_c_try_link "$LINENO"; then :
22359 ac_cv_lib_crypto_HMAC_Update=yes
22361 ac_cv_lib_crypto_HMAC_Update=no
22363 rm -f core conftest.err conftest.$ac_objext \
22364 conftest$ac_exeext conftest.$ac_ext
22365 LIBS=$ac_check_lib_save_LIBS
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22368 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22369 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22372 LIBS="-lcrypto $LIBS"
22376 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22377 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22379 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22380 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22381 $as_echo_n "(cached) " >&6
22383 ac_check_lib_save_LIBS=$LIBS
22384 LIBS="-lcrypto $LIBS"
22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h. */
22392 char HMAC_Init_ex ();
22395 return HMAC_Init_ex ();
22400 if ac_fn_c_try_link "$LINENO"; then :
22401 ac_cv_lib_crypto_HMAC_Init_ex=yes
22403 ac_cv_lib_crypto_HMAC_Init_ex=no
22405 rm -f core conftest.err conftest.$ac_objext \
22406 conftest$ac_exeext conftest.$ac_ext
22407 LIBS=$ac_check_lib_save_LIBS
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22410 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22411 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22414 LIBS="-lcrypto $LIBS"
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22419 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422 /* end confdefs.h. */
22424 #include <openssl/err.h>
22435 if ac_fn_c_try_link "$LINENO"; then :
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22438 $as_echo "yes" >&6; }
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22444 $as_echo "no" >&6; }
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22447 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22448 LIBS="-lpthread $LIBS"
22449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22450 /* end confdefs.h. */
22452 #include <openssl/err.h>
22463 if ac_fn_c_try_link "$LINENO"; then :
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22466 $as_echo "yes" >&6; }
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22472 $as_echo "no" >&6; }
22473 LDFLAGS="$CLEANLDFLAGS"
22474 CPPFLAGS="$CLEANCPPFLAGS"
22479 rm -f core conftest.err conftest.$ac_objext \
22480 conftest$ac_exeext conftest.$ac_ext
22484 rm -f core conftest.err conftest.$ac_objext \
22485 conftest$ac_exeext conftest.$ac_ext
22494 if test X"$HAVECRYPTO" = X"yes"; then
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22497 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22498 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22499 $as_echo_n "(cached) " >&6
22501 ac_check_lib_save_LIBS=$LIBS
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h. */
22510 char SSL_connect ();
22513 return SSL_connect ();
22518 if ac_fn_c_try_link "$LINENO"; then :
22519 ac_cv_lib_ssl_SSL_connect=yes
22521 ac_cv_lib_ssl_SSL_connect=no
22523 rm -f core conftest.err conftest.$ac_objext \
22524 conftest$ac_exeext conftest.$ac_ext
22525 LIBS=$ac_check_lib_save_LIBS
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22528 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22529 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22530 cat >>confdefs.h <<_ACEOF
22531 #define HAVE_LIBSSL 1
22539 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22541 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22543 LIBS="-lRSAglue -lrsaref $LIBS"
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22545 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22546 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22547 $as_echo_n "(cached) " >&6
22549 ac_check_lib_save_LIBS=$LIBS
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22558 char SSL_connect ();
22561 return SSL_connect ();
22566 if ac_fn_c_try_link "$LINENO"; then :
22567 ac_cv_lib_ssl_SSL_connect=yes
22569 ac_cv_lib_ssl_SSL_connect=no
22571 rm -f core conftest.err conftest.$ac_objext \
22572 conftest$ac_exeext conftest.$ac_ext
22573 LIBS=$ac_check_lib_save_LIBS
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22576 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22577 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22578 cat >>confdefs.h <<_ACEOF
22579 #define HAVE_LIBSSL 1
22586 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22588 $as_echo "no" >&6; }
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22592 $as_echo "yes" >&6; }
22597 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22598 openssl/pem.h openssl/ssl.h openssl/err.h
22600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22601 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22602 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22603 cat >>confdefs.h <<_ACEOF
22604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22607 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22610 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22617 if test $ac_cv_header_openssl_x509_h = no; then
22618 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22620 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22621 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22622 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22623 cat >>confdefs.h <<_ACEOF
22624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22632 if test $ac_cv_header_x509_h = yes &&
22633 test $ac_cv_header_crypto_h = yes &&
22634 test $ac_cv_header_ssl_h = yes; then
22641 if test X"$OPENSSL_ENABLED" != X"1"; then
22645 if test X"$OPT_SSL" != Xoff &&
22646 test "$OPENSSL_ENABLED" != "1"; then
22647 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22651 if test X"$OPENSSL_ENABLED" = X"1"; then
22652 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22653 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22655 for ac_header in openssl/engine.h
22657 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22658 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22659 cat >>confdefs.h <<_ACEOF
22660 #define HAVE_OPENSSL_ENGINE_H 1
22667 for ac_func in ENGINE_load_builtin_engines
22669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22672 cat >>confdefs.h <<_ACEOF
22673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22684 for ac_func in RAND_egd \
22687 SSLv2_client_method
22689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22691 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22692 cat >>confdefs.h <<_ACEOF
22693 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22701 $as_echo_n "checking for BoringSSL... " >&6; }
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h. */
22706 #include <openssl/base.h>
22711 #ifndef OPENSSL_IS_BORINGSSL
22712 #error not boringssl
22720 if ac_fn_c_try_compile "$LINENO"; then :
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22723 $as_echo "yes" >&6; }
22725 cat >>confdefs.h <<_ACEOF
22726 #define HAVE_BORINGSSL 1
22729 ssl_msg="BoringSSL"
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22734 $as_echo "no" >&6; }
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22740 $as_echo_n "checking for libressl... " >&6; }
22741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22742 /* end confdefs.h. */
22745 #include <openssl/opensslv.h>
22750 int dummy = LIBRESSL_VERSION_NUMBER;
22757 if ac_fn_c_try_compile "$LINENO"; then :
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22760 $as_echo "yes" >&6; }
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_LIBRESSL 1
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 $as_echo "no" >&6; }
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 if test "$OPENSSL_ENABLED" = "1"; then
22778 if test -n "$LIB_OPENSSL"; then
22779 if test "x$cross_compiling" != "xyes"; then
22780 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22781 export LD_LIBRARY_PATH
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22783 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22793 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22795 OLDCPPFLAGS=$CPPFLAGS
22796 # CPPPFLAG comes from CURL_CPP_P
22797 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22798 if test -z "$SED"; then
22799 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22801 if test -z "$GREP"; then
22802 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22807 /* end confdefs.h. */
22810 # ifdef USE_OPENSSL
22811 # include <openssl/crypto.h>
22813 # include <crypto.h>
22816 #ifdef OPENSSL_VERSION_NUMBER
22817 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22822 if ac_fn_c_try_cpp "$LINENO"; then :
22824 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22825 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22826 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22827 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22828 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22833 rm -f conftest.err conftest.i conftest.$ac_ext
22834 if test -z "$tmp_exp"; then
22835 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22838 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22839 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22842 CPPFLAGS=$OLDCPPFLAGS
22844 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22845 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22846 case "x$tst_verlen" in
22848 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22849 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22850 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22851 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22854 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22855 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22856 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22857 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22864 0x110) tst_show="1.1.0" ;;
22865 0x102) tst_show="1.0.2" ;;
22866 0x101) tst_show="1.0.1" ;;
22867 0x100) tst_show="1.0.0" ;;
22868 0x099) tst_show="0.9.9" ;;
22869 0x098) tst_show="0.9.8" ;;
22870 0x097) tst_show="0.9.7" ;;
22871 0x096) tst_show="0.9.6" ;;
22872 0x095) tst_show="0.9.5" ;;
22873 0x094) tst_show="0.9.4" ;;
22874 0x093) tst_show="0.9.3" ;;
22875 0x092) tst_show="0.9.2" ;;
22876 0x091) tst_show="0.9.1" ;;
22877 *) tst_show="unknown" ;;
22879 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22884 $as_echo "$tst_show" >&6; }
22886 curl_openssl_api_headers=$tst_api
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22893 $as_echo_n "checking for OpenSSL library version... " >&6; }
22894 if test "$tst_api" = "unknown"; then
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h. */
22901 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22903 # include <limits.h>
22905 # include <assert.h>
22907 #undef SSL_CTX_set_not_resumbl_sess_cb
22911 char SSL_CTX_set_not_resumbl_sess_cb ();
22912 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22918 return SSL_CTX_set_not_resumbl_sess_cb ();
22924 if ac_fn_c_try_link "$LINENO"; then :
22929 rm -f core conftest.err conftest.$ac_objext \
22930 conftest$ac_exeext conftest.$ac_ext
22933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22934 /* end confdefs.h. */
22937 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22939 # include <limits.h>
22941 # include <assert.h>
22943 #undef SSL_CTX_set_not_resumable_session_callback
22947 char SSL_CTX_set_not_resumable_session_callback ();
22948 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22954 return SSL_CTX_set_not_resumable_session_callback ();
22960 if ac_fn_c_try_link "$LINENO"; then :
22965 rm -f core conftest.err conftest.$ac_objext \
22966 conftest$ac_exeext conftest.$ac_ext
22970 if test "$tst_api" = "unknown"; then
22971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22972 /* end confdefs.h. */
22975 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22977 # include <limits.h>
22979 # include <assert.h>
22981 #undef SSL_CONF_CTX_new
22985 char SSL_CONF_CTX_new ();
22986 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22992 return SSL_CONF_CTX_new ();
22998 if ac_fn_c_try_link "$LINENO"; then :
23003 rm -f core conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
23006 if test "$tst_api" = "unknown"; then
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23011 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23013 # include <limits.h>
23015 # include <assert.h>
23017 #undef SSL_renegotiate_abbreviated
23021 char SSL_renegotiate_abbreviated ();
23022 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23028 return SSL_renegotiate_abbreviated ();
23034 if ac_fn_c_try_link "$LINENO"; then :
23039 rm -f core conftest.err conftest.$ac_objext \
23040 conftest$ac_exeext conftest.$ac_ext
23042 if test "$tst_api" = "unknown"; then
23043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23044 /* end confdefs.h. */
23047 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23049 # include <limits.h>
23051 # include <assert.h>
23053 #undef OBJ_add_sigid
23057 char OBJ_add_sigid ();
23058 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23064 return OBJ_add_sigid ();
23070 if ac_fn_c_try_link "$LINENO"; then :
23075 rm -f core conftest.err conftest.$ac_objext \
23076 conftest$ac_exeext conftest.$ac_ext
23078 if test "$tst_api" = "unknown"; then
23079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h. */
23083 #define ERR_set_mark innocuous_ERR_set_mark
23085 # include <limits.h>
23087 # include <assert.h>
23089 #undef ERR_set_mark
23093 char ERR_set_mark ();
23094 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23100 return ERR_set_mark ();
23106 if ac_fn_c_try_link "$LINENO"; then :
23111 rm -f core conftest.err conftest.$ac_objext \
23112 conftest$ac_exeext conftest.$ac_ext
23114 if test "$tst_api" = "unknown"; then
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h. */
23119 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23121 # include <limits.h>
23123 # include <assert.h>
23125 #undef ERR_peek_last_error
23129 char ERR_peek_last_error ();
23130 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23136 return ERR_peek_last_error ();
23142 if ac_fn_c_try_link "$LINENO"; then :
23147 rm -f core conftest.err conftest.$ac_objext \
23148 conftest$ac_exeext conftest.$ac_ext
23150 if test "$tst_api" = "unknown"; then
23151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152 /* end confdefs.h. */
23155 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23157 # include <limits.h>
23159 # include <assert.h>
23161 #undef c2i_ASN1_OBJECT
23165 char c2i_ASN1_OBJECT ();
23166 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23172 return c2i_ASN1_OBJECT ();
23178 if ac_fn_c_try_link "$LINENO"; then :
23183 rm -f core conftest.err conftest.$ac_objext \
23184 conftest$ac_exeext conftest.$ac_ext
23186 if test "$tst_api" = "unknown"; then
23187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188 /* end confdefs.h. */
23191 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23193 # include <limits.h>
23195 # include <assert.h>
23197 #undef SSL_CTX_set_purpose
23201 char SSL_CTX_set_purpose ();
23202 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23208 return SSL_CTX_set_purpose ();
23214 if ac_fn_c_try_link "$LINENO"; then :
23219 rm -f core conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23222 if test "$tst_api" = "unknown"; then
23223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23224 /* end confdefs.h. */
23227 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23229 # include <limits.h>
23231 # include <assert.h>
23237 char OBJ_obj2txt ();
23238 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23244 return OBJ_obj2txt ();
23250 if ac_fn_c_try_link "$LINENO"; then :
23255 rm -f core conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23258 if test "$tst_api" = "unknown"; then
23259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h. */
23263 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23265 # include <limits.h>
23267 # include <assert.h>
23269 #undef SSL_get_verify_depth
23273 char SSL_get_verify_depth ();
23274 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23280 return SSL_get_verify_depth ();
23286 if ac_fn_c_try_link "$LINENO"; then :
23291 rm -f core conftest.err conftest.$ac_objext \
23292 conftest$ac_exeext conftest.$ac_ext
23294 if test "$tst_api" = "unknown"; then
23295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h. */
23299 #define SSL_library_init innocuous_SSL_library_init
23301 # include <limits.h>
23303 # include <assert.h>
23305 #undef SSL_library_init
23309 char SSL_library_init ();
23310 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23316 return SSL_library_init ();
23322 if ac_fn_c_try_link "$LINENO"; then :
23327 rm -f core conftest.err conftest.$ac_objext \
23328 conftest$ac_exeext conftest.$ac_ext
23330 if test "$tst_api" = "unknown"; then
23331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23332 /* end confdefs.h. */
23335 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23337 # include <limits.h>
23339 # include <assert.h>
23341 #undef SSL_CTX_set_cipher_list
23345 char SSL_CTX_set_cipher_list ();
23346 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23352 return SSL_CTX_set_cipher_list ();
23358 if ac_fn_c_try_link "$LINENO"; then :
23363 rm -f core conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
23367 0x110) tst_show="1.1.0" ;;
23368 0x102) tst_show="1.0.2" ;;
23369 0x101) tst_show="1.0.1" ;;
23370 0x100) tst_show="1.0.0" ;;
23371 0x099) tst_show="0.9.9" ;;
23372 0x098) tst_show="0.9.8" ;;
23373 0x097) tst_show="0.9.7" ;;
23374 0x096) tst_show="0.9.6" ;;
23375 0x095) tst_show="0.9.5" ;;
23376 0x094) tst_show="0.9.4" ;;
23377 0x093) tst_show="0.9.3" ;;
23378 0x092) tst_show="0.9.2" ;;
23379 0x091) tst_show="0.9.1" ;;
23380 *) tst_show="unknown" ;;
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23383 $as_echo "$tst_show" >&6; }
23385 curl_openssl_api_library=$tst_api
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23391 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23392 if test "$curl_openssl_api_headers" = "unknown" ||
23393 test "$curl_openssl_api_library" = "unknown"; then
23395 tst_warns="Can not compare OpenSSL headers and library versions."
23396 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23398 tst_warns="OpenSSL headers and library versions do not match."
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23401 $as_echo "$tst_match" >&6; }
23402 if test "$tst_match" != "yes"; then
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23404 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23409 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23413 if test X"$OPENSSL_ENABLED" = X"1"; then
23415 # Check whether --with-egd-socket was given.
23416 if test "${with_egd_socket+set}" = set; then :
23417 withval=$with_egd_socket; EGD_SOCKET="$withval"
23421 if test -n "$EGD_SOCKET" ; then
23423 cat >>confdefs.h <<_ACEOF
23424 #define EGD_SOCKET "$EGD_SOCKET"
23430 # Check whether --with-random was given.
23431 if test "${with_random+set}" = set; then :
23432 withval=$with_random; RANDOM_FILE="$withval"
23435 if test x$cross_compiling != xyes; then
23436 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23438 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23439 if eval \${$as_ac_File+:} false; then :
23440 $as_echo_n "(cached) " >&6
23442 test "$cross_compiling" = yes &&
23443 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23444 if test -r ""/dev/urandom""; then
23445 eval "$as_ac_File=yes"
23447 eval "$as_ac_File=no"
23450 eval ac_res=\$$as_ac_File
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23452 $as_echo "$ac_res" >&6; }
23453 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23454 RANDOM_FILE="/dev/urandom"
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23459 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23465 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23468 cat >>confdefs.h <<_ACEOF
23469 #define RANDOM_FILE "$RANDOM_FILE"
23475 if test "$OPENSSL_ENABLED" = "1"; then
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23477 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23478 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23479 $as_echo_n "(cached) " >&6
23481 ac_check_lib_save_LIBS=$LIBS
23482 LIBS="-lcrypto $LIBS"
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23490 char SRP_Calc_client_key ();
23493 return SRP_Calc_client_key ();
23498 if ac_fn_c_try_link "$LINENO"; then :
23499 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23501 ac_cv_lib_crypto_SRP_Calc_client_key=no
23503 rm -f core conftest.err conftest.$ac_objext \
23504 conftest$ac_exeext conftest.$ac_ext
23505 LIBS=$ac_check_lib_save_LIBS
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23508 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23509 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23512 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23525 # Check whether --with-gnutls was given.
23526 if test "${with_gnutls+set}" = set; then :
23527 withval=$with_gnutls; OPT_GNUTLS=$withval
23531 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23534 if test X"$OPT_GNUTLS" != Xno; then
23542 if test "x$OPT_GNUTLS" = "xyes"; then
23544 if test -n "$PKG_CONFIG"; then
23545 PKGCONFIG="$PKG_CONFIG"
23547 if test -n "$ac_tool_prefix"; then
23548 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23549 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23551 $as_echo_n "checking for $ac_word... " >&6; }
23552 if ${ac_cv_path_PKGCONFIG+:} false; then :
23553 $as_echo_n "(cached) " >&6
23557 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23561 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23562 for as_dir in $as_dummy
23565 test -z "$as_dir" && as_dir=.
23566 for ac_exec_ext in '' $ac_executable_extensions; do
23567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23568 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23579 PKGCONFIG=$ac_cv_path_PKGCONFIG
23580 if test -n "$PKGCONFIG"; then
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23582 $as_echo "$PKGCONFIG" >&6; }
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23585 $as_echo "no" >&6; }
23590 if test -z "$ac_cv_path_PKGCONFIG"; then
23591 ac_pt_PKGCONFIG=$PKGCONFIG
23592 # Extract the first word of "pkg-config", so it can be a program name with args.
23593 set dummy pkg-config; ac_word=$2
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23595 $as_echo_n "checking for $ac_word... " >&6; }
23596 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23597 $as_echo_n "(cached) " >&6
23599 case $ac_pt_PKGCONFIG in
23601 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23605 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23606 for as_dir in $as_dummy
23609 test -z "$as_dir" && as_dir=.
23610 for ac_exec_ext in '' $ac_executable_extensions; do
23611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23612 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23623 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23624 if test -n "$ac_pt_PKGCONFIG"; then
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23626 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629 $as_echo "no" >&6; }
23632 if test "x$ac_pt_PKGCONFIG" = x; then
23635 case $cross_compiling:$ac_tool_warned in
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23639 ac_tool_warned=yes ;;
23641 PKGCONFIG=$ac_pt_PKGCONFIG
23644 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23649 if test "x$PKGCONFIG" != "xno"; then
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23651 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23653 if test -n ""; then
23654 PKG_CONFIG_LIBDIR=""
23655 export PKG_CONFIG_LIBDIR
23657 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23659 if test -z "$itexists"; then
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23665 $as_echo "found" >&6; }
23670 if test "$PKGCONFIG" != "no" ; then
23671 addlib=`$PKGCONFIG --libs-only-l gnutls`
23672 addld=`$PKGCONFIG --libs-only-L gnutls`
23673 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23674 version=`$PKGCONFIG --modversion gnutls`
23675 gtlslib=`echo $addld | $SED -e 's/-L//'`
23677 check=`libgnutls-config --version 2>/dev/null`
23678 if test -n "$check"; then
23679 addlib=`libgnutls-config --libs`
23680 addcflags=`libgnutls-config --cflags`
23681 version=`libgnutls-config --version`
23682 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23686 cfg=$OPT_GNUTLS/bin/libgnutls-config
23687 check=`$cfg --version 2>/dev/null`
23688 if test -n "$check"; then
23689 addlib=`$cfg --libs`
23690 addcflags=`$cfg --cflags`
23691 version=`$cfg --version`
23692 gtlslib=`$cfg --prefix`/lib$libsuff
23695 addld=-L$OPT_GNUTLS/lib$libsuff
23696 addcflags=-I$OPT_GNUTLS/include
23697 version="" # we just don't know
23698 gtlslib=$OPT_GNUTLS/lib$libsuff
23702 if test -z "$version"; then
23706 if test -n "$addlib"; then
23709 CLEANCPPFLAGS="$CPPFLAGS"
23710 CLEANLDFLAGS="$LDFLAGS"
23712 LIBS="$addlib $LIBS"
23713 LDFLAGS="$LDFLAGS $addld"
23714 if test "$addcflags" != "-I/usr/include"; then
23715 CPPFLAGS="$CPPFLAGS $addcflags"
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23719 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23720 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23721 $as_echo_n "(cached) " >&6
23723 ac_check_lib_save_LIBS=$LIBS
23724 LIBS="-lgnutls $LIBS"
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h. */
23732 char gnutls_check_version ();
23735 return gnutls_check_version ();
23740 if ac_fn_c_try_link "$LINENO"; then :
23741 ac_cv_lib_gnutls_gnutls_check_version=yes
23743 ac_cv_lib_gnutls_gnutls_check_version=no
23745 rm -f core conftest.err conftest.$ac_objext \
23746 conftest$ac_exeext conftest.$ac_ext
23747 LIBS=$ac_check_lib_save_LIBS
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23750 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23751 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23754 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23761 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23766 CPPFLAGS="$CLEANCPPFLAGS"
23771 if test "x$USE_GNUTLS" = "xyes"; then
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23773 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23775 if test -n "$gtlslib"; then
23776 if test "x$cross_compiling" != "xyes"; then
23777 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23778 export LD_LIBRARY_PATH
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23780 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23783 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
23785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23787 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23788 cat >>confdefs.h <<_ACEOF
23789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23800 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23804 if test "$GNUTLS_ENABLED" = "1"; then
23806 # First check if we can detect either crypto library via transitive linking
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23808 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23809 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23810 $as_echo_n "(cached) " >&6
23812 ac_check_lib_save_LIBS=$LIBS
23813 LIBS="-lgnutls $LIBS"
23814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h. */
23821 char nettle_MD5Init ();
23824 return nettle_MD5Init ();
23829 if ac_fn_c_try_link "$LINENO"; then :
23830 ac_cv_lib_gnutls_nettle_MD5Init=yes
23832 ac_cv_lib_gnutls_nettle_MD5Init=no
23834 rm -f core conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
23836 LIBS=$ac_check_lib_save_LIBS
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23839 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23840 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23841 USE_GNUTLS_NETTLE=1
23844 if test "$USE_GNUTLS_NETTLE" = ""; then
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23846 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23847 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23848 $as_echo_n "(cached) " >&6
23850 ac_check_lib_save_LIBS=$LIBS
23851 LIBS="-lgnutls $LIBS"
23852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853 /* end confdefs.h. */
23859 char gcry_control ();
23862 return gcry_control ();
23867 if ac_fn_c_try_link "$LINENO"; then :
23868 ac_cv_lib_gnutls_gcry_control=yes
23870 ac_cv_lib_gnutls_gcry_control=no
23872 rm -f core conftest.err conftest.$ac_objext \
23873 conftest$ac_exeext conftest.$ac_ext
23874 LIBS=$ac_check_lib_save_LIBS
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23877 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23878 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23879 USE_GNUTLS_NETTLE=0
23883 # If not, try linking directly to both of them to see if they are available
23884 if test "$USE_GNUTLS_NETTLE" = ""; then
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23886 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23887 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23888 $as_echo_n "(cached) " >&6
23890 ac_check_lib_save_LIBS=$LIBS
23891 LIBS="-lnettle $LIBS"
23892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23893 /* end confdefs.h. */
23899 char nettle_MD5Init ();
23902 return nettle_MD5Init ();
23907 if ac_fn_c_try_link "$LINENO"; then :
23908 ac_cv_lib_nettle_nettle_MD5Init=yes
23910 ac_cv_lib_nettle_nettle_MD5Init=no
23912 rm -f core conftest.err conftest.$ac_objext \
23913 conftest$ac_exeext conftest.$ac_ext
23914 LIBS=$ac_check_lib_save_LIBS
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23917 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23918 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23919 USE_GNUTLS_NETTLE=1
23923 if test "$USE_GNUTLS_NETTLE" = ""; then
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23925 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23926 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23927 $as_echo_n "(cached) " >&6
23929 ac_check_lib_save_LIBS=$LIBS
23930 LIBS="-lgcrypt $LIBS"
23931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h. */
23938 char gcry_control ();
23941 return gcry_control ();
23946 if ac_fn_c_try_link "$LINENO"; then :
23947 ac_cv_lib_gcrypt_gcry_control=yes
23949 ac_cv_lib_gcrypt_gcry_control=no
23951 rm -f core conftest.err conftest.$ac_objext \
23952 conftest$ac_exeext conftest.$ac_ext
23953 LIBS=$ac_check_lib_save_LIBS
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23956 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23957 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23958 USE_GNUTLS_NETTLE=0
23962 if test "$USE_GNUTLS_NETTLE" = ""; then
23963 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23965 if test "$USE_GNUTLS_NETTLE" = "1"; then
23967 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23969 USE_GNUTLS_NETTLE=1
23971 LIBS="-lnettle $LIBS"
23973 LIBS="-lgcrypt $LIBS"
23977 if test "$GNUTLS_ENABLED" = "1"; then
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23979 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23980 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23981 $as_echo_n "(cached) " >&6
23983 ac_check_lib_save_LIBS=$LIBS
23984 LIBS="-lgnutls $LIBS"
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h. */
23992 char gnutls_srp_verifier ();
23995 return gnutls_srp_verifier ();
24000 if ac_fn_c_try_link "$LINENO"; then :
24001 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24003 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24005 rm -f core conftest.err conftest.$ac_objext \
24006 conftest$ac_exeext conftest.$ac_ext
24007 LIBS=$ac_check_lib_save_LIBS
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24010 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24011 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24014 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24026 _cppflags=$CPPFLAGS
24029 # Check whether --with-polarssl was given.
24030 if test "${with_polarssl+set}" = set; then :
24031 withval=$with_polarssl; OPT_POLARSSL=$withval
24035 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24038 if test X"$OPT_POLARSSL" != Xno; then
24040 if test "$OPT_POLARSSL" = "yes"; then
24044 if test -z "$OPT_POLARSSL" ; then
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24047 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24048 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24049 $as_echo_n "(cached) " >&6
24051 ac_check_lib_save_LIBS=$LIBS
24052 LIBS="-lpolarssl $LIBS"
24053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24054 /* end confdefs.h. */
24060 char havege_init ();
24063 return havege_init ();
24068 if ac_fn_c_try_link "$LINENO"; then :
24069 ac_cv_lib_polarssl_havege_init=yes
24071 ac_cv_lib_polarssl_havege_init=no
24073 rm -f core conftest.err conftest.$ac_objext \
24074 conftest$ac_exeext conftest.$ac_ext
24075 LIBS=$ac_check_lib_save_LIBS
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24078 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24079 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24082 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24089 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24100 if test "x$USE_POLARSSL" != "xyes"; then
24101 addld=-L$OPT_POLARSSL/lib$libsuff
24102 addcflags=-I$OPT_POLARSSL/include
24103 polarssllib=$OPT_POLARSSL/lib$libsuff
24105 LDFLAGS="$LDFLAGS $addld"
24106 if test "$addcflags" != "-I/usr/include"; then
24107 CPPFLAGS="$CPPFLAGS $addcflags"
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24111 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24112 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24113 $as_echo_n "(cached) " >&6
24115 ac_check_lib_save_LIBS=$LIBS
24116 LIBS="-lpolarssl $LIBS"
24117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24118 /* end confdefs.h. */
24127 return ssl_init ();
24132 if ac_fn_c_try_link "$LINENO"; then :
24133 ac_cv_lib_polarssl_ssl_init=yes
24135 ac_cv_lib_polarssl_ssl_init=no
24137 rm -f core conftest.err conftest.$ac_objext \
24138 conftest$ac_exeext conftest.$ac_ext
24139 LIBS=$ac_check_lib_save_LIBS
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24142 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24143 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24146 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24153 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24157 CPPFLAGS=$_cppflags
24164 if test "x$USE_POLARSSL" = "xyes"; then
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24166 $as_echo "$as_me: detected PolarSSL" >&6;}
24168 LIBS="-lpolarssl $LIBS"
24170 if test -n "$polarssllib"; then
24171 if test "x$cross_compiling" != "xyes"; then
24172 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24173 export LD_LIBRARY_PATH
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24175 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24181 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24187 _cppflags=$CPPFLAGS
24190 # Check whether --with-mbedtls was given.
24191 if test "${with_mbedtls+set}" = set; then :
24192 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24196 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24199 if test X"$OPT_MBEDTLS" != Xno; then
24201 if test "$OPT_MBEDTLS" = "yes"; then
24205 if test -z "$OPT_MBEDTLS" ; then
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24208 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24209 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24210 $as_echo_n "(cached) " >&6
24212 ac_check_lib_save_LIBS=$LIBS
24213 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24215 /* end confdefs.h. */
24221 char mbedtls_havege_init ();
24224 return mbedtls_havege_init ();
24229 if ac_fn_c_try_link "$LINENO"; then :
24230 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24232 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24234 rm -f core conftest.err conftest.$ac_objext \
24235 conftest$ac_exeext conftest.$ac_ext
24236 LIBS=$ac_check_lib_save_LIBS
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24239 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24240 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24243 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24250 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24261 if test "x$USE_MBEDTLS" != "xyes"; then
24262 addld=-L$OPT_MBEDTLS/lib$libsuff
24263 addcflags=-I$OPT_MBEDTLS/include
24264 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24266 LDFLAGS="$LDFLAGS $addld"
24267 if test "$addcflags" != "-I/usr/include"; then
24268 CPPFLAGS="$CPPFLAGS $addcflags"
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24272 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24273 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24274 $as_echo_n "(cached) " >&6
24276 ac_check_lib_save_LIBS=$LIBS
24277 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279 /* end confdefs.h. */
24285 char mbedtls_ssl_init ();
24288 return mbedtls_ssl_init ();
24293 if ac_fn_c_try_link "$LINENO"; then :
24294 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24296 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24298 rm -f core conftest.err conftest.$ac_objext \
24299 conftest$ac_exeext conftest.$ac_ext
24300 LIBS=$ac_check_lib_save_LIBS
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24303 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24304 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24307 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24314 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24318 CPPFLAGS=$_cppflags
24325 if test "x$USE_MBEDTLS" = "xyes"; then
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24327 $as_echo "$as_me: detected mbedTLS" >&6;}
24329 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24331 if test -n "$mbedtlslib"; then
24332 if test "x$cross_compiling" != "xyes"; then
24333 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24334 export LD_LIBRARY_PATH
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24336 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24342 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24348 _cppflags=$CPPFLAGS
24351 # Check whether --with-cyassl was given.
24352 if test "${with_cyassl+set}" = set; then :
24353 withval=$with_cyassl; OPT_CYASSL=$withval
24357 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24360 if test X"$OPT_CYASSL" != Xno; then
24362 if test "$OPT_CYASSL" = "yes"; then
24367 cyassllibname=cyassl
24369 if test -z "$OPT_CYASSL" ; then
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24372 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24373 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24374 $as_echo_n "(cached) " >&6
24376 ac_check_lib_save_LIBS=$LIBS
24377 LIBS="-lcyassl $LIBS"
24378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24379 /* end confdefs.h. */
24385 char CyaSSL_Init ();
24388 return CyaSSL_Init ();
24393 if ac_fn_c_try_link "$LINENO"; then :
24394 ac_cv_lib_cyassl_CyaSSL_Init=yes
24396 ac_cv_lib_cyassl_CyaSSL_Init=no
24398 rm -f core conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
24400 LIBS=$ac_check_lib_save_LIBS
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24403 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24404 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24407 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24414 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24425 if test "x$USE_CYASSL" != "xyes"; then
24426 addld=-L$OPT_CYASSL/lib$libsuff
24427 addcflags=-I$OPT_CYASSL/include
24428 cyassllib=$OPT_CYASSL/lib$libsuff
24430 LDFLAGS="$LDFLAGS $addld"
24431 if test "$addcflags" != "-I/usr/include"; then
24432 CPPFLAGS="$CPPFLAGS $addcflags"
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24436 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24437 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24438 $as_echo_n "(cached) " >&6
24440 ac_check_lib_save_LIBS=$LIBS
24441 LIBS="-lcyassl $LIBS"
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h. */
24449 char CyaSSL_Init ();
24452 return CyaSSL_Init ();
24457 if ac_fn_c_try_link "$LINENO"; then :
24458 ac_cv_lib_cyassl_CyaSSL_Init=yes
24460 ac_cv_lib_cyassl_CyaSSL_Init=no
24462 rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24467 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24468 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24471 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24478 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24482 CPPFLAGS=$_cppflags
24494 if test "x$USE_CYASSL" != "xyes"; then
24495 addld=-L$OPT_CYASSL/lib$libsuff
24496 addcflags=-I$OPT_CYASSL/include
24497 cyassllib=$OPT_CYASSL/lib$libsuff
24499 LDFLAGS="$LDFLAGS $addld"
24500 if test "$addcflags" != "-I/usr/include"; then
24501 CPPFLAGS="$CPPFLAGS $addcflags"
24504 cyassllibname=wolfssl
24505 my_ac_save_LIBS="$LIBS"
24506 LIBS="-l$cyassllibname -lm $LIBS"
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24509 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24511 /* end confdefs.h. */
24514 /* These aren't needed for detection and confuse WolfSSL.
24515 They are set up properly later if it is detected. */
24517 #undef SIZEOF_LONG_LONG
24518 #include <cyassl/ssl.h>
24523 return CyaSSL_Init();
24530 if ac_fn_c_try_link "$LINENO"; then :
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24533 $as_echo "yes" >&6; }
24535 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24542 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24547 $as_echo "no" >&6; }
24548 CPPFLAGS=$_cppflags
24553 rm -f core conftest.err conftest.$ac_objext \
24554 conftest$ac_exeext conftest.$ac_ext
24555 LIBS="$my_ac_save_LIBS"
24558 if test "x$USE_CYASSL" = "xyes"; then
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24560 $as_echo "$as_me: detected $cyassllibname" >&6;}
24562 # The cast to long int works around a bug in the HP C Compiler
24563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24565 # This bug is HP SR number 8606223364.
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24567 $as_echo_n "checking size of long long... " >&6; }
24568 if ${ac_cv_sizeof_long_long+:} false; then :
24569 $as_echo_n "(cached) " >&6
24571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24574 if test "$ac_cv_type_long_long" = yes; then
24575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24577 as_fn_error 77 "cannot compute sizeof (long long)
24578 See \`config.log' for more details" "$LINENO" 5; }
24580 ac_cv_sizeof_long_long=0
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24586 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24590 cat >>confdefs.h <<_ACEOF
24591 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24596 for ac_header in cyassl/options.h
24598 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24599 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24600 cat >>confdefs.h <<_ACEOF
24601 #define HAVE_CYASSL_OPTIONS_H 1
24609 for ac_header in cyassl/error-ssl.h
24611 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24612 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24613 cat >>confdefs.h <<_ACEOF
24614 #define HAVE_CYASSL_ERROR_SSL_H 1
24622 LIBS="-l$cyassllibname -lm $LIBS"
24624 if test "x$cyassllibname" = "xwolfssl"; then
24625 for ac_func in wolfSSLv3_client_method \
24626 wolfSSL_CTX_UseSupportedCurve \
24627 wolfSSL_get_peer_certificate \
24630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24631 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24632 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24633 cat >>confdefs.h <<_ACEOF
24634 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24641 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24642 CyaSSL_get_peer_certificate
24644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24647 cat >>confdefs.h <<_ACEOF
24648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24656 if test -n "$cyassllib"; then
24657 if test "x$cross_compiling" != "xyes"; then
24658 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24659 export LD_LIBRARY_PATH
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24661 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24668 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24675 # Check whether --with-nss was given.
24676 if test "${with_nss+set}" = set; then :
24677 withval=$with_nss; OPT_NSS=$withval
24681 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24684 if test X"$OPT_NSS" != Xno; then
24692 if test "x$OPT_NSS" = "xyes"; then
24695 if test -n "$PKG_CONFIG"; then
24696 PKGCONFIG="$PKG_CONFIG"
24698 if test -n "$ac_tool_prefix"; then
24699 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24700 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24702 $as_echo_n "checking for $ac_word... " >&6; }
24703 if ${ac_cv_path_PKGCONFIG+:} false; then :
24704 $as_echo_n "(cached) " >&6
24708 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24712 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24713 for as_dir in $as_dummy
24716 test -z "$as_dir" && as_dir=.
24717 for ac_exec_ext in '' $ac_executable_extensions; do
24718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24719 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24730 PKGCONFIG=$ac_cv_path_PKGCONFIG
24731 if test -n "$PKGCONFIG"; then
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24733 $as_echo "$PKGCONFIG" >&6; }
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24736 $as_echo "no" >&6; }
24741 if test -z "$ac_cv_path_PKGCONFIG"; then
24742 ac_pt_PKGCONFIG=$PKGCONFIG
24743 # Extract the first word of "pkg-config", so it can be a program name with args.
24744 set dummy pkg-config; ac_word=$2
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24746 $as_echo_n "checking for $ac_word... " >&6; }
24747 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24748 $as_echo_n "(cached) " >&6
24750 case $ac_pt_PKGCONFIG in
24752 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24756 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24757 for as_dir in $as_dummy
24760 test -z "$as_dir" && as_dir=.
24761 for ac_exec_ext in '' $ac_executable_extensions; do
24762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24763 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24774 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24775 if test -n "$ac_pt_PKGCONFIG"; then
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24777 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24780 $as_echo "no" >&6; }
24783 if test "x$ac_pt_PKGCONFIG" = x; then
24786 case $cross_compiling:$ac_tool_warned in
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24790 ac_tool_warned=yes ;;
24792 PKGCONFIG=$ac_pt_PKGCONFIG
24795 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24800 if test "x$PKGCONFIG" != "xno"; then
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24802 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24804 if test -n ""; then
24805 PKG_CONFIG_LIBDIR=""
24806 export PKG_CONFIG_LIBDIR
24808 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24810 if test -z "$itexists"; then
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24813 $as_echo "no" >&6; }
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24816 $as_echo "found" >&6; }
24821 if test "$PKGCONFIG" != "no" ; then
24822 addlib=`$PKGCONFIG --libs nss`
24823 addcflags=`$PKGCONFIG --cflags nss`
24824 version=`$PKGCONFIG --modversion nss`
24825 nssprefix=`$PKGCONFIG --variable=prefix nss`
24828 check=`nss-config --version 2>/dev/null`
24829 if test -n "$check"; then
24830 addlib=`nss-config --libs`
24831 addcflags=`nss-config --cflags`
24832 version=`nss-config --version`
24833 nssprefix=`nss-config --prefix`
24841 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24842 if test -f "$NSS_PCDIR/nss.pc"; then
24844 if test -n "$PKG_CONFIG"; then
24845 PKGCONFIG="$PKG_CONFIG"
24847 if test -n "$ac_tool_prefix"; then
24848 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24849 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24851 $as_echo_n "checking for $ac_word... " >&6; }
24852 if ${ac_cv_path_PKGCONFIG+:} false; then :
24853 $as_echo_n "(cached) " >&6
24857 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24861 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24862 for as_dir in $as_dummy
24865 test -z "$as_dir" && as_dir=.
24866 for ac_exec_ext in '' $ac_executable_extensions; do
24867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24868 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24879 PKGCONFIG=$ac_cv_path_PKGCONFIG
24880 if test -n "$PKGCONFIG"; then
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24882 $as_echo "$PKGCONFIG" >&6; }
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24885 $as_echo "no" >&6; }
24890 if test -z "$ac_cv_path_PKGCONFIG"; then
24891 ac_pt_PKGCONFIG=$PKGCONFIG
24892 # Extract the first word of "pkg-config", so it can be a program name with args.
24893 set dummy pkg-config; ac_word=$2
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24895 $as_echo_n "checking for $ac_word... " >&6; }
24896 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24897 $as_echo_n "(cached) " >&6
24899 case $ac_pt_PKGCONFIG in
24901 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24905 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24906 for as_dir in $as_dummy
24909 test -z "$as_dir" && as_dir=.
24910 for ac_exec_ext in '' $ac_executable_extensions; do
24911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24912 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24923 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24924 if test -n "$ac_pt_PKGCONFIG"; then
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24926 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24929 $as_echo "no" >&6; }
24932 if test "x$ac_pt_PKGCONFIG" = x; then
24935 case $cross_compiling:$ac_tool_warned in
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24939 ac_tool_warned=yes ;;
24941 PKGCONFIG=$ac_pt_PKGCONFIG
24944 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24949 if test "x$PKGCONFIG" != "xno"; then
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24951 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24953 if test -n "$NSS_PCDIR"; then
24954 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24955 export PKG_CONFIG_LIBDIR
24957 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24959 if test -z "$itexists"; then
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24962 $as_echo "no" >&6; }
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24965 $as_echo "found" >&6; }
24969 if test "$PKGCONFIG" != "no" ; then
24971 if test -n "$NSS_PCDIR"; then
24972 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24973 export PKG_CONFIG_LIBDIR
24975 $PKGCONFIG --libs-only-L nss`
24977 if test -n "$NSS_PCDIR"; then
24978 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24979 export PKG_CONFIG_LIBDIR
24981 $PKGCONFIG --libs-only-l nss`
24983 if test -n "$NSS_PCDIR"; then
24984 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24985 export PKG_CONFIG_LIBDIR
24987 $PKGCONFIG --cflags nss`
24989 if test -n "$NSS_PCDIR"; then
24990 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24991 export PKG_CONFIG_LIBDIR
24993 $PKGCONFIG --modversion nss`
24995 if test -n "$NSS_PCDIR"; then
24996 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24997 export PKG_CONFIG_LIBDIR
24999 $PKGCONFIG --variable=prefix nss`
25004 if test -z "$addlib"; then
25005 # Without pkg-config, we'll kludge in some defaults
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25007 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25008 addld="-L$OPT_NSS/lib"
25009 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25010 addcflags="-I$OPT_NSS/include"
25015 CLEANLDFLAGS="$LDFLAGS"
25017 CLEANCPPFLAGS="$CPPFLAGS"
25019 LDFLAGS="$addld $LDFLAGS"
25020 LIBS="$addlib $LIBS"
25021 if test "$addcflags" != "-I/usr/include"; then
25022 CPPFLAGS="$CPPFLAGS $addcflags"
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25026 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25027 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25028 $as_echo_n "(cached) " >&6
25030 ac_check_lib_save_LIBS=$LIBS
25031 LIBS="-lnss3 $LIBS"
25032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25033 /* end confdefs.h. */
25039 char SSL_VersionRangeSet ();
25042 return SSL_VersionRangeSet ();
25047 if ac_fn_c_try_link "$LINENO"; then :
25048 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25050 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25052 rm -f core conftest.err conftest.$ac_objext \
25053 conftest$ac_exeext conftest.$ac_ext
25054 LIBS=$ac_check_lib_save_LIBS
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25057 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25058 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25061 $as_echo "#define USE_NSS 1" >>confdefs.h
25068 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25072 LDFLAGS="$CLEANLDFLAGS"
25074 CPPFLAGS="$CLEANCPPFLAGS"
25079 if test "x$USE_NSS" = "xyes"; then
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25081 $as_echo "$as_me: detected NSS version $version" >&6;}
25086 if test "x$cross_compiling" != "xyes"; then
25087 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25088 export LD_LIBRARY_PATH
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25090 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25095 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25101 # Check whether --with-axtls was given.
25102 if test "${with_axtls+set}" = set; then :
25103 withval=$with_axtls; OPT_AXTLS=$withval
25107 if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25109 if test X"$OPT_AXTLS" != Xno; then
25110 CLEANLDFLAGS="$LDFLAGS"
25111 CLEANCPPFLAGS="$CPPFLAGS"
25114 case "$OPT_AXTLS" in
25116 PREFIX_AXTLS=/usr/local
25117 LIB_AXTLS="$PREFIX_AXTLS/lib"
25118 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25119 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25125 PREFIX_AXTLS=$OPT_AXTLS
25126 LIB_AXTLS="$PREFIX_AXTLS/lib"
25127 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25128 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25133 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25134 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25135 $as_echo_n "(cached) " >&6
25137 ac_check_lib_save_LIBS=$LIBS
25138 LIBS="-laxtls $LIBS"
25139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25140 /* end confdefs.h. */
25146 char ssl_version ();
25149 return ssl_version ();
25154 if ac_fn_c_try_link "$LINENO"; then :
25155 ac_cv_lib_axtls_ssl_version=yes
25157 ac_cv_lib_axtls_ssl_version=no
25159 rm -f core conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
25161 LIBS=$ac_check_lib_save_LIBS
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25164 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25165 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25167 LIBS="-laxtls $LIBS"
25169 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25176 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25178 if test "x$cross_compiling" != "xyes"; then
25179 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25180 export LD_LIBRARY_PATH
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25182 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25187 LDFLAGS="$CLEANLDFLAGS"
25188 CPPFLAGS="$CLEANCPPFLAGS"
25194 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25197 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25200 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25201 { $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
25202 $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;}
25205 # one SSL backend is enabled
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25209 $as_echo "$as_me: built with one SSL backend" >&6;}
25212 # more than one SSL backend is enabled
25216 CURL_WITH_MULTI_SSL="1"
25218 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25221 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25225 if test -n "$ssl_backends"; then
25226 curl_ssl_msg="enabled ($ssl_backends)"
25229 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25231 if test -n "$SSL_ENABLED"
25233 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25235 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25237 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25240 cat >>confdefs.h <<_ACEOF
25241 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25250 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25253 # Check whether --with-ca-bundle was given.
25254 if test "${with_ca_bundle+set}" = set; then :
25255 withval=$with_ca_bundle;
25257 if test "x$want_ca" = "xyes"; then
25258 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25266 # Check whether --with-ca-path was given.
25267 if test "${with_ca_path+set}" = set; then :
25268 withval=$with_ca_path;
25269 want_capath="$withval"
25270 if test "x$want_capath" = "xyes"; then
25271 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25275 want_capath="unset"
25279 ca_warning=" (warning: certs not found)"
25280 capath_warning=" (warning: certs not found)"
25283 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25284 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25286 capath="$want_capath"
25287 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25290 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25291 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25292 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25294 capath="$want_capath"
25299 if test "x$cross_compiling" != "xyes"; then
25300 if test "x$want_ca" = "xunset"; then
25301 if test "x$prefix" != xNONE; then
25302 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25304 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25307 for a in /etc/ssl/certs/ca-certificates.crt \
25308 /etc/pki/tls/certs/ca-bundle.crt \
25309 /usr/share/ssl/certs/ca-bundle.crt \
25310 /usr/local/share/certs/ca-root-nss.crt \
25311 /etc/ssl/cert.pem \
25313 if test -f "$a"; then
25319 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25320 "x$OPENSSL_ENABLED" = "x1"; then
25321 check_capath="/etc/ssl/certs/"
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25325 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25329 if test "x$ca" = "xno" || test -f "$ca"; then
25333 if test "x$capath" != "xno"; then
25334 check_capath="$capath"
25337 if test ! -z "$check_capath"; then
25338 for a in "$check_capath"; do
25339 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
25340 if test "x$capath" = "xno"; then
25349 if test "x$capath" = "xno"; then
25353 if test "x$ca" != "xno"; then
25354 CURL_CA_BUNDLE='"'$ca'"'
25356 cat >>confdefs.h <<_ACEOF
25357 #define CURL_CA_BUNDLE "$ca"
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25362 $as_echo "$ca" >&6; }
25364 if test "x$capath" != "xno"; then
25365 CURL_CA_PATH="\"$capath\""
25367 cat >>confdefs.h <<_ACEOF
25368 #define CURL_CA_PATH "$capath"
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25372 $as_echo "$capath (capath)" >&6; }
25374 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25376 $as_echo "no" >&6; }
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25380 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25382 # Check whether --with-ca-fallback was given.
25383 if test "${with_ca_fallback+set}" = set; then :
25384 withval=$with_ca_fallback;
25385 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25386 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25390 with_ca_fallback="no"
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25394 $as_echo "$with_ca_fallback" >&6; }
25395 if test "x$with_ca_fallback" = "xyes"; then
25396 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25397 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25400 cat >>confdefs.h <<_ACEOF
25401 #define CURL_CA_FALLBACK 1
25409 # Check whether --with-libpsl was given.
25410 if test "${with_libpsl+set}" = set; then :
25411 withval=$with_libpsl; with_libpsl=$withval
25416 if test $with_libpsl != "no"; then
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25418 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25419 if ${ac_cv_search_psl_builtin+:} false; then :
25420 $as_echo_n "(cached) " >&6
25422 ac_func_search_save_LIBS=$LIBS
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h. */
25430 char psl_builtin ();
25433 return psl_builtin ();
25438 for ac_lib in '' psl; do
25439 if test -z "$ac_lib"; then
25440 ac_res="none required"
25443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25445 if ac_fn_c_try_link "$LINENO"; then :
25446 ac_cv_search_psl_builtin=$ac_res
25448 rm -f core conftest.err conftest.$ac_objext \
25450 if ${ac_cv_search_psl_builtin+:} false; then :
25454 if ${ac_cv_search_psl_builtin+:} false; then :
25457 ac_cv_search_psl_builtin=no
25459 rm conftest.$ac_ext
25460 LIBS=$ac_func_search_save_LIBS
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25463 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25464 ac_res=$ac_cv_search_psl_builtin
25465 if test "$ac_res" != no; then :
25466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25467 curl_psl_msg="yes";
25469 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25473 curl_psl_msg="no (libpsl not found)";
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25475 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25481 if test "$curl_psl_msg" = "yes"; then
25483 USE_LIBPSL_FALSE='#'
25485 USE_LIBPSL_TRUE='#'
25494 # Check whether --with-libmetalink was given.
25495 if test "${with_libmetalink+set}" = set; then :
25496 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25500 if test X"$OPT_LIBMETALINK" != Xno; then
25509 if test "x$OPT_LIBMETALINK" = "xyes"; then
25512 if test -n "$PKG_CONFIG"; then
25513 PKGCONFIG="$PKG_CONFIG"
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"
25617 if test "x$PKGCONFIG" != "xno"; then
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25619 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25621 if test -n ""; then
25622 PKG_CONFIG_LIBDIR=""
25623 export PKG_CONFIG_LIBDIR
25625 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25627 if test -z "$itexists"; then
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630 $as_echo "no" >&6; }
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25633 $as_echo "found" >&6; }
25638 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25640 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25641 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25644 if test "$PKGTEST" = "yes"; then
25646 if test -n "$PKG_CONFIG"; then
25647 PKGCONFIG="$PKG_CONFIG"
25649 if test -n "$ac_tool_prefix"; then
25650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25653 $as_echo_n "checking for $ac_word... " >&6; }
25654 if ${ac_cv_path_PKGCONFIG+:} false; then :
25655 $as_echo_n "(cached) " >&6
25659 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25664 for as_dir in $as_dummy
25667 test -z "$as_dir" && as_dir=.
25668 for ac_exec_ext in '' $ac_executable_extensions; do
25669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25670 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25681 PKGCONFIG=$ac_cv_path_PKGCONFIG
25682 if test -n "$PKGCONFIG"; then
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25684 $as_echo "$PKGCONFIG" >&6; }
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25687 $as_echo "no" >&6; }
25692 if test -z "$ac_cv_path_PKGCONFIG"; then
25693 ac_pt_PKGCONFIG=$PKGCONFIG
25694 # Extract the first word of "pkg-config", so it can be a program name with args.
25695 set dummy pkg-config; ac_word=$2
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25697 $as_echo_n "checking for $ac_word... " >&6; }
25698 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25699 $as_echo_n "(cached) " >&6
25701 case $ac_pt_PKGCONFIG in
25703 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25707 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25708 for as_dir in $as_dummy
25711 test -z "$as_dir" && as_dir=.
25712 for ac_exec_ext in '' $ac_executable_extensions; do
25713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25714 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25725 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25726 if test -n "$ac_pt_PKGCONFIG"; then
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25728 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25731 $as_echo "no" >&6; }
25734 if test "x$ac_pt_PKGCONFIG" = x; then
25737 case $cross_compiling:$ac_tool_warned in
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25741 ac_tool_warned=yes ;;
25743 PKGCONFIG=$ac_pt_PKGCONFIG
25746 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25751 if test "x$PKGCONFIG" != "xno"; then
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25753 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25755 if test -n "$LIBMETALINK_PCDIR"; then
25756 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25757 export PKG_CONFIG_LIBDIR
25759 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25761 if test -z "$itexists"; then
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25764 $as_echo "no" >&6; }
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25767 $as_echo "found" >&6; }
25773 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25775 if test -n "$LIBMETALINK_PCDIR"; then
25776 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25777 export PKG_CONFIG_LIBDIR
25779 $PKGCONFIG --libs-only-l libmetalink`
25781 if test -n "$LIBMETALINK_PCDIR"; then
25782 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25783 export PKG_CONFIG_LIBDIR
25785 $PKGCONFIG --libs-only-L libmetalink`
25787 if test -n "$LIBMETALINK_PCDIR"; then
25788 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25789 export PKG_CONFIG_LIBDIR
25791 $PKGCONFIG --cflags-only-I libmetalink`
25793 if test -n "$LIBMETALINK_PCDIR"; then
25794 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25795 export PKG_CONFIG_LIBDIR
25797 $PKGCONFIG --modversion libmetalink`
25798 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25800 if test -n "$addlib"; then
25802 clean_CPPFLAGS="$CPPFLAGS"
25803 clean_LDFLAGS="$LDFLAGS"
25805 CPPFLAGS="$clean_CPPFLAGS $addcflags"
25806 LDFLAGS="$clean_LDFLAGS $addld"
25807 LIBS="$addlib $clean_LIBS"
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25809 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25814 # include <metalink/metalink.h>
25819 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25827 if ac_fn_c_try_link "$LINENO"; then :
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25830 $as_echo "yes ($version)" >&6; }
25831 want_metalink="yes"
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25836 $as_echo "no ($version)" >&6; }
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25838 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25842 rm -f core conftest.err conftest.$ac_objext \
25843 conftest$ac_exeext conftest.$ac_ext
25844 CPPFLAGS="$clean_CPPFLAGS"
25845 LDFLAGS="$clean_LDFLAGS"
25847 if test "$want_metalink" = "yes"; then
25849 $as_echo "#define USE_METALINK 1" >>confdefs.h
25851 LIBMETALINK_LIBS=$addlib
25852 LIBMETALINK_LDFLAGS=$addld
25853 LIBMETALINK_CPPFLAGS=$addcflags
25857 curl_mtlnk_msg="enabled"
25866 # Check whether --with-libssh2 was given.
25867 if test "${with_libssh2+set}" = set; then :
25868 withval=$with_libssh2; OPT_LIBSSH2=$withval
25872 if test X"$OPT_LIBSSH2" != Xno; then
25873 CLEANLDFLAGS="$LDFLAGS"
25874 CLEANCPPFLAGS="$CPPFLAGS"
25877 case "$OPT_LIBSSH2" in
25880 if test -n "$PKG_CONFIG"; then
25881 PKGCONFIG="$PKG_CONFIG"
25883 if test -n "$ac_tool_prefix"; then
25884 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25885 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25887 $as_echo_n "checking for $ac_word... " >&6; }
25888 if ${ac_cv_path_PKGCONFIG+:} false; then :
25889 $as_echo_n "(cached) " >&6
25893 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25897 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25898 for as_dir in $as_dummy
25901 test -z "$as_dir" && as_dir=.
25902 for ac_exec_ext in '' $ac_executable_extensions; do
25903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25904 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25915 PKGCONFIG=$ac_cv_path_PKGCONFIG
25916 if test -n "$PKGCONFIG"; then
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25918 $as_echo "$PKGCONFIG" >&6; }
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921 $as_echo "no" >&6; }
25926 if test -z "$ac_cv_path_PKGCONFIG"; then
25927 ac_pt_PKGCONFIG=$PKGCONFIG
25928 # Extract the first word of "pkg-config", so it can be a program name with args.
25929 set dummy pkg-config; ac_word=$2
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25931 $as_echo_n "checking for $ac_word... " >&6; }
25932 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25933 $as_echo_n "(cached) " >&6
25935 case $ac_pt_PKGCONFIG in
25937 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25941 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25942 for as_dir in $as_dummy
25945 test -z "$as_dir" && as_dir=.
25946 for ac_exec_ext in '' $ac_executable_extensions; do
25947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25948 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25959 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25960 if test -n "$ac_pt_PKGCONFIG"; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25962 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965 $as_echo "no" >&6; }
25968 if test "x$ac_pt_PKGCONFIG" = x; then
25971 case $cross_compiling:$ac_tool_warned in
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25975 ac_tool_warned=yes ;;
25977 PKGCONFIG=$ac_pt_PKGCONFIG
25980 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25985 if test "x$PKGCONFIG" != "xno"; then
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25987 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25989 if test -n ""; then
25990 PKG_CONFIG_LIBDIR=""
25991 export PKG_CONFIG_LIBDIR
25993 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25995 if test -z "$itexists"; then
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25998 $as_echo "no" >&6; }
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26001 $as_echo "found" >&6; }
26006 if test "$PKGCONFIG" != "no" ; then
26007 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26008 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26009 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26010 version=`$PKGCONFIG --modversion libssh2`
26011 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26018 PREFIX_SSH2=$OPT_LIBSSH2
26022 if test -n "$PREFIX_SSH2"; then
26024 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26025 CPP_SSH2=-I${PREFIX_SSH2}/include
26026 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26029 LDFLAGS="$LDFLAGS $LD_SSH2"
26030 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26031 LIBS="$LIB_SSH2 $LIBS"
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26034 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26035 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26036 $as_echo_n "(cached) " >&6
26038 ac_check_lib_save_LIBS=$LIBS
26039 LIBS="-lssh2 $LIBS"
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26047 char libssh2_channel_open_ex ();
26050 return libssh2_channel_open_ex ();
26055 if ac_fn_c_try_link "$LINENO"; then :
26056 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26058 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26060 rm -f core conftest.err conftest.$ac_objext \
26061 conftest$ac_exeext conftest.$ac_ext
26062 LIBS=$ac_check_lib_save_LIBS
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26065 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26066 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26067 cat >>confdefs.h <<_ACEOF
26068 #define HAVE_LIBSSH2 1
26071 LIBS="-lssh2 $LIBS"
26076 for ac_header in libssh2.h
26078 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26079 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26080 cat >>confdefs.h <<_ACEOF
26081 #define HAVE_LIBSSH2_H 1
26083 curl_ssh_msg="enabled (libSSH2)"
26086 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26096 if test X"$OPT_LIBSSH2" != Xoff &&
26097 test "$LIBSSH2_ENABLED" != "1"; then
26098 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26101 if test "$LIBSSH2_ENABLED" = "1"; then
26102 if test -n "$DIR_SSH2"; then
26104 if test "x$cross_compiling" != "xyes"; then
26105 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26106 export LD_LIBRARY_PATH
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26108 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26112 LDFLAGS=$CLEANLDFLAGS
26113 CPPFLAGS=$CLEANCPPFLAGS
26121 # Check whether --with-librtmp was given.
26122 if test "${with_librtmp+set}" = set; then :
26123 withval=$with_librtmp; OPT_LIBRTMP=$withval
26127 if test X"$OPT_LIBRTMP" != Xno; then
26128 CLEANLDFLAGS="$LDFLAGS"
26129 CLEANCPPFLAGS="$CPPFLAGS"
26132 case "$OPT_LIBRTMP" in
26135 if test -n "$PKG_CONFIG"; then
26136 PKGCONFIG="$PKG_CONFIG"
26138 if test -n "$ac_tool_prefix"; then
26139 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26140 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26142 $as_echo_n "checking for $ac_word... " >&6; }
26143 if ${ac_cv_path_PKGCONFIG+:} false; then :
26144 $as_echo_n "(cached) " >&6
26148 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26152 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26153 for as_dir in $as_dummy
26156 test -z "$as_dir" && as_dir=.
26157 for ac_exec_ext in '' $ac_executable_extensions; do
26158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26159 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26170 PKGCONFIG=$ac_cv_path_PKGCONFIG
26171 if test -n "$PKGCONFIG"; then
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26173 $as_echo "$PKGCONFIG" >&6; }
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26176 $as_echo "no" >&6; }
26181 if test -z "$ac_cv_path_PKGCONFIG"; then
26182 ac_pt_PKGCONFIG=$PKGCONFIG
26183 # Extract the first word of "pkg-config", so it can be a program name with args.
26184 set dummy pkg-config; ac_word=$2
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26186 $as_echo_n "checking for $ac_word... " >&6; }
26187 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26188 $as_echo_n "(cached) " >&6
26190 case $ac_pt_PKGCONFIG in
26192 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26196 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26197 for as_dir in $as_dummy
26200 test -z "$as_dir" && as_dir=.
26201 for ac_exec_ext in '' $ac_executable_extensions; do
26202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26203 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26214 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26215 if test -n "$ac_pt_PKGCONFIG"; then
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26217 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26220 $as_echo "no" >&6; }
26223 if test "x$ac_pt_PKGCONFIG" = x; then
26226 case $cross_compiling:$ac_tool_warned in
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26230 ac_tool_warned=yes ;;
26232 PKGCONFIG=$ac_pt_PKGCONFIG
26235 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26240 if test "x$PKGCONFIG" != "xno"; then
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26242 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26244 if test -n ""; then
26245 PKG_CONFIG_LIBDIR=""
26246 export PKG_CONFIG_LIBDIR
26248 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26250 if test -z "$itexists"; then
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26253 $as_echo "no" >&6; }
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26256 $as_echo "found" >&6; }
26261 if test "$PKGCONFIG" != "no" ; then
26262 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26263 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26264 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26265 version=`$PKGCONFIG --modversion librtmp`
26266 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26268 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26277 PREFIX_RTMP=$OPT_LIBRTMP
26281 if test -n "$PREFIX_RTMP"; then
26282 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26283 CPP_RTMP=-I${PREFIX_RTMP}/include
26284 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26287 LDFLAGS="$LDFLAGS $LD_RTMP"
26288 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26289 LIBS="$LIB_RTMP $LIBS"
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26292 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26293 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26294 $as_echo_n "(cached) " >&6
26296 ac_check_lib_save_LIBS=$LIBS
26297 LIBS="-lrtmp $LIBS"
26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h. */
26308 return RTMP_Init ();
26313 if ac_fn_c_try_link "$LINENO"; then :
26314 ac_cv_lib_rtmp_RTMP_Init=yes
26316 ac_cv_lib_rtmp_RTMP_Init=no
26318 rm -f core conftest.err conftest.$ac_objext \
26319 conftest$ac_exeext conftest.$ac_ext
26320 LIBS=$ac_check_lib_save_LIBS
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26323 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26324 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26326 for ac_header in librtmp/rtmp.h
26328 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26329 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26330 cat >>confdefs.h <<_ACEOF
26331 #define HAVE_LIBRTMP_RTMP_H 1
26333 curl_rtmp_msg="enabled (librtmp)"
26336 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26347 LDFLAGS=$CLEANLDFLAGS
26348 CPPFLAGS=$CLEANCPPFLAGS
26354 if test X"$OPT_LIBRTMP" != Xoff &&
26355 test "$LIBRTMP_ENABLED" != "1"; then
26356 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26362 versioned_symbols_flavour=
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26364 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26365 # Check whether --enable-versioned-symbols was given.
26366 if test "${enable_versioned_symbols+set}" = set; then :
26367 enableval=$enable_versioned_symbols; case "$enableval" in
26368 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26369 $as_echo "yes" >&6; }
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26371 $as_echo_n "checking if libraries can be versioned... " >&6; }
26372 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26373 if test -z "$GLD"; then
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26375 $as_echo "no" >&6; }
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26377 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26380 $as_echo "yes" >&6; }
26381 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26382 versioned_symbols_flavour="MULTISSL_"
26383 elif test "x$OPENSSL_ENABLED" = "x1"; then
26384 versioned_symbols_flavour="OPENSSL_"
26385 elif test "x$GNUTLS_ENABLED" = "x1"; then
26386 versioned_symbols_flavour="GNUTLS_"
26387 elif test "x$NSS_ENABLED" = "x1"; then
26388 versioned_symbols_flavour="NSS_"
26389 elif test "x$POLARSSL_ENABLED" = "x1"; then
26390 versioned_symbols_flavour="POLARSSL_"
26391 elif test "x$CYASSL_ENABLED" = "x1"; then
26392 versioned_symbols_flavour="CYASSL_"
26393 elif test "x$AXTLS_ENABLED" = "x1"; then
26394 versioned_symbols_flavour="AXTLS_"
26395 elif test "x$WINSSL_ENABLED" = "x1"; then
26396 versioned_symbols_flavour="WINSSL_"
26397 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26398 versioned_symbols_flavour="DARWINSSL_"
26400 versioned_symbols_flavour=""
26402 versioned_symbols="yes"
26406 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26407 $as_echo "no" >&6; }
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26414 $as_echo "no" >&6; }
26420 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26422 if test "x$versioned_symbols" = 'xyes'; then
26423 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26424 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26426 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26427 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26433 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26434 OPT_WINIDN="default"
26436 # Check whether --with-winidn was given.
26437 if test "${with_winidn+set}" = set; then :
26438 withval=$with_winidn; OPT_WINIDN=$withval
26441 case "$OPT_WINIDN" in
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445 $as_echo "no" >&6; }
26449 want_winidn_path="default"
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26451 $as_echo "yes" >&6; }
26455 want_winidn_path="$withval"
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26457 $as_echo "yes ($withval)" >&6; }
26461 if test "$want_winidn" = "yes"; then
26462 clean_CPPFLAGS="$CPPFLAGS"
26463 clean_LDFLAGS="$LDFLAGS"
26465 WINIDN_LIBS="-lnormaliz"
26466 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26468 if test "$want_winidn_path" != "default"; then
26469 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26470 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26471 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26474 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26475 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26476 LIBS="$WINIDN_LIBS $LIBS"
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26479 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481 /* end confdefs.h. */
26484 #include <windows.h>
26489 IdnToUnicode(0, NULL, 0, NULL, 0);
26496 if ac_fn_c_try_link "$LINENO"; then :
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26499 $as_echo "yes" >&6; }
26500 tst_links_winidn="yes"
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26505 $as_echo "no" >&6; }
26506 tst_links_winidn="no"
26509 rm -f core conftest.err conftest.$ac_objext \
26510 conftest$ac_exeext conftest.$ac_ext
26512 if test "$tst_links_winidn" = "yes"; then
26514 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26517 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26521 curl_idn_msg="enabled (Windows-native)"
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26524 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26525 CPPFLAGS="$clean_CPPFLAGS"
26526 LDFLAGS="$clean_LDFLAGS"
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26533 $as_echo_n "checking whether to build with libidn2... " >&6; }
26536 # Check whether --with-libidn2 was given.
26537 if test "${with_libidn2+set}" = set; then :
26538 withval=$with_libidn2; OPT_IDN=$withval
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26545 $as_echo "no" >&6; }
26549 want_idn_path="default"
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26551 $as_echo "(assumed) yes" >&6; }
26555 want_idn_path="default"
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26557 $as_echo "yes" >&6; }
26561 want_idn_path="$withval"
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26563 $as_echo "yes ($withval)" >&6; }
26567 if test "$want_idn" = "yes"; then
26568 clean_CPPFLAGS="$CPPFLAGS"
26569 clean_LDFLAGS="$LDFLAGS"
26573 if test "$want_idn_path" != "default"; then
26574 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26576 if test -n "$PKG_CONFIG"; then
26577 PKGCONFIG="$PKG_CONFIG"
26579 if test -n "$ac_tool_prefix"; then
26580 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26581 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26583 $as_echo_n "checking for $ac_word... " >&6; }
26584 if ${ac_cv_path_PKGCONFIG+:} false; then :
26585 $as_echo_n "(cached) " >&6
26589 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26593 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26594 for as_dir in $as_dummy
26597 test -z "$as_dir" && as_dir=.
26598 for ac_exec_ext in '' $ac_executable_extensions; do
26599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26600 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26611 PKGCONFIG=$ac_cv_path_PKGCONFIG
26612 if test -n "$PKGCONFIG"; then
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26614 $as_echo "$PKGCONFIG" >&6; }
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26617 $as_echo "no" >&6; }
26622 if test -z "$ac_cv_path_PKGCONFIG"; then
26623 ac_pt_PKGCONFIG=$PKGCONFIG
26624 # Extract the first word of "pkg-config", so it can be a program name with args.
26625 set dummy pkg-config; ac_word=$2
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26627 $as_echo_n "checking for $ac_word... " >&6; }
26628 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26629 $as_echo_n "(cached) " >&6
26631 case $ac_pt_PKGCONFIG in
26633 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26637 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26638 for as_dir in $as_dummy
26641 test -z "$as_dir" && as_dir=.
26642 for ac_exec_ext in '' $ac_executable_extensions; do
26643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26644 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26655 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26656 if test -n "$ac_pt_PKGCONFIG"; then
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26658 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26661 $as_echo "no" >&6; }
26664 if test "x$ac_pt_PKGCONFIG" = x; then
26667 case $cross_compiling:$ac_tool_warned in
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26671 ac_tool_warned=yes ;;
26673 PKGCONFIG=$ac_pt_PKGCONFIG
26676 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26681 if test "x$PKGCONFIG" != "xno"; then
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26683 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26685 if test -n "$IDN_PCDIR"; then
26686 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26687 export PKG_CONFIG_LIBDIR
26689 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26691 if test -z "$itexists"; then
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26694 $as_echo "no" >&6; }
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26697 $as_echo "found" >&6; }
26701 if test "$PKGCONFIG" != "no"; then
26703 if test -n "$IDN_PCDIR"; then
26704 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26705 export PKG_CONFIG_LIBDIR
26707 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26709 if test -n "$IDN_PCDIR"; then
26710 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26711 export PKG_CONFIG_LIBDIR
26713 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26715 if test -n "$IDN_PCDIR"; then
26716 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26717 export PKG_CONFIG_LIBDIR
26719 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26720 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26723 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26724 IDN_CPPFLAGS="-I$want_idn_path/include"
26725 IDN_DIR="$want_idn_path/lib$libsuff"
26729 if test -n "$PKG_CONFIG"; then
26730 PKGCONFIG="$PKG_CONFIG"
26732 if test -n "$ac_tool_prefix"; then
26733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26734 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26736 $as_echo_n "checking for $ac_word... " >&6; }
26737 if ${ac_cv_path_PKGCONFIG+:} false; then :
26738 $as_echo_n "(cached) " >&6
26742 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26746 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26747 for as_dir in $as_dummy
26750 test -z "$as_dir" && as_dir=.
26751 for ac_exec_ext in '' $ac_executable_extensions; do
26752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26753 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26764 PKGCONFIG=$ac_cv_path_PKGCONFIG
26765 if test -n "$PKGCONFIG"; then
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26767 $as_echo "$PKGCONFIG" >&6; }
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26770 $as_echo "no" >&6; }
26775 if test -z "$ac_cv_path_PKGCONFIG"; then
26776 ac_pt_PKGCONFIG=$PKGCONFIG
26777 # Extract the first word of "pkg-config", so it can be a program name with args.
26778 set dummy pkg-config; ac_word=$2
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26780 $as_echo_n "checking for $ac_word... " >&6; }
26781 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26782 $as_echo_n "(cached) " >&6
26784 case $ac_pt_PKGCONFIG in
26786 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26790 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26791 for as_dir in $as_dummy
26794 test -z "$as_dir" && as_dir=.
26795 for ac_exec_ext in '' $ac_executable_extensions; do
26796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26797 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26808 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26809 if test -n "$ac_pt_PKGCONFIG"; then
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26811 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26814 $as_echo "no" >&6; }
26817 if test "x$ac_pt_PKGCONFIG" = x; then
26820 case $cross_compiling:$ac_tool_warned in
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26824 ac_tool_warned=yes ;;
26826 PKGCONFIG=$ac_pt_PKGCONFIG
26829 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26834 if test "x$PKGCONFIG" != "xno"; then
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26836 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26838 if test -n ""; then
26839 PKG_CONFIG_LIBDIR=""
26840 export PKG_CONFIG_LIBDIR
26842 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26844 if test -z "$itexists"; then
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26847 $as_echo "no" >&6; }
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26850 $as_echo "found" >&6; }
26854 if test "$PKGCONFIG" != "no"; then
26855 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26856 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26857 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26858 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26864 if test "$PKGCONFIG" != "no"; then
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26866 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26868 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26870 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26872 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26875 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26877 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26879 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26881 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26884 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
26885 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
26886 LIBS="$IDN_LIBS $LIBS"
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
26889 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
26890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26891 /* end confdefs.h. */
26894 #define idn2_lookup_ul innocuous_idn2_lookup_ul
26896 # include <limits.h>
26898 # include <assert.h>
26900 #undef idn2_lookup_ul
26904 char idn2_lookup_ul ();
26905 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
26911 return idn2_lookup_ul ();
26917 if ac_fn_c_try_link "$LINENO"; then :
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26920 $as_echo "yes" >&6; }
26921 tst_links_libidn="yes"
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926 $as_echo "no" >&6; }
26927 tst_links_libidn="no"
26930 rm -f core conftest.err conftest.$ac_objext \
26931 conftest$ac_exeext conftest.$ac_ext
26933 for ac_header in idn2.h
26935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26938 cat >>confdefs.h <<_ACEOF
26939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26947 if test "$tst_links_libidn" = "yes"; then
26949 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
26954 curl_idn_msg="enabled (libidn2)"
26955 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26956 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26957 export LD_LIBRARY_PATH
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26959 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26963 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26964 CPPFLAGS="$clean_CPPFLAGS"
26965 LDFLAGS="$clean_LDFLAGS"
26976 if test "x$disable_http" = "xyes"; then
26977 # without HTTP, nghttp2 is no use
26982 # Check whether --with-nghttp2 was given.
26983 if test "${with_nghttp2+set}" = set; then :
26984 withval=$with_nghttp2; OPT_H2=$withval
26997 want_h2_path="$withval/lib/pkgconfig"
27001 curl_h2_msg="disabled (--with-nghttp2)"
27002 if test X"$want_h2" != Xno; then
27003 CLEANLDFLAGS="$LDFLAGS"
27004 CLEANCPPFLAGS="$CPPFLAGS"
27008 if test -n "$PKG_CONFIG"; then
27009 PKGCONFIG="$PKG_CONFIG"
27011 if test -n "$ac_tool_prefix"; then
27012 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27013 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27015 $as_echo_n "checking for $ac_word... " >&6; }
27016 if ${ac_cv_path_PKGCONFIG+:} false; then :
27017 $as_echo_n "(cached) " >&6
27021 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27025 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27026 for as_dir in $as_dummy
27029 test -z "$as_dir" && as_dir=.
27030 for ac_exec_ext in '' $ac_executable_extensions; do
27031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27032 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27043 PKGCONFIG=$ac_cv_path_PKGCONFIG
27044 if test -n "$PKGCONFIG"; then
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27046 $as_echo "$PKGCONFIG" >&6; }
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27049 $as_echo "no" >&6; }
27054 if test -z "$ac_cv_path_PKGCONFIG"; then
27055 ac_pt_PKGCONFIG=$PKGCONFIG
27056 # Extract the first word of "pkg-config", so it can be a program name with args.
27057 set dummy pkg-config; ac_word=$2
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27059 $as_echo_n "checking for $ac_word... " >&6; }
27060 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27061 $as_echo_n "(cached) " >&6
27063 case $ac_pt_PKGCONFIG in
27065 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27069 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27070 for as_dir in $as_dummy
27073 test -z "$as_dir" && as_dir=.
27074 for ac_exec_ext in '' $ac_executable_extensions; do
27075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27076 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27087 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27088 if test -n "$ac_pt_PKGCONFIG"; then
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27090 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27093 $as_echo "no" >&6; }
27096 if test "x$ac_pt_PKGCONFIG" = x; then
27099 case $cross_compiling:$ac_tool_warned in
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27103 ac_tool_warned=yes ;;
27105 PKGCONFIG=$ac_pt_PKGCONFIG
27108 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27113 if test "x$PKGCONFIG" != "xno"; then
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27115 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27117 if test -n "$want_h2_path"; then
27118 PKG_CONFIG_LIBDIR="$want_h2_path"
27119 export PKG_CONFIG_LIBDIR
27121 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27123 if test -z "$itexists"; then
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27126 $as_echo "no" >&6; }
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27129 $as_echo "found" >&6; }
27134 if test "$PKGCONFIG" != "no" ; then
27136 if test -n "$want_h2_path"; then
27137 PKG_CONFIG_LIBDIR="$want_h2_path"
27138 export PKG_CONFIG_LIBDIR
27141 $PKGCONFIG --libs-only-l libnghttp2`
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27143 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27146 if test -n "$want_h2_path"; then
27147 PKG_CONFIG_LIBDIR="$want_h2_path"
27148 export PKG_CONFIG_LIBDIR
27150 $PKGCONFIG --cflags-only-I libnghttp2`
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27152 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27155 if test -n "$want_h2_path"; then
27156 PKG_CONFIG_LIBDIR="$want_h2_path"
27157 export PKG_CONFIG_LIBDIR
27160 $PKGCONFIG --libs-only-L libnghttp2`
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27162 $as_echo "$as_me: -L is $LD_H2" >&6;}
27164 LDFLAGS="$LDFLAGS $LD_H2"
27165 CPPFLAGS="$CPPFLAGS $CPP_H2"
27166 LIBS="$LIB_H2 $LIBS"
27168 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27171 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27172 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27173 $as_echo_n "(cached) " >&6
27175 ac_check_lib_save_LIBS=$LIBS
27176 LIBS="-lnghttp2 $LIBS"
27177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27178 /* end confdefs.h. */
27184 char nghttp2_option_set_no_recv_client_magic ();
27187 return nghttp2_option_set_no_recv_client_magic ();
27192 if ac_fn_c_try_link "$LINENO"; then :
27193 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27195 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27197 rm -f core conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext conftest.$ac_ext
27199 LIBS=$ac_check_lib_save_LIBS
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27202 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27203 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27205 for ac_header in nghttp2/nghttp2.h
27207 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27208 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_NGHTTP2_NGHTTP2_H 1
27212 curl_h2_msg="enabled (nghttp2)"
27215 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27226 LDFLAGS=$CLEANLDFLAGS
27227 CPPFLAGS=$CLEANCPPFLAGS
27234 if test X"$want_h2" != Xdefault; then
27235 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27242 OPT_ZSH_FPATH=default
27244 # Check whether --with-zsh-functions-dir was given.
27245 if test "${with_zsh_functions_dir+set}" = set; then :
27246 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27249 case "$OPT_ZSH_FPATH" in
27253 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27257 ZSH_FUNCTIONS_DIR="$withval"
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27264 $as_echo_n "checking for ANSI C header files... " >&6; }
27265 if ${ac_cv_header_stdc+:} false; then :
27266 $as_echo_n "(cached) " >&6
27268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27269 /* end confdefs.h. */
27270 #include <stdlib.h>
27271 #include <stdarg.h>
27272 #include <string.h>
27282 if ac_fn_c_try_compile "$LINENO"; then :
27283 ac_cv_header_stdc=yes
27285 ac_cv_header_stdc=no
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289 if test $ac_cv_header_stdc = yes; then
27290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27292 /* end confdefs.h. */
27293 #include <string.h>
27296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27297 $EGREP "memchr" >/dev/null 2>&1; then :
27300 ac_cv_header_stdc=no
27306 if test $ac_cv_header_stdc = yes; then
27307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309 /* end confdefs.h. */
27310 #include <stdlib.h>
27313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27314 $EGREP "free" >/dev/null 2>&1; then :
27317 ac_cv_header_stdc=no
27323 if test $ac_cv_header_stdc = yes; then
27324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27325 if test "$cross_compiling" = yes; then :
27328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27329 /* end confdefs.h. */
27331 #include <stdlib.h>
27332 #if ((' ' & 0x0FF) == 0x020)
27333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27336 # define ISLOWER(c) \
27337 (('a' <= (c) && (c) <= 'i') \
27338 || ('j' <= (c) && (c) <= 'r') \
27339 || ('s' <= (c) && (c) <= 'z'))
27340 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27348 for (i = 0; i < 256; i++)
27349 if (XOR (islower (i), ISLOWER (i))
27350 || toupper (i) != TOUPPER (i))
27355 if ac_fn_c_try_run "$LINENO"; then :
27358 ac_cv_header_stdc=no
27360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27361 conftest.$ac_objext conftest.beam conftest.$ac_ext
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27367 $as_echo "$ac_cv_header_stdc" >&6; }
27368 if test $ac_cv_header_stdc = yes; then
27370 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27377 $as_echo_n "checking for malloc.h... " >&6; }
27378 if ${curl_cv_header_malloc_h+:} false; then :
27379 $as_echo_n "(cached) " >&6
27382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27383 /* end confdefs.h. */
27386 #include <malloc.h>
27391 void *p = malloc(10);
27392 void *q = calloc(10,10);
27401 if ac_fn_c_try_compile "$LINENO"; then :
27403 curl_cv_header_malloc_h="yes"
27407 curl_cv_header_malloc_h="no"
27410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27414 $as_echo "$curl_cv_header_malloc_h" >&6; }
27415 if test "$curl_cv_header_malloc_h" = "yes"; then
27417 cat >>confdefs.h <<_ACEOF
27418 #define HAVE_MALLOC_H 1
27422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423 /* end confdefs.h. */
27426 #include <stdlib.h>
27431 void *p = malloc(10);
27432 void *q = calloc(10,10);
27441 if ac_fn_c_try_compile "$LINENO"; then :
27443 curl_cv_need_header_malloc_h="no"
27447 curl_cv_need_header_malloc_h="yes"
27450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27452 case "$curl_cv_need_header_malloc_h" in
27455 cat >>confdefs.h <<_ACEOF
27456 #define NEED_MALLOC_H 1
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27465 $as_echo_n "checking for memory.h... " >&6; }
27466 if ${curl_cv_header_memory_h+:} false; then :
27467 $as_echo_n "(cached) " >&6
27470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27471 /* end confdefs.h. */
27474 #include <memory.h>
27479 void *p = malloc(10);
27480 void *q = calloc(10,10);
27489 if ac_fn_c_try_compile "$LINENO"; then :
27491 curl_cv_header_memory_h="yes"
27495 curl_cv_header_memory_h="no"
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27502 $as_echo "$curl_cv_header_memory_h" >&6; }
27503 if test "$curl_cv_header_memory_h" = "yes"; then
27505 cat >>confdefs.h <<_ACEOF
27506 #define HAVE_MEMORY_H 1
27510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h. */
27514 #include <stdlib.h>
27519 void *p = malloc(10);
27520 void *q = calloc(10,10);
27529 if ac_fn_c_try_compile "$LINENO"; then :
27531 curl_cv_need_header_memory_h="no"
27535 curl_cv_need_header_memory_h="yes"
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27540 case "$curl_cv_need_header_memory_h" in
27543 cat >>confdefs.h <<_ACEOF
27544 #define NEED_MEMORY_H 1
27552 for ac_header in sys/types.h \
27594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27596 #ifdef HAVE_SYS_TYPES_H
27597 #include <sys/types.h>
27599 #ifdef HAVE_SYS_TIME_H
27600 #include <sys/time.h>
27602 #ifdef HAVE_SYS_SELECT_H
27603 #include <sys/select.h>
27605 #ifdef HAVE_SYS_SOCKET_H
27606 #include <sys/socket.h>
27608 #ifdef HAVE_NETINET_IN_H
27609 #include <netinet/in.h>
27611 #ifdef HAVE_SYS_UN_H
27612 #include <sys/un.h>
27617 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27618 cat >>confdefs.h <<_ACEOF
27619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27628 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27629 if ${ac_cv_c_const+:} false; then :
27630 $as_echo_n "(cached) " >&6
27632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27633 /* end confdefs.h. */
27638 #ifndef __cplusplus
27639 /* Ultrix mips cc rejects this sort of thing. */
27640 typedef int charset[2];
27641 const charset cs = { 0, 0 };
27642 /* SunOS 4.1.1 cc rejects this. */
27643 char const *const *pcpcc;
27645 /* NEC SVR4.0.2 mips cc rejects this. */
27646 struct point {int x, y;};
27647 static struct point const zero = {0,0};
27648 /* AIX XL C 1.02.0.0 rejects this.
27649 It does not let you subtract one const X* pointer from another in
27650 an arm of an if-expression whose if-part is not a constant
27652 const char *g = "string";
27653 pcpcc = &g + (g ? g-g : 0);
27654 /* HPUX 7.0 cc rejects these. */
27656 ppc = (char**) pcpcc;
27657 pcpcc = (char const *const *) ppc;
27658 { /* SCO 3.2v4 cc rejects this sort of thing. */
27661 char const *s = 0 ? (char *) 0 : (char const *) 0;
27666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27667 int x[] = {25, 17};
27668 const int *foo = &x[0];
27671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27672 typedef const int *iptr;
27676 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27678 struct s { int j; const int *ap[3]; } bx;
27679 struct s *b = &bx; b->j = 5;
27681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27682 const int foo = 10;
27683 if (!foo) return 0;
27685 return !cs[0] && !zero.x;
27692 if ac_fn_c_try_compile "$LINENO"; then :
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27700 $as_echo "$ac_cv_c_const" >&6; }
27701 if test $ac_cv_c_const = no; then
27703 $as_echo "#define const /**/" >>confdefs.h
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27709 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27710 if ${curl_cv_variadic_macros_c99+:} false; then :
27711 $as_echo_n "(cached) " >&6
27714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27715 /* end confdefs.h. */
27718 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27719 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27720 int fun3(int arg1, int arg2, int arg3);
27721 int fun2(int arg1, int arg2);
27722 int fun3(int arg1, int arg2, int arg3)
27723 { return arg1 + arg2 + arg3; }
27724 int fun2(int arg1, int arg2)
27725 { return arg1 + arg2; }
27730 int res3 = c99_vmacro3(1, 2, 3);
27731 int res2 = c99_vmacro2(1, 2);
27738 if ac_fn_c_try_compile "$LINENO"; then :
27740 curl_cv_variadic_macros_c99="yes"
27744 curl_cv_variadic_macros_c99="no"
27747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27751 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27752 case "$curl_cv_variadic_macros_c99" in
27755 cat >>confdefs.h <<_ACEOF
27756 #define HAVE_VARIADIC_MACROS_C99 1
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27762 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27763 if ${curl_cv_variadic_macros_gcc+:} false; then :
27764 $as_echo_n "(cached) " >&6
27767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27768 /* end confdefs.h. */
27771 #define gcc_vmacro3(first, args...) fun3(first, args)
27772 #define gcc_vmacro2(first, args...) fun2(first, args)
27773 int fun3(int arg1, int arg2, int arg3);
27774 int fun2(int arg1, int arg2);
27775 int fun3(int arg1, int arg2, int arg3)
27776 { return arg1 + arg2 + arg3; }
27777 int fun2(int arg1, int arg2)
27778 { return arg1 + arg2; }
27783 int res3 = gcc_vmacro3(1, 2, 3);
27784 int res2 = gcc_vmacro2(1, 2);
27791 if ac_fn_c_try_compile "$LINENO"; then :
27793 curl_cv_variadic_macros_gcc="yes"
27797 curl_cv_variadic_macros_gcc="no"
27800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27804 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27805 case "$curl_cv_variadic_macros_gcc" in
27808 cat >>confdefs.h <<_ACEOF
27809 #define HAVE_VARIADIC_MACROS_GCC 1
27815 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27816 if test "x$ac_cv_type_size_t" = xyes; then :
27820 cat >>confdefs.h <<_ACEOF
27821 #define size_t unsigned int
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27827 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27828 if ${ac_cv_header_time+:} false; then :
27829 $as_echo_n "(cached) " >&6
27831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27832 /* end confdefs.h. */
27833 #include <sys/types.h>
27834 #include <sys/time.h>
27839 if ((struct tm *) 0)
27845 if ac_fn_c_try_compile "$LINENO"; then :
27846 ac_cv_header_time=yes
27848 ac_cv_header_time=no
27850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27853 $as_echo "$ac_cv_header_time" >&6; }
27854 if test $ac_cv_header_time = yes; then
27856 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27861 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27864 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27866 cat >>confdefs.h <<_ACEOF
27867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27875 $as_echo_n "checking for struct timeval... " >&6; }
27876 if ${curl_cv_struct_timeval+:} false; then :
27877 $as_echo_n "(cached) " >&6
27880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27881 /* end confdefs.h. */
27885 #ifdef HAVE_WINDOWS_H
27886 #ifndef WIN32_LEAN_AND_MEAN
27887 #define WIN32_LEAN_AND_MEAN
27889 #include <windows.h>
27890 #ifdef HAVE_WINSOCK2_H
27891 #include <winsock2.h>
27893 #ifdef HAVE_WINSOCK_H
27894 #include <winsock.h>
27898 #ifdef HAVE_SYS_TYPES_H
27899 #include <sys/types.h>
27901 #ifdef HAVE_SYS_TIME_H
27902 #include <sys/time.h>
27903 #ifdef TIME_WITH_SYS_TIME
27911 #ifdef HAVE_SYS_SOCKET_H
27912 #include <sys/socket.h>
27927 if ac_fn_c_try_compile "$LINENO"; then :
27929 curl_cv_struct_timeval="yes"
27933 curl_cv_struct_timeval="no"
27936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
27940 $as_echo "$curl_cv_struct_timeval" >&6; }
27941 case "$curl_cv_struct_timeval" in
27944 cat >>confdefs.h <<_ACEOF
27945 #define HAVE_STRUCT_TIMEVAL 1
27953 if test "x$cross_compiling" != xyes; then
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27956 $as_echo_n "checking run-time libs availability... " >&6; }
27957 if test "$cross_compiling" = yes; then :
27958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27960 as_fn_error $? "cannot run test program while cross compiling
27961 See \`config.log' for more details" "$LINENO" 5; }
27963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27964 /* end confdefs.h. */
27972 if ac_fn_c_try_run "$LINENO"; then :
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27974 $as_echo "fine" >&6; }
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27977 $as_echo "failed" >&6; }
27978 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27982 conftest.$ac_objext conftest.beam conftest.$ac_ext
27989 # The cast to long int works around a bug in the HP C Compiler
27990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27992 # This bug is HP SR number 8606223364.
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27994 $as_echo_n "checking size of size_t... " >&6; }
27995 if ${ac_cv_sizeof_size_t+:} false; then :
27996 $as_echo_n "(cached) " >&6
27998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
28001 if test "$ac_cv_type_size_t" = yes; then
28002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28004 as_fn_error 77 "cannot compute sizeof (size_t)
28005 See \`config.log' for more details" "$LINENO" 5; }
28007 ac_cv_sizeof_size_t=0
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28013 $as_echo "$ac_cv_sizeof_size_t" >&6; }
28017 cat >>confdefs.h <<_ACEOF
28018 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28022 # The cast to long int works around a bug in the HP C Compiler
28023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28025 # This bug is HP SR number 8606223364.
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28027 $as_echo_n "checking size of long... " >&6; }
28028 if ${ac_cv_sizeof_long+:} false; then :
28029 $as_echo_n "(cached) " >&6
28031 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28034 if test "$ac_cv_type_long" = yes; then
28035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28037 as_fn_error 77 "cannot compute sizeof (long)
28038 See \`config.log' for more details" "$LINENO" 5; }
28040 ac_cv_sizeof_long=0
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28046 $as_echo "$ac_cv_sizeof_long" >&6; }
28050 cat >>confdefs.h <<_ACEOF
28051 #define SIZEOF_LONG $ac_cv_sizeof_long
28055 # The cast to long int works around a bug in the HP C Compiler
28056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28058 # This bug is HP SR number 8606223364.
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28060 $as_echo_n "checking size of int... " >&6; }
28061 if ${ac_cv_sizeof_int+:} false; then :
28062 $as_echo_n "(cached) " >&6
28064 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28067 if test "$ac_cv_type_int" = yes; then
28068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28070 as_fn_error 77 "cannot compute sizeof (int)
28071 See \`config.log' for more details" "$LINENO" 5; }
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28079 $as_echo "$ac_cv_sizeof_int" >&6; }
28083 cat >>confdefs.h <<_ACEOF
28084 #define SIZEOF_INT $ac_cv_sizeof_int
28088 # The cast to long int works around a bug in the HP C Compiler
28089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28091 # This bug is HP SR number 8606223364.
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28093 $as_echo_n "checking size of short... " >&6; }
28094 if ${ac_cv_sizeof_short+:} false; then :
28095 $as_echo_n "(cached) " >&6
28097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28100 if test "$ac_cv_type_short" = yes; then
28101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28103 as_fn_error 77 "cannot compute sizeof (short)
28104 See \`config.log' for more details" "$LINENO" 5; }
28106 ac_cv_sizeof_short=0
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28112 $as_echo "$ac_cv_sizeof_short" >&6; }
28116 cat >>confdefs.h <<_ACEOF
28117 #define SIZEOF_SHORT $ac_cv_sizeof_short
28121 # The cast to long int works around a bug in the HP C Compiler
28122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28124 # This bug is HP SR number 8606223364.
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28126 $as_echo_n "checking size of time_t... " >&6; }
28127 if ${ac_cv_sizeof_time_t+:} false; then :
28128 $as_echo_n "(cached) " >&6
28130 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28133 if test "$ac_cv_type_time_t" = yes; then
28134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28136 as_fn_error 77 "cannot compute sizeof (time_t)
28137 See \`config.log' for more details" "$LINENO" 5; }
28139 ac_cv_sizeof_time_t=0
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28145 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28149 cat >>confdefs.h <<_ACEOF
28150 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28154 # The cast to long int works around a bug in the HP C Compiler
28155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28157 # This bug is HP SR number 8606223364.
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28159 $as_echo_n "checking size of off_t... " >&6; }
28160 if ${ac_cv_sizeof_off_t+:} false; then :
28161 $as_echo_n "(cached) " >&6
28163 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28166 if test "$ac_cv_type_off_t" = yes; then
28167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28169 as_fn_error 77 "cannot compute sizeof (off_t)
28170 See \`config.log' for more details" "$LINENO" 5; }
28172 ac_cv_sizeof_off_t=0
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28178 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28182 cat >>confdefs.h <<_ACEOF
28183 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28189 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28190 # The cast to long int works around a bug in the HP C Compiler
28191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28193 # This bug is HP SR number 8606223364.
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28195 $as_echo_n "checking size of curl_off_t... " >&6; }
28196 if ${ac_cv_sizeof_curl_off_t+:} false; then :
28197 $as_echo_n "(cached) " >&6
28199 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t" "
28200 #include <curl/system.h>
28205 if test "$ac_cv_type_curl_off_t" = yes; then
28206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28208 as_fn_error 77 "cannot compute sizeof (curl_off_t)
28209 See \`config.log' for more details" "$LINENO" 5; }
28211 ac_cv_sizeof_curl_off_t=0
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28217 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28221 cat >>confdefs.h <<_ACEOF
28222 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28228 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28229 if test "x$ac_cv_type_long_long" = xyes; then :
28231 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28238 if test "xyes" = "x$longlong"; then
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28240 $as_echo_n "checking if numberLL works... " >&6; }
28241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h. */
28249 long long val = 1000LL;
28256 if ac_fn_c_try_compile "$LINENO"; then :
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28259 $as_echo "yes" >&6; }
28261 $as_echo "#define HAVE_LL 1" >>confdefs.h
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28267 $as_echo "no" >&6; }
28270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28274 # check for ssize_t
28275 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28276 if test "x$ac_cv_type_ssize_t" = xyes; then :
28280 $as_echo "#define ssize_t int" >>confdefs.h
28285 # check for bool type
28286 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28287 #ifdef HAVE_SYS_TYPES_H
28288 #include <sys/types.h>
28290 #ifdef HAVE_STDBOOL_H
28291 #include <stdbool.h>
28295 if test "x$ac_cv_type_bool" = xyes; then :
28298 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28305 curl_includes_ws2tcpip="\
28306 /* includes start */
28307 #ifdef HAVE_WINDOWS_H
28308 # ifndef WIN32_LEAN_AND_MEAN
28309 # define WIN32_LEAN_AND_MEAN
28311 # include <windows.h>
28312 # ifdef HAVE_WINSOCK2_H
28313 # include <winsock2.h>
28314 # ifdef HAVE_WS2TCPIP_H
28315 # include <ws2tcpip.h>
28319 /* includes end */"
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28322 $as_echo_n "checking for windows.h... " >&6; }
28323 if ${curl_cv_header_windows_h+:} false; then :
28324 $as_echo_n "(cached) " >&6
28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h. */
28332 #ifndef WIN32_LEAN_AND_MEAN
28333 #define WIN32_LEAN_AND_MEAN
28335 #include <windows.h>
28340 #if defined(__CYGWIN__) || defined(__CEGCC__)
28341 HAVE_WINDOWS_H shall not be defined.
28343 int dummy=2*WINVER;
28351 if ac_fn_c_try_compile "$LINENO"; then :
28353 curl_cv_header_windows_h="yes"
28357 curl_cv_header_windows_h="no"
28360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28364 $as_echo "$curl_cv_header_windows_h" >&6; }
28365 case "$curl_cv_header_windows_h" in
28368 cat >>confdefs.h <<_ACEOF
28369 #define HAVE_WINDOWS_H 1
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28377 $as_echo_n "checking for winsock2.h... " >&6; }
28378 if ${curl_cv_header_winsock2_h+:} false; then :
28379 $as_echo_n "(cached) " >&6
28382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h. */
28387 #ifndef WIN32_LEAN_AND_MEAN
28388 #define WIN32_LEAN_AND_MEAN
28390 #include <windows.h>
28391 #include <winsock2.h>
28396 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28397 HAVE_WINSOCK2_H shall not be defined.
28399 int dummy=2*IPPROTO_ESP;
28407 if ac_fn_c_try_compile "$LINENO"; then :
28409 curl_cv_header_winsock2_h="yes"
28413 curl_cv_header_winsock2_h="no"
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28420 $as_echo "$curl_cv_header_winsock2_h" >&6; }
28421 case "$curl_cv_header_winsock2_h" in
28424 cat >>confdefs.h <<_ACEOF
28425 #define HAVE_WINSOCK2_H 1
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28433 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28434 if ${curl_cv_header_ws2tcpip_h+:} false; then :
28435 $as_echo_n "(cached) " >&6
28438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28439 /* end confdefs.h. */
28443 #ifndef WIN32_LEAN_AND_MEAN
28444 #define WIN32_LEAN_AND_MEAN
28446 #include <windows.h>
28447 #include <winsock2.h>
28448 #include <ws2tcpip.h>
28453 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28454 HAVE_WS2TCPIP_H shall not be defined.
28456 int dummy=2*IP_PKTINFO;
28464 if ac_fn_c_try_compile "$LINENO"; then :
28466 curl_cv_header_ws2tcpip_h="yes"
28470 curl_cv_header_ws2tcpip_h="no"
28473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28477 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28478 case "$curl_cv_header_ws2tcpip_h" in
28481 cat >>confdefs.h <<_ACEOF
28482 #define HAVE_WS2TCPIP_H 1
28490 curl_includes_sys_socket="\
28491 /* includes start */
28492 #ifdef HAVE_SYS_TYPES_H
28493 # include <sys/types.h>
28495 #ifdef HAVE_SYS_SOCKET_H
28496 # include <sys/socket.h>
28498 /* includes end */"
28499 for ac_header in sys/types.h sys/socket.h
28501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28502 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28505 cat >>confdefs.h <<_ACEOF
28506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28515 curl_preprocess_callconv="\
28516 /* preprocess start */
28517 #ifdef HAVE_WINDOWS_H
28518 # define FUNCALLCONV __stdcall
28520 # define FUNCALLCONV
28522 /* preprocess end */"
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28528 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28529 curl_typeof_curl_socklen_t="unknown"
28530 for arg1 in int SOCKET; do
28531 for arg2 in 'struct sockaddr' void; do
28532 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28533 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h. */
28538 $curl_includes_ws2tcpip
28539 $curl_includes_sys_socket
28540 $curl_preprocess_callconv
28541 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28547 if(0 != getpeername(0, 0, lenptr))
28555 if ac_fn_c_try_compile "$LINENO"; then :
28557 curl_typeof_curl_socklen_t="$t"
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28565 for t in socklen_t int; do
28566 if test "$curl_typeof_curl_socklen_t" = "void"; then
28567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28568 /* end confdefs.h. */
28571 $curl_includes_sys_socket
28572 typedef $t curl_socklen_t;
28577 curl_socklen_t dummy;
28584 if ac_fn_c_try_compile "$LINENO"; then :
28586 curl_typeof_curl_socklen_t="$t"
28589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28593 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28594 if test "$curl_typeof_curl_socklen_t" = "void" ||
28595 test "$curl_typeof_curl_socklen_t" = "unknown"; then
28596 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28600 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28601 curl_sizeof_curl_socklen_t="unknown"
28602 curl_pull_headers_socklen_t="unknown"
28603 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
28604 tst_pull_header_checks='none ws2tcpip'
28605 tst_size_checks='4'
28607 tst_pull_header_checks='none systypes syssocket'
28608 tst_size_checks='4 8 2'
28610 for tst_size in $tst_size_checks; do
28611 for tst_pull_headers in $tst_pull_header_checks; do
28612 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28613 case $tst_pull_headers in
28615 tmp_includes="$curl_includes_ws2tcpip"
28618 tmp_includes="$curl_includes_sys_types"
28621 tmp_includes="$curl_includes_sys_socket"
28627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28628 /* end confdefs.h. */
28632 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28633 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28638 curl_socklen_t dummy;
28645 if ac_fn_c_try_compile "$LINENO"; then :
28647 curl_sizeof_curl_socklen_t="$tst_size"
28648 curl_pull_headers_socklen_t="$tst_pull_headers"
28651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28656 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28657 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28658 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28661 case $curl_pull_headers_socklen_t in
28664 cat >>confdefs.h <<_EOF
28665 #define CURL_PULL_WS2TCPIP_H 1
28671 cat >>confdefs.h <<_EOF
28672 #define CURL_PULL_SYS_TYPES_H 1
28678 cat >>confdefs.h <<_EOF
28679 #define CURL_PULL_SYS_TYPES_H 1
28683 cat >>confdefs.h <<_EOF
28684 #define CURL_PULL_SYS_SOCKET_H 1
28690 cat >>confdefs.h <<_EOF
28691 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28695 cat >>confdefs.h <<_EOF
28696 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28702 curl_includes_poll="\
28703 /* includes start */
28704 #ifdef HAVE_SYS_TYPES_H
28705 # include <sys/types.h>
28710 #ifdef HAVE_SYS_POLL_H
28711 # include <sys/poll.h>
28713 /* includes end */"
28714 for ac_header in sys/types.h poll.h sys/poll.h
28716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28720 cat >>confdefs.h <<_ACEOF
28721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28731 tst_poll_events_macro_defined="unknown"
28733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28734 /* end confdefs.h. */
28737 $curl_includes_poll
28742 #if defined(events) || defined(revents)
28745 force compilation error
28753 if ac_fn_c_try_compile "$LINENO"; then :
28755 tst_poll_events_macro_defined="yes"
28759 tst_poll_events_macro_defined="no"
28762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 if test "$tst_poll_events_macro_defined" = "yes"; then
28765 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28767 cat >>confdefs.h <<_EOF
28768 #define CURL_PULL_SYS_POLL_H 1
28777 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28779 #ifdef HAVE_WINDOWS_H
28780 #ifndef WIN32_LEAN_AND_MEAN
28781 #define WIN32_LEAN_AND_MEAN
28783 #include <windows.h>
28784 #ifdef HAVE_WINSOCK2_H
28785 #include <winsock2.h>
28787 #ifdef HAVE_WINSOCK_H
28788 #include <winsock.h>
28792 #ifdef HAVE_SYS_TYPES_H
28793 #include <sys/types.h>
28795 #ifdef HAVE_SYS_SOCKET_H
28796 #include <sys/socket.h>
28798 #ifdef HAVE_NETINET_IN_H
28799 #include <netinet/in.h>
28801 #ifdef HAVE_ARPA_INET_H
28802 #include <arpa/inet.h>
28807 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28812 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28813 if ${curl_cv_in_addr_t_equiv+:} false; then :
28814 $as_echo_n "(cached) " >&6
28817 curl_cv_in_addr_t_equiv="unknown"
28818 for t in "unsigned long" int size_t unsigned long; do
28819 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28821 /* end confdefs.h. */
28825 #ifdef HAVE_WINDOWS_H
28826 #ifndef WIN32_LEAN_AND_MEAN
28827 #define WIN32_LEAN_AND_MEAN
28829 #include <windows.h>
28830 #ifdef HAVE_WINSOCK2_H
28831 #include <winsock2.h>
28833 #ifdef HAVE_WINSOCK_H
28834 #include <winsock.h>
28838 #ifdef HAVE_SYS_TYPES_H
28839 #include <sys/types.h>
28841 #ifdef HAVE_SYS_SOCKET_H
28842 #include <sys/socket.h>
28844 #ifdef HAVE_NETINET_IN_H
28845 #include <netinet/in.h>
28847 #ifdef HAVE_ARPA_INET_H
28848 #include <arpa/inet.h>
28855 $t data = inet_addr ("1.2.3.4");
28862 if ac_fn_c_try_link "$LINENO"; then :
28864 curl_cv_in_addr_t_equiv="$t"
28867 rm -f core conftest.err conftest.$ac_objext \
28868 conftest$ac_exeext conftest.$ac_ext
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28874 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28875 case "$curl_cv_in_addr_t_equiv" in
28877 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28881 cat >>confdefs.h <<_ACEOF
28882 #define in_addr_t $curl_cv_in_addr_t_equiv
28893 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28895 #ifdef HAVE_WINDOWS_H
28896 #ifndef WIN32_LEAN_AND_MEAN
28897 #define WIN32_LEAN_AND_MEAN
28899 #include <windows.h>
28900 #ifdef HAVE_WINSOCK2_H
28901 #include <winsock2.h>
28904 #ifdef HAVE_SYS_TYPES_H
28905 #include <sys/types.h>
28907 #ifdef HAVE_SYS_SOCKET_H
28908 #include <sys/socket.h>
28910 #ifdef HAVE_NETINET_IN_H
28911 #include <netinet/in.h>
28913 #ifdef HAVE_ARPA_INET_H
28914 #include <arpa/inet.h>
28919 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28921 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28928 for ac_header in signal.h
28930 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28931 if test "x$ac_cv_header_signal_h" = xyes; then :
28932 cat >>confdefs.h <<_ACEOF
28933 #define HAVE_SIGNAL_H 1
28940 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28941 #ifdef HAVE_SIGNAL_H
28942 #include <signal.h>
28946 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28949 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28954 case "$ac_cv_type_sig_atomic_t" in
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28958 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28960 /* end confdefs.h. */
28963 #ifdef HAVE_SIGNAL_H
28964 #include <signal.h>
28970 static volatile sig_atomic_t dummy = 0;
28977 if ac_fn_c_try_link "$LINENO"; then :
28979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28980 $as_echo "no" >&6; }
28981 curl_cv_sig_atomic_t_volatile="no"
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28986 $as_echo "yes" >&6; }
28987 curl_cv_sig_atomic_t_volatile="yes"
28990 rm -f core conftest.err conftest.$ac_objext \
28991 conftest$ac_exeext conftest.$ac_ext
28993 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
28995 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29003 $as_echo_n "checking return type of signal handlers... " >&6; }
29004 if ${ac_cv_type_signal+:} false; then :
29005 $as_echo_n "(cached) " >&6
29007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29008 /* end confdefs.h. */
29009 #include <sys/types.h>
29010 #include <signal.h>
29014 return *(signal (0, 0)) (0) == 1;
29019 if ac_fn_c_try_compile "$LINENO"; then :
29020 ac_cv_type_signal=int
29022 ac_cv_type_signal=void
29024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29027 $as_echo "$ac_cv_type_signal" >&6; }
29029 cat >>confdefs.h <<_ACEOF
29030 #define RETSIGTYPE $ac_cv_type_signal
29036 for ac_header in sys/select.h sys/socket.h
29038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29041 cat >>confdefs.h <<_ACEOF
29042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29051 $as_echo_n "checking for select... " >&6; }
29052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29053 /* end confdefs.h. */
29057 #ifdef HAVE_WINDOWS_H
29058 #ifndef WIN32_LEAN_AND_MEAN
29059 #define WIN32_LEAN_AND_MEAN
29061 #include <windows.h>
29062 #ifdef HAVE_WINSOCK2_H
29063 #include <winsock2.h>
29065 #ifdef HAVE_WINSOCK_H
29066 #include <winsock.h>
29070 #ifdef HAVE_SYS_TYPES_H
29071 #include <sys/types.h>
29073 #ifdef HAVE_SYS_TIME_H
29074 #include <sys/time.h>
29075 #ifdef TIME_WITH_SYS_TIME
29083 #ifndef HAVE_WINDOWS_H
29084 #ifdef HAVE_SYS_SELECT_H
29085 #include <sys/select.h>
29087 #ifdef HAVE_SYS_SOCKET_H
29088 #include <sys/socket.h>
29095 select(0, 0, 0, 0, 0);
29102 if ac_fn_c_try_link "$LINENO"; then :
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29105 $as_echo "yes" >&6; }
29106 curl_cv_select="yes"
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29111 $as_echo "no" >&6; }
29112 curl_cv_select="no"
29115 rm -f core conftest.err conftest.$ac_objext \
29116 conftest$ac_exeext conftest.$ac_ext
29118 if test "$curl_cv_select" = "yes"; then
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29120 $as_echo_n "checking types of args and return type for select... " >&6; }
29121 if ${curl_cv_func_select_args+:} false; then :
29122 $as_echo_n "(cached) " >&6
29125 curl_cv_func_select_args="unknown"
29126 for sel_retv in 'int' 'ssize_t'; do
29127 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29128 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29129 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29130 if test "$curl_cv_func_select_args" = "unknown"; then
29131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29132 /* end confdefs.h. */
29136 #ifdef HAVE_WINDOWS_H
29137 #ifndef WIN32_LEAN_AND_MEAN
29138 #define WIN32_LEAN_AND_MEAN
29140 #include <windows.h>
29141 #ifdef HAVE_WINSOCK2_H
29142 #include <winsock2.h>
29144 #ifdef HAVE_WINSOCK_H
29145 #include <winsock.h>
29148 #define SELECTCALLCONV PASCAL
29150 #ifdef HAVE_SYS_TYPES_H
29151 #include <sys/types.h>
29153 #ifdef HAVE_SYS_TIME_H
29154 #include <sys/time.h>
29155 #ifdef TIME_WITH_SYS_TIME
29163 #ifndef HAVE_WINDOWS_H
29164 #ifdef HAVE_SYS_SELECT_H
29165 #include <sys/select.h>
29167 #ifdef HAVE_SYS_SOCKET_H
29168 #include <sys/socket.h>
29170 #define SELECTCALLCONV
29172 #ifndef HAVE_STRUCT_TIMEVAL
29178 extern $sel_retv SELECTCALLCONV
29180 __attribute__((overloadable))
29192 $sel_arg234 rfds=0;
29193 $sel_arg234 wfds=0;
29194 $sel_arg234 efds=0;
29195 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29202 if ac_fn_c_try_compile "$LINENO"; then :
29204 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29216 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29217 if test "$curl_cv_func_select_args" = "unknown"; then
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29219 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29221 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29223 select_prev_IFS=$IFS; IFS=','
29224 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29225 IFS=$select_prev_IFS
29228 sel_qual_type_arg5=$3
29231 cat >>confdefs.h <<_ACEOF
29232 #define SELECT_TYPE_ARG1 $1
29236 cat >>confdefs.h <<_ACEOF
29237 #define SELECT_TYPE_ARG234 $2
29241 cat >>confdefs.h <<_ACEOF
29242 #define SELECT_TYPE_RETV $4
29248 case $prev_sh_opts in
29256 case "$sel_qual_type_arg5" in
29258 sel_qual_arg5=const
29259 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29263 sel_type_arg5=$sel_qual_type_arg5
29268 cat >>confdefs.h <<_ACEOF
29269 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29273 cat >>confdefs.h <<_ACEOF
29274 #define SELECT_TYPE_ARG5 $sel_type_arg5
29278 case $prev_sh_opts in
29287 cat >>confdefs.h <<_ACEOF
29288 #define HAVE_SELECT 1
29291 curl_cv_func_select="yes"
29297 for ac_header in sys/types.h sys/socket.h
29299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29302 cat >>confdefs.h <<_ACEOF
29303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29312 $as_echo_n "checking for recv... " >&6; }
29313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29314 /* end confdefs.h. */
29318 #ifdef HAVE_WINDOWS_H
29319 #ifndef WIN32_LEAN_AND_MEAN
29320 #define WIN32_LEAN_AND_MEAN
29322 #include <windows.h>
29323 #ifdef HAVE_WINSOCK2_H
29324 #include <winsock2.h>
29326 #ifdef HAVE_WINSOCK_H
29327 #include <winsock.h>
29331 #ifdef HAVE_SYS_TYPES_H
29332 #include <sys/types.h>
29334 #ifdef HAVE_SYS_SOCKET_H
29335 #include <sys/socket.h>
29349 if ac_fn_c_try_link "$LINENO"; then :
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29352 $as_echo "yes" >&6; }
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29358 $as_echo "no" >&6; }
29362 rm -f core conftest.err conftest.$ac_objext \
29363 conftest$ac_exeext conftest.$ac_ext
29365 if test "$curl_cv_recv" = "yes"; then
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29367 $as_echo_n "checking types of args and return type for recv... " >&6; }
29368 if ${curl_cv_func_recv_args+:} false; then :
29369 $as_echo_n "(cached) " >&6
29372 curl_cv_func_recv_args="unknown"
29373 for recv_retv in 'int' 'ssize_t'; do
29374 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29375 for recv_arg2 in 'char *' 'void *'; do
29376 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29377 for recv_arg4 in 'int' 'unsigned int'; do
29378 if test "$curl_cv_func_recv_args" = "unknown"; then
29379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29380 /* end confdefs.h. */
29384 #ifdef HAVE_WINDOWS_H
29385 #ifndef WIN32_LEAN_AND_MEAN
29386 #define WIN32_LEAN_AND_MEAN
29388 #include <windows.h>
29389 #ifdef HAVE_WINSOCK2_H
29390 #include <winsock2.h>
29392 #ifdef HAVE_WINSOCK_H
29393 #include <winsock.h>
29396 #define RECVCALLCONV PASCAL
29398 #ifdef HAVE_SYS_TYPES_H
29399 #include <sys/types.h>
29401 #ifdef HAVE_SYS_SOCKET_H
29402 #include <sys/socket.h>
29404 #define RECVCALLCONV
29406 extern $recv_retv RECVCALLCONV
29408 __attribute__((overloadable))
29410 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29418 $recv_arg4 flags=0;
29419 $recv_retv res = recv(s, buf, len, flags);
29426 if ac_fn_c_try_compile "$LINENO"; then :
29428 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29441 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29442 if test "$curl_cv_func_recv_args" = "unknown"; then
29443 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29445 recv_prev_IFS=$IFS; IFS=','
29446 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29451 cat >>confdefs.h <<_ACEOF
29452 #define RECV_TYPE_ARG1 $1
29456 cat >>confdefs.h <<_ACEOF
29457 #define RECV_TYPE_ARG2 $2
29461 cat >>confdefs.h <<_ACEOF
29462 #define RECV_TYPE_ARG3 $3
29466 cat >>confdefs.h <<_ACEOF
29467 #define RECV_TYPE_ARG4 $4
29471 cat >>confdefs.h <<_ACEOF
29472 #define RECV_TYPE_RETV $5
29477 cat >>confdefs.h <<_ACEOF
29478 #define HAVE_RECV 1
29481 curl_cv_func_recv="yes"
29484 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29488 for ac_header in sys/types.h sys/socket.h
29490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29491 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29493 cat >>confdefs.h <<_ACEOF
29494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29503 $as_echo_n "checking for send... " >&6; }
29504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29505 /* end confdefs.h. */
29509 #ifdef HAVE_WINDOWS_H
29510 #ifndef WIN32_LEAN_AND_MEAN
29511 #define WIN32_LEAN_AND_MEAN
29513 #include <windows.h>
29514 #ifdef HAVE_WINSOCK2_H
29515 #include <winsock2.h>
29517 #ifdef HAVE_WINSOCK_H
29518 #include <winsock.h>
29522 #ifdef HAVE_SYS_TYPES_H
29523 #include <sys/types.h>
29525 #ifdef HAVE_SYS_SOCKET_H
29526 #include <sys/socket.h>
29540 if ac_fn_c_try_link "$LINENO"; then :
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29549 $as_echo "no" >&6; }
29553 rm -f core conftest.err conftest.$ac_objext \
29554 conftest$ac_exeext conftest.$ac_ext
29556 if test "$curl_cv_send" = "yes"; then
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29558 $as_echo_n "checking types of args and return type for send... " >&6; }
29559 if ${curl_cv_func_send_args+:} false; then :
29560 $as_echo_n "(cached) " >&6
29563 curl_cv_func_send_args="unknown"
29564 for send_retv in 'int' 'ssize_t'; do
29565 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29566 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29567 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29568 for send_arg4 in 'int' 'unsigned int'; do
29569 if test "$curl_cv_func_send_args" = "unknown"; then
29570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29571 /* end confdefs.h. */
29575 #ifdef HAVE_WINDOWS_H
29576 #ifndef WIN32_LEAN_AND_MEAN
29577 #define WIN32_LEAN_AND_MEAN
29579 #include <windows.h>
29580 #ifdef HAVE_WINSOCK2_H
29581 #include <winsock2.h>
29583 #ifdef HAVE_WINSOCK_H
29584 #include <winsock.h>
29587 #define SENDCALLCONV PASCAL
29589 #ifdef HAVE_SYS_TYPES_H
29590 #include <sys/types.h>
29592 #ifdef HAVE_SYS_SOCKET_H
29593 #include <sys/socket.h>
29595 #define SENDCALLCONV
29597 extern $send_retv SENDCALLCONV
29599 __attribute__((overloadable))
29601 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29608 $send_arg4 flags=0;
29609 $send_retv res = send(s, 0, len, flags);
29616 if ac_fn_c_try_compile "$LINENO"; then :
29618 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29631 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29632 if test "$curl_cv_func_send_args" = "unknown"; then
29633 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29635 send_prev_IFS=$IFS; IFS=','
29636 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29640 send_qual_type_arg2=$2
29643 cat >>confdefs.h <<_ACEOF
29644 #define SEND_TYPE_ARG1 $1
29648 cat >>confdefs.h <<_ACEOF
29649 #define SEND_TYPE_ARG3 $3
29653 cat >>confdefs.h <<_ACEOF
29654 #define SEND_TYPE_ARG4 $4
29658 cat >>confdefs.h <<_ACEOF
29659 #define SEND_TYPE_RETV $5
29665 case $prev_sh_opts in
29673 case "$send_qual_type_arg2" in
29675 send_qual_arg2=const
29676 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29680 send_type_arg2=$send_qual_type_arg2
29685 cat >>confdefs.h <<_ACEOF
29686 #define SEND_QUAL_ARG2 $send_qual_arg2
29690 cat >>confdefs.h <<_ACEOF
29691 #define SEND_TYPE_ARG2 $send_type_arg2
29695 case $prev_sh_opts in
29704 cat >>confdefs.h <<_ACEOF
29705 #define HAVE_SEND 1
29708 curl_cv_func_send="yes"
29711 as_fn_error $? "Unable to link function send" "$LINENO" 5
29715 for ac_header in sys/types.h sys/socket.h
29717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29718 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29720 cat >>confdefs.h <<_ACEOF
29721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29729 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29730 if ${curl_cv_msg_nosignal+:} false; then :
29731 $as_echo_n "(cached) " >&6
29734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29735 /* end confdefs.h. */
29739 #ifdef HAVE_WINDOWS_H
29740 #ifndef WIN32_LEAN_AND_MEAN
29741 #define WIN32_LEAN_AND_MEAN
29743 #include <windows.h>
29744 #ifdef HAVE_WINSOCK2_H
29745 #include <winsock2.h>
29747 #ifdef HAVE_WINSOCK_H
29748 #include <winsock.h>
29752 #ifdef HAVE_SYS_TYPES_H
29753 #include <sys/types.h>
29755 #ifdef HAVE_SYS_SOCKET_H
29756 #include <sys/socket.h>
29763 int flag=MSG_NOSIGNAL;
29770 if ac_fn_c_try_compile "$LINENO"; then :
29772 curl_cv_msg_nosignal="yes"
29776 curl_cv_msg_nosignal="no"
29779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
29783 $as_echo "$curl_cv_msg_nosignal" >&6; }
29784 case "$curl_cv_msg_nosignal" in
29787 cat >>confdefs.h <<_ACEOF
29788 #define HAVE_MSG_NOSIGNAL 1
29796 curl_includes_unistd="\
29797 /* includes start */
29798 #ifdef HAVE_SYS_TYPES_H
29799 # include <sys/types.h>
29801 #ifdef HAVE_UNISTD_H
29802 # include <unistd.h>
29804 /* includes end */"
29805 for ac_header in sys/types.h unistd.h
29807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29811 cat >>confdefs.h <<_ACEOF
29812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29822 tst_links_alarm="unknown"
29823 tst_proto_alarm="unknown"
29824 tst_compi_alarm="unknown"
29825 tst_allow_alarm="unknown"
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29828 $as_echo_n "checking if alarm can be linked... " >&6; }
29829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29830 /* end confdefs.h. */
29833 #define alarm innocuous_alarm
29835 # include <limits.h>
29837 # include <assert.h>
29844 #if defined __stub_alarm || defined __stub___alarm
29856 if ac_fn_c_try_link "$LINENO"; then :
29858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29859 $as_echo "yes" >&6; }
29860 tst_links_alarm="yes"
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29865 $as_echo "no" >&6; }
29866 tst_links_alarm="no"
29869 rm -f core conftest.err conftest.$ac_objext \
29870 conftest$ac_exeext conftest.$ac_ext
29872 if test "$tst_links_alarm" = "yes"; then
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29874 $as_echo_n "checking if alarm is prototyped... " >&6; }
29875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29876 /* end confdefs.h. */
29878 $curl_includes_unistd
29881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29882 $EGREP "alarm" >/dev/null 2>&1; then :
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29885 $as_echo "yes" >&6; }
29886 tst_proto_alarm="yes"
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29891 $as_echo "no" >&6; }
29892 tst_proto_alarm="no"
29899 if test "$tst_proto_alarm" = "yes"; then
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29901 $as_echo_n "checking if alarm is compilable... " >&6; }
29902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29903 /* end confdefs.h. */
29906 $curl_includes_unistd
29919 if ac_fn_c_try_compile "$LINENO"; then :
29921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29922 $as_echo "yes" >&6; }
29923 tst_compi_alarm="yes"
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29928 $as_echo "no" >&6; }
29929 tst_compi_alarm="no"
29932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29935 if test "$tst_compi_alarm" = "yes"; then
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29937 $as_echo_n "checking if alarm usage allowed... " >&6; }
29938 if test "x$curl_disallow_alarm" != "xyes"; then
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29940 $as_echo "yes" >&6; }
29941 tst_allow_alarm="yes"
29943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29944 $as_echo "no" >&6; }
29945 tst_allow_alarm="no"
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29950 $as_echo_n "checking if alarm might be used... " >&6; }
29951 if test "$tst_links_alarm" = "yes" &&
29952 test "$tst_proto_alarm" = "yes" &&
29953 test "$tst_compi_alarm" = "yes" &&
29954 test "$tst_allow_alarm" = "yes"; then
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29956 $as_echo "yes" >&6; }
29958 cat >>confdefs.h <<_ACEOF
29959 #define HAVE_ALARM 1
29962 curl_cv_func_alarm="yes"
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29965 $as_echo "no" >&6; }
29966 curl_cv_func_alarm="no"
29970 curl_includes_string="\
29971 /* includes start */
29972 #ifdef HAVE_SYS_TYPES_H
29973 # include <sys/types.h>
29975 #ifdef HAVE_STRING_H
29976 # include <string.h>
29978 #ifdef HAVE_STRINGS_H
29979 # include <strings.h>
29981 /* includes end */"
29982 for ac_header in sys/types.h string.h strings.h
29984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29985 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29988 cat >>confdefs.h <<_ACEOF
29989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29998 curl_includes_libgen="\
29999 /* includes start */
30000 #ifdef HAVE_SYS_TYPES_H
30001 # include <sys/types.h>
30003 #ifdef HAVE_LIBGEN_H
30004 # include <libgen.h>
30006 /* includes end */"
30007 for ac_header in sys/types.h libgen.h
30009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30013 cat >>confdefs.h <<_ACEOF
30014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30024 tst_links_basename="unknown"
30025 tst_proto_basename="unknown"
30026 tst_compi_basename="unknown"
30027 tst_allow_basename="unknown"
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30030 $as_echo_n "checking if basename can be linked... " >&6; }
30031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30032 /* end confdefs.h. */
30035 #define basename innocuous_basename
30037 # include <limits.h>
30039 # include <assert.h>
30046 #if defined __stub_basename || defined __stub___basename
30052 return basename ();
30058 if ac_fn_c_try_link "$LINENO"; then :
30060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30061 $as_echo "yes" >&6; }
30062 tst_links_basename="yes"
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30067 $as_echo "no" >&6; }
30068 tst_links_basename="no"
30071 rm -f core conftest.err conftest.$ac_objext \
30072 conftest$ac_exeext conftest.$ac_ext
30074 if test "$tst_links_basename" = "yes"; then
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30076 $as_echo_n "checking if basename is prototyped... " >&6; }
30077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078 /* end confdefs.h. */
30080 $curl_includes_string
30081 $curl_includes_libgen
30082 $curl_includes_unistd
30085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30086 $EGREP "basename" >/dev/null 2>&1; then :
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30089 $as_echo "yes" >&6; }
30090 tst_proto_basename="yes"
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30095 $as_echo "no" >&6; }
30096 tst_proto_basename="no"
30103 if test "$tst_proto_basename" = "yes"; then
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30105 $as_echo_n "checking if basename is compilable... " >&6; }
30106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30107 /* end confdefs.h. */
30110 $curl_includes_string
30111 $curl_includes_libgen
30112 $curl_includes_unistd
30117 if(0 != basename(0))
30125 if ac_fn_c_try_compile "$LINENO"; then :
30127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30128 $as_echo "yes" >&6; }
30129 tst_compi_basename="yes"
30133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30134 $as_echo "no" >&6; }
30135 tst_compi_basename="no"
30138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30141 if test "$tst_compi_basename" = "yes"; then
30142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30143 $as_echo_n "checking if basename usage allowed... " >&6; }
30144 if test "x$curl_disallow_basename" != "xyes"; then
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30146 $as_echo "yes" >&6; }
30147 tst_allow_basename="yes"
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30150 $as_echo "no" >&6; }
30151 tst_allow_basename="no"
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30156 $as_echo_n "checking if basename might be used... " >&6; }
30157 if test "$tst_links_basename" = "yes" &&
30158 test "$tst_proto_basename" = "yes" &&
30159 test "$tst_compi_basename" = "yes" &&
30160 test "$tst_allow_basename" = "yes"; then
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30162 $as_echo "yes" >&6; }
30164 cat >>confdefs.h <<_ACEOF
30165 #define HAVE_BASENAME 1
30168 curl_cv_func_basename="yes"
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30171 $as_echo "no" >&6; }
30172 curl_cv_func_basename="no"
30176 curl_includes_socket="\
30177 /* includes start */
30178 #ifdef HAVE_SYS_TYPES_H
30179 # include <sys/types.h>
30181 #ifdef HAVE_SOCKET_H
30182 # include <socket.h>
30184 /* includes end */"
30185 for ac_header in sys/types.h socket.h
30187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30191 cat >>confdefs.h <<_ACEOF
30192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30202 tst_links_closesocket="unknown"
30203 tst_proto_closesocket="unknown"
30204 tst_compi_closesocket="unknown"
30205 tst_allow_closesocket="unknown"
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30208 $as_echo_n "checking if closesocket can be linked... " >&6; }
30209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30210 /* end confdefs.h. */
30213 $curl_includes_winsock2
30214 $curl_includes_socket
30219 if(0 != closesocket(0))
30227 if ac_fn_c_try_link "$LINENO"; then :
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30230 $as_echo "yes" >&6; }
30231 tst_links_closesocket="yes"
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30236 $as_echo "no" >&6; }
30237 tst_links_closesocket="no"
30240 rm -f core conftest.err conftest.$ac_objext \
30241 conftest$ac_exeext conftest.$ac_ext
30243 if test "$tst_links_closesocket" = "yes"; then
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30245 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30247 /* end confdefs.h. */
30249 $curl_includes_winsock2
30250 $curl_includes_socket
30253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30254 $EGREP "closesocket" >/dev/null 2>&1; then :
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30257 $as_echo "yes" >&6; }
30258 tst_proto_closesocket="yes"
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30263 $as_echo "no" >&6; }
30264 tst_proto_closesocket="no"
30271 if test "$tst_proto_closesocket" = "yes"; then
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30273 $as_echo_n "checking if closesocket is compilable... " >&6; }
30274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30275 /* end confdefs.h. */
30278 $curl_includes_winsock2
30279 $curl_includes_socket
30284 if(0 != closesocket(0))
30292 if ac_fn_c_try_compile "$LINENO"; then :
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30295 $as_echo "yes" >&6; }
30296 tst_compi_closesocket="yes"
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30301 $as_echo "no" >&6; }
30302 tst_compi_closesocket="no"
30305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30308 if test "$tst_compi_closesocket" = "yes"; then
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30310 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30311 if test "x$curl_disallow_closesocket" != "xyes"; then
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30313 $as_echo "yes" >&6; }
30314 tst_allow_closesocket="yes"
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30317 $as_echo "no" >&6; }
30318 tst_allow_closesocket="no"
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30323 $as_echo_n "checking if closesocket might be used... " >&6; }
30324 if test "$tst_links_closesocket" = "yes" &&
30325 test "$tst_proto_closesocket" = "yes" &&
30326 test "$tst_compi_closesocket" = "yes" &&
30327 test "$tst_allow_closesocket" = "yes"; then
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30329 $as_echo "yes" >&6; }
30331 cat >>confdefs.h <<_ACEOF
30332 #define HAVE_CLOSESOCKET 1
30335 curl_cv_func_closesocket="yes"
30337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30338 $as_echo "no" >&6; }
30339 curl_cv_func_closesocket="no"
30344 tst_links_closesocket_camel="unknown"
30345 tst_proto_closesocket_camel="unknown"
30346 tst_compi_closesocket_camel="unknown"
30347 tst_allow_closesocket_camel="unknown"
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30350 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30352 /* end confdefs.h. */
30355 $curl_includes_sys_socket
30360 if(0 != CloseSocket(0))
30368 if ac_fn_c_try_link "$LINENO"; then :
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30371 $as_echo "yes" >&6; }
30372 tst_links_closesocket_camel="yes"
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30377 $as_echo "no" >&6; }
30378 tst_links_closesocket_camel="no"
30381 rm -f core conftest.err conftest.$ac_objext \
30382 conftest$ac_exeext conftest.$ac_ext
30384 if test "$tst_links_closesocket_camel" = "yes"; then
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30386 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30388 /* end confdefs.h. */
30390 $curl_includes_sys_socket
30393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30394 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30397 $as_echo "yes" >&6; }
30398 tst_proto_closesocket_camel="yes"
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30403 $as_echo "no" >&6; }
30404 tst_proto_closesocket_camel="no"
30411 if test "$tst_proto_closesocket_camel" = "yes"; then
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30413 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30415 /* end confdefs.h. */
30418 $curl_includes_sys_socket
30423 if(0 != CloseSocket(0))
30431 if ac_fn_c_try_compile "$LINENO"; then :
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30434 $as_echo "yes" >&6; }
30435 tst_compi_closesocket_camel="yes"
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30440 $as_echo "no" >&6; }
30441 tst_compi_closesocket_camel="no"
30444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30447 if test "$tst_compi_closesocket_camel" = "yes"; then
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30449 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30450 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30452 $as_echo "yes" >&6; }
30453 tst_allow_closesocket_camel="yes"
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30456 $as_echo "no" >&6; }
30457 tst_allow_closesocket_camel="no"
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30462 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30463 if test "$tst_links_closesocket_camel" = "yes" &&
30464 test "$tst_proto_closesocket_camel" = "yes" &&
30465 test "$tst_compi_closesocket_camel" = "yes" &&
30466 test "$tst_allow_closesocket_camel" = "yes"; then
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30468 $as_echo "yes" >&6; }
30470 cat >>confdefs.h <<_ACEOF
30471 #define HAVE_CLOSESOCKET_CAMEL 1
30474 curl_cv_func_closesocket_camel="yes"
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30477 $as_echo "no" >&6; }
30478 curl_cv_func_closesocket_camel="no"
30483 tst_links_connect="unknown"
30484 tst_proto_connect="unknown"
30485 tst_compi_connect="unknown"
30486 tst_allow_connect="unknown"
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30489 $as_echo_n "checking if connect can be linked... " >&6; }
30490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30491 /* end confdefs.h. */
30494 $curl_includes_winsock2
30495 $curl_includes_sys_socket
30496 $curl_includes_socket
30501 if(0 != connect(0, 0, 0))
30509 if ac_fn_c_try_link "$LINENO"; then :
30511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30512 $as_echo "yes" >&6; }
30513 tst_links_connect="yes"
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30518 $as_echo "no" >&6; }
30519 tst_links_connect="no"
30522 rm -f core conftest.err conftest.$ac_objext \
30523 conftest$ac_exeext conftest.$ac_ext
30525 if test "$tst_links_connect" = "yes"; then
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30527 $as_echo_n "checking if connect is prototyped... " >&6; }
30528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30529 /* end confdefs.h. */
30531 $curl_includes_winsock2
30532 $curl_includes_sys_socket
30533 $curl_includes_socket
30536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30537 $EGREP "connect" >/dev/null 2>&1; then :
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30540 $as_echo "yes" >&6; }
30541 tst_proto_connect="yes"
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30546 $as_echo "no" >&6; }
30547 tst_proto_connect="no"
30554 if test "$tst_proto_connect" = "yes"; then
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30556 $as_echo_n "checking if connect is compilable... " >&6; }
30557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30558 /* end confdefs.h. */
30561 $curl_includes_winsock2
30562 $curl_includes_sys_socket
30563 $curl_includes_socket
30568 if(0 != connect(0, 0, 0))
30576 if ac_fn_c_try_compile "$LINENO"; then :
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30579 $as_echo "yes" >&6; }
30580 tst_compi_connect="yes"
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30585 $as_echo "no" >&6; }
30586 tst_compi_connect="no"
30589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30592 if test "$tst_compi_connect" = "yes"; then
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30594 $as_echo_n "checking if connect usage allowed... " >&6; }
30595 if test "x$curl_disallow_connect" != "xyes"; then
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30597 $as_echo "yes" >&6; }
30598 tst_allow_connect="yes"
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30601 $as_echo "no" >&6; }
30602 tst_allow_connect="no"
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30607 $as_echo_n "checking if connect might be used... " >&6; }
30608 if test "$tst_links_connect" = "yes" &&
30609 test "$tst_proto_connect" = "yes" &&
30610 test "$tst_compi_connect" = "yes" &&
30611 test "$tst_allow_connect" = "yes"; then
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30613 $as_echo "yes" >&6; }
30615 cat >>confdefs.h <<_ACEOF
30616 #define HAVE_CONNECT 1
30619 curl_cv_func_connect="yes"
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622 $as_echo "no" >&6; }
30623 curl_cv_func_connect="no"
30627 curl_includes_fcntl="\
30628 /* includes start */
30629 #ifdef HAVE_SYS_TYPES_H
30630 # include <sys/types.h>
30632 #ifdef HAVE_UNISTD_H
30633 # include <unistd.h>
30635 #ifdef HAVE_FCNTL_H
30636 # include <fcntl.h>
30638 /* includes end */"
30639 for ac_header in sys/types.h unistd.h fcntl.h
30641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30642 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30645 cat >>confdefs.h <<_ACEOF
30646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30656 tst_links_fcntl="unknown"
30657 tst_proto_fcntl="unknown"
30658 tst_compi_fcntl="unknown"
30659 tst_allow_fcntl="unknown"
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30662 $as_echo_n "checking if fcntl can be linked... " >&6; }
30663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30664 /* end confdefs.h. */
30667 #define fcntl innocuous_fcntl
30669 # include <limits.h>
30671 # include <assert.h>
30678 #if defined __stub_fcntl || defined __stub___fcntl
30690 if ac_fn_c_try_link "$LINENO"; then :
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30693 $as_echo "yes" >&6; }
30694 tst_links_fcntl="yes"
30698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30699 $as_echo "no" >&6; }
30700 tst_links_fcntl="no"
30703 rm -f core conftest.err conftest.$ac_objext \
30704 conftest$ac_exeext conftest.$ac_ext
30706 if test "$tst_links_fcntl" = "yes"; then
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30708 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30710 /* end confdefs.h. */
30712 $curl_includes_fcntl
30715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30716 $EGREP "fcntl" >/dev/null 2>&1; then :
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30719 $as_echo "yes" >&6; }
30720 tst_proto_fcntl="yes"
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30725 $as_echo "no" >&6; }
30726 tst_proto_fcntl="no"
30733 if test "$tst_proto_fcntl" = "yes"; then
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30735 $as_echo_n "checking if fcntl is compilable... " >&6; }
30736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30737 /* end confdefs.h. */
30740 $curl_includes_fcntl
30745 if(0 != fcntl(0, 0, 0))
30753 if ac_fn_c_try_compile "$LINENO"; then :
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30756 $as_echo "yes" >&6; }
30757 tst_compi_fcntl="yes"
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30762 $as_echo "no" >&6; }
30763 tst_compi_fcntl="no"
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30769 if test "$tst_compi_fcntl" = "yes"; then
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30771 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30772 if test "x$curl_disallow_fcntl" != "xyes"; then
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30774 $as_echo "yes" >&6; }
30775 tst_allow_fcntl="yes"
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778 $as_echo "no" >&6; }
30779 tst_allow_fcntl="no"
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30784 $as_echo_n "checking if fcntl might be used... " >&6; }
30785 if test "$tst_links_fcntl" = "yes" &&
30786 test "$tst_proto_fcntl" = "yes" &&
30787 test "$tst_compi_fcntl" = "yes" &&
30788 test "$tst_allow_fcntl" = "yes"; then
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30790 $as_echo "yes" >&6; }
30792 cat >>confdefs.h <<_ACEOF
30793 #define HAVE_FCNTL 1
30796 curl_cv_func_fcntl="yes"
30799 tst_compi_fcntl_o_nonblock="unknown"
30800 tst_allow_fcntl_o_nonblock="unknown"
30803 sunos4* | aix3* | beos*)
30804 curl_disallow_fcntl_o_nonblock="yes"
30808 if test "$curl_cv_func_fcntl" = "yes"; then
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30810 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30812 /* end confdefs.h. */
30815 $curl_includes_fcntl
30821 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30829 if ac_fn_c_try_compile "$LINENO"; then :
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30832 $as_echo "yes" >&6; }
30833 tst_compi_fcntl_o_nonblock="yes"
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30838 $as_echo "no" >&6; }
30839 tst_compi_fcntl_o_nonblock="no"
30842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30845 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30847 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30848 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30850 $as_echo "yes" >&6; }
30851 tst_allow_fcntl_o_nonblock="yes"
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30854 $as_echo "no" >&6; }
30855 tst_allow_fcntl_o_nonblock="no"
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30860 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30861 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30862 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30864 $as_echo "yes" >&6; }
30866 cat >>confdefs.h <<_ACEOF
30867 #define HAVE_FCNTL_O_NONBLOCK 1
30870 curl_cv_func_fcntl_o_nonblock="yes"
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30873 $as_echo "no" >&6; }
30874 curl_cv_func_fcntl_o_nonblock="no"
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30879 $as_echo "no" >&6; }
30880 curl_cv_func_fcntl="no"
30884 curl_includes_stdio="\
30885 /* includes start */
30886 #ifdef HAVE_SYS_TYPES_H
30887 # include <sys/types.h>
30889 #ifdef HAVE_STDIO_H
30890 # include <stdio.h>
30892 /* includes end */"
30893 for ac_header in sys/types.h stdio.h
30895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30899 cat >>confdefs.h <<_ACEOF
30900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30910 tst_links_fdopen="unknown"
30911 tst_proto_fdopen="unknown"
30912 tst_compi_fdopen="unknown"
30913 tst_allow_fdopen="unknown"
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30916 $as_echo_n "checking if fdopen can be linked... " >&6; }
30917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30918 /* end confdefs.h. */
30921 #define fdopen innocuous_fdopen
30923 # include <limits.h>
30925 # include <assert.h>
30932 #if defined __stub_fdopen || defined __stub___fdopen
30944 if ac_fn_c_try_link "$LINENO"; then :
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30947 $as_echo "yes" >&6; }
30948 tst_links_fdopen="yes"
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30953 $as_echo "no" >&6; }
30954 tst_links_fdopen="no"
30957 rm -f core conftest.err conftest.$ac_objext \
30958 conftest$ac_exeext conftest.$ac_ext
30960 if test "$tst_links_fdopen" = "yes"; then
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30962 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30964 /* end confdefs.h. */
30966 $curl_includes_stdio
30969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30970 $EGREP "fdopen" >/dev/null 2>&1; then :
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30973 $as_echo "yes" >&6; }
30974 tst_proto_fdopen="yes"
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30979 $as_echo "no" >&6; }
30980 tst_proto_fdopen="no"
30987 if test "$tst_proto_fdopen" = "yes"; then
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30989 $as_echo_n "checking if fdopen is compilable... " >&6; }
30990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30991 /* end confdefs.h. */
30994 $curl_includes_stdio
30999 if(0 != fdopen(0, 0))
31007 if ac_fn_c_try_compile "$LINENO"; then :
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31010 $as_echo "yes" >&6; }
31011 tst_compi_fdopen="yes"
31015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31016 $as_echo "no" >&6; }
31017 tst_compi_fdopen="no"
31020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31023 if test "$tst_compi_fdopen" = "yes"; then
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31025 $as_echo_n "checking if fdopen usage allowed... " >&6; }
31026 if test "x$curl_disallow_fdopen" != "xyes"; then
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31028 $as_echo "yes" >&6; }
31029 tst_allow_fdopen="yes"
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31032 $as_echo "no" >&6; }
31033 tst_allow_fdopen="no"
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31038 $as_echo_n "checking if fdopen might be used... " >&6; }
31039 if test "$tst_links_fdopen" = "yes" &&
31040 test "$tst_proto_fdopen" = "yes" &&
31041 test "$tst_compi_fdopen" = "yes" &&
31042 test "$tst_allow_fdopen" = "yes"; then
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31044 $as_echo "yes" >&6; }
31046 cat >>confdefs.h <<_ACEOF
31047 #define HAVE_FDOPEN 1
31050 curl_cv_func_fdopen="yes"
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31053 $as_echo "no" >&6; }
31054 curl_cv_func_fdopen="no"
31058 curl_includes_netdb="\
31059 /* includes start */
31060 #ifdef HAVE_SYS_TYPES_H
31061 # include <sys/types.h>
31063 #ifdef HAVE_NETDB_H
31064 # include <netdb.h>
31066 /* includes end */"
31067 for ac_header in sys/types.h netdb.h
31069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31070 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31073 cat >>confdefs.h <<_ACEOF
31074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31084 tst_links_freeaddrinfo="unknown"
31085 tst_proto_freeaddrinfo="unknown"
31086 tst_compi_freeaddrinfo="unknown"
31087 tst_allow_freeaddrinfo="unknown"
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31090 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31092 /* end confdefs.h. */
31095 $curl_includes_ws2tcpip
31096 $curl_includes_sys_socket
31097 $curl_includes_netdb
31109 if ac_fn_c_try_link "$LINENO"; then :
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112 $as_echo "yes" >&6; }
31113 tst_links_freeaddrinfo="yes"
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31118 $as_echo "no" >&6; }
31119 tst_links_freeaddrinfo="no"
31122 rm -f core conftest.err conftest.$ac_objext \
31123 conftest$ac_exeext conftest.$ac_ext
31125 if test "$tst_links_freeaddrinfo" = "yes"; then
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31127 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31129 /* end confdefs.h. */
31131 $curl_includes_ws2tcpip
31132 $curl_includes_sys_socket
31133 $curl_includes_netdb
31136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31137 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31140 $as_echo "yes" >&6; }
31141 tst_proto_freeaddrinfo="yes"
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146 $as_echo "no" >&6; }
31147 tst_proto_freeaddrinfo="no"
31154 if test "$tst_proto_freeaddrinfo" = "yes"; then
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31156 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31158 /* end confdefs.h. */
31161 $curl_includes_ws2tcpip
31162 $curl_includes_sys_socket
31163 $curl_includes_netdb
31175 if ac_fn_c_try_compile "$LINENO"; then :
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31178 $as_echo "yes" >&6; }
31179 tst_compi_freeaddrinfo="yes"
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31184 $as_echo "no" >&6; }
31185 tst_compi_freeaddrinfo="no"
31188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31191 if test "$tst_compi_freeaddrinfo" = "yes"; then
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31193 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31194 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31196 $as_echo "yes" >&6; }
31197 tst_allow_freeaddrinfo="yes"
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31200 $as_echo "no" >&6; }
31201 tst_allow_freeaddrinfo="no"
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31206 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31207 if test "$tst_links_freeaddrinfo" = "yes" &&
31208 test "$tst_proto_freeaddrinfo" = "yes" &&
31209 test "$tst_compi_freeaddrinfo" = "yes" &&
31210 test "$tst_allow_freeaddrinfo" = "yes"; then
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31212 $as_echo "yes" >&6; }
31214 cat >>confdefs.h <<_ACEOF
31215 #define HAVE_FREEADDRINFO 1
31218 curl_cv_func_freeaddrinfo="yes"
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31221 $as_echo "no" >&6; }
31222 curl_cv_func_freeaddrinfo="no"
31226 curl_includes_ifaddrs="\
31227 /* includes start */
31228 #ifdef HAVE_SYS_TYPES_H
31229 # include <sys/types.h>
31231 #ifdef HAVE_SYS_SOCKET_H
31232 # include <sys/socket.h>
31234 #ifdef HAVE_NETINET_IN_H
31235 # include <netinet/in.h>
31237 #ifdef HAVE_IFADDRS_H
31238 # include <ifaddrs.h>
31240 /* includes end */"
31241 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31244 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31246 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31247 cat >>confdefs.h <<_ACEOF
31248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31258 tst_links_freeifaddrs="unknown"
31259 tst_proto_freeifaddrs="unknown"
31260 tst_compi_freeifaddrs="unknown"
31261 tst_allow_freeifaddrs="unknown"
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31264 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31266 /* end confdefs.h. */
31269 #define freeifaddrs innocuous_freeifaddrs
31271 # include <limits.h>
31273 # include <assert.h>
31279 char freeifaddrs ();
31280 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31286 return freeifaddrs ();
31292 if ac_fn_c_try_link "$LINENO"; then :
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31295 $as_echo "yes" >&6; }
31296 tst_links_freeifaddrs="yes"
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31301 $as_echo "no" >&6; }
31302 tst_links_freeifaddrs="no"
31305 rm -f core conftest.err conftest.$ac_objext \
31306 conftest$ac_exeext conftest.$ac_ext
31308 if test "$tst_links_freeifaddrs" = "yes"; then
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31310 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31312 /* end confdefs.h. */
31314 $curl_includes_ifaddrs
31317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31318 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31321 $as_echo "yes" >&6; }
31322 tst_proto_freeifaddrs="yes"
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31327 $as_echo "no" >&6; }
31328 tst_proto_freeifaddrs="no"
31335 if test "$tst_proto_freeifaddrs" = "yes"; then
31336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31337 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31339 /* end confdefs.h. */
31342 $curl_includes_ifaddrs
31354 if ac_fn_c_try_compile "$LINENO"; then :
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31357 $as_echo "yes" >&6; }
31358 tst_compi_freeifaddrs="yes"
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31363 $as_echo "no" >&6; }
31364 tst_compi_freeifaddrs="no"
31367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31370 if test "$tst_compi_freeifaddrs" = "yes"; then
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31372 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31373 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31375 $as_echo "yes" >&6; }
31376 tst_allow_freeifaddrs="yes"
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379 $as_echo "no" >&6; }
31380 tst_allow_freeifaddrs="no"
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31385 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31386 if test "$tst_links_freeifaddrs" = "yes" &&
31387 test "$tst_proto_freeifaddrs" = "yes" &&
31388 test "$tst_compi_freeifaddrs" = "yes" &&
31389 test "$tst_allow_freeifaddrs" = "yes"; then
31390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31391 $as_echo "yes" >&6; }
31393 cat >>confdefs.h <<_ACEOF
31394 #define HAVE_FREEIFADDRS 1
31397 curl_cv_func_freeifaddrs="yes"
31399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31400 $as_echo "no" >&6; }
31401 curl_cv_func_freeifaddrs="no"
31405 curl_includes_sys_xattr="\
31406 /* includes start */
31407 #ifdef HAVE_SYS_TYPES_H
31408 # include <sys/types.h>
31410 #ifdef HAVE_SYS_XATTR_H
31411 # include <sys/xattr.h>
31413 /* includes end */"
31414 for ac_header in sys/types.h sys/xattr.h
31416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31420 cat >>confdefs.h <<_ACEOF
31421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31431 tst_links_fsetxattr="unknown"
31432 tst_proto_fsetxattr="unknown"
31433 tst_compi_fsetxattr="unknown"
31434 tst_allow_fsetxattr="unknown"
31435 tst_nargs_fsetxattr="unknown"
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31438 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31440 /* end confdefs.h. */
31443 #define fsetxattr innocuous_fsetxattr
31445 # include <limits.h>
31447 # include <assert.h>
31454 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31460 return fsetxattr ();
31466 if ac_fn_c_try_link "$LINENO"; then :
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31469 $as_echo "yes" >&6; }
31470 tst_links_fsetxattr="yes"
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31475 $as_echo "no" >&6; }
31476 tst_links_fsetxattr="no"
31479 rm -f core conftest.err conftest.$ac_objext \
31480 conftest$ac_exeext conftest.$ac_ext
31482 if test "$tst_links_fsetxattr" = "yes"; then
31483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31484 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31486 /* end confdefs.h. */
31488 $curl_includes_sys_xattr
31491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31492 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31495 $as_echo "yes" >&6; }
31496 tst_proto_fsetxattr="yes"
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31501 $as_echo "no" >&6; }
31502 tst_proto_fsetxattr="no"
31509 if test "$tst_proto_fsetxattr" = "yes"; then
31510 if test "$tst_nargs_fsetxattr" = "unknown"; then
31511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31512 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31514 /* end confdefs.h. */
31517 $curl_includes_sys_xattr
31522 if(0 != fsetxattr(0, 0, 0, 0, 0))
31530 if ac_fn_c_try_compile "$LINENO"; then :
31532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31533 $as_echo "yes" >&6; }
31534 tst_compi_fsetxattr="yes"
31535 tst_nargs_fsetxattr="5"
31539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31540 $as_echo "no" >&6; }
31541 tst_compi_fsetxattr="no"
31544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31546 if test "$tst_nargs_fsetxattr" = "unknown"; then
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31548 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31550 /* end confdefs.h. */
31553 $curl_includes_sys_xattr
31558 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31566 if ac_fn_c_try_compile "$LINENO"; then :
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31569 $as_echo "yes" >&6; }
31570 tst_compi_fsetxattr="yes"
31571 tst_nargs_fsetxattr="6"
31575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31576 $as_echo "no" >&6; }
31577 tst_compi_fsetxattr="no"
31580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31583 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31584 if test "$tst_compi_fsetxattr" = "yes"; then
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31586 $as_echo "yes" >&6; }
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31589 $as_echo "no" >&6; }
31593 if test "$tst_compi_fsetxattr" = "yes"; then
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31595 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31596 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31598 $as_echo "yes" >&6; }
31599 tst_allow_fsetxattr="yes"
31601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31602 $as_echo "no" >&6; }
31603 tst_allow_fsetxattr="no"
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31608 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31609 if test "$tst_links_fsetxattr" = "yes" &&
31610 test "$tst_proto_fsetxattr" = "yes" &&
31611 test "$tst_compi_fsetxattr" = "yes" &&
31612 test "$tst_allow_fsetxattr" = "yes"; then
31613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31614 $as_echo "yes" >&6; }
31616 cat >>confdefs.h <<_ACEOF
31617 #define HAVE_FSETXATTR 1
31621 if test "$tst_nargs_fsetxattr" -eq "5"; then
31623 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31625 elif test "$tst_nargs_fsetxattr" -eq "6"; then
31627 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31631 curl_cv_func_fsetxattr="yes"
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31634 $as_echo "no" >&6; }
31635 curl_cv_func_fsetxattr="no"
31640 tst_links_ftruncate="unknown"
31641 tst_proto_ftruncate="unknown"
31642 tst_compi_ftruncate="unknown"
31643 tst_allow_ftruncate="unknown"
31645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31646 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31648 /* end confdefs.h. */
31651 #define ftruncate innocuous_ftruncate
31653 # include <limits.h>
31655 # include <assert.h>
31662 #if defined __stub_ftruncate || defined __stub___ftruncate
31668 return ftruncate ();
31674 if ac_fn_c_try_link "$LINENO"; then :
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31677 $as_echo "yes" >&6; }
31678 tst_links_ftruncate="yes"
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31683 $as_echo "no" >&6; }
31684 tst_links_ftruncate="no"
31687 rm -f core conftest.err conftest.$ac_objext \
31688 conftest$ac_exeext conftest.$ac_ext
31690 if test "$tst_links_ftruncate" = "yes"; then
31691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31692 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31694 /* end confdefs.h. */
31696 $curl_includes_unistd
31699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31700 $EGREP "ftruncate" >/dev/null 2>&1; then :
31702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31703 $as_echo "yes" >&6; }
31704 tst_proto_ftruncate="yes"
31708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31709 $as_echo "no" >&6; }
31710 tst_proto_ftruncate="no"
31717 if test "$tst_proto_ftruncate" = "yes"; then
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31719 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31721 /* end confdefs.h. */
31724 $curl_includes_unistd
31729 if(0 != ftruncate(0, 0))
31737 if ac_fn_c_try_compile "$LINENO"; then :
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31740 $as_echo "yes" >&6; }
31741 tst_compi_ftruncate="yes"
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31746 $as_echo "no" >&6; }
31747 tst_compi_ftruncate="no"
31750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31753 if test "$tst_compi_ftruncate" = "yes"; then
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31755 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31756 if test "x$curl_disallow_ftruncate" != "xyes"; then
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31758 $as_echo "yes" >&6; }
31759 tst_allow_ftruncate="yes"
31761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31762 $as_echo "no" >&6; }
31763 tst_allow_ftruncate="no"
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31768 $as_echo_n "checking if ftruncate might be used... " >&6; }
31769 if test "$tst_links_ftruncate" = "yes" &&
31770 test "$tst_proto_ftruncate" = "yes" &&
31771 test "$tst_compi_ftruncate" = "yes" &&
31772 test "$tst_allow_ftruncate" = "yes"; then
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31774 $as_echo "yes" >&6; }
31776 cat >>confdefs.h <<_ACEOF
31777 #define HAVE_FTRUNCATE 1
31780 curl_cv_func_ftruncate="yes"
31782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31783 $as_echo "no" >&6; }
31784 curl_cv_func_ftruncate="no"
31788 curl_includes_stdlib="\
31789 /* includes start */
31790 #ifdef HAVE_SYS_TYPES_H
31791 # include <sys/types.h>
31793 #ifdef HAVE_STDLIB_H
31794 # include <stdlib.h>
31796 /* includes end */"
31797 for ac_header in sys/types.h stdlib.h
31799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31803 cat >>confdefs.h <<_ACEOF
31804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31814 tst_links_getaddrinfo="unknown"
31815 tst_proto_getaddrinfo="unknown"
31816 tst_compi_getaddrinfo="unknown"
31817 tst_works_getaddrinfo="unknown"
31818 tst_allow_getaddrinfo="unknown"
31819 tst_tsafe_getaddrinfo="unknown"
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31822 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
31823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31824 /* end confdefs.h. */
31827 $curl_includes_ws2tcpip
31828 $curl_includes_sys_socket
31829 $curl_includes_netdb
31834 if(0 != getaddrinfo(0, 0, 0, 0))
31842 if ac_fn_c_try_link "$LINENO"; then :
31844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31845 $as_echo "yes" >&6; }
31846 tst_links_getaddrinfo="yes"
31850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31851 $as_echo "no" >&6; }
31852 tst_links_getaddrinfo="no"
31855 rm -f core conftest.err conftest.$ac_objext \
31856 conftest$ac_exeext conftest.$ac_ext
31858 if test "$tst_links_getaddrinfo" = "yes"; then
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31860 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31862 /* end confdefs.h. */
31864 $curl_includes_ws2tcpip
31865 $curl_includes_sys_socket
31866 $curl_includes_netdb
31869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31870 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31873 $as_echo "yes" >&6; }
31874 tst_proto_getaddrinfo="yes"
31878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31879 $as_echo "no" >&6; }
31880 tst_proto_getaddrinfo="no"
31887 if test "$tst_proto_getaddrinfo" = "yes"; then
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31889 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31891 /* end confdefs.h. */
31894 $curl_includes_ws2tcpip
31895 $curl_includes_sys_socket
31896 $curl_includes_netdb
31901 if(0 != getaddrinfo(0, 0, 0, 0))
31909 if ac_fn_c_try_compile "$LINENO"; then :
31911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31912 $as_echo "yes" >&6; }
31913 tst_compi_getaddrinfo="yes"
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31918 $as_echo "no" >&6; }
31919 tst_compi_getaddrinfo="no"
31922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31925 if test "x$cross_compiling" != "xyes" &&
31926 test "$tst_compi_getaddrinfo" = "yes"; then
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31928 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31929 if test "$cross_compiling" = yes; then :
31930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31932 as_fn_error $? "cannot run test program while cross compiling
31933 See \`config.log' for more details" "$LINENO" 5; }
31935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31936 /* end confdefs.h. */
31939 $curl_includes_ws2tcpip
31940 $curl_includes_stdlib
31941 $curl_includes_string
31942 $curl_includes_sys_socket
31943 $curl_includes_netdb
31948 struct addrinfo hints;
31949 struct addrinfo *ai = 0;
31952 #ifdef HAVE_WINSOCK2_H
31954 if (WSAStartup(MAKEWORD(2,2), &wsa))
31958 memset(&hints, 0, sizeof(hints));
31959 hints.ai_flags = AI_NUMERICHOST;
31960 hints.ai_family = AF_UNSPEC;
31961 hints.ai_socktype = SOCK_STREAM;
31962 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31964 exit(1); /* fail */
31973 if ac_fn_c_try_run "$LINENO"; then :
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31976 $as_echo "yes" >&6; }
31977 tst_works_getaddrinfo="yes"
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31982 $as_echo "no" >&6; }
31983 tst_works_getaddrinfo="no"
31986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31987 conftest.$ac_objext conftest.beam conftest.$ac_ext
31992 if test "$tst_compi_getaddrinfo" = "yes" &&
31993 test "$tst_works_getaddrinfo" != "no"; then
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31995 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31996 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31998 $as_echo "yes" >&6; }
31999 tst_allow_getaddrinfo="yes"
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32002 $as_echo "no" >&6; }
32003 tst_allow_getaddrinfo="no"
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32008 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
32009 if test "$tst_links_getaddrinfo" = "yes" &&
32010 test "$tst_proto_getaddrinfo" = "yes" &&
32011 test "$tst_compi_getaddrinfo" = "yes" &&
32012 test "$tst_allow_getaddrinfo" = "yes" &&
32013 test "$tst_works_getaddrinfo" != "no"; then
32014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32015 $as_echo "yes" >&6; }
32017 cat >>confdefs.h <<_ACEOF
32018 #define HAVE_GETADDRINFO 1
32021 curl_cv_func_getaddrinfo="yes"
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32024 $as_echo "no" >&6; }
32025 curl_cv_func_getaddrinfo="no"
32026 curl_cv_func_getaddrinfo_threadsafe="no"
32029 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32031 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32033 aix[1234].* | aix5.[01].*)
32034 tst_tsafe_getaddrinfo="no"
32037 tst_tsafe_getaddrinfo="yes"
32040 tst_tsafe_getaddrinfo="no"
32043 tst_tsafe_getaddrinfo="yes"
32045 freebsd[1234].* | freebsd5.[1234]*)
32046 tst_tsafe_getaddrinfo="no"
32049 tst_tsafe_getaddrinfo="yes"
32051 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32052 tst_tsafe_getaddrinfo="no"
32055 tst_tsafe_getaddrinfo="yes"
32058 tst_tsafe_getaddrinfo="no"
32061 tst_tsafe_getaddrinfo="yes"
32064 tst_tsafe_getaddrinfo="no"
32067 tst_tsafe_getaddrinfo="yes"
32070 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32071 test "$curl_cv_native_windows" = "yes"; then
32072 tst_tsafe_getaddrinfo="yes"
32074 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078 /* end confdefs.h. */
32081 $curl_includes_sys_socket
32082 $curl_includes_netdb
32089 force compilation error
32095 if ac_fn_c_try_compile "$LINENO"; then :
32097 tst_symbol_defined="yes"
32101 tst_symbol_defined="no"
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 if test "$tst_symbol_defined" = "yes"; then
32106 curl_cv_have_def_h_errno=yes
32109 curl_cv_have_def_h_errno=no
32113 if test "$curl_cv_have_def_h_errno" = "yes"; then
32114 tst_h_errno_macro="yes"
32116 tst_h_errno_macro="no"
32118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32119 /* end confdefs.h. */
32122 $curl_includes_sys_socket
32123 $curl_includes_netdb
32137 if ac_fn_c_try_compile "$LINENO"; then :
32139 tst_h_errno_modifiable_lvalue="yes"
32143 tst_h_errno_modifiable_lvalue="no"
32146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32148 /* end confdefs.h. */
32155 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32157 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32160 force compilation error
32168 if ac_fn_c_try_compile "$LINENO"; then :
32170 tst_h_errno_sbs_issue_7="yes"
32174 tst_h_errno_sbs_issue_7="no"
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 if test "$tst_h_errno_macro" = "no" &&
32179 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32180 test "$tst_h_errno_sbs_issue_7" = "no"; then
32181 tst_tsafe_getaddrinfo="no"
32183 tst_tsafe_getaddrinfo="yes"
32186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32187 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32188 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32190 cat >>confdefs.h <<_ACEOF
32191 #define HAVE_GETADDRINFO_THREADSAFE 1
32194 curl_cv_func_getaddrinfo_threadsafe="yes"
32196 curl_cv_func_getaddrinfo_threadsafe="no"
32202 tst_links_gai_strerror="unknown"
32203 tst_proto_gai_strerror="unknown"
32204 tst_compi_gai_strerror="unknown"
32205 tst_allow_gai_strerror="unknown"
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32208 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32210 /* end confdefs.h. */
32213 $curl_includes_winsock2
32214 $curl_includes_netdb
32219 if(0 != gai_strerror(0))
32227 if ac_fn_c_try_link "$LINENO"; then :
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32230 $as_echo "yes" >&6; }
32231 tst_links_gai_strerror="yes"
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32236 $as_echo "no" >&6; }
32237 tst_links_gai_strerror="no"
32240 rm -f core conftest.err conftest.$ac_objext \
32241 conftest$ac_exeext conftest.$ac_ext
32243 if test "$tst_links_gai_strerror" = "yes"; then
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32245 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32247 /* end confdefs.h. */
32249 $curl_includes_winsock2
32250 $curl_includes_netdb
32253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32254 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32257 $as_echo "yes" >&6; }
32258 tst_proto_gai_strerror="yes"
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32263 $as_echo "no" >&6; }
32264 tst_proto_gai_strerror="no"
32271 if test "$tst_proto_gai_strerror" = "yes"; then
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32273 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32275 /* end confdefs.h. */
32278 $curl_includes_winsock2
32279 $curl_includes_netdb
32284 if(0 != gai_strerror(0))
32292 if ac_fn_c_try_compile "$LINENO"; then :
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32295 $as_echo "yes" >&6; }
32296 tst_compi_gai_strerror="yes"
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32301 $as_echo "no" >&6; }
32302 tst_compi_gai_strerror="no"
32305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32308 if test "$tst_compi_gai_strerror" = "yes"; then
32309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32310 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32311 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32313 $as_echo "yes" >&6; }
32314 tst_allow_gai_strerror="yes"
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32317 $as_echo "no" >&6; }
32318 tst_allow_gai_strerror="no"
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32323 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32324 if test "$tst_links_gai_strerror" = "yes" &&
32325 test "$tst_proto_gai_strerror" = "yes" &&
32326 test "$tst_compi_gai_strerror" = "yes" &&
32327 test "$tst_allow_gai_strerror" = "yes"; then
32328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32329 $as_echo "yes" >&6; }
32331 cat >>confdefs.h <<_ACEOF
32332 #define HAVE_GAI_STRERROR 1
32335 curl_cv_func_gai_strerror="yes"
32337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32338 $as_echo "no" >&6; }
32339 curl_cv_func_gai_strerror="no"
32344 tst_links_gethostbyaddr="unknown"
32345 tst_proto_gethostbyaddr="unknown"
32346 tst_compi_gethostbyaddr="unknown"
32347 tst_allow_gethostbyaddr="unknown"
32349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32350 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32352 /* end confdefs.h. */
32355 $curl_includes_winsock2
32356 $curl_includes_netdb
32361 if(0 != gethostbyaddr(0, 0, 0))
32369 if ac_fn_c_try_link "$LINENO"; then :
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32372 $as_echo "yes" >&6; }
32373 tst_links_gethostbyaddr="yes"
32377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32378 $as_echo "no" >&6; }
32379 tst_links_gethostbyaddr="no"
32382 rm -f core conftest.err conftest.$ac_objext \
32383 conftest$ac_exeext conftest.$ac_ext
32385 if test "$tst_links_gethostbyaddr" = "yes"; then
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32387 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32389 /* end confdefs.h. */
32391 $curl_includes_winsock2
32392 $curl_includes_netdb
32395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32396 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32399 $as_echo "yes" >&6; }
32400 tst_proto_gethostbyaddr="yes"
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32405 $as_echo "no" >&6; }
32406 tst_proto_gethostbyaddr="no"
32413 if test "$tst_proto_gethostbyaddr" = "yes"; then
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32415 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32417 /* end confdefs.h. */
32420 $curl_includes_winsock2
32421 $curl_includes_netdb
32426 if(0 != gethostbyaddr(0, 0, 0))
32434 if ac_fn_c_try_compile "$LINENO"; then :
32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32437 $as_echo "yes" >&6; }
32438 tst_compi_gethostbyaddr="yes"
32442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32443 $as_echo "no" >&6; }
32444 tst_compi_gethostbyaddr="no"
32447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32450 if test "$tst_compi_gethostbyaddr" = "yes"; then
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32452 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32453 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32455 $as_echo "yes" >&6; }
32456 tst_allow_gethostbyaddr="yes"
32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32459 $as_echo "no" >&6; }
32460 tst_allow_gethostbyaddr="no"
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32465 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32466 if test "$tst_links_gethostbyaddr" = "yes" &&
32467 test "$tst_proto_gethostbyaddr" = "yes" &&
32468 test "$tst_compi_gethostbyaddr" = "yes" &&
32469 test "$tst_allow_gethostbyaddr" = "yes"; then
32470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32471 $as_echo "yes" >&6; }
32473 cat >>confdefs.h <<_ACEOF
32474 #define HAVE_GETHOSTBYADDR 1
32477 curl_cv_func_gethostbyaddr="yes"
32479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32480 $as_echo "no" >&6; }
32481 curl_cv_func_gethostbyaddr="no"
32486 tst_links_gethostbyaddr_r="unknown"
32487 tst_proto_gethostbyaddr_r="unknown"
32488 tst_compi_gethostbyaddr_r="unknown"
32489 tst_allow_gethostbyaddr_r="unknown"
32490 tst_nargs_gethostbyaddr_r="unknown"
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32493 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32495 /* end confdefs.h. */
32498 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32500 # include <limits.h>
32502 # include <assert.h>
32504 #undef gethostbyaddr_r
32508 char gethostbyaddr_r ();
32509 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32515 return gethostbyaddr_r ();
32521 if ac_fn_c_try_link "$LINENO"; then :
32523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32524 $as_echo "yes" >&6; }
32525 tst_links_gethostbyaddr_r="yes"
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32530 $as_echo "no" >&6; }
32531 tst_links_gethostbyaddr_r="no"
32534 rm -f core conftest.err conftest.$ac_objext \
32535 conftest$ac_exeext conftest.$ac_ext
32537 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32539 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32541 /* end confdefs.h. */
32543 $curl_includes_netdb
32546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32547 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32550 $as_echo "yes" >&6; }
32551 tst_proto_gethostbyaddr_r="yes"
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32556 $as_echo "no" >&6; }
32557 tst_proto_gethostbyaddr_r="no"
32564 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32565 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32567 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32569 /* end confdefs.h. */
32572 $curl_includes_netdb
32577 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32585 if ac_fn_c_try_compile "$LINENO"; then :
32587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32588 $as_echo "yes" >&6; }
32589 tst_compi_gethostbyaddr_r="yes"
32590 tst_nargs_gethostbyaddr_r="5"
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32595 $as_echo "no" >&6; }
32596 tst_compi_gethostbyaddr_r="no"
32599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32601 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32603 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32605 /* end confdefs.h. */
32608 $curl_includes_netdb
32613 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32621 if ac_fn_c_try_compile "$LINENO"; then :
32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32624 $as_echo "yes" >&6; }
32625 tst_compi_gethostbyaddr_r="yes"
32626 tst_nargs_gethostbyaddr_r="7"
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32631 $as_echo "no" >&6; }
32632 tst_compi_gethostbyaddr_r="no"
32635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32637 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32639 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32641 /* end confdefs.h. */
32644 $curl_includes_netdb
32649 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32657 if ac_fn_c_try_compile "$LINENO"; then :
32659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32660 $as_echo "yes" >&6; }
32661 tst_compi_gethostbyaddr_r="yes"
32662 tst_nargs_gethostbyaddr_r="8"
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32667 $as_echo "no" >&6; }
32668 tst_compi_gethostbyaddr_r="no"
32671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32674 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32675 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32677 $as_echo "yes" >&6; }
32679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32680 $as_echo "no" >&6; }
32684 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32686 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32687 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32689 $as_echo "yes" >&6; }
32690 tst_allow_gethostbyaddr_r="yes"
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32693 $as_echo "no" >&6; }
32694 tst_allow_gethostbyaddr_r="no"
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32699 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32700 if test "$tst_links_gethostbyaddr_r" = "yes" &&
32701 test "$tst_proto_gethostbyaddr_r" = "yes" &&
32702 test "$tst_compi_gethostbyaddr_r" = "yes" &&
32703 test "$tst_allow_gethostbyaddr_r" = "yes"; then
32704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32705 $as_echo "yes" >&6; }
32707 cat >>confdefs.h <<_ACEOF
32708 #define HAVE_GETHOSTBYADDR_R 1
32712 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32714 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32716 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32718 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32720 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32722 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32726 curl_cv_func_gethostbyaddr_r="yes"
32728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32729 $as_echo "no" >&6; }
32730 curl_cv_func_gethostbyaddr_r="no"
32735 tst_links_gethostbyname="unknown"
32736 tst_proto_gethostbyname="unknown"
32737 tst_compi_gethostbyname="unknown"
32738 tst_allow_gethostbyname="unknown"
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32741 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32743 /* end confdefs.h. */
32746 $curl_includes_winsock2
32747 $curl_includes_netdb
32752 if(0 != gethostbyname(0))
32760 if ac_fn_c_try_link "$LINENO"; then :
32762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32763 $as_echo "yes" >&6; }
32764 tst_links_gethostbyname="yes"
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32769 $as_echo "no" >&6; }
32770 tst_links_gethostbyname="no"
32773 rm -f core conftest.err conftest.$ac_objext \
32774 conftest$ac_exeext conftest.$ac_ext
32776 if test "$tst_links_gethostbyname" = "yes"; then
32777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32778 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32780 /* end confdefs.h. */
32782 $curl_includes_winsock2
32783 $curl_includes_netdb
32786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32787 $EGREP "gethostbyname" >/dev/null 2>&1; then :
32789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32790 $as_echo "yes" >&6; }
32791 tst_proto_gethostbyname="yes"
32795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32796 $as_echo "no" >&6; }
32797 tst_proto_gethostbyname="no"
32804 if test "$tst_proto_gethostbyname" = "yes"; then
32805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32806 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32808 /* end confdefs.h. */
32811 $curl_includes_winsock2
32812 $curl_includes_netdb
32817 if(0 != gethostbyname(0))
32825 if ac_fn_c_try_compile "$LINENO"; then :
32827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32828 $as_echo "yes" >&6; }
32829 tst_compi_gethostbyname="yes"
32833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32834 $as_echo "no" >&6; }
32835 tst_compi_gethostbyname="no"
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32841 if test "$tst_compi_gethostbyname" = "yes"; then
32842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32843 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32844 if test "x$curl_disallow_gethostbyname" != "xyes"; then
32845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32846 $as_echo "yes" >&6; }
32847 tst_allow_gethostbyname="yes"
32849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32850 $as_echo "no" >&6; }
32851 tst_allow_gethostbyname="no"
32855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32856 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32857 if test "$tst_links_gethostbyname" = "yes" &&
32858 test "$tst_proto_gethostbyname" = "yes" &&
32859 test "$tst_compi_gethostbyname" = "yes" &&
32860 test "$tst_allow_gethostbyname" = "yes"; then
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32862 $as_echo "yes" >&6; }
32864 cat >>confdefs.h <<_ACEOF
32865 #define HAVE_GETHOSTBYNAME 1
32868 curl_cv_func_gethostbyname="yes"
32870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32871 $as_echo "no" >&6; }
32872 curl_cv_func_gethostbyname="no"
32877 tst_links_gethostbyname_r="unknown"
32878 tst_proto_gethostbyname_r="unknown"
32879 tst_compi_gethostbyname_r="unknown"
32880 tst_allow_gethostbyname_r="unknown"
32881 tst_nargs_gethostbyname_r="unknown"
32883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32884 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32886 /* end confdefs.h. */
32889 #define gethostbyname_r innocuous_gethostbyname_r
32891 # include <limits.h>
32893 # include <assert.h>
32895 #undef gethostbyname_r
32899 char gethostbyname_r ();
32900 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32906 return gethostbyname_r ();
32912 if ac_fn_c_try_link "$LINENO"; then :
32914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32915 $as_echo "yes" >&6; }
32916 tst_links_gethostbyname_r="yes"
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32921 $as_echo "no" >&6; }
32922 tst_links_gethostbyname_r="no"
32925 rm -f core conftest.err conftest.$ac_objext \
32926 conftest$ac_exeext conftest.$ac_ext
32928 if test "$tst_links_gethostbyname_r" = "yes"; then
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32930 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32932 /* end confdefs.h. */
32934 $curl_includes_netdb
32937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32938 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941 $as_echo "yes" >&6; }
32942 tst_proto_gethostbyname_r="yes"
32946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32947 $as_echo "no" >&6; }
32948 tst_proto_gethostbyname_r="no"
32955 if test "$tst_proto_gethostbyname_r" = "yes"; then
32956 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32958 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32960 /* end confdefs.h. */
32963 $curl_includes_netdb
32968 if(0 != gethostbyname_r(0, 0, 0))
32976 if ac_fn_c_try_compile "$LINENO"; then :
32978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32979 $as_echo "yes" >&6; }
32980 tst_compi_gethostbyname_r="yes"
32981 tst_nargs_gethostbyname_r="3"
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32986 $as_echo "no" >&6; }
32987 tst_compi_gethostbyname_r="no"
32990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32992 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32994 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32996 /* end confdefs.h. */
32999 $curl_includes_netdb
33004 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33012 if ac_fn_c_try_compile "$LINENO"; then :
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33015 $as_echo "yes" >&6; }
33016 tst_compi_gethostbyname_r="yes"
33017 tst_nargs_gethostbyname_r="5"
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022 $as_echo "no" >&6; }
33023 tst_compi_gethostbyname_r="no"
33026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33028 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33030 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h. */
33035 $curl_includes_netdb
33040 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33048 if ac_fn_c_try_compile "$LINENO"; then :
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33051 $as_echo "yes" >&6; }
33052 tst_compi_gethostbyname_r="yes"
33053 tst_nargs_gethostbyname_r="6"
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33058 $as_echo "no" >&6; }
33059 tst_compi_gethostbyname_r="no"
33062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33065 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33066 if test "$tst_compi_gethostbyname_r" = "yes"; then
33067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33068 $as_echo "yes" >&6; }
33070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071 $as_echo "no" >&6; }
33075 if test "$tst_compi_gethostbyname_r" = "yes"; then
33076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33077 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33078 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33081 tst_allow_gethostbyname_r="yes"
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33084 $as_echo "no" >&6; }
33085 tst_allow_gethostbyname_r="no"
33089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33090 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33091 if test "$tst_links_gethostbyname_r" = "yes" &&
33092 test "$tst_proto_gethostbyname_r" = "yes" &&
33093 test "$tst_compi_gethostbyname_r" = "yes" &&
33094 test "$tst_allow_gethostbyname_r" = "yes"; then
33095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33096 $as_echo "yes" >&6; }
33098 cat >>confdefs.h <<_ACEOF
33099 #define HAVE_GETHOSTBYNAME_R 1
33103 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33105 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33107 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33109 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33111 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33113 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33117 curl_cv_func_gethostbyname_r="yes"
33119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33120 $as_echo "no" >&6; }
33121 curl_cv_func_gethostbyname_r="no"
33126 tst_links_gethostname="unknown"
33127 tst_proto_gethostname="unknown"
33128 tst_compi_gethostname="unknown"
33129 tst_allow_gethostname="unknown"
33131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33132 $as_echo_n "checking if gethostname can be linked... " >&6; }
33133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33134 /* end confdefs.h. */
33137 $curl_includes_winsock2
33138 $curl_includes_unistd
33143 if(0 != gethostname(0, 0))
33151 if ac_fn_c_try_link "$LINENO"; then :
33153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33154 $as_echo "yes" >&6; }
33155 tst_links_gethostname="yes"
33159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33160 $as_echo "no" >&6; }
33161 tst_links_gethostname="no"
33164 rm -f core conftest.err conftest.$ac_objext \
33165 conftest$ac_exeext conftest.$ac_ext
33167 if test "$tst_links_gethostname" = "yes"; then
33168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33169 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33171 /* end confdefs.h. */
33173 $curl_includes_winsock2
33174 $curl_includes_unistd
33177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33178 $EGREP "gethostname" >/dev/null 2>&1; then :
33180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33181 $as_echo "yes" >&6; }
33182 tst_proto_gethostname="yes"
33186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33187 $as_echo "no" >&6; }
33188 tst_proto_gethostname="no"
33195 if test "$tst_proto_gethostname" = "yes"; then
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33197 $as_echo_n "checking if gethostname is compilable... " >&6; }
33198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33199 /* end confdefs.h. */
33202 $curl_includes_winsock2
33203 $curl_includes_unistd
33208 if(0 != gethostname(0, 0))
33216 if ac_fn_c_try_compile "$LINENO"; then :
33218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33219 $as_echo "yes" >&6; }
33220 tst_compi_gethostname="yes"
33224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33225 $as_echo "no" >&6; }
33226 tst_compi_gethostname="no"
33229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33232 if test "$tst_compi_gethostname" = "yes"; then
33233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33234 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33235 tst_gethostname_type_arg2="unknown"
33236 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33237 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33238 if test "$tst_gethostname_type_arg2" = "unknown"; then
33239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33240 /* end confdefs.h. */
33243 $curl_includes_winsock2
33244 $curl_includes_unistd
33245 $curl_preprocess_callconv
33246 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33251 if(0 != gethostname(0, 0))
33259 if ac_fn_c_try_compile "$LINENO"; then :
33261 tst_gethostname_type_arg2="$tst_arg2"
33264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33269 $as_echo "$tst_gethostname_type_arg2" >&6; }
33270 if test "$tst_gethostname_type_arg2" != "unknown"; then
33272 cat >>confdefs.h <<_ACEOF
33273 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33279 if test "$tst_compi_gethostname" = "yes"; then
33280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33281 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33282 if test "x$curl_disallow_gethostname" != "xyes"; then
33283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33284 $as_echo "yes" >&6; }
33285 tst_allow_gethostname="yes"
33287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33288 $as_echo "no" >&6; }
33289 tst_allow_gethostname="no"
33293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33294 $as_echo_n "checking if gethostname might be used... " >&6; }
33295 if test "$tst_links_gethostname" = "yes" &&
33296 test "$tst_proto_gethostname" = "yes" &&
33297 test "$tst_compi_gethostname" = "yes" &&
33298 test "$tst_allow_gethostname" = "yes"; then
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33300 $as_echo "yes" >&6; }
33302 cat >>confdefs.h <<_ACEOF
33303 #define HAVE_GETHOSTNAME 1
33306 curl_cv_func_gethostname="yes"
33308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33309 $as_echo "no" >&6; }
33310 curl_cv_func_gethostname="no"
33315 tst_links_getifaddrs="unknown"
33316 tst_proto_getifaddrs="unknown"
33317 tst_compi_getifaddrs="unknown"
33318 tst_works_getifaddrs="unknown"
33319 tst_allow_getifaddrs="unknown"
33321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33322 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33324 /* end confdefs.h. */
33327 #define getifaddrs innocuous_getifaddrs
33329 # include <limits.h>
33331 # include <assert.h>
33337 char getifaddrs ();
33338 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33344 return getifaddrs ();
33350 if ac_fn_c_try_link "$LINENO"; then :
33352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33353 $as_echo "yes" >&6; }
33354 tst_links_getifaddrs="yes"
33358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33359 $as_echo "no" >&6; }
33360 tst_links_getifaddrs="no"
33363 rm -f core conftest.err conftest.$ac_objext \
33364 conftest$ac_exeext conftest.$ac_ext
33366 if test "$tst_links_getifaddrs" = "yes"; then
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33368 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33370 /* end confdefs.h. */
33372 $curl_includes_ifaddrs
33375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33376 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33379 $as_echo "yes" >&6; }
33380 tst_proto_getifaddrs="yes"
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33385 $as_echo "no" >&6; }
33386 tst_proto_getifaddrs="no"
33393 if test "$tst_proto_getifaddrs" = "yes"; then
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33395 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33397 /* end confdefs.h. */
33400 $curl_includes_ifaddrs
33405 if(0 != getifaddrs(0))
33413 if ac_fn_c_try_compile "$LINENO"; then :
33415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33416 $as_echo "yes" >&6; }
33417 tst_compi_getifaddrs="yes"
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33422 $as_echo "no" >&6; }
33423 tst_compi_getifaddrs="no"
33426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33429 if test "x$cross_compiling" != "xyes" &&
33430 test "$tst_compi_getifaddrs" = "yes"; then
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33432 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33433 if test "$cross_compiling" = yes; then :
33434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33436 as_fn_error $? "cannot run test program while cross compiling
33437 See \`config.log' for more details" "$LINENO" 5; }
33439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33440 /* end confdefs.h. */
33443 $curl_includes_stdlib
33444 $curl_includes_ifaddrs
33449 struct ifaddrs *ifa = 0;
33452 error = getifaddrs(&ifa);
33454 exit(1); /* fail */
33463 if ac_fn_c_try_run "$LINENO"; then :
33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33466 $as_echo "yes" >&6; }
33467 tst_works_getifaddrs="yes"
33471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33472 $as_echo "no" >&6; }
33473 tst_works_getifaddrs="no"
33476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33477 conftest.$ac_objext conftest.beam conftest.$ac_ext
33482 if test "$tst_compi_getifaddrs" = "yes" &&
33483 test "$tst_works_getifaddrs" != "no"; then
33484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33485 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33486 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33488 $as_echo "yes" >&6; }
33489 tst_allow_getifaddrs="yes"
33491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33492 $as_echo "no" >&6; }
33493 tst_allow_getifaddrs="no"
33497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33498 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33499 if test "$tst_links_getifaddrs" = "yes" &&
33500 test "$tst_proto_getifaddrs" = "yes" &&
33501 test "$tst_compi_getifaddrs" = "yes" &&
33502 test "$tst_allow_getifaddrs" = "yes" &&
33503 test "$tst_works_getifaddrs" != "no"; then
33504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33505 $as_echo "yes" >&6; }
33507 cat >>confdefs.h <<_ACEOF
33508 #define HAVE_GETIFADDRS 1
33511 curl_cv_func_getifaddrs="yes"
33513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33514 $as_echo "no" >&6; }
33515 curl_cv_func_getifaddrs="no"
33520 tst_links_getservbyport_r="unknown"
33521 tst_proto_getservbyport_r="unknown"
33522 tst_compi_getservbyport_r="unknown"
33523 tst_allow_getservbyport_r="unknown"
33524 tst_nargs_getservbyport_r="unknown"
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33527 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33529 /* end confdefs.h. */
33532 #define getservbyport_r innocuous_getservbyport_r
33534 # include <limits.h>
33536 # include <assert.h>
33538 #undef getservbyport_r
33542 char getservbyport_r ();
33543 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33549 return getservbyport_r ();
33555 if ac_fn_c_try_link "$LINENO"; then :
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33558 $as_echo "yes" >&6; }
33559 tst_links_getservbyport_r="yes"
33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33564 $as_echo "no" >&6; }
33565 tst_links_getservbyport_r="no"
33568 rm -f core conftest.err conftest.$ac_objext \
33569 conftest$ac_exeext conftest.$ac_ext
33571 if test "$tst_links_getservbyport_r" = "yes"; then
33572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33573 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33575 /* end confdefs.h. */
33577 $curl_includes_netdb
33580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33581 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33584 $as_echo "yes" >&6; }
33585 tst_proto_getservbyport_r="yes"
33589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33590 $as_echo "no" >&6; }
33591 tst_proto_getservbyport_r="no"
33598 if test "$tst_proto_getservbyport_r" = "yes"; then
33599 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33601 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33603 /* end confdefs.h. */
33606 $curl_includes_netdb
33611 if(0 != getservbyport_r(0, 0, 0, 0))
33619 if ac_fn_c_try_compile "$LINENO"; then :
33621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33622 $as_echo "yes" >&6; }
33623 tst_compi_getservbyport_r="yes"
33624 tst_nargs_getservbyport_r="4"
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33629 $as_echo "no" >&6; }
33630 tst_compi_getservbyport_r="no"
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33635 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33637 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33639 /* end confdefs.h. */
33642 $curl_includes_netdb
33647 if(0 != getservbyport_r(0, 0, 0, 0, 0))
33655 if ac_fn_c_try_compile "$LINENO"; then :
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33658 $as_echo "yes" >&6; }
33659 tst_compi_getservbyport_r="yes"
33660 tst_nargs_getservbyport_r="5"
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33665 $as_echo "no" >&6; }
33666 tst_compi_getservbyport_r="no"
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33671 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33673 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33675 /* end confdefs.h. */
33678 $curl_includes_netdb
33683 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33691 if ac_fn_c_try_compile "$LINENO"; then :
33693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33694 $as_echo "yes" >&6; }
33695 tst_compi_getservbyport_r="yes"
33696 tst_nargs_getservbyport_r="6"
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33701 $as_echo "no" >&6; }
33702 tst_compi_getservbyport_r="no"
33705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33708 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33709 if test "$tst_compi_getservbyport_r" = "yes"; then
33710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33711 $as_echo "yes" >&6; }
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33714 $as_echo "no" >&6; }
33718 if test "$tst_compi_getservbyport_r" = "yes"; then
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33720 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33721 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33723 $as_echo "yes" >&6; }
33724 tst_allow_getservbyport_r="yes"
33726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33727 $as_echo "no" >&6; }
33728 tst_allow_getservbyport_r="no"
33732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33733 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33734 if test "$tst_links_getservbyport_r" = "yes" &&
33735 test "$tst_proto_getservbyport_r" = "yes" &&
33736 test "$tst_compi_getservbyport_r" = "yes" &&
33737 test "$tst_allow_getservbyport_r" = "yes"; then
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33739 $as_echo "yes" >&6; }
33741 cat >>confdefs.h <<_ACEOF
33742 #define HAVE_GETSERVBYPORT_R 1
33746 cat >>confdefs.h <<_ACEOF
33747 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33750 if test "$tst_nargs_getservbyport_r" -eq "4"; then
33752 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33756 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33759 curl_cv_func_getservbyport_r="yes"
33761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33762 $as_echo "no" >&6; }
33763 curl_cv_func_getservbyport_r="no"
33767 curl_includes_time="\
33768 /* includes start */
33769 #ifdef HAVE_SYS_TYPES_H
33770 # include <sys/types.h>
33772 #ifdef HAVE_SYS_TIME_H
33773 # include <sys/time.h>
33774 # ifdef TIME_WITH_SYS_TIME
33778 # ifdef HAVE_TIME_H
33782 /* includes end */"
33783 for ac_header in sys/types.h sys/time.h time.h
33785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33786 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33789 cat >>confdefs.h <<_ACEOF
33790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33800 tst_links_gmtime_r="unknown"
33801 tst_proto_gmtime_r="unknown"
33802 tst_compi_gmtime_r="unknown"
33803 tst_works_gmtime_r="unknown"
33804 tst_allow_gmtime_r="unknown"
33806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33807 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33809 /* end confdefs.h. */
33812 #define gmtime_r innocuous_gmtime_r
33814 # include <limits.h>
33816 # include <assert.h>
33823 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33829 return gmtime_r ();
33835 if ac_fn_c_try_link "$LINENO"; then :
33837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33838 $as_echo "yes" >&6; }
33839 tst_links_gmtime_r="yes"
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33844 $as_echo "no" >&6; }
33845 tst_links_gmtime_r="no"
33848 rm -f core conftest.err conftest.$ac_objext \
33849 conftest$ac_exeext conftest.$ac_ext
33851 if test "$tst_links_gmtime_r" = "yes"; then
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33853 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33855 /* end confdefs.h. */
33857 $curl_includes_time
33860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33861 $EGREP "gmtime_r" >/dev/null 2>&1; then :
33863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33864 $as_echo "yes" >&6; }
33865 tst_proto_gmtime_r="yes"
33869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33870 $as_echo "no" >&6; }
33871 tst_proto_gmtime_r="no"
33878 if test "$tst_proto_gmtime_r" = "yes"; then
33879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33880 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33882 /* end confdefs.h. */
33885 $curl_includes_time
33890 if(0 != gmtime_r(0, 0))
33898 if ac_fn_c_try_compile "$LINENO"; then :
33900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33901 $as_echo "yes" >&6; }
33902 tst_compi_gmtime_r="yes"
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33907 $as_echo "no" >&6; }
33908 tst_compi_gmtime_r="no"
33911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33914 if test "x$cross_compiling" != "xyes" &&
33915 test "$tst_compi_gmtime_r" = "yes"; then
33916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33917 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33918 if test "$cross_compiling" = yes; then :
33919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33921 as_fn_error $? "cannot run test program while cross compiling
33922 See \`config.log' for more details" "$LINENO" 5; }
33924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33925 /* end confdefs.h. */
33928 $curl_includes_stdlib
33929 $curl_includes_time
33934 time_t local = 1170352587;
33935 struct tm *gmt = 0;
33937 gmt = gmtime_r(&local, &result);
33948 if ac_fn_c_try_run "$LINENO"; then :
33950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33951 $as_echo "yes" >&6; }
33952 tst_works_gmtime_r="yes"
33956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33957 $as_echo "no" >&6; }
33958 tst_works_gmtime_r="no"
33961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33962 conftest.$ac_objext conftest.beam conftest.$ac_ext
33967 if test "$tst_compi_gmtime_r" = "yes" &&
33968 test "$tst_works_gmtime_r" != "no"; then
33969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33970 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33971 if test "x$curl_disallow_gmtime_r" != "xyes"; then
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33973 $as_echo "yes" >&6; }
33974 tst_allow_gmtime_r="yes"
33976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33977 $as_echo "no" >&6; }
33978 tst_allow_gmtime_r="no"
33982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33983 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33984 if test "$tst_links_gmtime_r" = "yes" &&
33985 test "$tst_proto_gmtime_r" = "yes" &&
33986 test "$tst_compi_gmtime_r" = "yes" &&
33987 test "$tst_allow_gmtime_r" = "yes" &&
33988 test "$tst_works_gmtime_r" != "no"; then
33989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33990 $as_echo "yes" >&6; }
33992 cat >>confdefs.h <<_ACEOF
33993 #define HAVE_GMTIME_R 1
33996 curl_cv_func_gmtime_r="yes"
33998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33999 $as_echo "no" >&6; }
34000 curl_cv_func_gmtime_r="no"
34004 curl_includes_arpa_inet="\
34005 /* includes start */
34006 #ifdef HAVE_SYS_TYPES_H
34007 # include <sys/types.h>
34009 #ifdef HAVE_SYS_SOCKET_H
34010 # include <sys/socket.h>
34012 #ifdef HAVE_NETINET_IN_H
34013 # include <netinet/in.h>
34015 #ifdef HAVE_ARPA_INET_H
34016 # include <arpa/inet.h>
34018 #ifdef HAVE_WINSOCK2_H
34019 #include <winsock2.h>
34020 #include <ws2tcpip.h>
34022 /* includes end */"
34023 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34029 cat >>confdefs.h <<_ACEOF
34030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34040 tst_links_inet_ntoa_r="unknown"
34041 tst_proto_inet_ntoa_r="unknown"
34042 tst_compi_inet_ntoa_r="unknown"
34043 tst_allow_inet_ntoa_r="unknown"
34044 tst_nargs_inet_ntoa_r="unknown"
34046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34047 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34049 /* end confdefs.h. */
34052 #define inet_ntoa_r innocuous_inet_ntoa_r
34054 # include <limits.h>
34056 # include <assert.h>
34062 char inet_ntoa_r ();
34063 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34069 return inet_ntoa_r ();
34075 if ac_fn_c_try_link "$LINENO"; then :
34077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34078 $as_echo "yes" >&6; }
34079 tst_links_inet_ntoa_r="yes"
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34084 $as_echo "no" >&6; }
34085 tst_links_inet_ntoa_r="no"
34088 rm -f core conftest.err conftest.$ac_objext \
34089 conftest$ac_exeext conftest.$ac_ext
34091 if test "$tst_links_inet_ntoa_r" = "yes"; then
34092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34093 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34095 /* end confdefs.h. */
34097 $curl_includes_arpa_inet
34100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34101 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34104 $as_echo "yes" >&6; }
34105 tst_proto_inet_ntoa_r="yes"
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34110 $as_echo "no" >&6; }
34111 tst_proto_inet_ntoa_r="no"
34118 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34119 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34121 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34123 /* end confdefs.h. */
34126 $curl_includes_arpa_inet
34131 struct in_addr addr;
34132 if(0 != inet_ntoa_r(addr, 0))
34140 if ac_fn_c_try_compile "$LINENO"; then :
34142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34143 $as_echo "yes" >&6; }
34144 tst_compi_inet_ntoa_r="yes"
34145 tst_nargs_inet_ntoa_r="2"
34149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34150 $as_echo "no" >&6; }
34151 tst_compi_inet_ntoa_r="no"
34154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34156 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34158 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34160 /* end confdefs.h. */
34163 $curl_includes_arpa_inet
34168 struct in_addr addr;
34169 if(0 != inet_ntoa_r(addr, 0, 0))
34177 if ac_fn_c_try_compile "$LINENO"; then :
34179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34180 $as_echo "yes" >&6; }
34181 tst_compi_inet_ntoa_r="yes"
34182 tst_nargs_inet_ntoa_r="3"
34186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34187 $as_echo "no" >&6; }
34188 tst_compi_inet_ntoa_r="no"
34191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34194 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34195 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34197 $as_echo "yes" >&6; }
34199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34200 $as_echo "no" >&6; }
34204 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34206 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34207 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34209 $as_echo "yes" >&6; }
34210 tst_allow_inet_ntoa_r="yes"
34212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34213 $as_echo "no" >&6; }
34214 tst_allow_inet_ntoa_r="no"
34218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34219 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34220 if test "$tst_links_inet_ntoa_r" = "yes" &&
34221 test "$tst_proto_inet_ntoa_r" = "yes" &&
34222 test "$tst_compi_inet_ntoa_r" = "yes" &&
34223 test "$tst_allow_inet_ntoa_r" = "yes"; then
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34225 $as_echo "yes" >&6; }
34227 cat >>confdefs.h <<_ACEOF
34228 #define HAVE_INET_NTOA_R 1
34232 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34234 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34236 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34238 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34242 curl_cv_func_inet_ntoa_r="yes"
34244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34245 $as_echo "no" >&6; }
34246 curl_cv_func_inet_ntoa_r="no"
34251 tst_links_inet_ntop="unknown"
34252 tst_proto_inet_ntop="unknown"
34253 tst_compi_inet_ntop="unknown"
34254 tst_works_inet_ntop="unknown"
34255 tst_allow_inet_ntop="unknown"
34257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34258 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34260 /* end confdefs.h. */
34263 #define inet_ntop innocuous_inet_ntop
34265 # include <limits.h>
34267 # include <assert.h>
34274 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34280 return inet_ntop ();
34286 if ac_fn_c_try_link "$LINENO"; then :
34288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34289 $as_echo "yes" >&6; }
34290 tst_links_inet_ntop="yes"
34294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34295 $as_echo "no" >&6; }
34296 tst_links_inet_ntop="no"
34299 rm -f core conftest.err conftest.$ac_objext \
34300 conftest$ac_exeext conftest.$ac_ext
34302 if test "$tst_links_inet_ntop" = "yes"; then
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34304 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34306 /* end confdefs.h. */
34308 $curl_includes_arpa_inet
34311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34312 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34315 $as_echo "yes" >&6; }
34316 tst_proto_inet_ntop="yes"
34320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34321 $as_echo "no" >&6; }
34322 tst_proto_inet_ntop="no"
34329 if test "$tst_proto_inet_ntop" = "yes"; then
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34331 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34333 /* end confdefs.h. */
34336 $curl_includes_arpa_inet
34341 if(0 != inet_ntop(0, 0, 0, 0))
34349 if ac_fn_c_try_compile "$LINENO"; then :
34351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34352 $as_echo "yes" >&6; }
34353 tst_compi_inet_ntop="yes"
34357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34358 $as_echo "no" >&6; }
34359 tst_compi_inet_ntop="no"
34362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34365 if test "x$cross_compiling" != "xyes" &&
34366 test "$tst_compi_inet_ntop" = "yes"; then
34367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34368 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34369 if test "$cross_compiling" = yes; then :
34370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34372 as_fn_error $? "cannot run test program while cross compiling
34373 See \`config.log' for more details" "$LINENO" 5; }
34375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34376 /* end confdefs.h. */
34379 $curl_includes_stdlib
34380 $curl_includes_arpa_inet
34381 $curl_includes_string
34386 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34387 char ipv4res[sizeof "255.255.255.255"];
34388 unsigned char ipv6a[26];
34389 unsigned char ipv4a[5];
34400 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34402 exit(1); /* fail */
34403 if(ipv4ptr != ipv4res)
34404 exit(1); /* fail */
34406 exit(1); /* fail */
34407 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34408 exit(1); /* fail */
34411 memset(ipv6a, 0, sizeof(ipv6a));
34424 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34426 exit(1); /* fail */
34427 if(ipv6ptr != ipv6res)
34428 exit(1); /* fail */
34430 exit(1); /* fail */
34431 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34432 exit(1); /* fail */
34441 if ac_fn_c_try_run "$LINENO"; then :
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444 $as_echo "yes" >&6; }
34445 tst_works_inet_ntop="yes"
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450 $as_echo "no" >&6; }
34451 tst_works_inet_ntop="no"
34454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34455 conftest.$ac_objext conftest.beam conftest.$ac_ext
34460 if test "$tst_compi_inet_ntop" = "yes" &&
34461 test "$tst_works_inet_ntop" != "no"; then
34462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34463 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34464 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34466 $as_echo "yes" >&6; }
34467 tst_allow_inet_ntop="yes"
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34470 $as_echo "no" >&6; }
34471 tst_allow_inet_ntop="no"
34475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34476 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34477 if test "$tst_links_inet_ntop" = "yes" &&
34478 test "$tst_proto_inet_ntop" = "yes" &&
34479 test "$tst_compi_inet_ntop" = "yes" &&
34480 test "$tst_allow_inet_ntop" = "yes" &&
34481 test "$tst_works_inet_ntop" != "no"; then
34482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34483 $as_echo "yes" >&6; }
34485 cat >>confdefs.h <<_ACEOF
34486 #define HAVE_INET_NTOP 1
34489 curl_cv_func_inet_ntop="yes"
34491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34492 $as_echo "no" >&6; }
34493 curl_cv_func_inet_ntop="no"
34498 tst_links_inet_pton="unknown"
34499 tst_proto_inet_pton="unknown"
34500 tst_compi_inet_pton="unknown"
34501 tst_works_inet_pton="unknown"
34502 tst_allow_inet_pton="unknown"
34504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34505 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34507 /* end confdefs.h. */
34510 #define inet_pton innocuous_inet_pton
34512 # include <limits.h>
34514 # include <assert.h>
34521 #if defined __stub_inet_pton || defined __stub___inet_pton
34527 return inet_pton ();
34533 if ac_fn_c_try_link "$LINENO"; then :
34535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34536 $as_echo "yes" >&6; }
34537 tst_links_inet_pton="yes"
34541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34542 $as_echo "no" >&6; }
34543 tst_links_inet_pton="no"
34546 rm -f core conftest.err conftest.$ac_objext \
34547 conftest$ac_exeext conftest.$ac_ext
34549 if test "$tst_links_inet_pton" = "yes"; then
34550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34551 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34553 /* end confdefs.h. */
34555 $curl_includes_arpa_inet
34558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34559 $EGREP "inet_pton" >/dev/null 2>&1; then :
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34562 $as_echo "yes" >&6; }
34563 tst_proto_inet_pton="yes"
34567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34568 $as_echo "no" >&6; }
34569 tst_proto_inet_pton="no"
34576 if test "$tst_proto_inet_pton" = "yes"; then
34577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34578 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34580 /* end confdefs.h. */
34583 $curl_includes_arpa_inet
34588 if(0 != inet_pton(0, 0, 0))
34596 if ac_fn_c_try_compile "$LINENO"; then :
34598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34599 $as_echo "yes" >&6; }
34600 tst_compi_inet_pton="yes"
34604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34605 $as_echo "no" >&6; }
34606 tst_compi_inet_pton="no"
34609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34612 if test "x$cross_compiling" != "xyes" &&
34613 test "$tst_compi_inet_pton" = "yes"; then
34614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34615 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34616 if test "$cross_compiling" = yes; then :
34617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34619 as_fn_error $? "cannot run test program while cross compiling
34620 See \`config.log' for more details" "$LINENO" 5; }
34622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34623 /* end confdefs.h. */
34626 $curl_includes_stdlib
34627 $curl_includes_arpa_inet
34628 $curl_includes_string
34633 unsigned char ipv6a[16+1];
34634 unsigned char ipv4a[4+1];
34635 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34636 const char *ipv4src = "192.168.100.1";
34638 memset(ipv4a, 1, sizeof(ipv4a));
34639 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34640 exit(1); /* fail */
34642 if( (ipv4a[0] != 0xc0) ||
34643 (ipv4a[1] != 0xa8) ||
34644 (ipv4a[2] != 0x64) ||
34645 (ipv4a[3] != 0x01) ||
34646 (ipv4a[4] != 0x01) )
34647 exit(1); /* fail */
34649 memset(ipv6a, 1, sizeof(ipv6a));
34650 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34651 exit(1); /* fail */
34653 if( (ipv6a[0] != 0xfe) ||
34654 (ipv6a[1] != 0x80) ||
34655 (ipv6a[8] != 0x02) ||
34656 (ipv6a[9] != 0x14) ||
34657 (ipv6a[10] != 0x4f) ||
34658 (ipv6a[11] != 0xff) ||
34659 (ipv6a[12] != 0xfe) ||
34660 (ipv6a[13] != 0x0b) ||
34661 (ipv6a[14] != 0x76) ||
34662 (ipv6a[15] != 0xc8) ||
34663 (ipv6a[16] != 0x01) )
34664 exit(1); /* fail */
34666 if( (ipv6a[2] != 0x0) ||
34667 (ipv6a[3] != 0x0) ||
34668 (ipv6a[4] != 0x0) ||
34669 (ipv6a[5] != 0x0) ||
34670 (ipv6a[6] != 0x0) ||
34671 (ipv6a[7] != 0x0) )
34672 exit(1); /* fail */
34681 if ac_fn_c_try_run "$LINENO"; then :
34683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34684 $as_echo "yes" >&6; }
34685 tst_works_inet_pton="yes"
34689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34690 $as_echo "no" >&6; }
34691 tst_works_inet_pton="no"
34694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34695 conftest.$ac_objext conftest.beam conftest.$ac_ext
34700 if test "$tst_compi_inet_pton" = "yes" &&
34701 test "$tst_works_inet_pton" != "no"; then
34702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34703 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34704 if test "x$curl_disallow_inet_pton" != "xyes"; then
34705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34706 $as_echo "yes" >&6; }
34707 tst_allow_inet_pton="yes"
34709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34710 $as_echo "no" >&6; }
34711 tst_allow_inet_pton="no"
34715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34716 $as_echo_n "checking if inet_pton might be used... " >&6; }
34717 if test "$tst_links_inet_pton" = "yes" &&
34718 test "$tst_proto_inet_pton" = "yes" &&
34719 test "$tst_compi_inet_pton" = "yes" &&
34720 test "$tst_allow_inet_pton" = "yes" &&
34721 test "$tst_works_inet_pton" != "no"; then
34722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34723 $as_echo "yes" >&6; }
34725 cat >>confdefs.h <<_ACEOF
34726 #define HAVE_INET_PTON 1
34729 curl_cv_func_inet_pton="yes"
34731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34732 $as_echo "no" >&6; }
34733 curl_cv_func_inet_pton="no"
34737 curl_includes_stropts="\
34738 /* includes start */
34739 #ifdef HAVE_SYS_TYPES_H
34740 # include <sys/types.h>
34742 #ifdef HAVE_UNISTD_H
34743 # include <unistd.h>
34745 #ifdef HAVE_SYS_SOCKET_H
34746 # include <sys/socket.h>
34748 #ifdef HAVE_SYS_IOCTL_H
34749 # include <sys/ioctl.h>
34751 #ifdef HAVE_STROPTS_H
34752 # include <stropts.h>
34754 /* includes end */"
34755 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
34757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34758 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
34760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34761 cat >>confdefs.h <<_ACEOF
34762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34772 tst_links_ioctl="unknown"
34773 tst_proto_ioctl="unknown"
34774 tst_compi_ioctl="unknown"
34775 tst_allow_ioctl="unknown"
34777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34778 $as_echo_n "checking if ioctl can be linked... " >&6; }
34779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34780 /* end confdefs.h. */
34783 #define ioctl innocuous_ioctl
34785 # include <limits.h>
34787 # include <assert.h>
34794 #if defined __stub_ioctl || defined __stub___ioctl
34806 if ac_fn_c_try_link "$LINENO"; then :
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34809 $as_echo "yes" >&6; }
34810 tst_links_ioctl="yes"
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34815 $as_echo "no" >&6; }
34816 tst_links_ioctl="no"
34819 rm -f core conftest.err conftest.$ac_objext \
34820 conftest$ac_exeext conftest.$ac_ext
34822 if test "$tst_links_ioctl" = "yes"; then
34823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34824 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34826 /* end confdefs.h. */
34828 $curl_includes_stropts
34831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34832 $EGREP "ioctl" >/dev/null 2>&1; then :
34834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34835 $as_echo "yes" >&6; }
34836 tst_proto_ioctl="yes"
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34841 $as_echo "no" >&6; }
34842 tst_proto_ioctl="no"
34849 if test "$tst_proto_ioctl" = "yes"; then
34850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34851 $as_echo_n "checking if ioctl is compilable... " >&6; }
34852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34853 /* end confdefs.h. */
34856 $curl_includes_stropts
34861 if(0 != ioctl(0, 0, 0))
34869 if ac_fn_c_try_compile "$LINENO"; then :
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34872 $as_echo "yes" >&6; }
34873 tst_compi_ioctl="yes"
34877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34878 $as_echo "no" >&6; }
34879 tst_compi_ioctl="no"
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34885 if test "$tst_compi_ioctl" = "yes"; then
34886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34887 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34888 if test "x$curl_disallow_ioctl" != "xyes"; then
34889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34890 $as_echo "yes" >&6; }
34891 tst_allow_ioctl="yes"
34893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34894 $as_echo "no" >&6; }
34895 tst_allow_ioctl="no"
34899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34900 $as_echo_n "checking if ioctl might be used... " >&6; }
34901 if test "$tst_links_ioctl" = "yes" &&
34902 test "$tst_proto_ioctl" = "yes" &&
34903 test "$tst_compi_ioctl" = "yes" &&
34904 test "$tst_allow_ioctl" = "yes"; then
34905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34906 $as_echo "yes" >&6; }
34908 cat >>confdefs.h <<_ACEOF
34909 #define HAVE_IOCTL 1
34912 curl_cv_func_ioctl="yes"
34915 tst_compi_ioctl_fionbio="unknown"
34916 tst_allow_ioctl_fionbio="unknown"
34918 if test "$curl_cv_func_ioctl" = "yes"; then
34919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34920 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34922 /* end confdefs.h. */
34925 $curl_includes_stropts
34931 if(0 != ioctl(0, FIONBIO, &flags))
34939 if ac_fn_c_try_compile "$LINENO"; then :
34941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34942 $as_echo "yes" >&6; }
34943 tst_compi_ioctl_fionbio="yes"
34947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34948 $as_echo "no" >&6; }
34949 tst_compi_ioctl_fionbio="no"
34952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34955 if test "$tst_compi_ioctl_fionbio" = "yes"; then
34956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34957 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34958 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34960 $as_echo "yes" >&6; }
34961 tst_allow_ioctl_fionbio="yes"
34963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34964 $as_echo "no" >&6; }
34965 tst_allow_ioctl_fionbio="no"
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34970 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34971 if test "$tst_compi_ioctl_fionbio" = "yes" &&
34972 test "$tst_allow_ioctl_fionbio" = "yes"; then
34973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34974 $as_echo "yes" >&6; }
34976 cat >>confdefs.h <<_ACEOF
34977 #define HAVE_IOCTL_FIONBIO 1
34980 curl_cv_func_ioctl_fionbio="yes"
34982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34983 $as_echo "no" >&6; }
34984 curl_cv_func_ioctl_fionbio="no"
34989 tst_compi_ioctl_siocgifaddr="unknown"
34990 tst_allow_ioctl_siocgifaddr="unknown"
34992 if test "$curl_cv_func_ioctl" = "yes"; then
34993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34994 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34996 /* end confdefs.h. */
34999 $curl_includes_stropts
35000 #include <net/if.h>
35006 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35014 if ac_fn_c_try_compile "$LINENO"; then :
35016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35017 $as_echo "yes" >&6; }
35018 tst_compi_ioctl_siocgifaddr="yes"
35022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35023 $as_echo "no" >&6; }
35024 tst_compi_ioctl_siocgifaddr="no"
35027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35030 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35032 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35033 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35035 $as_echo "yes" >&6; }
35036 tst_allow_ioctl_siocgifaddr="yes"
35038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35039 $as_echo "no" >&6; }
35040 tst_allow_ioctl_siocgifaddr="no"
35044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35045 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35046 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35047 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35049 $as_echo "yes" >&6; }
35051 cat >>confdefs.h <<_ACEOF
35052 #define HAVE_IOCTL_SIOCGIFADDR 1
35055 curl_cv_func_ioctl_siocgifaddr="yes"
35057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35058 $as_echo "no" >&6; }
35059 curl_cv_func_ioctl_siocgifaddr="no"
35063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35064 $as_echo "no" >&6; }
35065 curl_cv_func_ioctl="no"
35070 tst_links_ioctlsocket="unknown"
35071 tst_proto_ioctlsocket="unknown"
35072 tst_compi_ioctlsocket="unknown"
35073 tst_allow_ioctlsocket="unknown"
35075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35076 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35078 /* end confdefs.h. */
35081 $curl_includes_winsock2
35086 if(0 != ioctlsocket(0, 0, 0))
35094 if ac_fn_c_try_link "$LINENO"; then :
35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35097 $as_echo "yes" >&6; }
35098 tst_links_ioctlsocket="yes"
35102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35103 $as_echo "no" >&6; }
35104 tst_links_ioctlsocket="no"
35107 rm -f core conftest.err conftest.$ac_objext \
35108 conftest$ac_exeext conftest.$ac_ext
35110 if test "$tst_links_ioctlsocket" = "yes"; then
35111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35112 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35114 /* end confdefs.h. */
35116 $curl_includes_winsock2
35119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35120 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35123 $as_echo "yes" >&6; }
35124 tst_proto_ioctlsocket="yes"
35128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35129 $as_echo "no" >&6; }
35130 tst_proto_ioctlsocket="no"
35137 if test "$tst_proto_ioctlsocket" = "yes"; then
35138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35139 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35141 /* end confdefs.h. */
35144 $curl_includes_winsock2
35149 if(0 != ioctlsocket(0, 0, 0))
35157 if ac_fn_c_try_compile "$LINENO"; then :
35159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35160 $as_echo "yes" >&6; }
35161 tst_compi_ioctlsocket="yes"
35165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35166 $as_echo "no" >&6; }
35167 tst_compi_ioctlsocket="no"
35170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35173 if test "$tst_compi_ioctlsocket" = "yes"; then
35174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35175 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35176 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35178 $as_echo "yes" >&6; }
35179 tst_allow_ioctlsocket="yes"
35181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35182 $as_echo "no" >&6; }
35183 tst_allow_ioctlsocket="no"
35187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35188 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35189 if test "$tst_links_ioctlsocket" = "yes" &&
35190 test "$tst_proto_ioctlsocket" = "yes" &&
35191 test "$tst_compi_ioctlsocket" = "yes" &&
35192 test "$tst_allow_ioctlsocket" = "yes"; then
35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35194 $as_echo "yes" >&6; }
35196 cat >>confdefs.h <<_ACEOF
35197 #define HAVE_IOCTLSOCKET 1
35200 curl_cv_func_ioctlsocket="yes"
35203 tst_compi_ioctlsocket_fionbio="unknown"
35204 tst_allow_ioctlsocket_fionbio="unknown"
35206 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35208 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35210 /* end confdefs.h. */
35213 $curl_includes_winsock2
35219 if(0 != ioctlsocket(0, FIONBIO, &flags))
35227 if ac_fn_c_try_compile "$LINENO"; then :
35229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35230 $as_echo "yes" >&6; }
35231 tst_compi_ioctlsocket_fionbio="yes"
35235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35236 $as_echo "no" >&6; }
35237 tst_compi_ioctlsocket_fionbio="no"
35240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35243 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35245 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35246 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35248 $as_echo "yes" >&6; }
35249 tst_allow_ioctlsocket_fionbio="yes"
35251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35252 $as_echo "no" >&6; }
35253 tst_allow_ioctlsocket_fionbio="no"
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35258 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35259 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35260 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35262 $as_echo "yes" >&6; }
35264 cat >>confdefs.h <<_ACEOF
35265 #define HAVE_IOCTLSOCKET_FIONBIO 1
35268 curl_cv_func_ioctlsocket_fionbio="yes"
35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35271 $as_echo "no" >&6; }
35272 curl_cv_func_ioctlsocket_fionbio="no"
35276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35277 $as_echo "no" >&6; }
35278 curl_cv_func_ioctlsocket="no"
35283 tst_links_ioctlsocket_camel="unknown"
35284 tst_proto_ioctlsocket_camel="unknown"
35285 tst_compi_ioctlsocket_camel="unknown"
35286 tst_allow_ioctlsocket_camel="unknown"
35288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35289 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35291 /* end confdefs.h. */
35294 #define IoctlSocket innocuous_IoctlSocket
35296 # include <limits.h>
35298 # include <assert.h>
35304 char IoctlSocket ();
35305 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35311 return IoctlSocket ();
35317 if ac_fn_c_try_link "$LINENO"; then :
35319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35320 $as_echo "yes" >&6; }
35321 tst_links_ioctlsocket_camel="yes"
35325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35326 $as_echo "no" >&6; }
35327 tst_links_ioctlsocket_camel="no"
35330 rm -f core conftest.err conftest.$ac_objext \
35331 conftest$ac_exeext conftest.$ac_ext
35333 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35335 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35337 /* end confdefs.h. */
35339 $curl_includes_stropts
35342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35343 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35346 $as_echo "yes" >&6; }
35347 tst_proto_ioctlsocket_camel="yes"
35351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35352 $as_echo "no" >&6; }
35353 tst_proto_ioctlsocket_camel="no"
35360 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35362 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35364 /* end confdefs.h. */
35367 $curl_includes_stropts
35372 if(0 != IoctlSocket(0, 0, 0))
35380 if ac_fn_c_try_compile "$LINENO"; then :
35382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35383 $as_echo "yes" >&6; }
35384 tst_compi_ioctlsocket_camel="yes"
35388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35389 $as_echo "no" >&6; }
35390 tst_compi_ioctlsocket_camel="no"
35393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35396 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35398 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35399 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35401 $as_echo "yes" >&6; }
35402 tst_allow_ioctlsocket_camel="yes"
35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35405 $as_echo "no" >&6; }
35406 tst_allow_ioctlsocket_camel="no"
35410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35411 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35412 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35413 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35414 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35415 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35417 $as_echo "yes" >&6; }
35419 cat >>confdefs.h <<_ACEOF
35420 #define HAVE_IOCTLSOCKET_CAMEL 1
35423 curl_cv_func_ioctlsocket_camel="yes"
35426 tst_compi_ioctlsocket_camel_fionbio="unknown"
35427 tst_allow_ioctlsocket_camel_fionbio="unknown"
35429 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35431 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35433 /* end confdefs.h. */
35436 $curl_includes_stropts
35442 if(0 != ioctlsocket(0, FIONBIO, &flags))
35450 if ac_fn_c_try_compile "$LINENO"; then :
35452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35453 $as_echo "yes" >&6; }
35454 tst_compi_ioctlsocket_camel_fionbio="yes"
35458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35459 $as_echo "no" >&6; }
35460 tst_compi_ioctlsocket_camel_fionbio="no"
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35466 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35468 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35469 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35471 $as_echo "yes" >&6; }
35472 tst_allow_ioctlsocket_camel_fionbio="yes"
35474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35475 $as_echo "no" >&6; }
35476 tst_allow_ioctlsocket_camel_fionbio="no"
35480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35481 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35482 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35483 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35485 $as_echo "yes" >&6; }
35487 cat >>confdefs.h <<_ACEOF
35488 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35491 curl_cv_func_ioctlsocket_camel_fionbio="yes"
35493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35494 $as_echo "no" >&6; }
35495 curl_cv_func_ioctlsocket_camel_fionbio="no"
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35500 $as_echo "no" >&6; }
35501 curl_cv_func_ioctlsocket_camel="no"
35506 tst_links_localtime_r="unknown"
35507 tst_proto_localtime_r="unknown"
35508 tst_compi_localtime_r="unknown"
35509 tst_works_localtime_r="unknown"
35510 tst_allow_localtime_r="unknown"
35512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35513 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35515 /* end confdefs.h. */
35518 #define localtime_r innocuous_localtime_r
35520 # include <limits.h>
35522 # include <assert.h>
35528 char localtime_r ();
35529 #if defined __stub_localtime_r || defined __stub___localtime_r
35535 return localtime_r ();
35541 if ac_fn_c_try_link "$LINENO"; then :
35543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35544 $as_echo "yes" >&6; }
35545 tst_links_localtime_r="yes"
35549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35550 $as_echo "no" >&6; }
35551 tst_links_localtime_r="no"
35554 rm -f core conftest.err conftest.$ac_objext \
35555 conftest$ac_exeext conftest.$ac_ext
35557 if test "$tst_links_localtime_r" = "yes"; then
35558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35559 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35561 /* end confdefs.h. */
35563 $curl_includes_time
35566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35567 $EGREP "localtime_r" >/dev/null 2>&1; then :
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570 $as_echo "yes" >&6; }
35571 tst_proto_localtime_r="yes"
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576 $as_echo "no" >&6; }
35577 tst_proto_localtime_r="no"
35584 if test "$tst_proto_localtime_r" = "yes"; then
35585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35586 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35588 /* end confdefs.h. */
35591 $curl_includes_time
35596 if(0 != localtime_r(0, 0))
35604 if ac_fn_c_try_compile "$LINENO"; then :
35606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35607 $as_echo "yes" >&6; }
35608 tst_compi_localtime_r="yes"
35612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35613 $as_echo "no" >&6; }
35614 tst_compi_localtime_r="no"
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35620 if test "x$cross_compiling" != "xyes" &&
35621 test "$tst_compi_localtime_r" = "yes"; then
35622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35623 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35624 if test "$cross_compiling" = yes; then :
35625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35627 as_fn_error $? "cannot run test program while cross compiling
35628 See \`config.log' for more details" "$LINENO" 5; }
35630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35631 /* end confdefs.h. */
35634 $curl_includes_stdlib
35635 $curl_includes_time
35640 time_t clock = 1170352587;
35641 struct tm *tmp = 0;
35643 tmp = localtime_r(&clock, &result);
35654 if ac_fn_c_try_run "$LINENO"; then :
35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35657 $as_echo "yes" >&6; }
35658 tst_works_localtime_r="yes"
35662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35663 $as_echo "no" >&6; }
35664 tst_works_localtime_r="no"
35667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35668 conftest.$ac_objext conftest.beam conftest.$ac_ext
35673 if test "$tst_compi_localtime_r" = "yes" &&
35674 test "$tst_works_localtime_r" != "no"; then
35675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35676 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35677 if test "x$curl_disallow_localtime_r" != "xyes"; then
35678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35679 $as_echo "yes" >&6; }
35680 tst_allow_localtime_r="yes"
35682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35683 $as_echo "no" >&6; }
35684 tst_allow_localtime_r="no"
35688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35689 $as_echo_n "checking if localtime_r might be used... " >&6; }
35690 if test "$tst_links_localtime_r" = "yes" &&
35691 test "$tst_proto_localtime_r" = "yes" &&
35692 test "$tst_compi_localtime_r" = "yes" &&
35693 test "$tst_allow_localtime_r" = "yes" &&
35694 test "$tst_works_localtime_r" != "no"; then
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35696 $as_echo "yes" >&6; }
35698 cat >>confdefs.h <<_ACEOF
35699 #define HAVE_LOCALTIME_R 1
35702 curl_cv_func_localtime_r="yes"
35704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35705 $as_echo "no" >&6; }
35706 curl_cv_func_localtime_r="no"
35711 tst_links_memrchr="unknown"
35712 tst_macro_memrchr="unknown"
35713 tst_proto_memrchr="unknown"
35714 tst_compi_memrchr="unknown"
35715 tst_allow_memrchr="unknown"
35717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35718 $as_echo_n "checking if memrchr can be linked... " >&6; }
35719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35720 /* end confdefs.h. */
35723 #define memrchr innocuous_memrchr
35725 # include <limits.h>
35727 # include <assert.h>
35734 #if defined __stub_memrchr || defined __stub___memrchr
35746 if ac_fn_c_try_link "$LINENO"; then :
35748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35749 $as_echo "yes" >&6; }
35750 tst_links_memrchr="yes"
35754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35755 $as_echo "no" >&6; }
35756 tst_links_memrchr="no"
35759 rm -f core conftest.err conftest.$ac_objext \
35760 conftest$ac_exeext conftest.$ac_ext
35762 if test "$tst_links_memrchr" = "no"; then
35763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35764 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35766 /* end confdefs.h. */
35769 $curl_includes_string
35774 if(0 != memrchr(0, 0, 0))
35782 if ac_fn_c_try_link "$LINENO"; then :
35784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35785 $as_echo "yes" >&6; }
35786 tst_macro_memrchr="yes"
35790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35791 $as_echo "no" >&6; }
35792 tst_macro_memrchr="no"
35795 rm -f core conftest.err conftest.$ac_objext \
35796 conftest$ac_exeext conftest.$ac_ext
35799 if test "$tst_links_memrchr" = "yes"; then
35800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35801 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35803 /* end confdefs.h. */
35805 $curl_includes_string
35808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35809 $EGREP "memrchr" >/dev/null 2>&1; then :
35811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35812 $as_echo "yes" >&6; }
35813 tst_proto_memrchr="yes"
35817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819 tst_proto_memrchr="no"
35826 if test "$tst_proto_memrchr" = "yes" ||
35827 test "$tst_macro_memrchr" = "yes"; then
35828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35829 $as_echo_n "checking if memrchr is compilable... " >&6; }
35830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35831 /* end confdefs.h. */
35834 $curl_includes_string
35839 if(0 != memrchr(0, 0, 0))
35847 if ac_fn_c_try_compile "$LINENO"; then :
35849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35850 $as_echo "yes" >&6; }
35851 tst_compi_memrchr="yes"
35855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35856 $as_echo "no" >&6; }
35857 tst_compi_memrchr="no"
35860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35863 if test "$tst_compi_memrchr" = "yes"; then
35864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35865 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35866 if test "x$curl_disallow_memrchr" != "xyes"; then
35867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35868 $as_echo "yes" >&6; }
35869 tst_allow_memrchr="yes"
35871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35872 $as_echo "no" >&6; }
35873 tst_allow_memrchr="no"
35877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35878 $as_echo_n "checking if memrchr might be used... " >&6; }
35879 if (test "$tst_proto_memrchr" = "yes" ||
35880 test "$tst_macro_memrchr" = "yes") &&
35881 test "$tst_compi_memrchr" = "yes" &&
35882 test "$tst_allow_memrchr" = "yes"; then
35883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35884 $as_echo "yes" >&6; }
35886 cat >>confdefs.h <<_ACEOF
35887 #define HAVE_MEMRCHR 1
35890 curl_cv_func_memrchr="yes"
35892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35893 $as_echo "no" >&6; }
35894 curl_cv_func_memrchr="no"
35899 tst_links_poll="unknown"
35900 tst_proto_poll="unknown"
35901 tst_compi_poll="unknown"
35902 tst_works_poll="unknown"
35903 tst_allow_poll="unknown"
35907 curl_disallow_poll="yes"
35908 tst_compi_poll="no"
35912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35913 $as_echo_n "checking if poll can be linked... " >&6; }
35914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35915 /* end confdefs.h. */
35918 $curl_includes_poll
35923 if(0 != poll(0, 0, 0))
35931 if ac_fn_c_try_link "$LINENO"; then :
35933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35934 $as_echo "yes" >&6; }
35935 tst_links_poll="yes"
35939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35940 $as_echo "no" >&6; }
35941 tst_links_poll="no"
35944 rm -f core conftest.err conftest.$ac_objext \
35945 conftest$ac_exeext conftest.$ac_ext
35947 if test "$tst_links_poll" = "yes"; then
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35949 $as_echo_n "checking if poll is prototyped... " >&6; }
35950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35951 /* end confdefs.h. */
35953 $curl_includes_poll
35956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35957 $EGREP "poll" >/dev/null 2>&1; then :
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35960 $as_echo "yes" >&6; }
35961 tst_proto_poll="yes"
35965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35966 $as_echo "no" >&6; }
35967 tst_proto_poll="no"
35974 if test "$tst_proto_poll" = "yes"; then
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35976 $as_echo_n "checking if poll is compilable... " >&6; }
35977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35978 /* end confdefs.h. */
35981 $curl_includes_poll
35986 if(0 != poll(0, 0, 0))
35994 if ac_fn_c_try_compile "$LINENO"; then :
35996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35997 $as_echo "yes" >&6; }
35998 tst_compi_poll="yes"
36002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36003 $as_echo "no" >&6; }
36004 tst_compi_poll="no"
36007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36010 if test "x$cross_compiling" != "xyes" &&
36011 test "$tst_compi_poll" = "yes"; then
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36013 $as_echo_n "checking if poll seems to work... " >&6; }
36014 if test "$cross_compiling" = yes; then :
36015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36017 as_fn_error $? "cannot run test program while cross compiling
36018 See \`config.log' for more details" "$LINENO" 5; }
36020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36021 /* end confdefs.h. */
36024 $curl_includes_stdlib
36025 $curl_includes_poll
36026 $curl_includes_time
36031 /* detect the original poll() breakage */
36032 if(0 != poll(0, 0, 10))
36033 exit(1); /* fail */
36035 /* detect the 10.12 poll() breakage */
36036 struct timeval before, after;
36040 gettimeofday(&before, NULL);
36041 rc = poll(NULL, 0, 500);
36042 gettimeofday(&after, NULL);
36044 us = (after.tv_sec - before.tv_sec) * 1000000 +
36045 (after.tv_usec - before.tv_usec);
36056 if ac_fn_c_try_run "$LINENO"; then :
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36059 $as_echo "yes" >&6; }
36060 tst_works_poll="yes"
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36065 $as_echo "no" >&6; }
36066 tst_works_poll="no"
36069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36070 conftest.$ac_objext conftest.beam conftest.$ac_ext
36075 if test "$tst_compi_poll" = "yes" &&
36076 test "$tst_works_poll" != "no"; then
36077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36078 $as_echo_n "checking if poll usage allowed... " >&6; }
36079 if test "x$curl_disallow_poll" != "xyes"; then
36080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081 $as_echo "yes" >&6; }
36082 tst_allow_poll="yes"
36084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36085 $as_echo "no" >&6; }
36086 tst_allow_poll="no"
36090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36091 $as_echo_n "checking if poll might be used... " >&6; }
36092 if test "$tst_links_poll" = "yes" &&
36093 test "$tst_proto_poll" = "yes" &&
36094 test "$tst_compi_poll" = "yes" &&
36095 test "$tst_allow_poll" = "yes" &&
36096 test "$tst_works_poll" != "no"; then
36097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36098 $as_echo "yes" >&6; }
36100 cat >>confdefs.h <<_ACEOF
36101 #define HAVE_POLL 1
36105 cat >>confdefs.h <<_ACEOF
36106 #define HAVE_POLL_FINE 1
36109 curl_cv_func_poll="yes"
36111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36112 $as_echo "no" >&6; }
36113 curl_cv_func_poll="no"
36118 tst_links_setsockopt="unknown"
36119 tst_proto_setsockopt="unknown"
36120 tst_compi_setsockopt="unknown"
36121 tst_allow_setsockopt="unknown"
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36124 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36126 /* end confdefs.h. */
36129 $curl_includes_winsock2
36130 $curl_includes_sys_socket
36135 if(0 != setsockopt(0, 0, 0, 0, 0))
36143 if ac_fn_c_try_link "$LINENO"; then :
36145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36146 $as_echo "yes" >&6; }
36147 tst_links_setsockopt="yes"
36151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36152 $as_echo "no" >&6; }
36153 tst_links_setsockopt="no"
36156 rm -f core conftest.err conftest.$ac_objext \
36157 conftest$ac_exeext conftest.$ac_ext
36159 if test "$tst_links_setsockopt" = "yes"; then
36160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36161 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36163 /* end confdefs.h. */
36165 $curl_includes_winsock2
36166 $curl_includes_sys_socket
36169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36170 $EGREP "setsockopt" >/dev/null 2>&1; then :
36172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36173 $as_echo "yes" >&6; }
36174 tst_proto_setsockopt="yes"
36178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36179 $as_echo "no" >&6; }
36180 tst_proto_setsockopt="no"
36187 if test "$tst_proto_setsockopt" = "yes"; then
36188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36189 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36191 /* end confdefs.h. */
36194 $curl_includes_winsock2
36195 $curl_includes_sys_socket
36200 if(0 != setsockopt(0, 0, 0, 0, 0))
36208 if ac_fn_c_try_compile "$LINENO"; then :
36210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36211 $as_echo "yes" >&6; }
36212 tst_compi_setsockopt="yes"
36216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36217 $as_echo "no" >&6; }
36218 tst_compi_setsockopt="no"
36221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36224 if test "$tst_compi_setsockopt" = "yes"; then
36225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36226 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36227 if test "x$curl_disallow_setsockopt" != "xyes"; then
36228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36229 $as_echo "yes" >&6; }
36230 tst_allow_setsockopt="yes"
36232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36233 $as_echo "no" >&6; }
36234 tst_allow_setsockopt="no"
36238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36239 $as_echo_n "checking if setsockopt might be used... " >&6; }
36240 if test "$tst_links_setsockopt" = "yes" &&
36241 test "$tst_proto_setsockopt" = "yes" &&
36242 test "$tst_compi_setsockopt" = "yes" &&
36243 test "$tst_allow_setsockopt" = "yes"; then
36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36245 $as_echo "yes" >&6; }
36247 cat >>confdefs.h <<_ACEOF
36248 #define HAVE_SETSOCKOPT 1
36251 curl_cv_func_setsockopt="yes"
36254 tst_compi_setsockopt_so_nonblock="unknown"
36255 tst_allow_setsockopt_so_nonblock="unknown"
36257 if test "$curl_cv_func_setsockopt" = "yes"; then
36258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36259 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36261 /* end confdefs.h. */
36264 $curl_includes_winsock2
36265 $curl_includes_sys_socket
36270 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36278 if ac_fn_c_try_compile "$LINENO"; then :
36280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36281 $as_echo "yes" >&6; }
36282 tst_compi_setsockopt_so_nonblock="yes"
36286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36287 $as_echo "no" >&6; }
36288 tst_compi_setsockopt_so_nonblock="no"
36291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36294 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36296 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36297 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36299 $as_echo "yes" >&6; }
36300 tst_allow_setsockopt_so_nonblock="yes"
36302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36303 $as_echo "no" >&6; }
36304 tst_allow_setsockopt_so_nonblock="no"
36308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36309 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36310 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36311 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36313 $as_echo "yes" >&6; }
36315 cat >>confdefs.h <<_ACEOF
36316 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36319 curl_cv_func_setsockopt_so_nonblock="yes"
36321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36322 $as_echo "no" >&6; }
36323 curl_cv_func_setsockopt_so_nonblock="no"
36327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36328 $as_echo "no" >&6; }
36329 curl_cv_func_setsockopt="no"
36333 curl_includes_signal="\
36334 /* includes start */
36335 #ifdef HAVE_SYS_TYPES_H
36336 # include <sys/types.h>
36338 #ifdef HAVE_SIGNAL_H
36339 # include <signal.h>
36341 /* includes end */"
36342 for ac_header in sys/types.h signal.h
36344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36348 cat >>confdefs.h <<_ACEOF
36349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36359 tst_links_sigaction="unknown"
36360 tst_proto_sigaction="unknown"
36361 tst_compi_sigaction="unknown"
36362 tst_allow_sigaction="unknown"
36364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36365 $as_echo_n "checking if sigaction can be linked... " >&6; }
36366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36367 /* end confdefs.h. */
36370 #define sigaction innocuous_sigaction
36372 # include <limits.h>
36374 # include <assert.h>
36381 #if defined __stub_sigaction || defined __stub___sigaction
36387 return sigaction ();
36393 if ac_fn_c_try_link "$LINENO"; then :
36395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36396 $as_echo "yes" >&6; }
36397 tst_links_sigaction="yes"
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36402 $as_echo "no" >&6; }
36403 tst_links_sigaction="no"
36406 rm -f core conftest.err conftest.$ac_objext \
36407 conftest$ac_exeext conftest.$ac_ext
36409 if test "$tst_links_sigaction" = "yes"; then
36410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36411 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36413 /* end confdefs.h. */
36415 $curl_includes_signal
36418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36419 $EGREP "sigaction" >/dev/null 2>&1; then :
36421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36422 $as_echo "yes" >&6; }
36423 tst_proto_sigaction="yes"
36427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36428 $as_echo "no" >&6; }
36429 tst_proto_sigaction="no"
36436 if test "$tst_proto_sigaction" = "yes"; then
36437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36438 $as_echo_n "checking if sigaction is compilable... " >&6; }
36439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36440 /* end confdefs.h. */
36443 $curl_includes_signal
36448 if(0 != sigaction(0, 0, 0))
36456 if ac_fn_c_try_compile "$LINENO"; then :
36458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36459 $as_echo "yes" >&6; }
36460 tst_compi_sigaction="yes"
36464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36465 $as_echo "no" >&6; }
36466 tst_compi_sigaction="no"
36469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36472 if test "$tst_compi_sigaction" = "yes"; then
36473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36474 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36475 if test "x$curl_disallow_sigaction" != "xyes"; then
36476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36477 $as_echo "yes" >&6; }
36478 tst_allow_sigaction="yes"
36480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36481 $as_echo "no" >&6; }
36482 tst_allow_sigaction="no"
36486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36487 $as_echo_n "checking if sigaction might be used... " >&6; }
36488 if test "$tst_links_sigaction" = "yes" &&
36489 test "$tst_proto_sigaction" = "yes" &&
36490 test "$tst_compi_sigaction" = "yes" &&
36491 test "$tst_allow_sigaction" = "yes"; then
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36493 $as_echo "yes" >&6; }
36495 cat >>confdefs.h <<_ACEOF
36496 #define HAVE_SIGACTION 1
36499 curl_cv_func_sigaction="yes"
36501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36502 $as_echo "no" >&6; }
36503 curl_cv_func_sigaction="no"
36508 tst_links_siginterrupt="unknown"
36509 tst_proto_siginterrupt="unknown"
36510 tst_compi_siginterrupt="unknown"
36511 tst_allow_siginterrupt="unknown"
36513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36514 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36516 /* end confdefs.h. */
36519 #define siginterrupt innocuous_siginterrupt
36521 # include <limits.h>
36523 # include <assert.h>
36525 #undef siginterrupt
36529 char siginterrupt ();
36530 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36536 return siginterrupt ();
36542 if ac_fn_c_try_link "$LINENO"; then :
36544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36545 $as_echo "yes" >&6; }
36546 tst_links_siginterrupt="yes"
36550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36551 $as_echo "no" >&6; }
36552 tst_links_siginterrupt="no"
36555 rm -f core conftest.err conftest.$ac_objext \
36556 conftest$ac_exeext conftest.$ac_ext
36558 if test "$tst_links_siginterrupt" = "yes"; then
36559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36560 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36562 /* end confdefs.h. */
36564 $curl_includes_signal
36567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36568 $EGREP "siginterrupt" >/dev/null 2>&1; then :
36570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36571 $as_echo "yes" >&6; }
36572 tst_proto_siginterrupt="yes"
36576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36577 $as_echo "no" >&6; }
36578 tst_proto_siginterrupt="no"
36585 if test "$tst_proto_siginterrupt" = "yes"; then
36586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36587 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36589 /* end confdefs.h. */
36592 $curl_includes_signal
36597 if(0 != siginterrupt(0, 0))
36605 if ac_fn_c_try_compile "$LINENO"; then :
36607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36608 $as_echo "yes" >&6; }
36609 tst_compi_siginterrupt="yes"
36613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36614 $as_echo "no" >&6; }
36615 tst_compi_siginterrupt="no"
36618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36621 if test "$tst_compi_siginterrupt" = "yes"; then
36622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36623 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36624 if test "x$curl_disallow_siginterrupt" != "xyes"; then
36625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36626 $as_echo "yes" >&6; }
36627 tst_allow_siginterrupt="yes"
36629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36630 $as_echo "no" >&6; }
36631 tst_allow_siginterrupt="no"
36635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36636 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36637 if test "$tst_links_siginterrupt" = "yes" &&
36638 test "$tst_proto_siginterrupt" = "yes" &&
36639 test "$tst_compi_siginterrupt" = "yes" &&
36640 test "$tst_allow_siginterrupt" = "yes"; then
36641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36642 $as_echo "yes" >&6; }
36644 cat >>confdefs.h <<_ACEOF
36645 #define HAVE_SIGINTERRUPT 1
36648 curl_cv_func_siginterrupt="yes"
36650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36651 $as_echo "no" >&6; }
36652 curl_cv_func_siginterrupt="no"
36657 tst_links_signal="unknown"
36658 tst_proto_signal="unknown"
36659 tst_compi_signal="unknown"
36660 tst_allow_signal="unknown"
36662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36663 $as_echo_n "checking if signal can be linked... " >&6; }
36664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36665 /* end confdefs.h. */
36668 #define signal innocuous_signal
36670 # include <limits.h>
36672 # include <assert.h>
36679 #if defined __stub_signal || defined __stub___signal
36691 if ac_fn_c_try_link "$LINENO"; then :
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36694 $as_echo "yes" >&6; }
36695 tst_links_signal="yes"
36699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36700 $as_echo "no" >&6; }
36701 tst_links_signal="no"
36704 rm -f core conftest.err conftest.$ac_objext \
36705 conftest$ac_exeext conftest.$ac_ext
36707 if test "$tst_links_signal" = "yes"; then
36708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36709 $as_echo_n "checking if signal is prototyped... " >&6; }
36710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36711 /* end confdefs.h. */
36713 $curl_includes_signal
36716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36717 $EGREP "signal" >/dev/null 2>&1; then :
36719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36720 $as_echo "yes" >&6; }
36721 tst_proto_signal="yes"
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36726 $as_echo "no" >&6; }
36727 tst_proto_signal="no"
36734 if test "$tst_proto_signal" = "yes"; then
36735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36736 $as_echo_n "checking if signal is compilable... " >&6; }
36737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36738 /* end confdefs.h. */
36741 $curl_includes_signal
36746 if(0 != signal(0, 0))
36754 if ac_fn_c_try_compile "$LINENO"; then :
36756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36757 $as_echo "yes" >&6; }
36758 tst_compi_signal="yes"
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36763 $as_echo "no" >&6; }
36764 tst_compi_signal="no"
36767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36770 if test "$tst_compi_signal" = "yes"; then
36771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36772 $as_echo_n "checking if signal usage allowed... " >&6; }
36773 if test "x$curl_disallow_signal" != "xyes"; then
36774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36775 $as_echo "yes" >&6; }
36776 tst_allow_signal="yes"
36778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36779 $as_echo "no" >&6; }
36780 tst_allow_signal="no"
36784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36785 $as_echo_n "checking if signal might be used... " >&6; }
36786 if test "$tst_links_signal" = "yes" &&
36787 test "$tst_proto_signal" = "yes" &&
36788 test "$tst_compi_signal" = "yes" &&
36789 test "$tst_allow_signal" = "yes"; then
36790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36791 $as_echo "yes" >&6; }
36793 cat >>confdefs.h <<_ACEOF
36794 #define HAVE_SIGNAL 1
36797 curl_cv_func_signal="yes"
36799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36800 $as_echo "no" >&6; }
36801 curl_cv_func_signal="no"
36805 curl_includes_setjmp="\
36806 /* includes start */
36807 #ifdef HAVE_SYS_TYPES_H
36808 # include <sys/types.h>
36810 #ifdef HAVE_SETJMP_H
36811 # include <setjmp.h>
36813 /* includes end */"
36814 for ac_header in sys/types.h setjmp.h
36816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36817 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36820 cat >>confdefs.h <<_ACEOF
36821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36831 tst_links_sigsetjmp="unknown"
36832 tst_macro_sigsetjmp="unknown"
36833 tst_proto_sigsetjmp="unknown"
36834 tst_compi_sigsetjmp="unknown"
36835 tst_allow_sigsetjmp="unknown"
36837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36838 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36840 /* end confdefs.h. */
36843 #define sigsetjmp innocuous_sigsetjmp
36845 # include <limits.h>
36847 # include <assert.h>
36854 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36860 return sigsetjmp ();
36866 if ac_fn_c_try_link "$LINENO"; then :
36868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36869 $as_echo "yes" >&6; }
36870 tst_links_sigsetjmp="yes"
36874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36875 $as_echo "no" >&6; }
36876 tst_links_sigsetjmp="no"
36879 rm -f core conftest.err conftest.$ac_objext \
36880 conftest$ac_exeext conftest.$ac_ext
36882 if test "$tst_links_sigsetjmp" = "no"; then
36883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36884 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36886 /* end confdefs.h. */
36889 $curl_includes_setjmp
36895 if(0 != sigsetjmp(env, 0))
36903 if ac_fn_c_try_link "$LINENO"; then :
36905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36906 $as_echo "yes" >&6; }
36907 tst_macro_sigsetjmp="yes"
36911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36912 $as_echo "no" >&6; }
36913 tst_macro_sigsetjmp="no"
36916 rm -f core conftest.err conftest.$ac_objext \
36917 conftest$ac_exeext conftest.$ac_ext
36920 if test "$tst_links_sigsetjmp" = "yes"; then
36921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36922 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36924 /* end confdefs.h. */
36926 $curl_includes_setjmp
36929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36930 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36933 $as_echo "yes" >&6; }
36934 tst_proto_sigsetjmp="yes"
36938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36939 $as_echo "no" >&6; }
36940 tst_proto_sigsetjmp="no"
36947 if test "$tst_proto_sigsetjmp" = "yes" ||
36948 test "$tst_macro_sigsetjmp" = "yes"; then
36949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36950 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36952 /* end confdefs.h. */
36955 $curl_includes_setjmp
36961 if(0 != sigsetjmp(env, 0))
36969 if ac_fn_c_try_compile "$LINENO"; then :
36971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36972 $as_echo "yes" >&6; }
36973 tst_compi_sigsetjmp="yes"
36977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36978 $as_echo "no" >&6; }
36979 tst_compi_sigsetjmp="no"
36982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36985 if test "$tst_compi_sigsetjmp" = "yes"; then
36986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36987 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36988 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36990 $as_echo "yes" >&6; }
36991 tst_allow_sigsetjmp="yes"
36993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36994 $as_echo "no" >&6; }
36995 tst_allow_sigsetjmp="no"
36999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37000 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
37001 if (test "$tst_proto_sigsetjmp" = "yes" ||
37002 test "$tst_macro_sigsetjmp" = "yes") &&
37003 test "$tst_compi_sigsetjmp" = "yes" &&
37004 test "$tst_allow_sigsetjmp" = "yes"; then
37005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37006 $as_echo "yes" >&6; }
37008 cat >>confdefs.h <<_ACEOF
37009 #define HAVE_SIGSETJMP 1
37012 curl_cv_func_sigsetjmp="yes"
37014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37015 $as_echo "no" >&6; }
37016 curl_cv_func_sigsetjmp="no"
37021 tst_links_socket="unknown"
37022 tst_proto_socket="unknown"
37023 tst_compi_socket="unknown"
37024 tst_allow_socket="unknown"
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37027 $as_echo_n "checking if socket can be linked... " >&6; }
37028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37029 /* end confdefs.h. */
37032 $curl_includes_winsock2
37033 $curl_includes_sys_socket
37034 $curl_includes_socket
37039 if(0 != socket(0, 0, 0))
37047 if ac_fn_c_try_link "$LINENO"; then :
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37050 $as_echo "yes" >&6; }
37051 tst_links_socket="yes"
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37056 $as_echo "no" >&6; }
37057 tst_links_socket="no"
37060 rm -f core conftest.err conftest.$ac_objext \
37061 conftest$ac_exeext conftest.$ac_ext
37063 if test "$tst_links_socket" = "yes"; then
37064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37065 $as_echo_n "checking if socket is prototyped... " >&6; }
37066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37067 /* end confdefs.h. */
37069 $curl_includes_winsock2
37070 $curl_includes_sys_socket
37071 $curl_includes_socket
37074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37075 $EGREP "socket" >/dev/null 2>&1; then :
37077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37078 $as_echo "yes" >&6; }
37079 tst_proto_socket="yes"
37083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37084 $as_echo "no" >&6; }
37085 tst_proto_socket="no"
37092 if test "$tst_proto_socket" = "yes"; then
37093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37094 $as_echo_n "checking if socket is compilable... " >&6; }
37095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37096 /* end confdefs.h. */
37099 $curl_includes_winsock2
37100 $curl_includes_sys_socket
37101 $curl_includes_socket
37106 if(0 != socket(0, 0, 0))
37114 if ac_fn_c_try_compile "$LINENO"; then :
37116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37117 $as_echo "yes" >&6; }
37118 tst_compi_socket="yes"
37122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37123 $as_echo "no" >&6; }
37124 tst_compi_socket="no"
37127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37130 if test "$tst_compi_socket" = "yes"; then
37131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37132 $as_echo_n "checking if socket usage allowed... " >&6; }
37133 if test "x$curl_disallow_socket" != "xyes"; then
37134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37135 $as_echo "yes" >&6; }
37136 tst_allow_socket="yes"
37138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37139 $as_echo "no" >&6; }
37140 tst_allow_socket="no"
37144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37145 $as_echo_n "checking if socket might be used... " >&6; }
37146 if test "$tst_links_socket" = "yes" &&
37147 test "$tst_proto_socket" = "yes" &&
37148 test "$tst_compi_socket" = "yes" &&
37149 test "$tst_allow_socket" = "yes"; then
37150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37151 $as_echo "yes" >&6; }
37153 cat >>confdefs.h <<_ACEOF
37154 #define HAVE_SOCKET 1
37157 curl_cv_func_socket="yes"
37159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37160 $as_echo "no" >&6; }
37161 curl_cv_func_socket="no"
37166 tst_links_socketpair="unknown"
37167 tst_proto_socketpair="unknown"
37168 tst_compi_socketpair="unknown"
37169 tst_allow_socketpair="unknown"
37171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37172 $as_echo_n "checking if socketpair can be linked... " >&6; }
37173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37174 /* end confdefs.h. */
37177 #define socketpair innocuous_socketpair
37179 # include <limits.h>
37181 # include <assert.h>
37187 char socketpair ();
37188 #if defined __stub_socketpair || defined __stub___socketpair
37194 return socketpair ();
37200 if ac_fn_c_try_link "$LINENO"; then :
37202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37203 $as_echo "yes" >&6; }
37204 tst_links_socketpair="yes"
37208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37209 $as_echo "no" >&6; }
37210 tst_links_socketpair="no"
37213 rm -f core conftest.err conftest.$ac_objext \
37214 conftest$ac_exeext conftest.$ac_ext
37216 if test "$tst_links_socketpair" = "yes"; then
37217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37218 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37220 /* end confdefs.h. */
37222 $curl_includes_sys_socket
37223 $curl_includes_socket
37226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37227 $EGREP "socketpair" >/dev/null 2>&1; then :
37229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37230 $as_echo "yes" >&6; }
37231 tst_proto_socketpair="yes"
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37236 $as_echo "no" >&6; }
37237 tst_proto_socketpair="no"
37244 if test "$tst_proto_socketpair" = "yes"; then
37245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37246 $as_echo_n "checking if socketpair is compilable... " >&6; }
37247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37248 /* end confdefs.h. */
37251 $curl_includes_sys_socket
37252 $curl_includes_socket
37258 if(0 != socketpair(0, 0, 0, sv))
37266 if ac_fn_c_try_compile "$LINENO"; then :
37268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37269 $as_echo "yes" >&6; }
37270 tst_compi_socketpair="yes"
37274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37275 $as_echo "no" >&6; }
37276 tst_compi_socketpair="no"
37279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37282 if test "$tst_compi_socketpair" = "yes"; then
37283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37284 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37285 if test "x$curl_disallow_socketpair" != "xyes"; then
37286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37287 $as_echo "yes" >&6; }
37288 tst_allow_socketpair="yes"
37290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37291 $as_echo "no" >&6; }
37292 tst_allow_socketpair="no"
37296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37297 $as_echo_n "checking if socketpair might be used... " >&6; }
37298 if test "$tst_links_socketpair" = "yes" &&
37299 test "$tst_proto_socketpair" = "yes" &&
37300 test "$tst_compi_socketpair" = "yes" &&
37301 test "$tst_allow_socketpair" = "yes"; then
37302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37303 $as_echo "yes" >&6; }
37305 cat >>confdefs.h <<_ACEOF
37306 #define HAVE_SOCKETPAIR 1
37309 curl_cv_func_socketpair="yes"
37311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37312 $as_echo "no" >&6; }
37313 curl_cv_func_socketpair="no"
37318 tst_links_strcasecmp="unknown"
37319 tst_proto_strcasecmp="unknown"
37320 tst_compi_strcasecmp="unknown"
37321 tst_allow_strcasecmp="unknown"
37323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37324 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37326 /* end confdefs.h. */
37329 #define strcasecmp innocuous_strcasecmp
37331 # include <limits.h>
37333 # include <assert.h>
37339 char strcasecmp ();
37340 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37346 return strcasecmp ();
37352 if ac_fn_c_try_link "$LINENO"; then :
37354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37355 $as_echo "yes" >&6; }
37356 tst_links_strcasecmp="yes"
37360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37361 $as_echo "no" >&6; }
37362 tst_links_strcasecmp="no"
37365 rm -f core conftest.err conftest.$ac_objext \
37366 conftest$ac_exeext conftest.$ac_ext
37368 if test "$tst_links_strcasecmp" = "yes"; then
37369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37370 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37372 /* end confdefs.h. */
37374 $curl_includes_string
37377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37378 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37381 $as_echo "yes" >&6; }
37382 tst_proto_strcasecmp="yes"
37386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37387 $as_echo "no" >&6; }
37388 tst_proto_strcasecmp="no"
37395 if test "$tst_proto_strcasecmp" = "yes"; then
37396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37397 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37399 /* end confdefs.h. */
37402 $curl_includes_string
37407 if(0 != strcasecmp(0, 0))
37415 if ac_fn_c_try_compile "$LINENO"; then :
37417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37418 $as_echo "yes" >&6; }
37419 tst_compi_strcasecmp="yes"
37423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37424 $as_echo "no" >&6; }
37425 tst_compi_strcasecmp="no"
37428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37431 if test "$tst_compi_strcasecmp" = "yes"; then
37432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37433 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37434 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37436 $as_echo "yes" >&6; }
37437 tst_allow_strcasecmp="yes"
37439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37440 $as_echo "no" >&6; }
37441 tst_allow_strcasecmp="no"
37445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37446 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37447 if test "$tst_links_strcasecmp" = "yes" &&
37448 test "$tst_proto_strcasecmp" = "yes" &&
37449 test "$tst_compi_strcasecmp" = "yes" &&
37450 test "$tst_allow_strcasecmp" = "yes"; then
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37452 $as_echo "yes" >&6; }
37454 cat >>confdefs.h <<_ACEOF
37455 #define HAVE_STRCASECMP 1
37458 curl_cv_func_strcasecmp="yes"
37460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37461 $as_echo "no" >&6; }
37462 curl_cv_func_strcasecmp="no"
37467 tst_links_strcmpi="unknown"
37468 tst_proto_strcmpi="unknown"
37469 tst_compi_strcmpi="unknown"
37470 tst_allow_strcmpi="unknown"
37472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37473 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37475 /* end confdefs.h. */
37478 #define strcmpi innocuous_strcmpi
37480 # include <limits.h>
37482 # include <assert.h>
37489 #if defined __stub_strcmpi || defined __stub___strcmpi
37501 if ac_fn_c_try_link "$LINENO"; then :
37503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37504 $as_echo "yes" >&6; }
37505 tst_links_strcmpi="yes"
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37510 $as_echo "no" >&6; }
37511 tst_links_strcmpi="no"
37514 rm -f core conftest.err conftest.$ac_objext \
37515 conftest$ac_exeext conftest.$ac_ext
37517 if test "$tst_links_strcmpi" = "yes"; then
37518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37519 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37521 /* end confdefs.h. */
37523 $curl_includes_string
37526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37527 $EGREP "strcmpi" >/dev/null 2>&1; then :
37529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37530 $as_echo "yes" >&6; }
37531 tst_proto_strcmpi="yes"
37535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37536 $as_echo "no" >&6; }
37537 tst_proto_strcmpi="no"
37544 if test "$tst_proto_strcmpi" = "yes"; then
37545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37546 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37548 /* end confdefs.h. */
37551 $curl_includes_string
37556 if(0 != strcmpi(0, 0))
37564 if ac_fn_c_try_compile "$LINENO"; then :
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37567 $as_echo "yes" >&6; }
37568 tst_compi_strcmpi="yes"
37572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37573 $as_echo "no" >&6; }
37574 tst_compi_strcmpi="no"
37577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37580 if test "$tst_compi_strcmpi" = "yes"; then
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37582 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37583 if test "x$curl_disallow_strcmpi" != "xyes"; then
37584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37585 $as_echo "yes" >&6; }
37586 tst_allow_strcmpi="yes"
37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37589 $as_echo "no" >&6; }
37590 tst_allow_strcmpi="no"
37594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37595 $as_echo_n "checking if strcmpi might be used... " >&6; }
37596 if test "$tst_links_strcmpi" = "yes" &&
37597 test "$tst_proto_strcmpi" = "yes" &&
37598 test "$tst_compi_strcmpi" = "yes" &&
37599 test "$tst_allow_strcmpi" = "yes"; then
37600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37601 $as_echo "yes" >&6; }
37603 cat >>confdefs.h <<_ACEOF
37604 #define HAVE_STRCMPI 1
37607 curl_cv_func_strcmpi="yes"
37609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37610 $as_echo "no" >&6; }
37611 curl_cv_func_strcmpi="no"
37616 tst_links_strdup="unknown"
37617 tst_proto_strdup="unknown"
37618 tst_compi_strdup="unknown"
37619 tst_allow_strdup="unknown"
37621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37622 $as_echo_n "checking if strdup can be linked... " >&6; }
37623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37624 /* end confdefs.h. */
37627 #define strdup innocuous_strdup
37629 # include <limits.h>
37631 # include <assert.h>
37638 #if defined __stub_strdup || defined __stub___strdup
37650 if ac_fn_c_try_link "$LINENO"; then :
37652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37653 $as_echo "yes" >&6; }
37654 tst_links_strdup="yes"
37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37659 $as_echo "no" >&6; }
37660 tst_links_strdup="no"
37663 rm -f core conftest.err conftest.$ac_objext \
37664 conftest$ac_exeext conftest.$ac_ext
37666 if test "$tst_links_strdup" = "yes"; then
37667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37668 $as_echo_n "checking if strdup is prototyped... " >&6; }
37669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37670 /* end confdefs.h. */
37672 $curl_includes_string
37675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37676 $EGREP "strdup" >/dev/null 2>&1; then :
37678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37679 $as_echo "yes" >&6; }
37680 tst_proto_strdup="yes"
37684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37685 $as_echo "no" >&6; }
37686 tst_proto_strdup="no"
37693 if test "$tst_proto_strdup" = "yes"; then
37694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37695 $as_echo_n "checking if strdup is compilable... " >&6; }
37696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37697 /* end confdefs.h. */
37700 $curl_includes_string
37713 if ac_fn_c_try_compile "$LINENO"; then :
37715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37716 $as_echo "yes" >&6; }
37717 tst_compi_strdup="yes"
37721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37722 $as_echo "no" >&6; }
37723 tst_compi_strdup="no"
37726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37729 if test "$tst_compi_strdup" = "yes"; then
37730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37731 $as_echo_n "checking if strdup usage allowed... " >&6; }
37732 if test "x$curl_disallow_strdup" != "xyes"; then
37733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37734 $as_echo "yes" >&6; }
37735 tst_allow_strdup="yes"
37737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37738 $as_echo "no" >&6; }
37739 tst_allow_strdup="no"
37743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37744 $as_echo_n "checking if strdup might be used... " >&6; }
37745 if test "$tst_links_strdup" = "yes" &&
37746 test "$tst_proto_strdup" = "yes" &&
37747 test "$tst_compi_strdup" = "yes" &&
37748 test "$tst_allow_strdup" = "yes"; then
37749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37750 $as_echo "yes" >&6; }
37752 cat >>confdefs.h <<_ACEOF
37753 #define HAVE_STRDUP 1
37756 curl_cv_func_strdup="yes"
37758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37759 $as_echo "no" >&6; }
37760 curl_cv_func_strdup="no"
37765 tst_links_strerror_r="unknown"
37766 tst_proto_strerror_r="unknown"
37767 tst_compi_strerror_r="unknown"
37768 tst_glibc_strerror_r="unknown"
37769 tst_posix_strerror_r="unknown"
37770 tst_allow_strerror_r="unknown"
37771 tst_works_glibc_strerror_r="unknown"
37772 tst_works_posix_strerror_r="unknown"
37773 tst_glibc_strerror_r_type_arg3="unknown"
37774 tst_posix_strerror_r_type_arg3="unknown"
37776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37777 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37779 /* end confdefs.h. */
37782 #define strerror_r innocuous_strerror_r
37784 # include <limits.h>
37786 # include <assert.h>
37792 char strerror_r ();
37793 #if defined __stub_strerror_r || defined __stub___strerror_r
37799 return strerror_r ();
37805 if ac_fn_c_try_link "$LINENO"; then :
37807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37808 $as_echo "yes" >&6; }
37809 tst_links_strerror_r="yes"
37813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37814 $as_echo "no" >&6; }
37815 tst_links_strerror_r="no"
37818 rm -f core conftest.err conftest.$ac_objext \
37819 conftest$ac_exeext conftest.$ac_ext
37821 if test "$tst_links_strerror_r" = "yes"; then
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37823 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37825 /* end confdefs.h. */
37827 $curl_includes_string
37830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37831 $EGREP "strerror_r" >/dev/null 2>&1; then :
37833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37834 $as_echo "yes" >&6; }
37835 tst_proto_strerror_r="yes"
37839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37840 $as_echo "no" >&6; }
37841 tst_proto_strerror_r="no"
37848 if test "$tst_proto_strerror_r" = "yes"; then
37849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37850 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37852 /* end confdefs.h. */
37855 $curl_includes_string
37860 if(0 != strerror_r(0, 0, 0))
37868 if ac_fn_c_try_compile "$LINENO"; then :
37870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37871 $as_echo "yes" >&6; }
37872 tst_compi_strerror_r="yes"
37876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37877 $as_echo "no" >&6; }
37878 tst_compi_strerror_r="no"
37881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37884 if test "$tst_compi_strerror_r" = "yes"; then
37885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37886 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37887 tst_glibc_strerror_r_type_arg3="unknown"
37888 for arg3 in 'size_t' 'int' 'unsigned int'; do
37889 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37891 /* end confdefs.h. */
37894 $curl_includes_string
37895 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37900 if(0 != strerror_r(0, 0, 0))
37908 if ac_fn_c_try_compile "$LINENO"; then :
37910 tst_glibc_strerror_r_type_arg3="$arg3"
37913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37916 case "$tst_glibc_strerror_r_type_arg3" in
37918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37919 $as_echo "no" >&6; }
37920 tst_glibc_strerror_r="no"
37923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37924 $as_echo "yes" >&6; }
37925 tst_glibc_strerror_r="yes"
37930 if test "x$cross_compiling" != "xyes" &&
37931 test "$tst_glibc_strerror_r" = "yes"; then
37932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37933 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37934 if test "$cross_compiling" = yes; then :
37935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37937 as_fn_error $? "cannot run test program while cross compiling
37938 See \`config.log' for more details" "$LINENO" 5; }
37940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37941 /* end confdefs.h. */
37944 $curl_includes_stdlib
37945 $curl_includes_string
37946 # include <errno.h>
37954 string = strerror_r(EACCES, buffer, sizeof(buffer));
37956 exit(1); /* fail */
37958 exit(1); /* fail */
37967 if ac_fn_c_try_run "$LINENO"; then :
37969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37970 $as_echo "yes" >&6; }
37971 tst_works_glibc_strerror_r="yes"
37975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37976 $as_echo "no" >&6; }
37977 tst_works_glibc_strerror_r="no"
37980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37981 conftest.$ac_objext conftest.beam conftest.$ac_ext
37986 if test "$tst_compi_strerror_r" = "yes" &&
37987 test "$tst_works_glibc_strerror_r" != "yes"; then
37988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37989 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37990 tst_posix_strerror_r_type_arg3="unknown"
37991 for arg3 in 'size_t' 'int' 'unsigned int'; do
37992 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37994 /* end confdefs.h. */
37997 $curl_includes_string
37998 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38003 if(0 != strerror_r(0, 0, 0))
38011 if ac_fn_c_try_compile "$LINENO"; then :
38013 tst_posix_strerror_r_type_arg3="$arg3"
38016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38019 case "$tst_posix_strerror_r_type_arg3" in
38021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38022 $as_echo "no" >&6; }
38023 tst_posix_strerror_r="no"
38026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38027 $as_echo "yes" >&6; }
38028 tst_posix_strerror_r="yes"
38033 if test "x$cross_compiling" != "xyes" &&
38034 test "$tst_posix_strerror_r" = "yes"; then
38035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38036 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38037 if test "$cross_compiling" = yes; then :
38038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38040 as_fn_error $? "cannot run test program while cross compiling
38041 See \`config.log' for more details" "$LINENO" 5; }
38043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38044 /* end confdefs.h. */
38047 $curl_includes_stdlib
38048 $curl_includes_string
38049 # include <errno.h>
38057 error = strerror_r(EACCES, buffer, sizeof(buffer));
38059 exit(1); /* fail */
38060 if(buffer[0] == '\0')
38061 exit(1); /* fail */
38070 if ac_fn_c_try_run "$LINENO"; then :
38072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38073 $as_echo "yes" >&6; }
38074 tst_works_posix_strerror_r="yes"
38078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38079 $as_echo "no" >&6; }
38080 tst_works_posix_strerror_r="no"
38083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38084 conftest.$ac_objext conftest.beam conftest.$ac_ext
38089 if test "$tst_works_glibc_strerror_r" = "yes"; then
38090 tst_posix_strerror_r="no"
38092 if test "$tst_works_posix_strerror_r" = "yes"; then
38093 tst_glibc_strerror_r="no"
38095 if test "$tst_glibc_strerror_r" = "yes" &&
38096 test "$tst_works_glibc_strerror_r" != "no" &&
38097 test "$tst_posix_strerror_r" != "yes"; then
38098 tst_allow_strerror_r="check"
38100 if test "$tst_posix_strerror_r" = "yes" &&
38101 test "$tst_works_posix_strerror_r" != "no" &&
38102 test "$tst_glibc_strerror_r" != "yes"; then
38103 tst_allow_strerror_r="check"
38105 if test "$tst_allow_strerror_r" = "check"; then
38106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38107 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38108 if test "x$curl_disallow_strerror_r" != "xyes"; then
38109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38110 $as_echo "yes" >&6; }
38111 tst_allow_strerror_r="yes"
38113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38114 $as_echo "no" >&6; }
38115 tst_allow_strerror_r="no"
38119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38120 $as_echo_n "checking if strerror_r might be used... " >&6; }
38121 if test "$tst_links_strerror_r" = "yes" &&
38122 test "$tst_proto_strerror_r" = "yes" &&
38123 test "$tst_compi_strerror_r" = "yes" &&
38124 test "$tst_allow_strerror_r" = "yes"; then
38125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38126 $as_echo "yes" >&6; }
38127 if test "$tst_glibc_strerror_r" = "yes"; then
38129 cat >>confdefs.h <<_ACEOF
38130 #define HAVE_STRERROR_R 1
38134 cat >>confdefs.h <<_ACEOF
38135 #define HAVE_GLIBC_STRERROR_R 1
38139 cat >>confdefs.h <<_ACEOF
38140 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38144 if test "$tst_posix_strerror_r" = "yes"; then
38146 cat >>confdefs.h <<_ACEOF
38147 #define HAVE_STRERROR_R 1
38151 cat >>confdefs.h <<_ACEOF
38152 #define HAVE_POSIX_STRERROR_R 1
38156 cat >>confdefs.h <<_ACEOF
38157 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38161 curl_cv_func_strerror_r="yes"
38163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38164 $as_echo "no" >&6; }
38165 curl_cv_func_strerror_r="no"
38168 if test "$tst_compi_strerror_r" = "yes" &&
38169 test "$tst_allow_strerror_r" = "unknown"; then
38170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38171 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38177 tst_links_stricmp="unknown"
38178 tst_proto_stricmp="unknown"
38179 tst_compi_stricmp="unknown"
38180 tst_allow_stricmp="unknown"
38182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38183 $as_echo_n "checking if stricmp can be linked... " >&6; }
38184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38185 /* end confdefs.h. */
38188 #define stricmp innocuous_stricmp
38190 # include <limits.h>
38192 # include <assert.h>
38199 #if defined __stub_stricmp || defined __stub___stricmp
38211 if ac_fn_c_try_link "$LINENO"; then :
38213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38214 $as_echo "yes" >&6; }
38215 tst_links_stricmp="yes"
38219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38220 $as_echo "no" >&6; }
38221 tst_links_stricmp="no"
38224 rm -f core conftest.err conftest.$ac_objext \
38225 conftest$ac_exeext conftest.$ac_ext
38227 if test "$tst_links_stricmp" = "yes"; then
38228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38229 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38231 /* end confdefs.h. */
38233 $curl_includes_string
38236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38237 $EGREP "stricmp" >/dev/null 2>&1; then :
38239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38240 $as_echo "yes" >&6; }
38241 tst_proto_stricmp="yes"
38245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38246 $as_echo "no" >&6; }
38247 tst_proto_stricmp="no"
38254 if test "$tst_proto_stricmp" = "yes"; then
38255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38256 $as_echo_n "checking if stricmp is compilable... " >&6; }
38257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38258 /* end confdefs.h. */
38261 $curl_includes_string
38266 if(0 != stricmp(0, 0))
38274 if ac_fn_c_try_compile "$LINENO"; then :
38276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38277 $as_echo "yes" >&6; }
38278 tst_compi_stricmp="yes"
38282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38283 $as_echo "no" >&6; }
38284 tst_compi_stricmp="no"
38287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38290 if test "$tst_compi_stricmp" = "yes"; then
38291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38292 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38293 if test "x$curl_disallow_stricmp" != "xyes"; then
38294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38295 $as_echo "yes" >&6; }
38296 tst_allow_stricmp="yes"
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38299 $as_echo "no" >&6; }
38300 tst_allow_stricmp="no"
38304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38305 $as_echo_n "checking if stricmp might be used... " >&6; }
38306 if test "$tst_links_stricmp" = "yes" &&
38307 test "$tst_proto_stricmp" = "yes" &&
38308 test "$tst_compi_stricmp" = "yes" &&
38309 test "$tst_allow_stricmp" = "yes"; then
38310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38311 $as_echo "yes" >&6; }
38313 cat >>confdefs.h <<_ACEOF
38314 #define HAVE_STRICMP 1
38317 curl_cv_func_stricmp="yes"
38319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38320 $as_echo "no" >&6; }
38321 curl_cv_func_stricmp="no"
38326 tst_links_strncasecmp="unknown"
38327 tst_proto_strncasecmp="unknown"
38328 tst_compi_strncasecmp="unknown"
38329 tst_allow_strncasecmp="unknown"
38331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38332 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38334 /* end confdefs.h. */
38337 #define strncasecmp innocuous_strncasecmp
38339 # include <limits.h>
38341 # include <assert.h>
38347 char strncasecmp ();
38348 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38354 return strncasecmp ();
38360 if ac_fn_c_try_link "$LINENO"; then :
38362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38363 $as_echo "yes" >&6; }
38364 tst_links_strncasecmp="yes"
38368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38369 $as_echo "no" >&6; }
38370 tst_links_strncasecmp="no"
38373 rm -f core conftest.err conftest.$ac_objext \
38374 conftest$ac_exeext conftest.$ac_ext
38376 if test "$tst_links_strncasecmp" = "yes"; then
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38378 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38380 /* end confdefs.h. */
38382 $curl_includes_string
38385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38386 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38389 $as_echo "yes" >&6; }
38390 tst_proto_strncasecmp="yes"
38394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38395 $as_echo "no" >&6; }
38396 tst_proto_strncasecmp="no"
38403 if test "$tst_proto_strncasecmp" = "yes"; then
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38405 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38407 /* end confdefs.h. */
38410 $curl_includes_string
38415 if(0 != strncasecmp(0, 0, 0))
38423 if ac_fn_c_try_compile "$LINENO"; then :
38425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38426 $as_echo "yes" >&6; }
38427 tst_compi_strncasecmp="yes"
38431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38432 $as_echo "no" >&6; }
38433 tst_compi_strncasecmp="no"
38436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38439 if test "$tst_compi_strncasecmp" = "yes"; then
38440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38441 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38442 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38444 $as_echo "yes" >&6; }
38445 tst_allow_strncasecmp="yes"
38447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38448 $as_echo "no" >&6; }
38449 tst_allow_strncasecmp="no"
38453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38454 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38455 if test "$tst_links_strncasecmp" = "yes" &&
38456 test "$tst_proto_strncasecmp" = "yes" &&
38457 test "$tst_compi_strncasecmp" = "yes" &&
38458 test "$tst_allow_strncasecmp" = "yes"; then
38459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38460 $as_echo "yes" >&6; }
38462 cat >>confdefs.h <<_ACEOF
38463 #define HAVE_STRNCASECMP 1
38466 curl_cv_func_strncasecmp="yes"
38468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38469 $as_echo "no" >&6; }
38470 curl_cv_func_strncasecmp="no"
38475 tst_links_strncmpi="unknown"
38476 tst_proto_strncmpi="unknown"
38477 tst_compi_strncmpi="unknown"
38478 tst_allow_strncmpi="unknown"
38480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38481 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38483 /* end confdefs.h. */
38486 #define strncmpi innocuous_strncmpi
38488 # include <limits.h>
38490 # include <assert.h>
38497 #if defined __stub_strncmpi || defined __stub___strncmpi
38503 return strncmpi ();
38509 if ac_fn_c_try_link "$LINENO"; then :
38511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38512 $as_echo "yes" >&6; }
38513 tst_links_strncmpi="yes"
38517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38518 $as_echo "no" >&6; }
38519 tst_links_strncmpi="no"
38522 rm -f core conftest.err conftest.$ac_objext \
38523 conftest$ac_exeext conftest.$ac_ext
38525 if test "$tst_links_strncmpi" = "yes"; then
38526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38527 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38529 /* end confdefs.h. */
38531 $curl_includes_string
38534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38535 $EGREP "strncmpi" >/dev/null 2>&1; then :
38537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38538 $as_echo "yes" >&6; }
38539 tst_proto_strncmpi="yes"
38543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38544 $as_echo "no" >&6; }
38545 tst_proto_strncmpi="no"
38552 if test "$tst_proto_strncmpi" = "yes"; then
38553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38554 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38556 /* end confdefs.h. */
38559 $curl_includes_string
38564 if(0 != strncmpi(0, 0))
38572 if ac_fn_c_try_compile "$LINENO"; then :
38574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38575 $as_echo "yes" >&6; }
38576 tst_compi_strncmpi="yes"
38580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38581 $as_echo "no" >&6; }
38582 tst_compi_strncmpi="no"
38585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38588 if test "$tst_compi_strncmpi" = "yes"; then
38589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38590 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38591 if test "x$curl_disallow_strncmpi" != "xyes"; then
38592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38593 $as_echo "yes" >&6; }
38594 tst_allow_strncmpi="yes"
38596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38597 $as_echo "no" >&6; }
38598 tst_allow_strncmpi="no"
38602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38603 $as_echo_n "checking if strncmpi might be used... " >&6; }
38604 if test "$tst_links_strncmpi" = "yes" &&
38605 test "$tst_proto_strncmpi" = "yes" &&
38606 test "$tst_compi_strncmpi" = "yes" &&
38607 test "$tst_allow_strncmpi" = "yes"; then
38608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38609 $as_echo "yes" >&6; }
38611 cat >>confdefs.h <<_ACEOF
38612 #define HAVE_STRNCMPI 1
38615 curl_cv_func_strncmpi="yes"
38617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38618 $as_echo "no" >&6; }
38619 curl_cv_func_strncmpi="no"
38624 tst_links_strnicmp="unknown"
38625 tst_proto_strnicmp="unknown"
38626 tst_compi_strnicmp="unknown"
38627 tst_allow_strnicmp="unknown"
38629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38630 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38632 /* end confdefs.h. */
38635 #define strnicmp innocuous_strnicmp
38637 # include <limits.h>
38639 # include <assert.h>
38646 #if defined __stub_strnicmp || defined __stub___strnicmp
38652 return strnicmp ();
38658 if ac_fn_c_try_link "$LINENO"; then :
38660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38661 $as_echo "yes" >&6; }
38662 tst_links_strnicmp="yes"
38666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38667 $as_echo "no" >&6; }
38668 tst_links_strnicmp="no"
38671 rm -f core conftest.err conftest.$ac_objext \
38672 conftest$ac_exeext conftest.$ac_ext
38674 if test "$tst_links_strnicmp" = "yes"; then
38675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38676 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38678 /* end confdefs.h. */
38680 $curl_includes_string
38683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38684 $EGREP "strnicmp" >/dev/null 2>&1; then :
38686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38687 $as_echo "yes" >&6; }
38688 tst_proto_strnicmp="yes"
38692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38693 $as_echo "no" >&6; }
38694 tst_proto_strnicmp="no"
38701 if test "$tst_proto_strnicmp" = "yes"; then
38702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38703 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38705 /* end confdefs.h. */
38708 $curl_includes_string
38713 if(0 != strnicmp(0, 0))
38721 if ac_fn_c_try_compile "$LINENO"; then :
38723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38724 $as_echo "yes" >&6; }
38725 tst_compi_strnicmp="yes"
38729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38730 $as_echo "no" >&6; }
38731 tst_compi_strnicmp="no"
38734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38737 if test "$tst_compi_strnicmp" = "yes"; then
38738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38739 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38740 if test "x$curl_disallow_strnicmp" != "xyes"; then
38741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38742 $as_echo "yes" >&6; }
38743 tst_allow_strnicmp="yes"
38745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38746 $as_echo "no" >&6; }
38747 tst_allow_strnicmp="no"
38751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38752 $as_echo_n "checking if strnicmp might be used... " >&6; }
38753 if test "$tst_links_strnicmp" = "yes" &&
38754 test "$tst_proto_strnicmp" = "yes" &&
38755 test "$tst_compi_strnicmp" = "yes" &&
38756 test "$tst_allow_strnicmp" = "yes"; then
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38758 $as_echo "yes" >&6; }
38760 cat >>confdefs.h <<_ACEOF
38761 #define HAVE_STRNICMP 1
38764 curl_cv_func_strnicmp="yes"
38766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38767 $as_echo "no" >&6; }
38768 curl_cv_func_strnicmp="no"
38773 tst_links_strstr="unknown"
38774 tst_proto_strstr="unknown"
38775 tst_compi_strstr="unknown"
38776 tst_allow_strstr="unknown"
38778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38779 $as_echo_n "checking if strstr can be linked... " >&6; }
38780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38781 /* end confdefs.h. */
38784 #define strstr innocuous_strstr
38786 # include <limits.h>
38788 # include <assert.h>
38795 #if defined __stub_strstr || defined __stub___strstr
38807 if ac_fn_c_try_link "$LINENO"; then :
38809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38810 $as_echo "yes" >&6; }
38811 tst_links_strstr="yes"
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38816 $as_echo "no" >&6; }
38817 tst_links_strstr="no"
38820 rm -f core conftest.err conftest.$ac_objext \
38821 conftest$ac_exeext conftest.$ac_ext
38823 if test "$tst_links_strstr" = "yes"; then
38824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38825 $as_echo_n "checking if strstr is prototyped... " >&6; }
38826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38827 /* end confdefs.h. */
38829 $curl_includes_string
38832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38833 $EGREP "strstr" >/dev/null 2>&1; then :
38835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38836 $as_echo "yes" >&6; }
38837 tst_proto_strstr="yes"
38841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38842 $as_echo "no" >&6; }
38843 tst_proto_strstr="no"
38850 if test "$tst_proto_strstr" = "yes"; then
38851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38852 $as_echo_n "checking if strstr is compilable... " >&6; }
38853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38854 /* end confdefs.h. */
38857 $curl_includes_string
38862 if(0 != strstr(0, 0))
38870 if ac_fn_c_try_compile "$LINENO"; then :
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38873 $as_echo "yes" >&6; }
38874 tst_compi_strstr="yes"
38878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38879 $as_echo "no" >&6; }
38880 tst_compi_strstr="no"
38883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38886 if test "$tst_compi_strstr" = "yes"; then
38887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38888 $as_echo_n "checking if strstr usage allowed... " >&6; }
38889 if test "x$curl_disallow_strstr" != "xyes"; then
38890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38891 $as_echo "yes" >&6; }
38892 tst_allow_strstr="yes"
38894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38895 $as_echo "no" >&6; }
38896 tst_allow_strstr="no"
38900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38901 $as_echo_n "checking if strstr might be used... " >&6; }
38902 if test "$tst_links_strstr" = "yes" &&
38903 test "$tst_proto_strstr" = "yes" &&
38904 test "$tst_compi_strstr" = "yes" &&
38905 test "$tst_allow_strstr" = "yes"; then
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38907 $as_echo "yes" >&6; }
38909 cat >>confdefs.h <<_ACEOF
38910 #define HAVE_STRSTR 1
38913 curl_cv_func_strstr="yes"
38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38916 $as_echo "no" >&6; }
38917 curl_cv_func_strstr="no"
38922 tst_links_strtok_r="unknown"
38923 tst_proto_strtok_r="unknown"
38924 tst_compi_strtok_r="unknown"
38925 tst_allow_strtok_r="unknown"
38927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38928 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38930 /* end confdefs.h. */
38933 #define strtok_r innocuous_strtok_r
38935 # include <limits.h>
38937 # include <assert.h>
38944 #if defined __stub_strtok_r || defined __stub___strtok_r
38950 return strtok_r ();
38956 if ac_fn_c_try_link "$LINENO"; then :
38958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38959 $as_echo "yes" >&6; }
38960 tst_links_strtok_r="yes"
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38965 $as_echo "no" >&6; }
38966 tst_links_strtok_r="no"
38969 rm -f core conftest.err conftest.$ac_objext \
38970 conftest$ac_exeext conftest.$ac_ext
38972 if test "$tst_links_strtok_r" = "yes"; then
38973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38974 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38976 /* end confdefs.h. */
38978 $curl_includes_string
38981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38982 $EGREP "strtok_r" >/dev/null 2>&1; then :
38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38985 $as_echo "yes" >&6; }
38986 tst_proto_strtok_r="yes"
38990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38991 $as_echo "no" >&6; }
38992 tst_proto_strtok_r="no"
38999 if test "$tst_proto_strtok_r" = "yes"; then
39000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39001 $as_echo_n "checking if strtok_r is compilable... " >&6; }
39002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39003 /* end confdefs.h. */
39006 $curl_includes_string
39011 if(0 != strtok_r(0, 0, 0))
39019 if ac_fn_c_try_compile "$LINENO"; then :
39021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39022 $as_echo "yes" >&6; }
39023 tst_compi_strtok_r="yes"
39027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39028 $as_echo "no" >&6; }
39029 tst_compi_strtok_r="no"
39032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39035 if test "$tst_compi_strtok_r" = "yes"; then
39036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39037 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
39038 if test "x$curl_disallow_strtok_r" != "xyes"; then
39039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39040 $as_echo "yes" >&6; }
39041 tst_allow_strtok_r="yes"
39043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39044 $as_echo "no" >&6; }
39045 tst_allow_strtok_r="no"
39049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39050 $as_echo_n "checking if strtok_r might be used... " >&6; }
39051 if test "$tst_links_strtok_r" = "yes" &&
39052 test "$tst_proto_strtok_r" = "yes" &&
39053 test "$tst_compi_strtok_r" = "yes" &&
39054 test "$tst_allow_strtok_r" = "yes"; then
39055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39056 $as_echo "yes" >&6; }
39058 cat >>confdefs.h <<_ACEOF
39059 #define HAVE_STRTOK_R 1
39062 curl_cv_func_strtok_r="yes"
39064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39065 $as_echo "no" >&6; }
39066 curl_cv_func_strtok_r="no"
39071 tst_links_strtoll="unknown"
39072 tst_proto_strtoll="unknown"
39073 tst_compi_strtoll="unknown"
39074 tst_allow_strtoll="unknown"
39076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39077 $as_echo_n "checking if strtoll can be linked... " >&6; }
39078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39079 /* end confdefs.h. */
39082 #define strtoll innocuous_strtoll
39084 # include <limits.h>
39086 # include <assert.h>
39093 #if defined __stub_strtoll || defined __stub___strtoll
39105 if ac_fn_c_try_link "$LINENO"; then :
39107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39108 $as_echo "yes" >&6; }
39109 tst_links_strtoll="yes"
39113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39114 $as_echo "no" >&6; }
39115 tst_links_strtoll="no"
39118 rm -f core conftest.err conftest.$ac_objext \
39119 conftest$ac_exeext conftest.$ac_ext
39121 if test "$tst_links_strtoll" = "yes"; then
39122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39123 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39125 /* end confdefs.h. */
39127 $curl_includes_stdlib
39130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39131 $EGREP "strtoll" >/dev/null 2>&1; then :
39133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39134 $as_echo "yes" >&6; }
39135 tst_proto_strtoll="yes"
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39140 $as_echo "no" >&6; }
39141 tst_proto_strtoll="no"
39148 if test "$tst_proto_strtoll" = "yes"; then
39149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39150 $as_echo_n "checking if strtoll is compilable... " >&6; }
39151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39152 /* end confdefs.h. */
39155 $curl_includes_stdlib
39160 if(0 != strtoll(0, 0, 0))
39168 if ac_fn_c_try_compile "$LINENO"; then :
39170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39171 $as_echo "yes" >&6; }
39172 tst_compi_strtoll="yes"
39176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39177 $as_echo "no" >&6; }
39178 tst_compi_strtoll="no"
39181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39184 if test "$tst_compi_strtoll" = "yes"; then
39185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39186 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39187 if test "x$curl_disallow_strtoll" != "xyes"; then
39188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39189 $as_echo "yes" >&6; }
39190 tst_allow_strtoll="yes"
39192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39193 $as_echo "no" >&6; }
39194 tst_allow_strtoll="no"
39198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39199 $as_echo_n "checking if strtoll might be used... " >&6; }
39200 if test "$tst_links_strtoll" = "yes" &&
39201 test "$tst_proto_strtoll" = "yes" &&
39202 test "$tst_compi_strtoll" = "yes" &&
39203 test "$tst_allow_strtoll" = "yes"; then
39204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39205 $as_echo "yes" >&6; }
39207 cat >>confdefs.h <<_ACEOF
39208 #define HAVE_STRTOLL 1
39211 curl_cv_func_strtoll="yes"
39213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39214 $as_echo "no" >&6; }
39215 curl_cv_func_strtoll="no"
39219 curl_includes_sys_uio="\
39220 /* includes start */
39221 #ifdef HAVE_SYS_TYPES_H
39222 # include <sys/types.h>
39224 #ifdef HAVE_SYS_UIO_H
39225 # include <sys/uio.h>
39227 /* includes end */"
39228 for ac_header in sys/types.h sys/uio.h
39230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39231 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39234 cat >>confdefs.h <<_ACEOF
39235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39245 tst_links_writev="unknown"
39246 tst_proto_writev="unknown"
39247 tst_compi_writev="unknown"
39248 tst_allow_writev="unknown"
39250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39251 $as_echo_n "checking if writev can be linked... " >&6; }
39252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39253 /* end confdefs.h. */
39256 #define writev innocuous_writev
39258 # include <limits.h>
39260 # include <assert.h>
39267 #if defined __stub_writev || defined __stub___writev
39279 if ac_fn_c_try_link "$LINENO"; then :
39281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39282 $as_echo "yes" >&6; }
39283 tst_links_writev="yes"
39287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39288 $as_echo "no" >&6; }
39289 tst_links_writev="no"
39292 rm -f core conftest.err conftest.$ac_objext \
39293 conftest$ac_exeext conftest.$ac_ext
39295 if test "$tst_links_writev" = "yes"; then
39296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39297 $as_echo_n "checking if writev is prototyped... " >&6; }
39298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39299 /* end confdefs.h. */
39301 $curl_includes_sys_uio
39304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39305 $EGREP "writev" >/dev/null 2>&1; then :
39307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39308 $as_echo "yes" >&6; }
39309 tst_proto_writev="yes"
39313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39314 $as_echo "no" >&6; }
39315 tst_proto_writev="no"
39322 if test "$tst_proto_writev" = "yes"; then
39323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39324 $as_echo_n "checking if writev is compilable... " >&6; }
39325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39326 /* end confdefs.h. */
39329 $curl_includes_sys_uio
39334 if(0 != writev(0, 0, 0))
39342 if ac_fn_c_try_compile "$LINENO"; then :
39344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39345 $as_echo "yes" >&6; }
39346 tst_compi_writev="yes"
39350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39351 $as_echo "no" >&6; }
39352 tst_compi_writev="no"
39355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39358 if test "$tst_compi_writev" = "yes"; then
39359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39360 $as_echo_n "checking if writev usage allowed... " >&6; }
39361 if test "x$curl_disallow_writev" != "xyes"; then
39362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39363 $as_echo "yes" >&6; }
39364 tst_allow_writev="yes"
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39367 $as_echo "no" >&6; }
39368 tst_allow_writev="no"
39372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39373 $as_echo_n "checking if writev might be used... " >&6; }
39374 if test "$tst_links_writev" = "yes" &&
39375 test "$tst_proto_writev" = "yes" &&
39376 test "$tst_compi_writev" = "yes" &&
39377 test "$tst_allow_writev" = "yes"; then
39378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39379 $as_echo "yes" >&6; }
39381 cat >>confdefs.h <<_ACEOF
39382 #define HAVE_WRITEV 1
39385 curl_cv_func_writev="yes"
39387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39388 $as_echo "no" >&6; }
39389 curl_cv_func_writev="no"
39397 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39398 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39402 for ac_func in geteuid \
39418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39421 cat >>confdefs.h <<_ACEOF
39422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39429 eval skipcheck=\$skipcheck_$func
39430 if test "x$skipcheck" != "xyes"; then
39431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39432 $as_echo_n "checking deeper for $func... " >&6; }
39433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39434 /* end confdefs.h. */
39448 if ac_fn_c_try_link "$LINENO"; then :
39450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39451 $as_echo "yes" >&6; }
39452 eval "ac_cv_func_$func=yes"
39454 cat >>confdefs.h <<_ACEOF
39455 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39462 $as_echo "but still no" >&6; }
39465 rm -f core conftest.err conftest.$ac_objext \
39466 conftest$ac_exeext conftest.$ac_ext
39474 for ac_header in sys/types.h sys/socket.h netdb.h
39476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39479 cat >>confdefs.h <<_ACEOF
39480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39489 $as_echo_n "checking for getnameinfo... " >&6; }
39490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39491 /* end confdefs.h. */
39494 #define getnameinfo innocuous_getnameinfo
39496 # include <limits.h>
39498 # include <assert.h>
39504 char getnameinfo ();
39505 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39511 return getnameinfo ();
39517 if ac_fn_c_try_link "$LINENO"; then :
39519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39520 $as_echo "yes" >&6; }
39521 curl_cv_getnameinfo="yes"
39525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39526 $as_echo "no" >&6; }
39527 curl_cv_getnameinfo="no"
39530 rm -f core conftest.err conftest.$ac_objext \
39531 conftest$ac_exeext conftest.$ac_ext
39533 if test "$curl_cv_getnameinfo" != "yes"; then
39534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39535 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39537 /* end confdefs.h. */
39551 if ac_fn_c_try_link "$LINENO"; then :
39553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39554 $as_echo "yes" >&6; }
39555 curl_cv_getnameinfo="yes"
39559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39560 $as_echo "but still no" >&6; }
39561 curl_cv_getnameinfo="no"
39564 rm -f core conftest.err conftest.$ac_objext \
39565 conftest$ac_exeext conftest.$ac_ext
39568 if test "$curl_cv_getnameinfo" != "yes"; then
39569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39570 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39572 /* end confdefs.h. */
39576 #ifdef HAVE_WINDOWS_H
39577 #ifndef WIN32_LEAN_AND_MEAN
39578 #define WIN32_LEAN_AND_MEAN
39580 #include <windows.h>
39581 #ifdef HAVE_WINSOCK2_H
39582 #include <winsock2.h>
39583 #ifdef HAVE_WS2TCPIP_H
39584 #include <ws2tcpip.h>
39588 #ifdef HAVE_SYS_TYPES_H
39589 #include <sys/types.h>
39591 #ifdef HAVE_SYS_SOCKET_H
39592 #include <sys/socket.h>
39594 #ifdef HAVE_NETDB_H
39602 getnameinfo(0, 0, 0, 0, 0, 0, 0);
39609 if ac_fn_c_try_link "$LINENO"; then :
39611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39612 $as_echo "yes" >&6; }
39613 curl_cv_getnameinfo="yes"
39617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39618 $as_echo "but still no" >&6; }
39619 curl_cv_getnameinfo="no"
39622 rm -f core conftest.err conftest.$ac_objext \
39623 conftest$ac_exeext conftest.$ac_ext
39626 if test "$curl_cv_getnameinfo" = "yes"; then
39627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39628 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39629 if ${curl_cv_func_getnameinfo_args+:} false; then :
39630 $as_echo_n "(cached) " >&6
39633 curl_cv_func_getnameinfo_args="unknown"
39634 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39635 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39636 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39637 for gni_arg7 in 'int' 'unsigned int'; do
39638 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39640 /* end confdefs.h. */
39644 #ifdef HAVE_WINDOWS_H
39645 #ifndef WIN32_LEAN_AND_MEAN
39646 #define WIN32_LEAN_AND_MEAN
39648 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39649 #undef _WIN32_WINNT
39650 #define _WIN32_WINNT 0x0501
39652 #include <windows.h>
39653 #ifdef HAVE_WINSOCK2_H
39654 #include <winsock2.h>
39655 #ifdef HAVE_WS2TCPIP_H
39656 #include <ws2tcpip.h>
39659 #define GNICALLCONV WSAAPI
39661 #ifdef HAVE_SYS_TYPES_H
39662 #include <sys/types.h>
39664 #ifdef HAVE_SYS_SOCKET_H
39665 #include <sys/socket.h>
39667 #ifdef HAVE_NETDB_H
39670 #define GNICALLCONV
39672 extern int GNICALLCONV
39674 __attribute__((overloadable))
39676 getnameinfo($gni_arg1, $gni_arg2,
39677 char *, $gni_arg46,
39678 char *, $gni_arg46,
39685 $gni_arg46 hostlen=0;
39686 $gni_arg46 servlen=0;
39688 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39695 if ac_fn_c_try_compile "$LINENO"; then :
39697 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39709 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39710 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39712 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39714 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39716 gni_prev_IFS=$IFS; IFS=','
39717 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39721 gni_qual_type_arg1=$1
39724 cat >>confdefs.h <<_ACEOF
39725 #define GETNAMEINFO_TYPE_ARG2 $2
39729 cat >>confdefs.h <<_ACEOF
39730 #define GETNAMEINFO_TYPE_ARG46 $3
39734 cat >>confdefs.h <<_ACEOF
39735 #define GETNAMEINFO_TYPE_ARG7 $4
39741 case $prev_sh_opts in
39749 case "$gni_qual_type_arg1" in
39751 gni_qual_arg1=const
39752 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39756 gni_type_arg1=$gni_qual_type_arg1
39761 cat >>confdefs.h <<_ACEOF
39762 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39766 cat >>confdefs.h <<_ACEOF
39767 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39771 case $prev_sh_opts in
39780 cat >>confdefs.h <<_ACEOF
39781 #define HAVE_GETNAMEINFO 1
39784 curl_cv_func_getnameinfo="yes"
39789 if test "$ipv6" = "yes"; then
39790 if test "$curl_cv_func_getaddrinfo" = "yes"; then
39792 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39798 for ac_header in stdio.h sys/types.h sys/socket.h \
39799 netdb.h netinet/in.h arpa/inet.h
39801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39802 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39804 cat >>confdefs.h <<_ACEOF
39805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39814 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39815 if ${curl_cv_working_ni_withscopeid+:} false; then :
39816 $as_echo_n "(cached) " >&6
39819 if test "$cross_compiling" = yes; then :
39821 # Program is not run when cross-compiling. So we assume
39822 # NI_WITHSCOPEID will work if we are able to compile it.
39823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39824 /* end confdefs.h. */
39827 #include <sys/types.h>
39828 #include <sys/socket.h>
39834 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39841 if ac_fn_c_try_compile "$LINENO"; then :
39843 curl_cv_working_ni_withscopeid="yes"
39847 curl_cv_working_ni_withscopeid="no"
39850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39854 /* end confdefs.h. */
39857 #ifdef HAVE_STDLIB_H
39858 #include <stdlib.h>
39860 #ifdef HAVE_STDIO_H
39863 #ifdef HAVE_SYS_TYPES_H
39864 #include <sys/types.h>
39866 #ifdef HAVE_SYS_SOCKET_H
39867 #include <sys/socket.h>
39869 #ifdef HAVE_NETDB_H
39872 #ifdef HAVE_NETINET_IN_H
39873 #include <netinet/in.h>
39875 #ifdef HAVE_ARPA_INET_H
39876 #include <arpa/inet.h>
39882 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39883 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39884 struct sockaddr_storage sa;
39886 unsigned char sa[256];
39888 char hostbuf[NI_MAXHOST];
39890 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39891 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39892 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39893 int fd = socket(AF_INET6, SOCK_STREAM, 0);
39895 perror("socket()");
39896 return 1; /* Error creating socket */
39898 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39900 perror("getsockname()");
39901 return 2; /* Error retrieving socket name */
39903 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39905 printf("rc = %s\n", gai_strerror(rc));
39906 return 3; /* Error translating socket address */
39908 return 0; /* Ok, NI_WITHSCOPEID works */
39910 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39915 } # AC-LANG-PROGRAM
39918 if ac_fn_c_try_run "$LINENO"; then :
39920 # Exit code == 0. Program worked.
39921 curl_cv_working_ni_withscopeid="yes"
39925 # Exit code != 0. Program failed.
39926 curl_cv_working_ni_withscopeid="no"
39929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39930 conftest.$ac_objext conftest.beam conftest.$ac_ext
39935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
39936 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39937 case "$curl_cv_working_ni_withscopeid" in
39940 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39949 tst_method="unknown"
39951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39952 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39953 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39954 tst_method="fcntl O_NONBLOCK"
39955 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39956 tst_method="ioctl FIONBIO"
39957 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39958 tst_method="ioctlsocket FIONBIO"
39959 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39960 tst_method="IoctlSocket FIONBIO"
39961 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39962 tst_method="setsockopt SO_NONBLOCK"
39964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39965 $as_echo "$tst_method" >&6; }
39966 if test "$tst_method" = "unknown"; then
39967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39968 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39973 # Extract the first word of "perl", so it can be a program name with args.
39974 set dummy perl; ac_word=$2
39975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39976 $as_echo_n "checking for $ac_word... " >&6; }
39977 if ${ac_cv_path_PERL+:} false; then :
39978 $as_echo_n "(cached) " >&6
39982 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39986 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39987 for as_dir in $as_dummy
39990 test -z "$as_dir" && as_dir=.
39991 for ac_exec_ext in '' $ac_executable_extensions; do
39992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39993 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40004 PERL=$ac_cv_path_PERL
40005 if test -n "$PERL"; then
40006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40007 $as_echo "$PERL" >&6; }
40009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40010 $as_echo "no" >&6; }
40016 for ac_prog in gnroff nroff
40018 # Extract the first word of "$ac_prog", so it can be a program name with args.
40019 set dummy $ac_prog; ac_word=$2
40020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40021 $as_echo_n "checking for $ac_word... " >&6; }
40022 if ${ac_cv_path_NROFF+:} false; then :
40023 $as_echo_n "(cached) " >&6
40027 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40031 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40032 for as_dir in $as_dummy
40035 test -z "$as_dir" && as_dir=.
40036 for ac_exec_ext in '' $ac_executable_extensions; do
40037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40038 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40049 NROFF=$ac_cv_path_NROFF
40050 if test -n "$NROFF"; then
40051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40052 $as_echo "$NROFF" >&6; }
40054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40055 $as_echo "no" >&6; }
40059 test -n "$NROFF" && break
40064 if test -n "$NROFF"; then
40066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40067 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40069 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40070 if test -z "$mancheck"; then
40072 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40073 if test -z "$mancheck"; then
40075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40076 $as_echo "failed" >&6; }
40077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40078 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40081 $as_echo "$MANOPT" >&6; }
40084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40085 $as_echo "$MANOPT" >&6; }
40090 if test -z "$MANOPT"
40092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40093 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40098 if test "$USE_MANUAL" = "1"; then
40100 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40102 curl_manual_msg="enabled"
40105 if test x"$USE_MANUAL" = x1; then
40107 USE_MANUAL_FALSE='#'
40109 USE_MANUAL_TRUE='#'
40118 if test "$want_ares" = "yes"; then
40119 clean_CPPFLAGS="$CPPFLAGS"
40120 clean_LDFLAGS="$LDFLAGS"
40122 embedded_ares="unknown"
40123 configure_runpath=`pwd`
40124 embedded_ares_builddir="$configure_runpath/ares"
40125 if test -n "$want_ares_path"; then
40126 ares_CPPFLAGS="-I$want_ares_path/include"
40127 ares_LDFLAGS="-L$want_ares_path/lib"
40128 ares_LIBS="-lcares"
40130 if test -d "$srcdir/ares"; then
40131 embedded_ares="yes"
40132 subdirs="$subdirs ares"
40135 ares_LDFLAGS="-L$embedded_ares_builddir"
40136 ares_LIBS="-lcares"
40140 ares_LIBS="-lcares"
40144 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40145 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40146 LIBS="$ares_LIBS $clean_LIBS"
40148 if test "$embedded_ares" != "yes"; then
40149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40150 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40152 /* end confdefs.h. */
40156 /* set of dummy functions in case c-ares was built with debug */
40157 void curl_dofree() { }
40158 void curl_sclose() { }
40159 void curl_domalloc() { }
40160 void curl_docalloc() { }
40161 void curl_socket() { }
40166 ares_channel channel;
40167 ares_cancel(channel); /* added in 1.2.0 */
40168 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40169 ares_dup(&channel, channel); /* added in 1.6.0 */
40176 if ac_fn_c_try_link "$LINENO"; then :
40178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40179 $as_echo "yes" >&6; }
40183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40184 $as_echo "no" >&6; }
40185 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40186 CPPFLAGS="$clean_CPPFLAGS"
40187 LDFLAGS="$clean_LDFLAGS"
40193 rm -f core conftest.err conftest.$ac_objext \
40194 conftest$ac_exeext conftest.$ac_ext
40196 if test "$want_ares" = "yes"; then
40198 $as_echo "#define USE_ARES 1" >>confdefs.h
40202 curl_res_msg="c-ares"
40206 if test x$embedded_ares = xyes; then
40207 USE_EMBEDDED_ARES_TRUE=
40208 USE_EMBEDDED_ARES_FALSE='#'
40210 USE_EMBEDDED_ARES_TRUE='#'
40211 USE_EMBEDDED_ARES_FALSE=
40215 if test "x$curl_cv_native_windows" != "xyes" &&
40216 test "x$enable_shared" = "xyes"; then
40217 build_libhostname=yes
40219 build_libhostname=no
40221 if test x$build_libhostname = xyes; then
40222 BUILD_LIBHOSTNAME_TRUE=
40223 BUILD_LIBHOSTNAME_FALSE='#'
40225 BUILD_LIBHOSTNAME_TRUE='#'
40226 BUILD_LIBHOSTNAME_FALSE=
40230 if test "x$want_ares" != xyes; then
40232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40233 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40234 OPT_THRES="default"
40235 # Check whether --enable-threaded_resolver was given.
40236 if test "${enable_threaded_resolver+set}" = set; then :
40237 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40240 case "$OPT_THRES" in
40248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40249 $as_echo "$want_thres" >&6; }
40253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40254 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40255 # Check whether --enable-pthreads was given.
40256 if test "${enable_pthreads+set}" = set; then :
40257 enableval=$enable_pthreads; case "$enableval" in
40258 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40259 $as_echo "no" >&6; }
40262 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40263 $as_echo "yes" >&6; }
40269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40270 $as_echo "auto" >&6; }
40277 if test "$want_pthreads" != "no"; then
40278 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40279 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40281 if test "$dontwant_rt" != "no"; then
40282 if test "$want_pthreads" = "yes"; then
40283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40284 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40290 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40294 if test "$want_pthreads" != "no"; then
40295 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40296 if test "x$ac_cv_header_pthread_h" = xyes; then :
40298 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40300 save_CFLAGS="$CFLAGS"
40302 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40303 if test "x$ac_cv_func_pthread_create" = xyes; then :
40304 USE_THREADS_POSIX=1
40308 if test "$USE_THREADS_POSIX" != "1"
40310 CFLAGS="$CFLAGS -pthread"
40311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40312 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40313 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40314 $as_echo_n "(cached) " >&6
40316 ac_check_lib_save_LIBS=$LIBS
40317 LIBS="-lpthread $LIBS"
40318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40319 /* end confdefs.h. */
40325 char pthread_create ();
40328 return pthread_create ();
40333 if ac_fn_c_try_link "$LINENO"; then :
40334 ac_cv_lib_pthread_pthread_create=yes
40336 ac_cv_lib_pthread_pthread_create=no
40338 rm -f core conftest.err conftest.$ac_objext \
40339 conftest$ac_exeext conftest.$ac_ext
40340 LIBS=$ac_check_lib_save_LIBS
40342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40343 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40344 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40345 USE_THREADS_POSIX=1
40347 CFLAGS="$save_CFLAGS"
40352 if test "x$USE_THREADS_POSIX" = "x1"
40355 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40357 curl_res_msg="POSIX threaded"
40365 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40366 if test "$want_pthreads" = "yes"; then
40367 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40369 if test "$curl_cv_native_windows" = "yes"; then
40370 USE_THREADS_WIN32=1
40372 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40374 curl_res_msg="Win32 threaded"
40376 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40381 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40382 # Check whether --enable-verbose was given.
40383 if test "${enable_verbose+set}" = set; then :
40384 enableval=$enable_verbose; case "$enableval" in
40386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40387 $as_echo "no" >&6; }
40389 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40391 curl_verbose_msg="no"
40393 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40394 $as_echo "yes" >&6; }
40398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40399 $as_echo "yes" >&6; }
40404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40405 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40406 # Check whether --enable-sspi was given.
40407 if test "${enable_sspi+set}" = set; then :
40408 enableval=$enable_sspi; case "$enableval" in
40410 if test "$curl_cv_native_windows" = "yes"; then
40411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40412 $as_echo "yes" >&6; }
40414 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40418 curl_sspi_msg="enabled"
40420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40421 $as_echo "no" >&6; }
40422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40423 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40427 if test "x$WINSSL_ENABLED" = "x1"; then
40428 # --with-winssl implies --enable-sspi
40429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40430 $as_echo "yes" >&6; }
40432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40433 $as_echo "no" >&6; }
40438 if test "x$WINSSL_ENABLED" = "x1"; then
40439 # --with-winssl implies --enable-sspi
40440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40441 $as_echo "yes" >&6; }
40443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40444 $as_echo "no" >&6; }
40450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40451 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40452 # Check whether --enable-crypto-auth was given.
40453 if test "${enable_crypto_auth+set}" = set; then :
40454 enableval=$enable_crypto_auth; case "$enableval" in
40456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40457 $as_echo "no" >&6; }
40459 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40461 CURL_DISABLE_CRYPTO_AUTH=1
40463 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40464 $as_echo "yes" >&6; }
40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40469 $as_echo "yes" >&6; }
40475 OPT_NTLM_WB="default"
40476 # Check whether --enable-ntlm-wb was given.
40477 if test "${enable_ntlm_wb+set}" = set; then :
40478 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40481 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40482 case "$OPT_NTLM_WB" in
40491 if test -n "$enableval" && test "$enableval" != "yes"; then
40492 want_ntlm_wb_file="$enableval"
40499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40500 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40501 if test "$curl_cv_native_windows" = "yes" ||
40502 test "x$SSL_ENABLED" = "x"; then
40503 want_ntlm_wb_file=""
40506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40507 $as_echo "$want_ntlm_wb" >&6; }
40508 if test "$want_ntlm_wb" = "yes"; then
40510 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40513 cat >>confdefs.h <<_ACEOF
40514 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40522 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40523 # Check whether --enable-tls-srp was given.
40524 if test "${enable_tls_srp+set}" = set; then :
40525 enableval=$enable_tls_srp; case "$enableval" in
40527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40528 $as_echo "no" >&6; }
40530 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40534 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40535 $as_echo "yes" >&6; }
40540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40541 $as_echo "yes" >&6; }
40547 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40549 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40552 curl_tls_srp_msg="enabled"
40555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40556 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40557 # Check whether --enable-unix-sockets was given.
40558 if test "${enable_unix_sockets+set}" = set; then :
40559 enableval=$enable_unix_sockets; case "$enableval" in
40560 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40561 $as_echo "no" >&6; }
40562 want_unix_sockets=no
40564 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40565 $as_echo "yes" >&6; }
40566 want_unix_sockets=yes
40571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40572 $as_echo "auto" >&6; }
40573 want_unix_sockets=auto
40578 if test "x$want_unix_sockets" != "xno"; then
40579 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40580 #include <sys/un.h>
40583 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40586 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40590 curl_unix_sockets_msg="enabled"
40594 if test "x$want_unix_sockets" = "xyes"; then
40595 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40603 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40604 # Check whether --enable-cookies was given.
40605 if test "${enable_cookies+set}" = set; then :
40606 enableval=$enable_cookies; case "$enableval" in
40608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40609 $as_echo "no" >&6; }
40611 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40614 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40615 $as_echo "yes" >&6; }
40619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40620 $as_echo "yes" >&6; }
40626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40627 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40628 CFLAG_CURL_SYMBOL_HIDING=""
40629 doing_symbol_hiding="no"
40630 if test x"$curl_cv_native_windows" != "xyes" &&
40631 test "$want_symbol_hiding" = "yes" &&
40632 test "$supports_symbol_hiding" = "yes"; then
40633 doing_symbol_hiding="yes"
40634 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40636 cat >>confdefs.h <<_ACEOF
40637 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40641 $as_echo "yes" >&6; }
40643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40644 $as_echo "no" >&6; }
40646 if test x$doing_symbol_hiding = xyes; then
40647 DOING_CURL_SYMBOL_HIDING_TRUE=
40648 DOING_CURL_SYMBOL_HIDING_FALSE='#'
40650 DOING_CURL_SYMBOL_HIDING_TRUE='#'
40651 DOING_CURL_SYMBOL_HIDING_FALSE=
40666 if test x$cross_compiling = xyes; then
40667 CROSSCOMPILING_TRUE=
40668 CROSSCOMPILING_FALSE='#'
40670 CROSSCOMPILING_TRUE='#'
40671 CROSSCOMPILING_FALSE=
40675 ENABLE_SHARED="$enable_shared"
40678 ENABLE_STATIC="$enable_static"
40683 if test "x$OPENSSL_ENABLED" = "x1"; then
40684 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40685 elif test -n "$SSL_ENABLED"; then
40686 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40688 if test "x$IPV6_ENABLED" = "x1"; then
40689 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40691 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40692 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40694 if test "x$HAVE_LIBZ" = "x1"; then
40695 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40697 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
40698 -o "x$USE_THREADS_WIN32" = "x1"; then
40699 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40701 if test "x$IDN_ENABLED" = "x1"; then
40702 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40704 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40705 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40708 if test "x$HAVE_GSSAPI" = "x1"; then
40709 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40712 if test "x$curl_psl_msg" = "xyes"; then
40713 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40716 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40717 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40718 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40721 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40722 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40723 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40726 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40727 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40728 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40729 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
40730 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40732 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40733 "x$NTLM_WB_ENABLED" = "x1"; then
40734 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40739 if test "x$USE_TLS_SRP" = "x1"; then
40740 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40743 if test "x$USE_NGHTTP2" = "x1"; then
40744 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40747 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
40748 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
40751 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
40752 -o "x$NSS_ENABLED" = "x1"; then
40753 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
40758 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40759 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40760 if test "x$SSL_ENABLED" = "x1"; then
40761 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40764 if test "x$CURL_DISABLE_FTP" != "x1"; then
40765 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40766 if test "x$SSL_ENABLED" = "x1"; then
40767 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40770 if test "x$CURL_DISABLE_FILE" != "x1"; then
40771 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40773 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40774 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40776 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40777 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40778 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40779 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40780 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
40781 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40785 if test "x$CURL_DISABLE_DICT" != "x1"; then
40786 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40788 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40789 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40791 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40792 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40794 if test "x$CURL_DISABLE_POP3" != "x1"; then
40795 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40796 if test "x$SSL_ENABLED" = "x1"; then
40797 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40800 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40801 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40802 if test "x$SSL_ENABLED" = "x1"; then
40803 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40806 if test "x$CURL_DISABLE_SMB" != "x1" \
40807 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40808 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40809 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40810 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
40811 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40812 if test "x$SSL_ENABLED" = "x1"; then
40813 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40816 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40817 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40818 if test "x$SSL_ENABLED" = "x1"; then
40819 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40822 if test "x$USE_LIBSSH2" = "x1"; then
40823 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40824 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40826 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40827 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40829 if test "x$USE_LIBRTMP" = "x1"; then
40830 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40833 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40844 squeeze LIBCURL_LIBS
40845 squeeze CURL_NETWORK_LIBS
40846 squeeze CURL_NETWORK_AND_TIME_LIBS
40848 squeeze SUPPORT_FEATURES
40849 squeeze SUPPORT_PROTOCOLS
40854 for xc_word in $LIBS; do
40860 xc_bad_var_libs=yes
40864 if test $xc_bad_var_libs = yes; then
40865 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40866 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40867 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40868 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40872 xc_bad_var_ldflags=no
40873 for xc_word in $LDFLAGS; do
40876 xc_bad_var_ldflags=yes
40879 xc_bad_var_ldflags=yes
40882 xc_bad_var_ldflags=yes
40885 xc_bad_var_ldflags=yes
40889 if test $xc_bad_var_ldflags = yes; then
40890 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40891 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40892 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40893 for xc_word in $LDFLAGS; do
40896 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40897 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40900 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40901 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40904 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40905 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40908 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40909 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40916 xc_bad_var_cppflags=no
40917 for xc_word in $CPPFLAGS; do
40920 xc_bad_var_cppflags=yes
40922 -L* | --library-path=*)
40923 xc_bad_var_cppflags=yes
40926 xc_bad_var_cppflags=yes
40930 if test $xc_bad_var_cppflags = yes; then
40931 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40932 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40933 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40934 for xc_word in $CPPFLAGS; do
40937 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40938 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40940 -L* | --library-path=*)
40941 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40942 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40945 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40946 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40953 xc_bad_var_cflags=no
40954 for xc_word in $CFLAGS; do
40957 xc_bad_var_cflags=yes
40960 xc_bad_var_cflags=yes
40963 xc_bad_var_cflags=yes
40966 xc_bad_var_cflags=yes
40968 -L* | --library-path=*)
40969 xc_bad_var_cflags=yes
40972 xc_bad_var_cflags=yes
40976 if test $xc_bad_var_cflags = yes; then
40977 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40978 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40979 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40980 for xc_word in $CFLAGS; do
40983 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40984 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40987 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40988 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40991 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40992 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40995 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40996 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40998 -L* | --library-path=*)
40999 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41000 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41003 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41004 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41010 if test $xc_bad_var_libs = yes ||
41011 test $xc_bad_var_cflags = yes ||
41012 test $xc_bad_var_ldflags = yes ||
41013 test $xc_bad_var_cppflags = yes; then
41014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41015 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41019 if test "x$want_curldebug_assumed" = "xyes" &&
41020 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41021 ac_configure_args="$ac_configure_args --enable-curldebug"
41024 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
41026 cat >confcache <<\_ACEOF
41027 # This file is a shell script that caches the results of configure
41028 # tests run on this system so they can be shared between configure
41029 # scripts and configure runs, see configure's option --config-cache.
41030 # It is not useful on other systems. If it contains results you don't
41031 # want to keep, you may remove or edit it.
41033 # config.status only pays attention to the cache file if you give it
41034 # the --recheck option to rerun configure.
41036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41038 # following values.
41042 # The following way of writing the cache mishandles newlines in values,
41043 # but we know of no workaround that is simple, portable, and efficient.
41044 # So, we kill variables containing newlines.
41045 # Ultrix sh set writes to stderr and can't be redirected directly,
41046 # and sets the high bit in the cache file unless we assign to the vars.
41048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41049 eval ac_val=\$$ac_var
41053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41057 _ | IFS | as_nl) ;; #(
41058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41059 *) { eval $ac_var=; unset $ac_var;} ;;
41065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41066 *${as_nl}ac_space=\ *)
41067 # `set' does not quote correctly, so add quotes: double-quote
41068 # substitution turns \\\\ into \\, and sed turns \\ into \.
41071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41074 # `set' quotes correctly as required by POSIX, so do not add quotes.
41075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41089 if test -w "$cache_file"; then
41090 if test "x$cache_file" != "x/dev/null"; then
41091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41092 $as_echo "$as_me: updating cache $cache_file" >&6;}
41093 if test ! -f "$cache_file" || test -h "$cache_file"; then
41094 cat confcache >"$cache_file"
41096 case $cache_file in #(
41098 mv -f confcache "$cache_file"$$ &&
41099 mv -f "$cache_file"$$ "$cache_file" ;; #(
41101 mv -f confcache "$cache_file" ;;
41106 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41113 # Let make expand exec_prefix.
41114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41116 DEFS=-DHAVE_CONFIG_H
41121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41122 # 1. Remove the extension, and $U if already installed.
41123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41126 # will be set to the directory where LIBOBJS objects are built.
41127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41130 LIBOBJS=$ac_libobjs
41132 LTLIBOBJS=$ac_ltlibobjs
41135 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41136 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41139 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41140 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41144 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41145 if test -n "$am_sleep_pid"; then
41146 # Hide warnings about reused PIDs.
41147 wait $am_sleep_pid 2>/dev/null
41149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41150 $as_echo "done" >&6; }
41151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41152 as_fn_error $? "conditional \"AMDEP\" was never defined.
41153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41156 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41159 if test -n "$EXEEXT"; then
41161 am__EXEEXT_FALSE='#'
41163 am__EXEEXT_TRUE='#'
41167 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41168 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41171 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41172 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41175 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41176 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41179 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41180 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41183 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41184 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41187 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41188 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41191 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41192 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41195 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41196 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41199 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41200 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41203 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41204 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41207 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41208 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41211 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41212 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41215 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41216 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41219 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41220 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41223 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41224 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41227 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41228 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41231 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41232 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41236 : "${CONFIG_STATUS=./config.status}"
41238 ac_clean_files_save=$ac_clean_files
41239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41241 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41243 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41245 # Generated by $as_me.
41246 # Run this file to recreate the current configuration.
41247 # Compiler output produced by configure, useful for debugging
41248 # configure, is in config.log if it exists.
41251 ac_cs_recheck=false
41254 SHELL=\${CONFIG_SHELL-$SHELL}
41257 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41258 ## -------------------- ##
41259 ## M4sh Initialization. ##
41260 ## -------------------- ##
41262 # Be more Bourne compatible
41263 DUALCASE=1; export DUALCASE # for MKS sh
41264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41268 # is contrary to our usage. Disable this feature.
41269 alias -g '${1+"$@"}'='"$@"'
41270 setopt NO_GLOB_SUBST
41272 case `(set -o) 2>/dev/null` in #(
41284 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41285 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41288 # Prefer a ksh shell builtin over an external printf program on Solaris,
41289 # but without wasting forks for bash or zsh.
41290 if test -z "$BASH_VERSION$ZSH_VERSION" \
41291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41292 as_echo='print -r --'
41293 as_echo_n='print -rn --'
41294 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41295 as_echo='printf %s\n'
41296 as_echo_n='printf %s'
41298 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41299 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41300 as_echo_n='/usr/ucb/echo -n'
41302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41303 as_echo_n_body='eval
41307 expr "X$arg" : "X\\(.*\\)$as_nl";
41308 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41310 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41312 export as_echo_n_body
41313 as_echo_n='sh -c $as_echo_n_body as_echo'
41315 export as_echo_body
41316 as_echo='sh -c $as_echo_body as_echo'
41322 # We need space, tab and new line, in precisely that order. Quoting is
41323 # there to prevent editors from complaining about space-tab.
41324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41325 # splitting by setting IFS to empty value.)
41328 # Find who we are. Look in the path if we contain no directory separator.
41331 *[\\/]* ) as_myself=$0 ;;
41332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41333 for as_dir in $PATH
41336 test -z "$as_dir" && as_dir=.
41337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41343 # We did not find ourselves, most probably we were run as `sh COMMAND'
41344 # in which case we are not to be found in the path.
41345 if test "x$as_myself" = x; then
41348 if test ! -f "$as_myself"; then
41349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41353 # Unset variables that we do not need and which cause bugs (e.g. in
41354 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41355 # suppresses any "Segmentation fault" message there. '((' could
41356 # trigger a bug in pdksh 5.2.14.
41357 for as_var in BASH_ENV ENV MAIL MAILPATH
41358 do eval test x\${$as_var+set} = xset \
41359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41376 # ----------------------------------------
41377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41379 # script with STATUS, using 1 if that was 0.
41382 as_status=$1; test $as_status -eq 0 && as_status=1
41384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41387 $as_echo "$as_me: error: $2" >&2
41388 as_fn_exit $as_status
41392 # as_fn_set_status STATUS
41393 # -----------------------
41394 # Set $? to STATUS, without forking.
41395 as_fn_set_status ()
41398 } # as_fn_set_status
41400 # as_fn_exit STATUS
41401 # -----------------
41402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41406 as_fn_set_status $1
41412 # Portably unset VAR.
41415 { eval $1=; unset $1;}
41417 as_unset=as_fn_unset
41418 # as_fn_append VAR VALUE
41419 # ----------------------
41420 # Append the text in VALUE to the end of the definition contained in VAR. Take
41421 # advantage of any shell optimizations that allow amortized linear growth over
41422 # repeated appends, instead of the typical quadratic growth present in naive
41424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41425 eval 'as_fn_append ()
41436 # as_fn_arith ARG...
41437 # ------------------
41438 # Perform arithmetic evaluation on the ARGs, and store the result in the
41439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41440 # must be portable across $(()) and expr.
41441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41442 eval 'as_fn_arith ()
41449 as_val=`expr "$@" || test $? -eq 1`
41454 if expr a : '\(a\)' >/dev/null 2>&1 &&
41455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41462 as_basename=basename
41467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41473 as_me=`$as_basename -- "$0" ||
41474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41475 X"$0" : 'X\(//\)$' \| \
41476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41478 sed '/^.*\/\([^/][^/]*\)\/*$/{
41492 # Avoid depending upon Character Ranges.
41493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41496 as_cr_digits='0123456789'
41497 as_cr_alnum=$as_cr_Letters$as_cr_digits
41499 ECHO_C= ECHO_N= ECHO_T=
41500 case `echo -n x` in #(((((
41502 case `echo 'xy\c'` in
41503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41512 rm -f conf$$ conf$$.exe conf$$.file
41513 if test -d conf$$.dir; then
41514 rm -f conf$$.dir/conf$$.file
41517 mkdir conf$$.dir 2>/dev/null
41519 if (echo >conf$$.file) 2>/dev/null; then
41520 if ln -s conf$$.file conf$$ 2>/dev/null; then
41522 # ... but there are two gotchas:
41523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41525 # In both cases, we have to default to `cp -pR'.
41526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41528 elif ln conf$$.file conf$$ 2>/dev/null; then
41536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41537 rmdir conf$$.dir 2>/dev/null
41542 # Create "$as_dir" as a directory, including parents if necessary.
41547 -*) as_dir=./$as_dir;;
41549 test -d "$as_dir" || eval $as_mkdir_p || {
41553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41554 *) as_qdir=$as_dir;;
41556 as_dirs="'$as_qdir' $as_dirs"
41557 as_dir=`$as_dirname -- "$as_dir" ||
41558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41559 X"$as_dir" : 'X\(//\)[^/]' \| \
41560 X"$as_dir" : 'X\(//\)$' \| \
41561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41562 $as_echo X"$as_dir" |
41563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41567 /^X\(\/\/\)[^/].*/{
41580 test -d "$as_dir" && break
41582 test -z "$as_dirs" || eval "mkdir $as_dirs"
41583 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41587 if mkdir -p . 2>/dev/null; then
41588 as_mkdir_p='mkdir -p "$as_dir"'
41590 test -d ./-p && rmdir ./-p
41595 # as_fn_executable_p FILE
41596 # -----------------------
41597 # Test if FILE is an executable regular file.
41598 as_fn_executable_p ()
41600 test -f "$1" && test -x "$1"
41601 } # as_fn_executable_p
41602 as_test_x='test -x'
41603 as_executable_p=as_fn_executable_p
41605 # Sed expression to map a string onto a valid CPP name.
41606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41608 # Sed expression to map a string onto a valid variable name.
41609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41613 ## ----------------------------------- ##
41614 ## Main body of $CONFIG_STATUS script. ##
41615 ## ----------------------------------- ##
41617 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41620 # Save the log message, to keep $0 and so on meaningful, and to
41621 # report actual input values of CONFIG_FILES etc. instead of their
41622 # values after options handling.
41624 This file was extended by curl $as_me -, which was
41625 generated by GNU Autoconf 2.69. Invocation command line was
41627 CONFIG_FILES = $CONFIG_FILES
41628 CONFIG_HEADERS = $CONFIG_HEADERS
41629 CONFIG_LINKS = $CONFIG_LINKS
41630 CONFIG_COMMANDS = $CONFIG_COMMANDS
41633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41638 case $ac_config_files in *"
41639 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41642 case $ac_config_headers in *"
41643 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41648 # Files that config.status was made for.
41649 config_files="$ac_config_files"
41650 config_headers="$ac_config_headers"
41651 config_commands="$ac_config_commands"
41655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41657 \`$as_me' instantiates files and other configuration actions
41658 from templates according to the current configuration. Unless the files
41659 and actions are specified as TAGs, all are instantiated by default.
41661 Usage: $0 [OPTION]... [TAG]...
41663 -h, --help print this help, then exit
41664 -V, --version print version number and configuration settings, then exit
41665 --config print configuration, then exit
41666 -q, --quiet, --silent
41667 do not print progress messages
41668 -d, --debug don't remove temporary files
41669 --recheck update $as_me by reconfiguring in the same conditions
41670 --file=FILE[:TEMPLATE]
41671 instantiate the configuration file FILE
41672 --header=FILE[:TEMPLATE]
41673 instantiate the configuration header FILE
41675 Configuration files:
41678 Configuration headers:
41681 Configuration commands:
41684 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41690 curl config.status -
41691 configured by $0, generated by GNU Autoconf 2.69,
41692 with options \\"\$ac_cs_config\\"
41694 Copyright (C) 2012 Free Software Foundation, Inc.
41695 This config.status script is free software; the Free Software Foundation
41696 gives unlimited permission to copy, distribute and modify it."
41703 test -n "\$AWK" || AWK=awk
41706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41707 # The default lists apply if the user does not specify any file.
41713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41718 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41730 # Handling of the options.
41731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41733 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41734 $as_echo "$ac_cs_version"; exit ;;
41735 --config | --confi | --conf | --con | --co | --c )
41736 $as_echo "$ac_cs_config"; exit ;;
41737 --debug | --debu | --deb | --de | --d | -d )
41739 --file | --fil | --fi | --f )
41742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41743 '') as_fn_error $? "missing file argument" ;;
41745 as_fn_append CONFIG_FILES " '$ac_optarg'"
41746 ac_need_defaults=false;;
41747 --header | --heade | --head | --hea )
41750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41752 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41753 ac_need_defaults=false;;
41755 # Conflict between --help and --header
41756 as_fn_error $? "ambiguous option: \`$1'
41757 Try \`$0 --help' for more information.";;
41758 --help | --hel | -h )
41759 $as_echo "$ac_cs_usage"; exit ;;
41760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41764 # This is an error.
41765 -*) as_fn_error $? "unrecognized option: \`$1'
41766 Try \`$0 --help' for more information." ;;
41768 *) as_fn_append ac_config_targets " $1"
41769 ac_need_defaults=false ;;
41775 ac_configure_extra_args=
41777 if $ac_cs_silent; then
41779 ac_configure_extra_args="$ac_configure_extra_args --silent"
41783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41784 if \$ac_cs_recheck; then
41785 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41788 CONFIG_SHELL='$SHELL'
41789 export CONFIG_SHELL
41794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41799 ## Running $as_me. ##
41805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41809 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41812 # The HP-UX ksh and POSIX shell print the target directory to stdout
41813 # if CDPATH is set.
41814 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41816 sed_quote_subst='$sed_quote_subst'
41817 double_quote_subst='$double_quote_subst'
41818 delay_variable_subst='$delay_variable_subst'
41819 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41820 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41821 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41822 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41823 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41824 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41825 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41826 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41827 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41828 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41829 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41830 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41831 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41832 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41833 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41834 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41835 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41836 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41837 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41838 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41839 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41840 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41841 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41842 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41843 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41844 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41845 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41846 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41847 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41848 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41849 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41850 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41851 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41852 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41853 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41854 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41855 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41856 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41857 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41858 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41859 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41860 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41861 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41862 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41863 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41864 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41865 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41866 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41867 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41868 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41869 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41870 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41871 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41872 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41873 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41874 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41875 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41876 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41877 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41878 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"`'
41879 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41880 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41881 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41882 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41883 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41884 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41885 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41886 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41887 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41888 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41889 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41890 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41891 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41892 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41893 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41894 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41895 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41896 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41897 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41898 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41899 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41900 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41901 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41902 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41903 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41904 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41905 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41906 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41907 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41908 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41909 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41910 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41911 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41912 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41913 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41914 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41915 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41916 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41917 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41918 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41919 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41920 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41921 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41922 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41923 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41924 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41925 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41926 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41927 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41928 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41929 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41930 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41931 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41932 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41933 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41934 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41935 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41936 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41937 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41938 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41939 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41940 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41941 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41942 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41943 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41944 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41945 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41946 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41947 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41948 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41949 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41950 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41951 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41952 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41953 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41954 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41957 LTCFLAGS='$LTCFLAGS'
41958 compiler='$compiler_DEFAULT'
41960 # A function that is used when there is no print builtin or printf.
41961 func_fallback_echo ()
41963 eval 'cat <<_LTECHO_EOF
41968 # Quote evaled strings.
41985 deplibs_check_method \
41989 sharedlib_from_linklib_cmd \
41992 archiver_list_spec \
41998 lt_cv_sys_global_symbol_pipe \
41999 lt_cv_sys_global_symbol_to_cdecl \
42000 lt_cv_sys_global_symbol_to_import \
42001 lt_cv_sys_global_symbol_to_c_name_address \
42002 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42003 lt_cv_nm_interface \
42004 nm_file_list_spec \
42005 lt_cv_truncate_bin \
42006 lt_prog_compiler_no_builtin_flag \
42007 lt_prog_compiler_pic \
42008 lt_prog_compiler_wl \
42009 lt_prog_compiler_static \
42010 lt_cv_prog_compiler_c_o \
42019 export_dynamic_flag_spec \
42020 whole_archive_flag_spec \
42021 compiler_needs_object \
42023 allow_undefined_flag \
42024 no_undefined_flag \
42025 hardcode_libdir_flag_spec \
42026 hardcode_libdir_separator \
42030 variables_saved_for_relink \
42032 library_names_spec \
42034 install_override_mode \
42038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42039 *[\\\\\\\`\\"\\\$]*)
42040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42048 # Double-quote double-evaled strings.
42049 for var in reload_cmds \
42050 old_postinstall_cmds \
42051 old_postuninstall_cmds \
42053 extract_expsyms_cmds \
42054 old_archive_from_new_cmds \
42055 old_archive_from_expsyms_cmds \
42057 archive_expsym_cmds \
42059 module_expsym_cmds \
42060 export_symbols_cmds \
42064 postuninstall_cmds \
42066 sys_lib_search_path_spec \
42067 configure_time_dlsearch_path \
42068 configure_time_lt_sys_library_path; do
42069 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42070 *[\\\\\\\`\\"\\\$]*)
42071 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42074 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42079 ac_aux_dir='$ac_aux_dir'
42081 # See if we are running on zsh, and set the options that allow our
42082 # commands through without removal of \ escapes INIT.
42083 if test -n "\${ZSH_VERSION+set}"; then
42084 setopt NO_GLOB_SUBST
42098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42100 # Handling of arguments.
42101 for ac_config_target in $ac_config_targets
42103 case $ac_config_target in
42104 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42105 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42106 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42107 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42108 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42109 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42110 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42111 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42112 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42113 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42114 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42115 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42116 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42117 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42118 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42119 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42120 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42121 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42122 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42123 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42124 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42125 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42126 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42127 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42128 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42129 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42130 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42131 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42132 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42133 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42134 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42135 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42136 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42137 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42138 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42139 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42140 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42141 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42143 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42148 # If the user did not use the arguments to specify the items to instantiate,
42149 # then the envvar interface is used. Set only those that are not.
42150 # We use the long form for the default assignment because of an extremely
42151 # bizarre bug on SunOS 4.1.3.
42152 if $ac_need_defaults; then
42153 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42154 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42155 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42158 # Have a temporary directory for convenience. Make it in the build tree
42159 # simply because there is no reason against having it here, and in addition,
42160 # creating and moving files from /tmp can sometimes cause problems.
42161 # Hook for its removal unless debugging.
42162 # Note that there is a small window in which the directory will not be cleaned:
42163 # after its creation but before its name has been assigned to `$tmp'.
42167 trap 'exit_status=$?
42168 : "${ac_tmp:=$tmp}"
42169 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42171 trap 'as_fn_exit 1' 1 2 13 15
42173 # Create a (secure) tmp directory for tmp files.
42176 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42180 tmp=./conf$$-$RANDOM
42181 (umask 077 && mkdir "$tmp")
42182 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42185 # Set up the scripts for CONFIG_FILES section.
42186 # No need to generate them if there are no CONFIG_FILES.
42187 # This happens for instance with `./config.status config.h'.
42188 if test -n "$CONFIG_FILES"; then
42191 ac_cr=`echo X | tr X '\015'`
42192 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42193 # But we know of no other shell where ac_cr would be empty at this
42194 # point, so we can use a bashism as a fallback.
42195 if test "x$ac_cr" = x; then
42196 eval ac_cr=\$\'\\r\'
42198 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42199 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42202 ac_cs_awk_cr=$ac_cr
42205 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42210 echo "cat >conf$$subs.awk <<_ACEOF" &&
42211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42213 } >conf$$subs.sh ||
42214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42215 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42217 for ac_last_try in false false false false false :; do
42218 . ./conf$$subs.sh ||
42219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42221 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42222 if test $ac_delim_n = $ac_delim_num; then
42224 elif $ac_last_try; then
42225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42230 rm -f conf$$subs.sh
42232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42233 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42237 s/^/S["/; s/!.*/"]=/
42247 s/\(.\{148\}\)..*/\1/
42249 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42261 s/\(.\{148\}\)..*/\1/
42263 s/["\\]/\\&/g; s/^/"/; s/$/"/
42267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42272 ' <conf$$subs.awk | sed '
42277 ' >>$CONFIG_STATUS || ac_write_fail=1
42278 rm -f conf$$subs.awk
42279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42281 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42282 for (key in S) S_is_set[key] = 1
42288 nfields = split(line, field, "@")
42290 len = length(field[1])
42291 for (i = 2; i < nfields; i++) {
42293 keylen = length(key)
42294 if (S_is_set[key]) {
42296 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42297 len += length(value) + length(field[++i])
42308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42309 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42310 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42313 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42314 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42317 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42318 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42319 # trailing colons and then remove the whole line if VPATH becomes empty
42320 # (actually we leave an empty line to preserve line numbers).
42321 if test "x$srcdir" = x.; then
42322 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42341 fi # test -n "$CONFIG_FILES"
42343 # Set up the scripts for CONFIG_HEADERS section.
42344 # No need to generate them if there are no CONFIG_HEADERS.
42345 # This happens for instance with `./config.status Makefile'.
42346 if test -n "$CONFIG_HEADERS"; then
42347 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42351 # Transform confdefs.h into an awk script `defines.awk', embedded as
42352 # here-document in config.status, that substitutes the proper values into
42353 # config.h.in to produce config.h.
42355 # Create a delimiter string that does not exist in confdefs.h, to ease
42356 # handling of long lines.
42358 for ac_last_try in false false :; do
42359 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42360 if test -z "$ac_tt"; then
42362 elif $ac_last_try; then
42363 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42369 # For the awk script, D is an array of macro values keyed by name,
42370 # likewise P contains macro parameters if any. Preserve backslash
42371 # newline sequences.
42373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42375 s/.\{148\}/&'"$ac_delim"'/g
42378 s/^[ ]*#[ ]*define[ ][ ]*/ /
42385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42392 D["\1"]=" \3\\\\\\n"\\/p
42394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42399 s/.\{148\}/&'"$ac_delim"'/g
42404 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42407 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42409 ' <confdefs.h | sed '
42410 s/'"$ac_delim"'/"\\\
42411 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42414 for (key in D) D_is_set[key] = 1
42417 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42419 split(line, arg, " ")
42420 if (arg[1] == "#") {
42424 defundef = substr(arg[1], 2)
42427 split(mac1, mac2, "(") #)
42429 prefix = substr(line, 1, index(line, defundef) - 1)
42430 if (D_is_set[macro]) {
42431 # Preserve the white space surrounding the "#".
42432 print prefix "define", macro P[macro] D[macro]
42435 # Replace #undef with comments. This is necessary, for example,
42436 # in the case of _POSIX_SOURCE, which is predefined and required
42437 # on some systems where configure will not decide to define it.
42438 if (defundef == "undef") {
42439 print "/*", prefix defundef, macro, "*/"
42447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42448 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42449 fi # test -n "$CONFIG_HEADERS"
42452 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42457 :[FHLC]) ac_mode=$ac_tag; continue;;
42459 case $ac_mode$ac_tag in
42461 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42462 :[FH]-) ac_tag=-:-;;
42463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42480 -) ac_f="$ac_tmp/stdin";;
42481 *) # Look for the file first in the build tree, then in the source tree
42482 # (if the path is not absolute). The absolute path cannot be DOS-style,
42483 # because $ac_f cannot contain `:'.
42487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42489 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42492 as_fn_append ac_file_inputs " '$ac_f'"
42495 # Let's still pretend it is `configure' which instantiates (i.e., don't
42496 # use $as_me), people would be surprised to read:
42497 # /* config.h. Generated by config.status. */
42498 configure_input='Generated from '`
42499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42501 if test x"$ac_file" != x-; then
42502 configure_input="$ac_file. $configure_input"
42503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42504 $as_echo "$as_me: creating $ac_file" >&6;}
42506 # Neutralize special characters interpreted by sed in replacement strings.
42507 case $configure_input in #(
42508 *\&* | *\|* | *\\* )
42509 ac_sed_conf_input=`$as_echo "$configure_input" |
42510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42511 *) ac_sed_conf_input=$configure_input;;
42515 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42521 ac_dir=`$as_dirname -- "$ac_file" ||
42522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42523 X"$ac_file" : 'X\(//\)[^/]' \| \
42524 X"$ac_file" : 'X\(//\)$' \| \
42525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42526 $as_echo X"$ac_file" |
42527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42531 /^X\(\/\/\)[^/].*/{
42544 as_dir="$ac_dir"; as_fn_mkdir_p
42548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42551 # A ".." for each directory in $ac_dir_suffix.
42552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42553 case $ac_top_builddir_sub in
42554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42558 ac_abs_top_builddir=$ac_pwd
42559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42560 # for backward compatibility:
42561 ac_top_builddir=$ac_top_build_prefix
42564 .) # We are building in place.
42566 ac_top_srcdir=$ac_top_builddir_sub
42567 ac_abs_top_srcdir=$ac_pwd ;;
42568 [\\/]* | ?:[\\/]* ) # Absolute name.
42569 ac_srcdir=$srcdir$ac_dir_suffix;
42570 ac_top_srcdir=$srcdir
42571 ac_abs_top_srcdir=$srcdir ;;
42572 *) # Relative name.
42573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42574 ac_top_srcdir=$ac_top_build_prefix$srcdir
42575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42590 ac_MKDIR_P=$MKDIR_P
42592 [\\/$]* | ?:[\\/]* ) ;;
42593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42598 # If the template does not know about datarootdir, expand it.
42599 # FIXME: This hack should be removed a few years after 2.60.
42600 ac_datarootdir_hack=; ac_datarootdir_seen=
42611 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42612 *datarootdir*) ac_datarootdir_seen=yes;;
42613 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42615 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42618 ac_datarootdir_hack='
42619 s&@datadir@&$datadir&g
42620 s&@docdir@&$docdir&g
42621 s&@infodir@&$infodir&g
42622 s&@localedir@&$localedir&g
42623 s&@mandir@&$mandir&g
42624 s&\\\${datarootdir}&$datarootdir&g' ;;
42628 # Neutralize VPATH when `$srcdir' = `.'.
42629 # Shell code in configure.ac might set extrasub.
42630 # FIXME: do we really want to maintain this feature?
42631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42632 ac_sed_extra="$ac_vpsub
42635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42638 s|@configure_input@|$ac_sed_conf_input|;t t
42639 s&@top_builddir@&$ac_top_builddir_sub&;t t
42640 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42641 s&@srcdir@&$ac_srcdir&;t t
42642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42643 s&@top_srcdir@&$ac_top_srcdir&;t t
42644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42645 s&@builddir@&$ac_builddir&;t t
42646 s&@abs_builddir@&$ac_abs_builddir&;t t
42647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42648 s&@INSTALL@&$ac_INSTALL&;t t
42649 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42650 $ac_datarootdir_hack
42652 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42653 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42656 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42658 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42660 which seems to be undefined. Please make sure it is defined" >&5
42661 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42662 which seems to be undefined. Please make sure it is defined" >&2;}
42664 rm -f "$ac_tmp/stdin"
42666 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42667 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42675 if test x"$ac_file" != x-; then
42677 $as_echo "/* $configure_input */" \
42678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42679 } >"$ac_tmp/config.h" \
42680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42681 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42682 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42686 mv "$ac_tmp/config.h" "$ac_file" \
42687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42690 $as_echo "/* $configure_input */" \
42691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42692 || as_fn_error $? "could not create -" "$LINENO" 5
42694 # Compute "$ac_file"'s index in $config_headers.
42697 for _am_header in $config_headers :; do
42698 case $_am_header in
42699 $_am_arg | $_am_arg:* )
42702 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42705 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42706 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42707 X"$_am_arg" : 'X\(//\)[^/]' \| \
42708 X"$_am_arg" : 'X\(//\)$' \| \
42709 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42710 $as_echo X"$_am_arg" |
42711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42715 /^X\(\/\/\)[^/].*/{
42727 s/.*/./; q'`/stamp-h$_am_stamp_count
42730 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42731 $as_echo "$as_me: executing $ac_file commands" >&6;}
42736 case $ac_file$ac_mode in
42737 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42738 # Older Autoconf quotes --file arguments for eval, but not when files
42739 # are listed without --file. Let's play safe and only enable the eval
42740 # if we detect the quoting.
42741 case $CONFIG_FILES in
42742 *\'*) eval set x "$CONFIG_FILES" ;;
42743 *) set x $CONFIG_FILES ;;
42748 # Strip MF so we end up with the name of the file.
42749 mf=`echo "$mf" | sed -e 's/:.*$//'`
42750 # Check whether this is an Automake generated Makefile or not.
42751 # We used to match only the files named 'Makefile.in', but
42752 # some people rename them; so instead we look at the file content.
42753 # Grep'ing the first line is not enough: some people post-process
42754 # each Makefile.in and add a new line on top of each file to say so.
42755 # Grep'ing the whole file is not good either: AIX grep has a line
42756 # limit of 2048, but all sed's we know have understand at least 4000.
42757 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42758 dirpart=`$as_dirname -- "$mf" ||
42759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42760 X"$mf" : 'X\(//\)[^/]' \| \
42761 X"$mf" : 'X\(//\)$' \| \
42762 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42768 /^X\(\/\/\)[^/].*/{
42784 # Extract the definition of DEPDIR, am__include, and am__quote
42785 # from the Makefile without running 'make'.
42786 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42787 test -z "$DEPDIR" && continue
42788 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42789 test -z "$am__include" && continue
42790 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42791 # Find all dependency output files, they are included files with
42792 # $(DEPDIR) in their names. We invoke sed twice because it is the
42793 # simplest approach to changing $(DEPDIR) to its actual value in the
42795 for file in `sed -n "
42796 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42797 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42798 # Make sure the directory exists.
42799 test -f "$dirpart/$file" && continue
42800 fdir=`$as_dirname -- "$file" ||
42801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42802 X"$file" : 'X\(//\)[^/]' \| \
42803 X"$file" : 'X\(//\)$' \| \
42804 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42805 $as_echo X"$file" |
42806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42810 /^X\(\/\/\)[^/].*/{
42823 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42824 # echo "creating $dirpart/$file"
42825 echo '# dummy' > "$dirpart/$file"
42832 # See if we are running on zsh, and set the options that allow our
42833 # commands through without removal of \ escapes.
42834 if test -n "${ZSH_VERSION+set}"; then
42835 setopt NO_GLOB_SUBST
42839 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42842 cat <<_LT_EOF >> "$cfgfile"
42844 # Generated automatically by $as_me ($PACKAGE) $VERSION
42845 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42847 # Provide generalized library-building support services.
42848 # Written by Gordon Matzigkeit, 1996
42850 # Copyright (C) 2014 Free Software Foundation, Inc.
42851 # This is free software; see the source for copying conditions. There is NO
42852 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42854 # GNU Libtool is free software; you can redistribute it and/or modify
42855 # it under the terms of the GNU General Public License as published by
42856 # the Free Software Foundation; either version 2 of of the License, or
42857 # (at your option) any later version.
42859 # As a special exception to the GNU General Public License, if you
42860 # distribute this file as part of a program or library that is built
42861 # using GNU Libtool, you may include this file under the same
42862 # distribution terms that you use for the rest of that program.
42864 # GNU Libtool is distributed in the hope that it will be useful, but
42865 # WITHOUT ANY WARRANTY; without even the implied warranty of
42866 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42867 # GNU General Public License for more details.
42869 # You should have received a copy of the GNU General Public License
42870 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42873 # The names of the tagged configurations supported by this script.
42876 # Configured defaults for sys_lib_dlsearch_path munging.
42877 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42879 # ### BEGIN LIBTOOL CONFIG
42881 # Which release of libtool.m4 was used?
42882 macro_version=$macro_version
42883 macro_revision=$macro_revision
42885 # Assembler program.
42888 # DLL creation program.
42889 DLLTOOL=$lt_DLLTOOL
42891 # Object dumper program.
42892 OBJDUMP=$lt_OBJDUMP
42894 # Whether or not to build shared libraries.
42895 build_libtool_libs=$enable_shared
42897 # Whether or not to build static libraries.
42898 build_old_libs=$enable_static
42900 # What type of objects to build.
42903 # Whether or not to optimize for fast installation.
42904 fast_install=$enable_fast_install
42906 # Shared archive member basename,for filename based shared library versioning on AIX.
42907 shared_archive_member_spec=$shared_archive_member_spec
42909 # Shell to use when invoking shell scripts.
42912 # An echo program that protects backslashes.
42915 # The PATH separator for the build system.
42916 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42919 host_alias=$host_alias
42923 # The build system.
42924 build_alias=$build_alias
42928 # A sed program that does not truncate output.
42931 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42932 Xsed="\$SED -e 1s/^X//"
42934 # A grep program that handles long lines.
42940 # A literal string matcher.
42943 # A BSD- or MS-compatible name lister.
42946 # Whether we need soft or hard links.
42949 # What is the maximum length of a command?
42950 max_cmd_len=$max_cmd_len
42952 # Object file suffix (normally "o").
42955 # Executable file suffix (normally "").
42958 # whether the shell understands "unset".
42961 # turn spaces into newlines.
42964 # turn newlines into spaces.
42967 # convert \$build file names to \$host format.
42968 to_host_file_cmd=$lt_cv_to_host_file_cmd
42970 # convert \$build files to toolchain format.
42971 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42973 # Method to check whether dependent libraries are shared objects.
42974 deplibs_check_method=$lt_deplibs_check_method
42976 # Command to use when deplibs_check_method = "file_magic".
42977 file_magic_cmd=$lt_file_magic_cmd
42979 # How to find potential files when deplibs_check_method = "file_magic".
42980 file_magic_glob=$lt_file_magic_glob
42982 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42983 want_nocaseglob=$lt_want_nocaseglob
42985 # Command to associate shared and link libraries.
42986 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42991 # Flags to create an archive.
42992 AR_FLAGS=$lt_AR_FLAGS
42994 # How to feed a file listing to the archiver.
42995 archiver_list_spec=$lt_archiver_list_spec
42997 # A symbol stripping program.
43000 # Commands used to install an old-style archive.
43002 old_postinstall_cmds=$lt_old_postinstall_cmds
43003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43005 # Whether to use a lock for old archive extraction.
43006 lock_old_archive_extraction=$lock_old_archive_extraction
43011 # LTCC compiler flags.
43012 LTCFLAGS=$lt_CFLAGS
43014 # Take the output of nm and produce a listing of raw symbols and C names.
43015 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43017 # Transform the output of nm in a proper C declaration.
43018 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43020 # Transform the output of nm into a list of symbols to manually relocate.
43021 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43023 # Transform the output of nm in a C name address pair.
43024 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43026 # Transform the output of nm in a C name address pair when lib prefix is needed.
43027 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43029 # The name lister interface.
43030 nm_interface=$lt_lt_cv_nm_interface
43032 # Specify filename containing input files for \$NM.
43033 nm_file_list_spec=$lt_nm_file_list_spec
43035 # The root where to search for dependent libraries,and where our libraries should be installed.
43036 lt_sysroot=$lt_sysroot
43038 # Command to truncate a binary pipe.
43039 lt_truncate_bin=$lt_lt_cv_truncate_bin
43041 # The name of the directory that contains temporary libtool files.
43044 # Used to examine libraries when file_magic_cmd begins with "file".
43045 MAGIC_CMD=$MAGIC_CMD
43047 # Must we lock files when doing compilation?
43048 need_locks=$lt_need_locks
43051 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43053 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43054 DSYMUTIL=$lt_DSYMUTIL
43056 # Tool to change global to local symbols on Mac OS X.
43059 # Tool to manipulate fat objects and archives on Mac OS X.
43062 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43065 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43066 OTOOL64=$lt_OTOOL64
43068 # Old archive suffix (normally "a").
43071 # Shared library suffix (normally ".so").
43072 shrext_cmds=$lt_shrext_cmds
43074 # The commands to extract the exported symbol list from a shared archive.
43075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43077 # Variables whose values should be saved in libtool wrapper scripts and
43078 # restored at link time.
43079 variables_saved_for_relink=$lt_variables_saved_for_relink
43081 # Do we need the "lib" prefix for modules?
43082 need_lib_prefix=$need_lib_prefix
43084 # Do we need a version for libraries?
43085 need_version=$need_version
43087 # Library versioning type.
43088 version_type=$version_type
43090 # Shared library runtime path variable.
43091 runpath_var=$runpath_var
43093 # Shared library path variable.
43094 shlibpath_var=$shlibpath_var
43096 # Is shlibpath searched before the hard-coded library search path?
43097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43099 # Format of library name prefix.
43100 libname_spec=$lt_libname_spec
43102 # List of archive names. First name is the real one, the rest are links.
43103 # The last name is the one that the linker finds with -lNAME
43104 library_names_spec=$lt_library_names_spec
43106 # The coded name of the library, if different from the real name.
43107 soname_spec=$lt_soname_spec
43109 # Permission mode override for installation of shared libraries.
43110 install_override_mode=$lt_install_override_mode
43112 # Command to use after installation of a shared archive.
43113 postinstall_cmds=$lt_postinstall_cmds
43115 # Command to use after uninstallation of a shared archive.
43116 postuninstall_cmds=$lt_postuninstall_cmds
43118 # Commands used to finish a libtool library installation in a directory.
43119 finish_cmds=$lt_finish_cmds
43121 # As "finish_cmds", except a single script fragment to be evaled but
43123 finish_eval=$lt_finish_eval
43125 # Whether we should hardcode library paths into libraries.
43126 hardcode_into_libs=$hardcode_into_libs
43128 # Compile-time system search path for libraries.
43129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43131 # Detected run-time system search path for libraries.
43132 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43134 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43135 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43137 # Whether dlopen is supported.
43138 dlopen_support=$enable_dlopen
43140 # Whether dlopen of programs is supported.
43141 dlopen_self=$enable_dlopen_self
43143 # Whether dlopen of statically linked programs is supported.
43144 dlopen_self_static=$enable_dlopen_self_static
43146 # Commands to strip libraries.
43147 old_striplib=$lt_old_striplib
43148 striplib=$lt_striplib
43151 # The linker used to build libraries.
43154 # How to create reloadable object files.
43155 reload_flag=$lt_reload_flag
43156 reload_cmds=$lt_reload_cmds
43158 # Commands used to build an old-style archive.
43159 old_archive_cmds=$lt_old_archive_cmds
43161 # A language specific compiler.
43164 # Is the compiler the GNU compiler?
43167 # Compiler flag to turn off builtin functions.
43168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43170 # Additional compiler flags for building library objects.
43171 pic_flag=$lt_lt_prog_compiler_pic
43173 # How to pass a linker flag through the compiler.
43174 wl=$lt_lt_prog_compiler_wl
43176 # Compiler flag to prevent dynamic linking.
43177 link_static_flag=$lt_lt_prog_compiler_static
43179 # Does compiler simultaneously support -c and -o options?
43180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43182 # Whether or not to add -lc for building shared libraries.
43183 build_libtool_need_lc=$archive_cmds_need_lc
43185 # Whether or not to disallow shared libs when runtime libs are static.
43186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43188 # Compiler flag to allow reflexive dlopens.
43189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43191 # Compiler flag to generate shared objects directly from archives.
43192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43194 # Whether the compiler copes with passing no objects directly.
43195 compiler_needs_object=$lt_compiler_needs_object
43197 # Create an old-style archive from a shared archive.
43198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43200 # Create a temporary old-style archive to link instead of a shared archive.
43201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43203 # Commands used to build a shared archive.
43204 archive_cmds=$lt_archive_cmds
43205 archive_expsym_cmds=$lt_archive_expsym_cmds
43207 # Commands used to build a loadable module if different from building
43208 # a shared archive.
43209 module_cmds=$lt_module_cmds
43210 module_expsym_cmds=$lt_module_expsym_cmds
43212 # Whether we are building with GNU ld or not.
43213 with_gnu_ld=$lt_with_gnu_ld
43215 # Flag that allows shared libraries with undefined symbols to be built.
43216 allow_undefined_flag=$lt_allow_undefined_flag
43218 # Flag that enforces no undefined symbols.
43219 no_undefined_flag=$lt_no_undefined_flag
43221 # Flag to hardcode \$libdir into a binary during linking.
43222 # This must work even if \$libdir does not exist
43223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43225 # Whether we need a single "-rpath" flag with a separated argument.
43226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43228 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43229 # DIR into the resulting binary.
43230 hardcode_direct=$hardcode_direct
43232 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43233 # DIR into the resulting binary and the resulting library dependency is
43234 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43235 # library is relocated.
43236 hardcode_direct_absolute=$hardcode_direct_absolute
43238 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43239 # into the resulting binary.
43240 hardcode_minus_L=$hardcode_minus_L
43242 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43243 # into the resulting binary.
43244 hardcode_shlibpath_var=$hardcode_shlibpath_var
43246 # Set to "yes" if building a shared library automatically hardcodes DIR
43247 # into the library and all subsequent libraries and executables linked
43249 hardcode_automatic=$hardcode_automatic
43251 # Set to yes if linker adds runtime paths of dependent libraries
43252 # to runtime path list.
43253 inherit_rpath=$inherit_rpath
43255 # Whether libtool must link a program against all its dependency libraries.
43256 link_all_deplibs=$link_all_deplibs
43258 # Set to "yes" if exported symbols are required.
43259 always_export_symbols=$always_export_symbols
43261 # The commands to list exported symbols.
43262 export_symbols_cmds=$lt_export_symbols_cmds
43264 # Symbols that should not be listed in the preloaded symbols.
43265 exclude_expsyms=$lt_exclude_expsyms
43267 # Symbols that must always be exported.
43268 include_expsyms=$lt_include_expsyms
43270 # Commands necessary for linking programs (against libraries) with templates.
43271 prelink_cmds=$lt_prelink_cmds
43273 # Commands necessary for finishing linking programs.
43274 postlink_cmds=$lt_postlink_cmds
43276 # Specify filename containing input files.
43277 file_list_spec=$lt_file_list_spec
43279 # How to hardcode a shared library path into an executable.
43280 hardcode_action=$hardcode_action
43282 # ### END LIBTOOL CONFIG
43286 cat <<'_LT_EOF' >> "$cfgfile"
43288 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43290 # func_munge_path_list VARIABLE PATH
43291 # -----------------------------------
43292 # VARIABLE is name of variable containing _space_ separated list of
43293 # directories to be munged by the contents of PATH, which is string
43296 # string "DIR[ DIR]" will be prepended to VARIABLE
43298 # string "DIR[ DIR]" will be appended to VARIABLE
43299 # "DIRP[:DIRP]::[DIRA:]DIRA"
43300 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43301 # "DIRA[ DIRA]" will be appended to VARIABLE
43303 # VARIABLE will be replaced by "DIR[ DIR]"
43304 func_munge_path_list ()
43310 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43313 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43316 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43317 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43320 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43326 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43327 func_cc_basename ()
43329 for cc_temp in $*""; do
43331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43337 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43341 # ### END FUNCTIONS SHARED WITH CONFIGURE
43347 cat <<\_LT_EOF >> "$cfgfile"
43348 # AIX sometimes has problems with the GCC collect2 program. For some
43349 # reason, if we set the COLLECT_NAMES environment variable, the problems
43350 # vanish in a puff of smoke.
43351 if test set != "${COLLECT_NAMES+set}"; then
43353 export COLLECT_NAMES
43360 ltmain=$ac_aux_dir/ltmain.sh
43363 # We use sed instead of cat because bash on DJGPP gets confused if
43364 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43365 # text mode, it properly converts lines to CR/LF. This bash problem
43366 # is reportedly fixed, but why not run on old versions too?
43367 sed '$q' "$ltmain" >> "$cfgfile" \
43368 || (rm -f "$cfgfile"; exit 1)
43370 mv -f "$cfgfile" "$ofile" ||
43371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43382 ac_clean_files=$ac_clean_files_save
43384 test $ac_write_fail = 0 ||
43385 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43388 # configure is writing to config.log, and then calls config.status.
43389 # config.status does its own redirection, appending to config.log.
43390 # Unfortunately, on DOS this fails, as config.log is still kept open
43391 # by configure, so config.status won't be able to write to it; its
43392 # output is simply discarded. So we exec the FD to /dev/null,
43393 # effectively closing config.log, so it can be properly (re)opened and
43394 # appended to by config.status. When coming back to configure, we
43395 # need to make the FD available again.
43396 if test "$no_create" != yes; then
43398 ac_config_status_args=
43399 test "$silent" = yes &&
43400 ac_config_status_args="$ac_config_status_args --quiet"
43402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43405 # would make configure fail if this is the last instruction.
43406 $ac_cs_success || as_fn_exit 1
43410 # CONFIG_SUBDIRS section.
43412 if test "$no_recursion" != yes; then
43414 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43415 # so they do not pile up.
43416 ac_sub_configure_args=
43418 eval "set x $ac_configure_args"
43422 if test -n "$ac_prev"; then
43427 -cache-file | --cache-file | --cache-fil | --cache-fi \
43428 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43429 ac_prev=cache_file ;;
43430 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43431 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43434 --config-cache | -C)
43436 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43438 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43440 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43442 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43444 --disable-option-checking)
43448 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43450 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43454 # Always prepend --prefix to ensure using the same prefix
43455 # in subdir configurations.
43456 ac_arg="--prefix=$prefix"
43458 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43460 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43463 if test "$silent" = yes; then
43464 ac_sub_configure_args="--silent $ac_sub_configure_args"
43467 # Always prepend --disable-option-checking to silence warnings, since
43468 # different subdirs can have different --enable and --with options.
43469 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43472 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43474 # Do not complain, so a configure script can configure whichever
43475 # parts of a large source tree are present.
43476 test -d "$srcdir/$ac_dir" || continue
43478 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43479 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43480 $as_echo "$ac_msg" >&6
43481 as_dir="$ac_dir"; as_fn_mkdir_p
43485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43488 # A ".." for each directory in $ac_dir_suffix.
43489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43490 case $ac_top_builddir_sub in
43491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43495 ac_abs_top_builddir=$ac_pwd
43496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43497 # for backward compatibility:
43498 ac_top_builddir=$ac_top_build_prefix
43501 .) # We are building in place.
43503 ac_top_srcdir=$ac_top_builddir_sub
43504 ac_abs_top_srcdir=$ac_pwd ;;
43505 [\\/]* | ?:[\\/]* ) # Absolute name.
43506 ac_srcdir=$srcdir$ac_dir_suffix;
43507 ac_top_srcdir=$srcdir
43508 ac_abs_top_srcdir=$srcdir ;;
43509 *) # Relative name.
43510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43511 ac_top_srcdir=$ac_top_build_prefix$srcdir
43512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43519 # Check for guested configure; otherwise get Cygnus style configure.
43520 if test -f "$ac_srcdir/configure.gnu"; then
43521 ac_sub_configure=$ac_srcdir/configure.gnu
43522 elif test -f "$ac_srcdir/configure"; then
43523 ac_sub_configure=$ac_srcdir/configure
43524 elif test -f "$ac_srcdir/configure.in"; then
43525 # This should be Cygnus configure.
43526 ac_sub_configure=$ac_aux_dir/configure
43528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43533 # The recursion is here.
43534 if test -n "$ac_sub_configure"; then
43535 # Make the cache file name correct relative to the subdirectory.
43536 case $cache_file in
43537 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43538 *) # Relative name.
43539 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43542 { $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
43543 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43544 # The eval makes quoting arguments work.
43545 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43546 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43547 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43553 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43555 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43560 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43561 if test -z "$tmp_cpp"; then
43564 cat >./tests/configurehelp.pm <<_EOF
43565 # This is a generated file. Do not edit.
43567 package configurehelp;
43579 @ISA = qw(Exporter);
43585 \$Cpreprocessor = '$tmp_cpp';
43592 ## ---------------------------------- ##
43593 ## Start of distclean amending code ##
43594 ## ---------------------------------- ##
43596 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43599 if test ! -f "$xc_subdir/Makefile"; then
43600 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43604 # Fetch dependency tracking file list from Makefile include lines.
43606 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43607 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43609 # --disable-dependency-tracking might have been used, consequently
43610 # there is nothing to amend without a dependency tracking file list.
43612 if test $xc_cnt_words -gt 0; then
43614 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43615 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43617 # Build Makefile specific patch hunk.
43619 xc_p="$xc_subdir/xc_patch.tmp"
43621 xc_rm_depfiles=`echo "$xc_inc_lines" \
43622 | $SED 's%include% -rm -f%' 2>/dev/null`
43624 xc_dep_subdirs=`echo "$xc_inc_lines" \
43625 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43626 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43629 echo "$xc_rm_depfiles" >$xc_p
43631 for xc_dep_dir in $xc_dep_subdirs; do
43632 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
43633 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
43634 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
43635 echo "${xc_tab}fi" >>$xc_p
43638 # Build Makefile patching sed scripts.
43640 xc_s1="$xc_subdir/xc_script_1.tmp"
43641 xc_s2="$xc_subdir/xc_script_2.tmp"
43642 xc_s3="$xc_subdir/xc_script_3.tmp"
43644 cat >$xc_s1 <<\_EOT
43645 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
43646 s/^.*(DEPDIR)/___xc_depdir_line___/
43648 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
43649 s/^.*(DEPDIR)/___xc_depdir_line___/
43653 cat >$xc_s2 <<\_EOT
43654 /___xc_depdir_line___$/{
43656 /___xc_depdir_line___$/D
43661 /^___xc_depdir_line___/{
43667 # Apply patch to Makefile and cleanup.
43669 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
43670 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43671 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43673 if test -f "$xc_subdir/Makefile.tmp3"; then
43674 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43677 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43678 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43679 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43681 test -f "$xc_p" && rm -f "$xc_p"
43682 test -f "$xc_s1" && rm -f "$xc_s1"
43683 test -f "$xc_s2" && rm -f "$xc_s2"
43684 test -f "$xc_s3" && rm -f "$xc_s3"
43690 ## -------------------------------- ##
43691 ## End of distclean amending code ##
43692 ## -------------------------------- ##
43696 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43698 curl version: ${CURLVERSION}
43699 Host setup: ${host}
43700 Install prefix: ${prefix}
43702 SSL support: ${curl_ssl_msg}
43703 SSH support: ${curl_ssh_msg}
43704 zlib support: ${curl_zlib_msg}
43705 GSS-API support: ${curl_gss_msg}
43706 TLS-SRP support: ${curl_tls_srp_msg}
43707 resolver: ${curl_res_msg}
43708 IPv6 support: ${curl_ipv6_msg}
43709 Unix sockets support: ${curl_unix_sockets_msg}
43710 IDN support: ${curl_idn_msg}
43711 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43712 Built-in manual: ${curl_manual_msg}
43713 --libcurl option: ${curl_libcurl_msg}
43714 Verbose errors: ${curl_verbose_msg}
43715 SSPI support: ${curl_sspi_msg}
43716 ca cert bundle: ${ca}${ca_warning}
43717 ca cert path: ${capath}${capath_warning}
43718 ca fallback: ${with_ca_fallback}
43719 LDAP support: ${curl_ldap_msg}
43720 LDAPS support: ${curl_ldaps_msg}
43721 RTSP support: ${curl_rtsp_msg}
43722 RTMP support: ${curl_rtmp_msg}
43723 metalink support: ${curl_mtlnk_msg}
43724 PSL support: ${curl_psl_msg}
43725 HTTP2 support: ${curl_h2_msg}
43726 Protocols: ${SUPPORT_PROTOCOLS}
43728 $as_echo "$as_me: Configured to build curl/libcurl:
43730 curl version: ${CURLVERSION}
43731 Host setup: ${host}
43732 Install prefix: ${prefix}
43734 SSL support: ${curl_ssl_msg}
43735 SSH support: ${curl_ssh_msg}
43736 zlib support: ${curl_zlib_msg}
43737 GSS-API support: ${curl_gss_msg}
43738 TLS-SRP support: ${curl_tls_srp_msg}
43739 resolver: ${curl_res_msg}
43740 IPv6 support: ${curl_ipv6_msg}
43741 Unix sockets support: ${curl_unix_sockets_msg}
43742 IDN support: ${curl_idn_msg}
43743 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43744 Built-in manual: ${curl_manual_msg}
43745 --libcurl option: ${curl_libcurl_msg}
43746 Verbose errors: ${curl_verbose_msg}
43747 SSPI support: ${curl_sspi_msg}
43748 ca cert bundle: ${ca}${ca_warning}
43749 ca cert path: ${capath}${capath_warning}
43750 ca fallback: ${with_ca_fallback}
43751 LDAP support: ${curl_ldap_msg}
43752 LDAPS support: ${curl_ldaps_msg}
43753 RTSP support: ${curl_rtsp_msg}
43754 RTMP support: ${curl_rtmp_msg}
43755 metalink support: ${curl_mtlnk_msg}
43756 PSL support: ${curl_psl_msg}
43757 HTTP2 support: ${curl_h2_msg}
43758 Protocols: ${SUPPORT_PROTOCOLS}