2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for c-ares 1.10.0.
5 # Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
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 ## -------------------------------- ##
15 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
16 ## -------------------------------- ##
18 xc_configure_preamble_ver_major='1'
19 xc_configure_preamble_ver_minor='0'
22 # Set IFS to space, tab and newline.
29 IFS="$xc_space$xc_tab$xc_newline"
32 # Set internationalization behavior variables.
43 # Some useful variables.
46 xc_msg_warn='configure: WARNING:'
47 xc_msg_abrt='Can not continue.'
48 xc_msg_err='configure: error:'
51 # Verify that 'echo' command is available, otherwise abort.
55 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
56 case "x$xc_tst_str" in # ((
61 # Try built-in echo, and fail.
62 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
68 # Verify that 'test' command is available, otherwise abort.
72 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
73 case "x$xc_tst_str" in # ((
78 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
84 # Verify that 'PATH' variable is set, otherwise abort.
88 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
89 case "x$xc_tst_str" in # ((
94 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
100 # Verify that 'expr' command is available, otherwise abort.
104 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
105 case "x$xc_tst_str" in # ((
110 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
116 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
120 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
121 | sed -e 's:unknown:success:' 2>/dev/null`
122 case "x$xc_tst_str" in # ((
127 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
133 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
137 (`echo "$xc_tst_str" 2>/dev/null \
138 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
139 case "x$xc_tst_str" in # ((
144 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
150 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
153 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
154 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
155 | tr -d "0123456789$xc_tab" 2>/dev/null`
156 case "x$xc_tst_str" in # ((
161 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
167 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
170 xc_tst_str='unknown unknown unknown unknown'
171 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
172 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
173 case "x$xc_tst_str" in # ((
178 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
184 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
188 xc_tst_str=`cat <<_EOT 2>/dev/null \
189 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194 case "x$xc_tst_str" in # ((
199 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
205 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
208 # Directory count in 'PATH' when using a colon separator.
210 xc_tst_prev_IFS=$IFS; IFS=':'
211 for xc_tst_dir in $PATH; do
213 xc_tst_dirs_col="x$xc_tst_dirs_col"
216 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
218 # Directory count in 'PATH' when using a semicolon separator.
220 xc_tst_prev_IFS=$IFS; IFS=';'
221 for xc_tst_dir in $PATH; do
223 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
226 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
228 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
229 # When both counting methods give the same result we do not want to
230 # chose one over the other, and consider auto-detection not possible.
231 if test -z "$PATH_SEPARATOR"; then
232 # Stop dead until user provides 'PATH_SEPARATOR' definition.
233 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
237 # Separator with the greater directory count is the auto-detected one.
238 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
239 xc_tst_auto_separator=';'
241 xc_tst_auto_separator=':'
243 if test -z "$PATH_SEPARATOR"; then
244 # Simply use the auto-detected one when not already set.
245 PATH_SEPARATOR=$xc_tst_auto_separator
246 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
247 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
250 xc_PATH_SEPARATOR=$PATH_SEPARATOR
252 xc_configure_preamble_result='yes'
255 ## -------------------- ##
256 ## M4sh Initialization. ##
257 ## -------------------- ##
259 # Be more Bourne compatible
260 DUALCASE=1; export DUALCASE # for MKS sh
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in #(
281 # Printing a long string crashes Solaris 7 /usr/bin/printf.
282 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
285 # Prefer a ksh shell builtin over an external printf program on Solaris,
286 # but without wasting forks for bash or zsh.
287 if test -z "$BASH_VERSION$ZSH_VERSION" \
288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
289 as_echo='print -r --'
290 as_echo_n='print -rn --'
291 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
292 as_echo='printf %s\n'
293 as_echo_n='printf %s'
295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
297 as_echo_n='/usr/ucb/echo -n'
299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304 expr "X$arg" : "X\\(.*\\)$as_nl";
305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
309 export as_echo_n_body
310 as_echo_n='sh -c $as_echo_n_body as_echo'
313 as_echo='sh -c $as_echo_body as_echo'
319 # We need space, tab and new line, in precisely that order. Quoting is
320 # there to prevent editors from complaining about space-tab.
321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
322 # splitting by setting IFS to empty value.)
325 # Find who we are. Look in the path if we contain no directory separator.
328 *[\\/]* ) as_myself=$0 ;;
329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
333 test -z "$as_dir" && as_dir=.
334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340 # We did not find ourselves, most probably we were run as `sh COMMAND'
341 # in which case we are not to be found in the path.
342 if test "x$as_myself" = x; then
345 if test ! -f "$as_myself"; then
346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
350 # Unset variables that we do not need and which cause bugs (e.g. in
351 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
352 # suppresses any "Segmentation fault" message there. '((' could
353 # trigger a bug in pdksh 5.2.14.
354 for as_var in BASH_ENV ENV MAIL MAILPATH
355 do eval test x\${$as_var+set} = xset \
356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
371 # Use a proper internal environment variable to ensure we don't fall
372 # into an infinite loop, continuously re-executing ourselves.
373 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
374 _as_can_reexec=no; export _as_can_reexec;
375 # We cannot yet assume a decent shell, so we have to provide a
376 # neutralization value for shells without unset; and this also
377 # works around shells that cannot unset nonexistent variables.
378 # Preserve -v and -x to the replacement shell.
381 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
383 *v*x* | *x*v* ) as_opts=-vx ;;
388 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
389 # Admittedly, this is quite paranoid, since all the known shells bail
390 # out after a failed `exec'.
391 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
394 # We don't want this to propagate to other subprocesses.
395 { _as_can_reexec=; unset _as_can_reexec;}
396 if test "x$CONFIG_SHELL" = x; then
397 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
400 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
401 # is contrary to our usage. Disable this feature.
402 alias -g '\${1+\"\$@\"}'='\"\$@\"'
405 case \`(set -o) 2>/dev/null\` in #(
413 as_required="as_fn_return () { (exit \$1); }
414 as_fn_success () { as_fn_return 0; }
415 as_fn_failure () { as_fn_return 1; }
416 as_fn_ret_success () { return 0; }
417 as_fn_ret_failure () { return 1; }
420 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
421 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
422 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
423 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
424 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
427 exitcode=1; echo positional parameters were not saved.
429 test x\$exitcode = x0 || exit 1
431 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
432 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
433 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
434 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
435 test \$(( 1 + 1 )) = 2 || exit 1
437 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
438 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
439 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
440 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
441 PATH=/empty FPATH=/empty; export PATH FPATH
442 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
443 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
444 if (eval "$as_required") 2>/dev/null; then :
449 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
454 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
457 test -z "$as_dir" && as_dir=.
461 for as_base in sh bash ksh sh5; do
462 # Try only shells that exist, to save several forks.
463 as_shell=$as_dir/$as_base
464 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
465 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
466 CONFIG_SHELL=$as_shell as_have_required=yes
467 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
475 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
476 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
477 CONFIG_SHELL=$SHELL as_have_required=yes
482 if test "x$CONFIG_SHELL" != x; then :
484 # We cannot yet assume a decent shell, so we have to provide a
485 # neutralization value for shells without unset; and this also
486 # works around shells that cannot unset nonexistent variables.
487 # Preserve -v and -x to the replacement shell.
490 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
492 *v*x* | *x*v* ) as_opts=-vx ;;
497 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
498 # Admittedly, this is quite paranoid, since all the known shells bail
499 # out after a failed `exec'.
500 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
504 if test x$as_have_required = xno; then :
505 $as_echo "$0: This script requires a shell more modern than all"
506 $as_echo "$0: the shells that I found on your system."
507 if test x${ZSH_VERSION+set} = xset ; then
508 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
509 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
511 $as_echo "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
512 $0: list: http://cool.haxx.se/mailman/listinfo/c-ares about
513 $0: your system, including any error possibly output before
514 $0: this message. Then install a modern shell, or manually
515 $0: run the script under such a shell if you do have one."
521 SHELL=${CONFIG_SHELL-/bin/sh}
523 # Unset more variables known to interfere with behavior of common tools.
524 CLICOLOR_FORCE= GREP_OPTIONS=
525 unset CLICOLOR_FORCE GREP_OPTIONS
527 ## --------------------- ##
528 ## M4sh Shell Functions. ##
529 ## --------------------- ##
532 # Portably unset VAR.
535 { eval $1=; unset $1;}
539 # as_fn_set_status STATUS
540 # -----------------------
541 # Set $? to STATUS, without forking.
549 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
559 # Create "$as_dir" as a directory, including parents if necessary.
564 -*) as_dir=./$as_dir;;
566 test -d "$as_dir" || eval $as_mkdir_p || {
570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
573 as_dirs="'$as_qdir' $as_dirs"
574 as_dir=`$as_dirname -- "$as_dir" ||
575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
576 X"$as_dir" : 'X\(//\)[^/]' \| \
577 X"$as_dir" : 'X\(//\)$' \| \
578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
579 $as_echo X"$as_dir" |
580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
597 test -d "$as_dir" && break
599 test -z "$as_dirs" || eval "mkdir $as_dirs"
600 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605 # as_fn_executable_p FILE
606 # -----------------------
607 # Test if FILE is an executable regular file.
608 as_fn_executable_p ()
610 test -f "$1" && test -x "$1"
611 } # as_fn_executable_p
612 # as_fn_append VAR VALUE
613 # ----------------------
614 # Append the text in VALUE to the end of the definition contained in VAR. Take
615 # advantage of any shell optimizations that allow amortized linear growth over
616 # repeated appends, instead of the typical quadratic growth present in naive
618 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
619 eval 'as_fn_append ()
632 # Perform arithmetic evaluation on the ARGs, and store the result in the
633 # global $as_val. Take advantage of shells that can avoid forks. The arguments
634 # must be portable across $(()) and expr.
635 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
643 as_val=`expr "$@" || test $? -eq 1`
648 # as_fn_error STATUS ERROR [LINENO LOG_FD]
649 # ----------------------------------------
650 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
651 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
652 # script with STATUS, using 1 if that was 0.
655 as_status=$1; test $as_status -eq 0 && as_status=1
657 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
658 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
660 $as_echo "$as_me: error: $2" >&2
661 as_fn_exit $as_status
664 if expr a : '\(a\)' >/dev/null 2>&1 &&
665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
671 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683 as_me=`$as_basename -- "$0" ||
684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
685 X"$0" : 'X\(//\)$' \| \
686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
688 sed '/^.*\/\([^/][^/]*\)\/*$/{
702 # Avoid depending upon Character Ranges.
703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
706 as_cr_digits='0123456789'
707 as_cr_alnum=$as_cr_Letters$as_cr_digits
710 as_lineno_1=$LINENO as_lineno_1a=$LINENO
711 as_lineno_2=$LINENO as_lineno_2a=$LINENO
712 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
713 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
714 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
726 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
730 chmod +x "$as_me.lineno" ||
731 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
733 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
734 # already done that, so ensure we don't try to do so again and fall
735 # in an infinite loop. This has already happened in practice.
736 _as_can_reexec=no; export _as_can_reexec
737 # Don't try to exec as it changes $[0], causing all sort of problems
738 # (the dirname of $[0] is not the place where we might find the
739 # original and so on. Autoconf is especially sensitive to this).
741 # Exit status is that of the last command.
745 ECHO_C= ECHO_N= ECHO_T=
746 case `echo -n x` in #(((((
748 case `echo 'xy\c'` in
749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
758 rm -f conf$$ conf$$.exe conf$$.file
759 if test -d conf$$.dir; then
760 rm -f conf$$.dir/conf$$.file
763 mkdir conf$$.dir 2>/dev/null
765 if (echo >conf$$.file) 2>/dev/null; then
766 if ln -s conf$$.file conf$$ 2>/dev/null; then
768 # ... but there are two gotchas:
769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
771 # In both cases, we have to default to `cp -pR'.
772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
774 elif ln conf$$.file conf$$ 2>/dev/null; then
782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
783 rmdir conf$$.dir 2>/dev/null
785 if mkdir -p . 2>/dev/null; then
786 as_mkdir_p='mkdir -p "$as_dir"'
788 test -d ./-p && rmdir ./-p
793 as_executable_p=as_fn_executable_p
795 # Sed expression to map a string onto a valid CPP name.
796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
798 # Sed expression to map a string onto a valid variable name.
799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
801 SHELL=${CONFIG_SHELL-/bin/sh}
804 test -n "$DJDIR" || exec 7<&0 </dev/null
808 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
809 # so uname gets run too.
810 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815 ac_default_prefix=/usr/local
817 ac_config_libobj_dir=.
824 # Identity of this package.
825 PACKAGE_NAME='c-ares'
826 PACKAGE_TARNAME='c-ares'
827 PACKAGE_VERSION='1.10.0'
828 PACKAGE_STRING='c-ares 1.10.0'
829 PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
832 ac_unique_file="ares_ipv6.h"
833 # Factoring default headers for most tests.
834 ac_includes_default="\
836 #ifdef HAVE_SYS_TYPES_H
837 # include <sys/types.h>
839 #ifdef HAVE_SYS_STAT_H
840 # include <sys/stat.h>
846 # ifdef HAVE_STDLIB_H
851 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856 #ifdef HAVE_STRINGS_H
857 # include <strings.h>
859 #ifdef HAVE_INTTYPES_H
860 # include <inttypes.h>
869 ac_subst_vars='am__EXEEXT_FALSE
875 CFLAG_CARES_SYMBOL_HIDING
876 DOING_CARES_SYMBOL_HIDING_FALSE
877 DOING_CARES_SYMBOL_HIDING_TRUE
879 DOING_NATIVE_WINDOWS_FALSE
880 DOING_NATIVE_WINDOWS_TRUE
883 CPPFLAG_CARES_STATICLIB
884 USE_CPPFLAG_CARES_STATICLIB_FALSE
885 USE_CPPFLAG_CARES_STATICLIB_TRUE
886 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
887 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
888 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
889 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
890 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
891 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
928 INSTALL_STRIP_PROGRAM
964 MAINTAINER_MODE_FALSE
993 program_transform_name
1006 enable_option_checking
1007 enable_maintainer_mode
1013 enable_symbol_hiding
1014 enable_dependency_tracking
1027 ac_precious_vars='build_alias
1038 # Initialize some variables set by options.
1040 ac_init_version=false
1041 ac_unrecognized_opts=
1042 ac_unrecognized_sep=
1043 # The variables have the same names as the options, with
1044 # dashes changed to underlines.
1045 cache_file=/dev/null
1052 program_transform_name=s,x,x,
1060 # Installation directory options.
1061 # These are left unexpanded so users can "make install exec_prefix=/foo"
1062 # and all the variables that are supposed to be based on exec_prefix
1063 # by default will actually change.
1064 # Use braces instead of parens because sh, perl, etc. also accept them.
1065 # (The list follows the same order as the GNU Coding Standards.)
1066 bindir='${exec_prefix}/bin'
1067 sbindir='${exec_prefix}/sbin'
1068 libexecdir='${exec_prefix}/libexec'
1069 datarootdir='${prefix}/share'
1070 datadir='${datarootdir}'
1071 sysconfdir='${prefix}/etc'
1072 sharedstatedir='${prefix}/com'
1073 localstatedir='${prefix}/var'
1074 includedir='${prefix}/include'
1075 oldincludedir='/usr/include'
1076 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1077 infodir='${datarootdir}/info'
1082 libdir='${exec_prefix}/lib'
1083 localedir='${datarootdir}/locale'
1084 mandir='${datarootdir}/man'
1090 # If the previous option needs an argument, assign it.
1091 if test -n "$ac_prev"; then
1092 eval $ac_prev=\$ac_option
1098 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1103 # Accept the important Cygnus configure options, so we can diagnose typos.
1105 case $ac_dashdash$ac_option in
1109 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1111 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1112 bindir=$ac_optarg ;;
1114 -build | --build | --buil | --bui | --bu)
1115 ac_prev=build_alias ;;
1116 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1117 build_alias=$ac_optarg ;;
1119 -cache-file | --cache-file | --cache-fil | --cache-fi \
1120 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1121 ac_prev=cache_file ;;
1122 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1123 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1124 cache_file=$ac_optarg ;;
1126 --config-cache | -C)
1127 cache_file=config.cache ;;
1129 -datadir | --datadir | --datadi | --datad)
1131 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1132 datadir=$ac_optarg ;;
1134 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1135 | --dataroo | --dataro | --datar)
1136 ac_prev=datarootdir ;;
1137 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1138 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1139 datarootdir=$ac_optarg ;;
1141 -disable-* | --disable-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid feature name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "enable_$ac_useropt"
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval enable_$ac_useropt=no ;;
1157 -docdir | --docdir | --docdi | --doc | --do)
1159 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1160 docdir=$ac_optarg ;;
1162 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1164 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1165 dvidir=$ac_optarg ;;
1167 -enable-* | --enable-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid feature name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "enable_$ac_useropt"
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1181 eval enable_$ac_useropt=\$ac_optarg ;;
1183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1185 | --exec | --exe | --ex)
1186 ac_prev=exec_prefix ;;
1187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1189 | --exec=* | --exe=* | --ex=*)
1190 exec_prefix=$ac_optarg ;;
1192 -gas | --gas | --ga | --g)
1193 # Obsolete; use --with-gas.
1196 -help | --help | --hel | --he | -h)
1197 ac_init_help=long ;;
1198 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1199 ac_init_help=recursive ;;
1200 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1201 ac_init_help=short ;;
1203 -host | --host | --hos | --ho)
1204 ac_prev=host_alias ;;
1205 -host=* | --host=* | --hos=* | --ho=*)
1206 host_alias=$ac_optarg ;;
1208 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1210 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1212 htmldir=$ac_optarg ;;
1214 -includedir | --includedir | --includedi | --included | --include \
1215 | --includ | --inclu | --incl | --inc)
1216 ac_prev=includedir ;;
1217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1218 | --includ=* | --inclu=* | --incl=* | --inc=*)
1219 includedir=$ac_optarg ;;
1221 -infodir | --infodir | --infodi | --infod | --info | --inf)
1223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1224 infodir=$ac_optarg ;;
1226 -libdir | --libdir | --libdi | --libd)
1228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1229 libdir=$ac_optarg ;;
1231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1232 | --libexe | --libex | --libe)
1233 ac_prev=libexecdir ;;
1234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1235 | --libexe=* | --libex=* | --libe=*)
1236 libexecdir=$ac_optarg ;;
1238 -localedir | --localedir | --localedi | --localed | --locale)
1239 ac_prev=localedir ;;
1240 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1241 localedir=$ac_optarg ;;
1243 -localstatedir | --localstatedir | --localstatedi | --localstated \
1244 | --localstate | --localstat | --localsta | --localst | --locals)
1245 ac_prev=localstatedir ;;
1246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1247 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1248 localstatedir=$ac_optarg ;;
1250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1253 mandir=$ac_optarg ;;
1255 -nfp | --nfp | --nf)
1256 # Obsolete; use --without-fp.
1259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1260 | --no-cr | --no-c | -n)
1263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1269 | --oldin | --oldi | --old | --ol | --o)
1270 ac_prev=oldincludedir ;;
1271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1274 oldincludedir=$ac_optarg ;;
1276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1279 prefix=$ac_optarg ;;
1281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1282 | --program-pre | --program-pr | --program-p)
1283 ac_prev=program_prefix ;;
1284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1286 program_prefix=$ac_optarg ;;
1288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1289 | --program-suf | --program-su | --program-s)
1290 ac_prev=program_suffix ;;
1291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1293 program_suffix=$ac_optarg ;;
1295 -program-transform-name | --program-transform-name \
1296 | --program-transform-nam | --program-transform-na \
1297 | --program-transform-n | --program-transform- \
1298 | --program-transform | --program-transfor \
1299 | --program-transfo | --program-transf \
1300 | --program-trans | --program-tran \
1301 | --progr-tra | --program-tr | --program-t)
1302 ac_prev=program_transform_name ;;
1303 -program-transform-name=* | --program-transform-name=* \
1304 | --program-transform-nam=* | --program-transform-na=* \
1305 | --program-transform-n=* | --program-transform-=* \
1306 | --program-transform=* | --program-transfor=* \
1307 | --program-transfo=* | --program-transf=* \
1308 | --program-trans=* | --program-tran=* \
1309 | --progr-tra=* | --program-tr=* | --program-t=*)
1310 program_transform_name=$ac_optarg ;;
1312 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1314 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1315 pdfdir=$ac_optarg ;;
1317 -psdir | --psdir | --psdi | --psd | --ps)
1319 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323 | -silent | --silent | --silen | --sile | --sil)
1326 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1328 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1330 sbindir=$ac_optarg ;;
1332 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1333 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1334 | --sharedst | --shareds | --shared | --share | --shar \
1336 ac_prev=sharedstatedir ;;
1337 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1338 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1339 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1341 sharedstatedir=$ac_optarg ;;
1343 -site | --site | --sit)
1345 -site=* | --site=* | --sit=*)
1348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1351 srcdir=$ac_optarg ;;
1353 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1354 | --syscon | --sysco | --sysc | --sys | --sy)
1355 ac_prev=sysconfdir ;;
1356 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1357 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1358 sysconfdir=$ac_optarg ;;
1360 -target | --target | --targe | --targ | --tar | --ta | --t)
1361 ac_prev=target_alias ;;
1362 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1363 target_alias=$ac_optarg ;;
1365 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368 -version | --version | --versio | --versi | --vers | -V)
1369 ac_init_version=: ;;
1372 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error $? "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1385 eval with_$ac_useropt=\$ac_optarg ;;
1387 -without-* | --without-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391 as_fn_error $? "invalid package name: $ac_useropt"
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1401 eval with_$ac_useropt=no ;;
1404 # Obsolete; use --with-x.
1407 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1408 | --x-incl | --x-inc | --x-in | --x-i)
1409 ac_prev=x_includes ;;
1410 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1411 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1412 x_includes=$ac_optarg ;;
1414 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1415 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1416 ac_prev=x_libraries ;;
1417 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1418 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1419 x_libraries=$ac_optarg ;;
1421 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1422 Try \`$0 --help' for more information"
1426 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 case $ac_envvar in #(
1429 '' | [0-9]* | *[!_$as_cr_alnum]* )
1430 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1432 eval $ac_envvar=\$ac_optarg
1433 export $ac_envvar ;;
1436 # FIXME: should be removed in autoconf 3.0.
1437 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1438 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1439 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1440 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1446 if test -n "$ac_prev"; then
1447 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1448 as_fn_error $? "missing argument to $ac_option"
1451 if test -n "$ac_unrecognized_opts"; then
1452 case $enable_option_checking in
1454 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1455 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1459 # Check all directory arguments for consistency.
1460 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val=\$$ac_var
1466 # Remove trailing slashes.
1469 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1470 eval $ac_var=\$ac_val;;
1472 # Be sure to have absolute directory names.
1474 [\\/$]* | ?:[\\/]* ) continue;;
1475 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1477 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1485 target=$target_alias
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
1491 elif test "x$build_alias" != "x$host_alias"; then
1497 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1499 test "$silent" = yes && exec 6>/dev/null
1502 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di=`ls -di .` &&
1504 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505 as_fn_error $? "working directory cannot be determined"
1506 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507 as_fn_error $? "pwd does not report name of working directory"
1510 # Find the source files, if location was not specified.
1511 if test -z "$srcdir"; then
1512 ac_srcdir_defaulted=yes
1513 # Try the directory containing this script, then the parent directory.
1514 ac_confdir=`$as_dirname -- "$as_myself" ||
1515 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516 X"$as_myself" : 'X\(//\)[^/]' \| \
1517 X"$as_myself" : 'X\(//\)$' \| \
1518 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519 $as_echo X"$as_myself" |
1520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1542 ac_srcdir_defaulted=no
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1546 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1548 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1550 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1560 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1562 for ac_var in $ac_precious_vars; do
1563 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564 eval ac_env_${ac_var}_value=\$${ac_var}
1565 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1570 # Report the --help message.
1572 if test "$ac_init_help" = "long"; then
1573 # Omit some internal or obsolete options to make the list less imposing.
1574 # This message is too long to be a string in the A/UX 3.1 sh.
1576 \`configure' configures c-ares 1.10.0 to adapt to many kinds of systems.
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE. See below for descriptions of some of the useful variables.
1583 Defaults for the options are specified in brackets.
1586 -h, --help display this help and exit
1587 --help=short display options specific to this package
1588 --help=recursive display the short help of all the included packages
1589 -V, --version display version information and exit
1590 -q, --quiet, --silent do not print \`checking ...' messages
1591 --cache-file=FILE cache test results in FILE [disabled]
1592 -C, --config-cache alias for \`--cache-file=config.cache'
1593 -n, --no-create do not create output files
1594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1596 Installation directories:
1597 --prefix=PREFIX install architecture-independent files in PREFIX
1598 [$ac_default_prefix]
1599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1607 For better control, use the options below.
1609 Fine tuning of the installation directories:
1610 --bindir=DIR user executables [EPREFIX/bin]
1611 --sbindir=DIR system admin executables [EPREFIX/sbin]
1612 --libexecdir=DIR program executables [EPREFIX/libexec]
1613 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1614 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1615 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1616 --libdir=DIR object code libraries [EPREFIX/lib]
1617 --includedir=DIR C header files [PREFIX/include]
1618 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1619 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1620 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1621 --infodir=DIR info documentation [DATAROOTDIR/info]
1622 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1623 --mandir=DIR man documentation [DATAROOTDIR/man]
1624 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares]
1625 --htmldir=DIR html documentation [DOCDIR]
1626 --dvidir=DIR dvi documentation [DOCDIR]
1627 --pdfdir=DIR pdf documentation [DOCDIR]
1628 --psdir=DIR ps documentation [DOCDIR]
1634 --program-prefix=PREFIX prepend PREFIX to installed program names
1635 --program-suffix=SUFFIX append SUFFIX to installed program names
1636 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1639 --build=BUILD configure for building on BUILD [guessed]
1640 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1644 if test -n "$ac_init_help"; then
1645 case $ac_init_help in
1646 short | recursive ) echo "Configuration of c-ares 1.10.0:";;
1651 --disable-option-checking ignore unrecognized --enable/--with options
1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1654 --enable-maintainer-mode enable make rules and dependencies not useful
1655 (and sometimes confusing) to the casual installer
1656 --enable-debug Enable debug build options
1657 --disable-debug Disable debug build options
1658 --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1659 --disable-optimize Disable compiler optimizations
1660 --enable-warnings Enable strict compiler warnings
1661 --disable-warnings Disable strict compiler warnings
1662 --enable-werror Enable compiler warnings as errors
1663 --disable-werror Disable compiler warnings as errors
1664 --enable-curldebug Enable curl debug memory tracking
1665 --disable-curldebug Disable curl debug memory tracking
1666 --enable-symbol-hiding Enable hiding of library internal symbols
1667 --disable-symbol-hiding Disable hiding of library internal symbols
1668 --disable-dependency-tracking speeds up one-time build
1669 --enable-dependency-tracking do not reject slow dependency extractors
1670 --disable-largefile omit support for large files
1671 --enable-shared[=PKGS] build shared libraries [default=yes]
1672 --enable-static[=PKGS] build static libraries [default=yes]
1673 --enable-fast-install[=PKGS]
1674 optimize for fast installation [default=yes]
1675 --disable-libtool-lock avoid locking (might break parallel builds)
1676 --enable-libgcc use libgcc when linking
1677 --enable-nonblocking Enable non-blocking communications
1678 --disable-nonblocking Disable non-blocking communications
1681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1683 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1685 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1686 --with-sysroot=DIR Search for dependent libraries within DIR
1687 (or the compiler's sysroot if not specified).
1688 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1690 Some influential environment variables:
1691 CC C compiler command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1694 nonstandard directory <lib dir>
1695 LIBS libraries to pass to the linker, e.g. -l<library>
1696 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1697 you have headers in a nonstandard directory <include dir>
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1703 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1708 if test "$ac_init_help" = "recursive"; then
1709 # If there are subdirs, report their specific --help.
1710 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711 test -d "$ac_dir" ||
1712 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720 # A ".." for each directory in $ac_dir_suffix.
1721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722 case $ac_top_builddir_sub in
1723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1733 .) # We are building in place.
1735 ac_top_srcdir=$ac_top_builddir_sub
1736 ac_abs_top_srcdir=$ac_pwd ;;
1737 [\\/]* | ?:[\\/]* ) # Absolute name.
1738 ac_srcdir=$srcdir$ac_dir_suffix;
1739 ac_top_srcdir=$srcdir
1740 ac_abs_top_srcdir=$srcdir ;;
1742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743 ac_top_srcdir=$ac_top_build_prefix$srcdir
1744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1748 cd "$ac_dir" || { ac_status=$?; continue; }
1749 # Check for guested configure.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1757 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1766 c-ares configure 1.10.0
1767 generated by GNU Autoconf 2.69
1769 Copyright (C) 2012 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext
1787 if { { ac_try="$ac_compile"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.$ac_objext; then :
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1816 } # ac_fn_c_try_compile
1818 # ac_fn_c_try_cpp LINENO
1819 # ----------------------
1820 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_cpp conftest.$ac_ext"
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } > conftest.i && {
1840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1855 # ac_fn_c_try_link LINENO
1856 # -----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded.
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest$ac_exeext
1862 if { { ac_try="$ac_link"
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
1882 test -x conftest$ac_exeext
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_c_try_link
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1918 if ac_fn_c_try_compile "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_header_compile
1932 # ac_fn_c_try_run LINENO
1933 # ----------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1935 # that executables *can* be run.
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_link"
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>&5
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1950 { { case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_try") 2>&5
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; }; }; then :
1962 $as_echo "$as_me: program exited with status $ac_status" >&5
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1966 ac_retval=$ac_status
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1988 #define $2 innocuous_$2
1990 # include <limits.h>
1992 # include <assert.h>
1999 #if defined __stub_$2 || defined __stub___$2
2010 if ac_fn_c_try_link "$LINENO"; then :
2015 rm -f core conftest.err conftest.$ac_objext \
2016 conftest$ac_exeext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_func
2025 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2028 # the include files in INCLUDES and setting the cache variable VAR
2030 ac_fn_c_check_header_mongrel ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if eval \${$3+:} false; then :
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2043 # Is the header compilable?
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2045 $as_echo_n "checking $2 usability... " >&6; }
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_header_compiler=yes
2054 ac_header_compiler=no
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2058 $as_echo "$ac_header_compiler" >&6; }
2060 # Is the header present?
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2062 $as_echo_n "checking $2 presence... " >&6; }
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 if ac_fn_c_try_cpp "$LINENO"; then :
2068 ac_header_preproc=yes
2070 ac_header_preproc=no
2072 rm -f conftest.err conftest.i conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2074 $as_echo "$ac_header_preproc" >&6; }
2076 # So? What about this header?
2077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2080 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2086 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2088 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2090 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2092 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ( $as_echo "## ------------------------------------------------------------------------------- ##
2096 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2097 ## ------------------------------------------------------------------------------- ##"
2098 ) | sed "s/^/$as_me: WARNING: /" >&2
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2106 eval "$3=\$ac_header_compiler"
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_header_mongrel
2116 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2117 # -------------------------------------------
2118 # Tests whether TYPE exists after having included INCLUDES, setting cache
2119 # variable VAR accordingly.
2120 ac_fn_c_check_type ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2152 if ac_fn_c_try_compile "$LINENO"; then :
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_type
2168 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2169 # --------------------------------------------
2170 # Tries to find the compile-time value of EXPR in a program that includes
2171 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2173 ac_fn_c_compute_int ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if test "$cross_compiling" = yes; then
2177 # Depending upon the size, compute the lo and hi bounds.
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) >= 0)];
2185 return test_array [0];
2191 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2201 return test_array [0];
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_hi=$ac_mid; break
2210 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2211 if test $ac_lo -le $ac_mid; then
2215 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2225 static int test_array [1 - 2 * !(($2) < 0)];
2227 return test_array [0];
2233 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_lo=$ac_mid; break
2252 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253 if test $ac_mid -le $ac_hi; then
2257 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 # Binary search between lo and hi bounds.
2268 while test "x$ac_lo" != "x$ac_hi"; do
2269 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 return test_array [0];
2283 if ac_fn_c_try_compile "$LINENO"; then :
2286 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2298 static long int longval () { return $2; }
2299 static unsigned long int ulongval () { return $2; }
2305 FILE *f = fopen ("conftest.val", "w");
2310 long int i = longval ();
2313 fprintf (f, "%ld", i);
2317 unsigned long int i = ulongval ();
2320 fprintf (f, "%lu", i);
2322 /* Do not output a trailing newline, as this causes \r\n confusion
2323 on some platforms. */
2324 return ferror (f) || fclose (f) != 0;
2330 if ac_fn_c_try_run "$LINENO"; then :
2331 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2336 conftest.$ac_objext conftest.beam conftest.$ac_ext
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341 as_fn_set_status $ac_retval
2343 } # ac_fn_c_compute_int
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if eval \${$4+:} false; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2369 if ac_fn_c_try_compile "$LINENO"; then :
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2378 if (sizeof ac_aggr.$3)
2384 if ac_fn_c_try_compile "$LINENO"; then :
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398 } # ac_fn_c_check_member
2399 cat >config.log <<_ACEOF
2400 This file contains any messages produced by compilers while
2401 running configure, to aid debugging if configure makes a mistake.
2403 It was created by c-ares $as_me 1.10.0, which was
2404 generated by GNU Autoconf 2.69. Invocation command line was
2416 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2417 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2418 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2419 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2420 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2422 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2423 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2425 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2426 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2427 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2428 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2429 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2430 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2431 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 $as_echo "PATH: $as_dir"
2456 # Keep a trace of the command line.
2457 # Strip out --no-create and --no-recursion so they do not pile up.
2458 # Strip out --silent because we don't want to record it for future runs.
2459 # Also quote any args containing shell meta-characters.
2460 # Make two passes to allow for proper duplicate-argument suppression.
2464 ac_must_keep_next=false
2470 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2472 | -silent | --silent | --silen | --sile | --sil)
2475 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2480 as_fn_append ac_configure_args1 " '$ac_arg'"
2481 if test $ac_must_keep_next = true; then
2482 ac_must_keep_next=false # Got value, back to normal.
2485 *=* | --config-cache | -C | -disable-* | --disable-* \
2486 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2487 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2488 | -with-* | --with-* | -without-* | --without-* | --x)
2489 case "$ac_configure_args0 " in
2490 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2493 -* ) ac_must_keep_next=true ;;
2496 as_fn_append ac_configure_args " '$ac_arg'"
2501 { ac_configure_args0=; unset ac_configure_args0;}
2502 { ac_configure_args1=; unset ac_configure_args1;}
2504 # When interrupted or exit'd, cleanup temporary files, and complete
2505 # config.log. We remove comments because anyway the quotes in there
2506 # would cause problems or look ugly.
2507 # WARNING: Use '\'' to represent an apostrophe within the trap.
2508 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2509 trap 'exit_status=$?
2510 # Save into config.log some information that might help in debugging.
2514 $as_echo "## ---------------- ##
2515 ## Cache variables. ##
2516 ## ---------------- ##"
2518 # The following way of writing the cache mishandles newlines in values,
2520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2521 eval ac_val=\$$ac_var
2525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2529 _ | IFS | as_nl) ;; #(
2530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2531 *) { eval $ac_var=; unset $ac_var;} ;;
2536 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2537 *${as_nl}ac_space=\ *)
2539 "s/'\''/'\''\\\\'\'''\''/g;
2540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2550 $as_echo "## ----------------- ##
2551 ## Output variables. ##
2552 ## ----------------- ##"
2554 for ac_var in $ac_subst_vars
2556 eval ac_val=\$$ac_var
2558 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2560 $as_echo "$ac_var='\''$ac_val'\''"
2564 if test -n "$ac_subst_files"; then
2565 $as_echo "## ------------------- ##
2566 ## File substitutions. ##
2567 ## ------------------- ##"
2569 for ac_var in $ac_subst_files
2571 eval ac_val=\$$ac_var
2573 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2575 $as_echo "$ac_var='\''$ac_val'\''"
2580 if test -s confdefs.h; then
2581 $as_echo "## ----------- ##
2588 test "$ac_signal" != 0 &&
2589 $as_echo "$as_me: caught signal $ac_signal"
2590 $as_echo "$as_me: exit $exit_status"
2592 rm -f core *.core core.conftest.* &&
2593 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2596 for ac_signal in 1 2 13 15; do
2597 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2602 rm -f -r conftest* confdefs.h
2604 $as_echo "/* confdefs.h */" > confdefs.h
2606 # Predefined preprocessor variables.
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_NAME "$PACKAGE_NAME"
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_STRING "$PACKAGE_STRING"
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_URL "$PACKAGE_URL"
2633 # Let the site file select an alternate cache file if it wants to.
2634 # Prefer an explicitly selected file to automatically selected ones.
2637 if test -n "$CONFIG_SITE"; then
2638 # We do not want a PATH search for config.site.
2639 case $CONFIG_SITE in #((
2640 -*) ac_site_file1=./$CONFIG_SITE;;
2641 */*) ac_site_file1=$CONFIG_SITE;;
2642 *) ac_site_file1=./$CONFIG_SITE;;
2644 elif test "x$prefix" != xNONE; then
2645 ac_site_file1=$prefix/share/config.site
2646 ac_site_file2=$prefix/etc/config.site
2648 ac_site_file1=$ac_default_prefix/share/config.site
2649 ac_site_file2=$ac_default_prefix/etc/config.site
2651 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2653 test "x$ac_site_file" = xNONE && continue
2654 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2657 sed 's/^/| /' "$ac_site_file" >&5
2659 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 as_fn_error $? "failed to load site script $ac_site_file
2662 See \`config.log' for more details" "$LINENO" 5; }
2666 if test -r "$cache_file"; then
2667 # Some versions of bash will fail to source /dev/null (special files
2668 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2669 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671 $as_echo "$as_me: loading cache $cache_file" >&6;}
2673 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2674 *) . "./$cache_file";;
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679 $as_echo "$as_me: creating cache $cache_file" >&6;}
2683 # Check that the precious variables saved in the cache have kept the same
2685 ac_cache_corrupted=false
2686 for ac_var in $ac_precious_vars; do
2687 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2688 eval ac_new_set=\$ac_env_${ac_var}_set
2689 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2690 eval ac_new_val=\$ac_env_${ac_var}_value
2691 case $ac_old_set,$ac_new_set in
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2694 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2695 ac_cache_corrupted=: ;;
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2698 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2699 ac_cache_corrupted=: ;;
2702 if test "x$ac_old_val" != "x$ac_new_val"; then
2703 # differences in whitespace do not lead to failure.
2704 ac_old_val_w=`echo x $ac_old_val`
2705 ac_new_val_w=`echo x $ac_new_val`
2706 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2708 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2709 ac_cache_corrupted=:
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2712 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2713 eval $ac_var=\$ac_old_val
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2716 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2718 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2721 # Pass precious variables to config.status.
2722 if test "$ac_new_set" = set; then
2724 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2725 *) ac_arg=$ac_var=$ac_new_val ;;
2727 case " $ac_configure_args " in
2728 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2729 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2733 if $ac_cache_corrupted; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2737 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2738 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2740 ## -------------------- ##
2741 ## Main body of script. ##
2742 ## -------------------- ##
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 # using cares-override.m4
2760 ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2765 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2766 # Check whether --enable-maintainer-mode was given.
2767 if test "${enable_maintainer_mode+set}" = set; then :
2768 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2770 USE_MAINTAINER_MODE=no
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2774 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2775 if test $USE_MAINTAINER_MODE = yes; then
2776 MAINTAINER_MODE_TRUE=
2777 MAINTAINER_MODE_FALSE='#'
2779 MAINTAINER_MODE_TRUE='#'
2780 MAINTAINER_MODE_FALSE=
2783 MAINT=$MAINTAINER_MODE_TRUE
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2789 $as_echo_n "checking whether to enable debug build options... " >&6; }
2790 OPT_DEBUG_BUILD="default"
2791 # Check whether --enable-debug was given.
2792 if test "${enable_debug+set}" = set; then :
2793 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2796 case "$OPT_DEBUG_BUILD" in
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2808 $as_echo "$want_debug" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2812 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2813 OPT_COMPILER_OPTIMIZE="default"
2814 # Check whether --enable-optimize was given.
2815 if test "${enable_optimize+set}" = set; then :
2816 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2819 case "$OPT_COMPILER_OPTIMIZE" in
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2826 if test "$want_debug" = "yes"; then
2827 want_optimize="assume_no"
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2829 $as_echo "not specified (assuming no)" >&6; }
2831 want_optimize="assume_yes"
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2833 $as_echo "not specified (assuming yes)" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2845 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2846 OPT_COMPILER_WARNINGS="default"
2847 # Check whether --enable-warnings was given.
2848 if test "${enable_warnings+set}" = set; then :
2849 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2852 case "$OPT_COMPILER_WARNINGS" in
2857 want_warnings="$want_debug"
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2864 $as_echo "$want_warnings" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2868 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2869 OPT_COMPILER_WERROR="default"
2870 # Check whether --enable-werror was given.
2871 if test "${enable_werror+set}" = set; then :
2872 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2875 case "$OPT_COMPILER_WERROR" in
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2887 $as_echo "$want_werror" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2891 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2892 OPT_CURLDEBUG_BUILD="default"
2893 # Check whether --enable-curldebug was given.
2894 if test "${enable_curldebug+set}" = set; then :
2895 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2898 case "$OPT_CURLDEBUG_BUILD" in
2906 want_curldebug="yes"
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
2910 $as_echo "$want_curldebug" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2914 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2915 OPT_SYMBOL_HIDING="default"
2916 # Check whether --enable-symbol-hiding was given.
2917 if test "${enable_symbol_hiding+set}" = set; then :
2918 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2921 case "$OPT_SYMBOL_HIDING" in
2923 want_symbol_hiding="no"
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2928 want_symbol_hiding="yes"
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2930 $as_echo "yes" >&6; }
2933 want_symbol_hiding="yes"
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 $as_echo "yes" >&6; }
2941 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
2944 if test -z "$xc_configure_preamble_result"; then
2945 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
2949 # Check that 'PATH_SEPARATOR' has already been set.
2952 if test -z "$xc_PATH_SEPARATOR"; then
2953 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
2955 if test -z "$PATH_SEPARATOR"; then
2956 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
2959 $as_echo_n "checking for path separator... " >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
2961 $as_echo "$PATH_SEPARATOR" >&6; }
2962 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
2964 $as_echo_n "checking for initial path separator... " >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
2966 $as_echo "$xc_PATH_SEPARATOR" >&6; }
2967 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
2971 # Extract the first word of "sed", so it can be a program name with args.
2972 set dummy sed; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_path_SED+:} false; then :
2976 $as_echo_n "(cached) " >&6
2980 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 as_dummy="$PATH:/usr/bin:/usr/local/bin"
2985 for as_dir in $as_dummy
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3004 if test -n "$SED"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3006 $as_echo "$SED" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3013 if test -z "$SED" || test "$SED" = "not_found"; then
3014 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3018 # Extract the first word of "grep", so it can be a program name with args.
3019 set dummy grep; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_path_GREP+:} false; then :
3023 $as_echo_n "(cached) " >&6
3027 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3032 for as_dir in $as_dummy
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3050 GREP=$ac_cv_path_GREP
3051 if test -n "$GREP"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3053 $as_echo "$GREP" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 if test -z "$GREP" || test "$GREP" = "not_found"; then
3061 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3065 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3067 $as_echo_n "checking for egrep... " >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3070 $as_echo "$EGREP" >&6; }
3072 # Extract the first word of "egrep", so it can be a program name with args.
3073 set dummy egrep; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_path_EGREP+:} false; then :
3077 $as_echo_n "(cached) " >&6
3081 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3086 for as_dir in $as_dummy
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3104 EGREP=$ac_cv_path_EGREP
3105 if test -n "$EGREP"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3107 $as_echo "$EGREP" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3115 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3116 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}ar; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_path_AR+:} false; then :
3126 $as_echo_n "(cached) " >&6
3130 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3135 for as_dir in $as_dummy
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 if test -n "$AR"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3155 $as_echo "$AR" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3163 if test -z "$ac_cv_path_AR"; then
3165 # Extract the first word of "ar", so it can be a program name with args.
3166 set dummy ar; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_path_ac_pt_AR+:} false; then :
3170 $as_echo_n "(cached) " >&6
3174 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3179 for as_dir in $as_dummy
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 ac_pt_AR=$ac_cv_path_ac_pt_AR
3197 if test -n "$ac_pt_AR"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3199 $as_echo "$ac_pt_AR" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3205 if test "x$ac_pt_AR" = x; then
3208 case $cross_compiling:$ac_tool_warned in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3220 if test -z "$AR" || test "$AR" = "not_found"; then
3221 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3225 if test -f ${srcdir}/ares_build.h; then
3226 rm -f ${srcdir}/ares_build.h
3231 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3232 if test -f "$ac_dir/install-sh"; then
3234 ac_install_sh="$ac_aux_dir/install-sh -c"
3236 elif test -f "$ac_dir/install.sh"; then
3238 ac_install_sh="$ac_aux_dir/install.sh -c"
3240 elif test -f "$ac_dir/shtool"; then
3242 ac_install_sh="$ac_aux_dir/shtool install -c"
3246 if test -z "$ac_aux_dir"; then
3247 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3250 # These three variables are undocumented and unsupported,
3251 # and are intended to be withdrawn in a future Autoconf release.
3252 # They can cause serious problems if a builder's source tree is in a directory
3253 # whose full name contains unusual characters.
3254 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3255 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3256 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3259 # Make sure we can run config.sub.
3260 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3261 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3264 $as_echo_n "checking build system type... " >&6; }
3265 if ${ac_cv_build+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 ac_build_alias=$build_alias
3269 test "x$ac_build_alias" = x &&
3270 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3271 test "x$ac_build_alias" = x &&
3272 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3273 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3274 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3278 $as_echo "$ac_cv_build" >&6; }
3279 case $ac_cv_build in
3281 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3284 ac_save_IFS=$IFS; IFS='-'
3290 # Remember, the first character of IFS is used to create $*,
3291 # except with old shells:
3294 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3298 $as_echo_n "checking host system type... " >&6; }
3299 if ${ac_cv_host+:} false; then :
3300 $as_echo_n "(cached) " >&6
3302 if test "x$host_alias" = x; then
3303 ac_cv_host=$ac_cv_build
3305 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3306 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3311 $as_echo "$ac_cv_host" >&6; }
3314 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3317 ac_save_IFS=$IFS; IFS='-'
3323 # Remember, the first character of IFS is used to create $*,
3324 # except with old shells:
3327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3331 cat >>confdefs.h <<_ACEOF
3332 #define OS "${host}"
3337 xc_prog_cc_prev_IFS=$IFS
3338 xc_prog_cc_prev_LIBS=$LIBS
3339 xc_prog_cc_prev_CFLAGS=$CFLAGS
3340 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3341 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3346 for xc_word in $LIBS; do
3356 if test $xc_bad_var_libs = yes; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3358 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3360 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3364 xc_bad_var_ldflags=no
3365 for xc_word in $LDFLAGS; do
3368 xc_bad_var_ldflags=yes
3371 xc_bad_var_ldflags=yes
3374 xc_bad_var_ldflags=yes
3377 xc_bad_var_ldflags=yes
3381 if test $xc_bad_var_ldflags = yes; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3383 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3384 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3385 for xc_word in $LDFLAGS; do
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3389 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3393 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3397 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3401 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3408 xc_bad_var_cppflags=no
3409 for xc_word in $CPPFLAGS; do
3412 xc_bad_var_cppflags=yes
3414 -L* | --library-path=*)
3415 xc_bad_var_cppflags=yes
3418 xc_bad_var_cppflags=yes
3422 if test $xc_bad_var_cppflags = yes; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3424 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3425 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3426 for xc_word in $CPPFLAGS; do
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3430 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3432 -L* | --library-path=*)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3434 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3438 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3445 xc_bad_var_cflags=no
3446 for xc_word in $CFLAGS; do
3449 xc_bad_var_cflags=yes
3452 xc_bad_var_cflags=yes
3455 xc_bad_var_cflags=yes
3458 xc_bad_var_cflags=yes
3460 -L* | --library-path=*)
3461 xc_bad_var_cflags=yes
3464 xc_bad_var_cflags=yes
3468 if test $xc_bad_var_cflags = yes; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3470 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3471 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
3472 for xc_word in $CFLAGS; do
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3476 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3480 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3484 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3488 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3490 -L* | --library-path=*)
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3492 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3496 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3502 if test $xc_bad_var_libs = yes ||
3503 test $xc_bad_var_cflags = yes ||
3504 test $xc_bad_var_ldflags = yes ||
3505 test $xc_bad_var_cppflags = yes; then
3506 as_fn_error $? "Can not continue. Fix errors mentioned immediately above this line." "$LINENO" 5
3509 # Find a good install program. We prefer a C program (faster),
3510 # so one script is as good as another. But avoid the broken or
3511 # incompatible versions:
3512 # SysV /etc/install, /usr/sbin/install
3513 # SunOS /usr/etc/install
3514 # IRIX /sbin/install
3516 # AmigaOS /C/install, which installs bootblocks on floppy discs
3517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3520 # OS/2's system install, which has a completely different semantic
3521 # ./install, which can be erroneously created by make from ./install.sh.
3522 # Reject install programs that cannot install multiple files.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3524 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3525 if test -z "$INSTALL"; then
3526 if ${ac_cv_path_install+:} false; then :
3527 $as_echo_n "(cached) " >&6
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir=.
3534 # Account for people who put trailing slashes in PATH elements.
3535 case $as_dir/ in #((
3536 ./ | .// | /[cC]/* | \
3537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3538 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3541 # OSF1 and SCO ODT 3.0 have their own names for install.
3542 # Don't use installbsd from OSF since it installs stuff as root
3544 for ac_prog in ginstall scoinst install; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3547 if test $ac_prog = install &&
3548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549 # AIX install. It has an incompatible calling convention.
3551 elif test $ac_prog = install &&
3552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3553 # program-specific install script used by HP pwplus--don't use.
3556 rm -rf conftest.one conftest.two conftest.dir
3557 echo one > conftest.one
3558 echo two > conftest.two
3560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3561 test -s conftest.one && test -s conftest.two &&
3562 test -s conftest.dir/conftest.one &&
3563 test -s conftest.dir/conftest.two
3565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3578 rm -rf conftest.one conftest.two conftest.dir
3581 if test "${ac_cv_path_install+set}" = set; then
3582 INSTALL=$ac_cv_path_install
3584 # As a last resort, use the slow shell script. Don't cache a
3585 # value for INSTALL within a source directory, because that will
3586 # break other packages using the cache if that directory is
3587 # removed, or if the value is a relative name.
3588 INSTALL=$ac_install_sh
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3592 $as_echo "$INSTALL" >&6; }
3594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3595 # It thinks the first close brace ends the variable substitution.
3596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$ac_cv_prog_CC"; then
3648 # Extract the first word of "gcc", so it can be a program name with args.
3649 set dummy gcc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_ac_ct_CC="gcc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 if test "x$ac_ct_CC" = x; then
3687 case $cross_compiling:$ac_tool_warned in
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}cc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CC+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CC="${ac_tool_prefix}cc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3740 if test -z "$CC"; then
3741 # Extract the first word of "cc", so it can be a program name with args.
3742 set dummy cc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_CC+:} false; then :
3746 $as_echo_n "(cached) " >&6
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760 ac_prog_rejected=yes
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test $ac_prog_rejected = yes; then
3772 # We found a bogon in the path, so make sure we never use it.
3773 set dummy $ac_cv_prog_CC
3775 if test $# != 0; then
3776 # We chose a different compiler from the bogus one.
3777 # However, it has the same basename, so the bogon will be chosen
3778 # first if we set CC to just the basename; use the full file name.
3780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3786 if test -n "$CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788 $as_echo "$CC" >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3796 if test -z "$CC"; then
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in cl.exe
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_CC+:} false; then :
3805 $as_echo_n "(cached) " >&6
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3837 test -n "$CC" && break
3840 if test -z "$CC"; then
3842 for ac_prog in cl.exe
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_ac_ct_CC="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872 if test -n "$ac_ct_CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874 $as_echo "$ac_ct_CC" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3881 test -n "$ac_ct_CC" && break
3884 if test "x$ac_ct_CC" = x; then
3887 case $cross_compiling:$ac_tool_warned in
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $? "no acceptable C compiler found in \$PATH
3903 See \`config.log' for more details" "$LINENO" 5; }
3905 # Provide some information about the compiler.
3906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3909 for ac_option in --version -v -V -qversion; do
3910 { { ac_try="$ac_compiler $ac_option >&5"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3919 if test -s conftest.err; then
3921 ... rest of stderr output deleted ...
3922 10q' conftest.err >conftest.er1
3923 cat conftest.er1 >&5
3925 rm -f conftest.er1 conftest.err
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3940 ac_clean_files_save=$ac_clean_files
3941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3942 # Try to create an executable without -o first, disregard a.out.
3943 # It will help us diagnose broken compilers, and finding out an intuition
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3946 $as_echo_n "checking whether the C compiler works... " >&6; }
3947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3949 # The possible output files:
3950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3953 for ac_file in $ac_files
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3962 if { { ac_try="$ac_link_default"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link_default") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3975 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3976 # so that the user can short-circuit this test for compilers unknown to
3978 for ac_file in $ac_files ''
3980 test -f "$ac_file" || continue
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3985 # We found the default executable, but exeext='' is most
3989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 # We set ac_cv_exeext here because the later test for it is not
3994 # safe: cross compilers may not add the suffix if given an `-o'
3995 # argument, so we may need to know it at that point already.
3996 # Even if this section looks crufty: it has the advantage of
4003 test "$ac_cv_exeext" = no && ac_cv_exeext=
4008 if test -z "$ac_file"; then :
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error 77 "C compiler cannot create executables
4017 See \`config.log' for more details" "$LINENO" 5; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020 $as_echo "yes" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4023 $as_echo_n "checking for C compiler default output file name... " >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4025 $as_echo "$ac_file" >&6; }
4026 ac_exeext=$ac_cv_exeext
4028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4029 ac_clean_files=$ac_clean_files_save
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4031 $as_echo_n "checking for suffix of executables... " >&6; }
4032 if { { ac_try="$ac_link"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_link") 2>&5
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }; then :
4043 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4044 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4045 # work properly (i.e., refer to `conftest.exe'), while it won't with
4047 for ac_file in conftest.exe conftest conftest.*; do
4048 test -f "$ac_file" || continue
4050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4060 See \`config.log' for more details" "$LINENO" 5; }
4062 rm -f conftest conftest$ac_cv_exeext
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4064 $as_echo "$ac_cv_exeext" >&6; }
4066 rm -f conftest.$ac_ext
4067 EXEEXT=$ac_cv_exeext
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4074 FILE *f = fopen ("conftest.out", "w");
4075 return ferror (f) || fclose (f) != 0;
4081 ac_clean_files="$ac_clean_files conftest.out"
4082 # Check that the compiler produces executables we can run. If not, either
4083 # the compiler is broken, or we cross compile.
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4085 $as_echo_n "checking whether we are cross compiling... " >&6; }
4086 if test "$cross_compiling" != yes; then
4087 { { ac_try="$ac_link"
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_link") 2>&5
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }
4098 if { ac_try='./conftest$ac_cv_exeext'
4099 { { case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_try") 2>&5
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; }; then
4111 if test "$cross_compiling" = maybe; then
4114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error $? "cannot run C compiled programs.
4117 If you meant to cross compile, use \`--host'.
4118 See \`config.log' for more details" "$LINENO" 5; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4123 $as_echo "$cross_compiling" >&6; }
4125 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4126 ac_clean_files=$ac_clean_files_save
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4128 $as_echo_n "checking for suffix of object files... " >&6; }
4129 if ${ac_cv_objext+:} false; then :
4130 $as_echo_n "(cached) " >&6
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4142 rm -f conftest.o conftest.obj
4143 if { { ac_try="$ac_compile"
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_compile") 2>&5
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; then :
4154 for ac_file in conftest.o conftest.obj conftest.*; do
4155 test -f "$ac_file" || continue;
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4158 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4163 $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "cannot compute suffix of object files: cannot compile
4169 See \`config.log' for more details" "$LINENO" 5; }
4171 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4174 $as_echo "$ac_cv_objext" >&6; }
4175 OBJEXT=$ac_cv_objext
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4178 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4179 if ${ac_cv_c_compiler_gnu+:} false; then :
4180 $as_echo_n "(cached) " >&6
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4195 if ac_fn_c_try_compile "$LINENO"; then :
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4206 if test $ac_compiler_gnu = yes; then
4211 ac_test_CFLAGS=${CFLAGS+set}
4212 ac_save_CFLAGS=$CFLAGS
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4215 if ${ac_cv_prog_cc_g+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 ac_save_c_werror_flag=$ac_c_werror_flag
4219 ac_c_werror_flag=yes
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4232 if ac_fn_c_try_compile "$LINENO"; then :
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4246 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4261 if ac_fn_c_try_compile "$LINENO"; then :
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_c_werror_flag=$ac_save_c_werror_flag
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4272 $as_echo "$ac_cv_prog_cc_g" >&6; }
4273 if test "$ac_test_CFLAGS" = set; then
4274 CFLAGS=$ac_save_CFLAGS
4275 elif test $ac_cv_prog_cc_g = yes; then
4276 if test "$GCC" = yes; then
4282 if test "$GCC" = yes; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4290 if ${ac_cv_prog_cc_c89+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 ac_cv_prog_cc_c89=no
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4301 struct buf { int x; };
4302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4303 static char *e (p, i)
4309 static char *f (char * (*g) (char **, int), char **p, ...)
4314 s = g (p, va_arg (v,int));
4319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4320 function prototypes and stuff, but not '\xHH' hex character constants.
4321 These don't provoke an error unfortunately, instead are silently treated
4322 as 'x'. The following induces an error, until -std is added to get
4323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4324 array size at least. It's necessary to write '\x00'==0 to get something
4325 that's true only with -std. */
4326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4329 inside strings and character constants. */
4331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4333 int test (int i, double x);
4334 struct s1 {int (*f) (int a);};
4335 struct s2 {int (*f) (double a);};
4336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4349 CC="$ac_save_CC $ac_arg"
4350 if ac_fn_c_try_compile "$LINENO"; then :
4351 ac_cv_prog_cc_c89=$ac_arg
4353 rm -f core conftest.err conftest.$ac_objext
4354 test "x$ac_cv_prog_cc_c89" != "xno" && break
4356 rm -f conftest.$ac_ext
4361 case "x$ac_cv_prog_cc_c89" in
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4364 $as_echo "none needed" >&6; } ;;
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4367 $as_echo "unsupported" >&6; } ;;
4369 CC="$CC $ac_cv_prog_cc_c89"
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4371 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4373 if test "x$ac_cv_prog_cc_c89" != xno; then :
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 if test "x$CC" != xcc; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4385 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4388 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4390 set dummy $CC; ac_cc=`$as_echo "$2" |
4391 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4392 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4393 $as_echo_n "(cached) " >&6
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4405 # Make sure it works both with $CC and with simple cc.
4406 # We do the test twice because some compilers refuse to overwrite an
4407 # existing .o file with -o, though they will create one.
4408 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4410 if { { case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416 (eval "$ac_try") 2>&5
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; } &&
4420 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; };
4431 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4432 if test "x$CC" != xcc; then
4433 # Test first that cc exists at all.
4434 if { ac_try='cc -c conftest.$ac_ext >&5'
4435 { { case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_try") 2>&5
4443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444 test $ac_status = 0; }; }; then
4445 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4447 if { { case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 $as_echo "$ac_try_echo"; } >&5
4453 (eval "$ac_try") 2>&5
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; } &&
4457 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_try") 2>&5
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; };
4471 # cc exists but doesn't like -o.
4472 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4477 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4479 rm -f core conftest*
4482 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4489 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4493 # expand $ac_aux_dir to an absolute path
4494 am_aux_dir=`cd $ac_aux_dir && pwd`
4496 # FIXME: we rely on the cache variable name because
4497 # there is no other way.
4499 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4500 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4501 if test "$am_t" != yes; then
4502 # Losing compiler, so override with the script.
4503 # FIXME: It is wrong to rewrite CC.
4504 # But if we don't then we get into trouble of one sort or another.
4505 # A longer-term fix would be to have automake use am__CC in this case,
4506 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4507 CC="$am_aux_dir/compile $CC"
4512 ac_cpp='$CPP $CPPFLAGS'
4513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4517 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4518 # On Suns, sometimes $CPP names a directory.
4519 if test -n "$CPP" && test -d "$CPP"; then
4522 if test -z "$CPP"; then
4523 if ${ac_cv_prog_CPP+:} false; then :
4524 $as_echo_n "(cached) " >&6
4526 # Double quotes because CPP needs to be expanded
4527 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4530 for ac_c_preproc_warn_flag in '' yes
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 # include <limits.h>
4543 # include <assert.h>
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4550 # Broken: fails on valid input.
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562 # Broken: success on invalid input.
4565 # Passes both tests.
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4587 $as_echo "$CPP" >&6; }
4589 for ac_c_preproc_warn_flag in '' yes
4591 # Use a header file that comes with gcc, so configuring glibc
4592 # with a fresh cross-compiler works.
4593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594 # <limits.h> exists even on freestanding compilers.
4595 # On the NeXT, cc -E runs the code through the compiler's parser,
4596 # not just through cpp. "Syntax error" is here to catch this case.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4600 # include <limits.h>
4602 # include <assert.h>
4606 if ac_fn_c_try_cpp "$LINENO"; then :
4609 # Broken: fails on valid input.
4612 rm -f conftest.err conftest.i conftest.$ac_ext
4614 # OK, works on sane cases. Now check whether nonexistent headers
4615 # can be detected and how.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <ac_nonexistent.h>
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4621 # Broken: success on invalid input.
4624 # Passes both tests.
4628 rm -f conftest.err conftest.i conftest.$ac_ext
4631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4632 rm -f conftest.i conftest.err conftest.$ac_ext
4633 if $ac_preproc_ok; then :
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4639 See \`config.log' for more details" "$LINENO" 5; }
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649 IFS=$xc_prog_cc_prev_IFS
4650 LIBS=$xc_prog_cc_prev_LIBS
4651 CFLAGS=$xc_prog_cc_prev_CFLAGS
4652 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4653 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4660 am__api_version='1.11'
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4663 $as_echo_n "checking whether build environment is sane... " >&6; }
4666 echo timestamp > conftest.file
4667 # Reject unsafe characters in $srcdir or the absolute working directory
4668 # name. Accept space and tab only in the latter.
4672 *[\\\"\#\$\&\'\`$am_lf]*)
4673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4677 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4680 # Do `set' in a subshell so we don't clobber the current shell's
4681 # arguments. Must try -L first in case configure is actually a
4682 # symlink; some systems play weird games with the mod time of symlinks
4683 # (eg FreeBSD returns the mod time of the symlink's containing
4686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4687 if test "$*" = "X"; then
4689 set X `ls -t "$srcdir/configure" conftest.file`
4692 if test "$*" != "X $srcdir/configure conftest.file" \
4693 && test "$*" != "X conftest.file $srcdir/configure"; then
4695 # If neither matched, then we have a broken ls. This can happen
4696 # if, for instance, CONFIG_SHELL is bash and it inherits a
4697 # broken ls alias from the environment. This has actually
4698 # happened. Such a system could not be considered "sane".
4699 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4700 alias in your environment" "$LINENO" 5
4703 test "$2" = conftest.file
4709 as_fn_error $? "newly created file is older than distributed files!
4710 Check your system clock" "$LINENO" 5
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 $as_echo "yes" >&6; }
4714 test "$program_prefix" != NONE &&
4715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4716 # Use a double $ so make ignores it.
4717 test "$program_suffix" != NONE &&
4718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4719 # Double any \ or $.
4720 # By default was `s,x,x', remove it if useless.
4721 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4722 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4724 if test x"${MISSING+set}" != xset; then
4727 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4729 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4732 # Use eval to expand $SHELL
4733 if eval "$MISSING --run true"; then
4734 am_missing_run="$MISSING --run "
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4738 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4741 if test x"${install_sh}" != xset; then
4744 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4746 install_sh="\${SHELL} $am_aux_dir/install-sh"
4750 # Installed binaries are usually stripped using `strip' when the user
4751 # run `make install-strip'. However `strip' might not be the right
4752 # tool to use in cross-compilation environments, therefore Automake
4753 # will honor the `STRIP' environment variable to overrule this program.
4754 if test "$cross_compiling" != no; then
4755 if test -n "$ac_tool_prefix"; then
4756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4757 set dummy ${ac_tool_prefix}strip; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_STRIP+:} false; then :
4761 $as_echo_n "(cached) " >&6
4763 if test -n "$STRIP"; then
4764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 STRIP=$ac_cv_prog_STRIP
4784 if test -n "$STRIP"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4786 $as_echo "$STRIP" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4794 if test -z "$ac_cv_prog_STRIP"; then
4796 # Extract the first word of "strip", so it can be a program name with args.
4797 set dummy strip; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -n "$ac_ct_STRIP"; then
4804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_ac_ct_STRIP="strip"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4824 if test -n "$ac_ct_STRIP"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4826 $as_echo "$ac_ct_STRIP" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4832 if test "x$ac_ct_STRIP" = x; then
4835 case $cross_compiling:$ac_tool_warned in
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839 ac_tool_warned=yes ;;
4844 STRIP="$ac_cv_prog_STRIP"
4848 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4851 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4852 if test -z "$MKDIR_P"; then
4853 if ${ac_cv_path_mkdir+:} false; then :
4854 $as_echo_n "(cached) " >&6
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4860 test -z "$as_dir" && as_dir=.
4861 for ac_prog in mkdir gmkdir; do
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4864 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4865 'mkdir (GNU coreutils) '* | \
4866 'mkdir (coreutils) '* | \
4867 'mkdir (fileutils) '4.1*)
4868 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4878 test -d ./--version && rmdir ./--version
4879 if test "${ac_cv_path_mkdir+set}" = set; then
4880 MKDIR_P="$ac_cv_path_mkdir -p"
4882 # As a last resort, use the slow shell script. Don't cache a
4883 # value for MKDIR_P within a source directory, because that will
4884 # break other packages using the cache if that directory is
4885 # removed, or if the value is a relative name.
4886 MKDIR_P="$ac_install_sh -d"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4890 $as_echo "$MKDIR_P" >&6; }
4894 [\\/$]* | ?:[\\/]*) ;;
4895 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4898 for ac_prog in gawk mawk nawk awk
4900 # Extract the first word of "$ac_prog", so it can be a program name with args.
4901 set dummy $ac_prog; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_prog_AWK+:} false; then :
4905 $as_echo_n "(cached) " >&6
4907 if test -n "$AWK"; then
4908 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_prog_AWK="$ac_prog"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 if test -n "$AWK"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4930 $as_echo "$AWK" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4937 test -n "$AWK" && break
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4943 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4944 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4945 $as_echo_n "(cached) " >&6
4947 cat >conftest.make <<\_ACEOF
4950 @echo '@@@%%%=$(MAKE)=@@@%%%'
4952 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4953 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4955 eval ac_cv_prog_make_${ac_make}_set=yes;;
4957 eval ac_cv_prog_make_${ac_make}_set=no;;
4961 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4963 $as_echo "yes" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 SET_MAKE="MAKE=${MAKE-make}"
4971 rm -rf .tst 2>/dev/null
4972 mkdir .tst 2>/dev/null
4973 if test -d .tst; then
4978 rmdir .tst 2>/dev/null
4980 DEPDIR="${am__leading_dot}deps"
4982 ac_config_commands="$ac_config_commands depfiles"
4985 am_make=${MAKE-make}
4986 cat > confinc << 'END'
4988 @echo this is the am__doit target
4991 # If we don't find an include directive, just comment out the code.
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4993 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4997 # First try GNU make style include.
4998 echo "include confinc" > confmf
4999 # Ignore all kinds of additional output from `make'.
5000 case `$am_make -s -f confmf 2> /dev/null` in #(
5001 *the\ am__doit\ target*)
5007 # Now try BSD make style include.
5008 if test "$am__include" = "#"; then
5009 echo '.include "confinc"' > confmf
5010 case `$am_make -s -f confmf 2> /dev/null` in #(
5011 *the\ am__doit\ target*)
5012 am__include=.include
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5021 $as_echo "$_am_result" >&6; }
5022 rm -f confinc confmf
5024 # Check whether --enable-dependency-tracking was given.
5025 if test "${enable_dependency_tracking+set}" = set; then :
5026 enableval=$enable_dependency_tracking;
5029 if test "x$enable_dependency_tracking" != xno; then
5030 am_depcomp="$ac_aux_dir/depcomp"
5034 if test "x$enable_dependency_tracking" != xno; then
5043 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5044 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5045 # is not polluted with repeated "-I."
5046 am__isrc=' -I$(srcdir)'
5047 # test to see if srcdir already configured
5048 if test -f $srcdir/config.status; then
5049 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5053 # test whether we have cygpath
5054 if test -z "$CYGPATH_W"; then
5055 if (cygpath --version) >/dev/null 2>/dev/null; then
5056 CYGPATH_W='cygpath -w'
5063 # Define the identity of the package.
5068 cat >>confdefs.h <<_ACEOF
5069 #define PACKAGE "$PACKAGE"
5073 cat >>confdefs.h <<_ACEOF
5074 #define VERSION "$VERSION"
5077 # Some tools Automake needs.
5079 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5082 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5085 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5088 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5091 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5093 # We need awk for the "check" target. The system "awk" is bad on
5095 # Always define AMTAR for backward compatibility. Yes, it's still used
5096 # in the wild :-( We should find a proper way to deprecate it ...
5099 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5104 depcc="$CC" am_compiler_list=
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5107 $as_echo_n "checking dependency style of $depcc... " >&6; }
5108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5109 $as_echo_n "(cached) " >&6
5111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5112 # We make a subdir and do the tests there. Otherwise we can end up
5113 # making bogus files that we don't know about and never remove. For
5114 # instance it was reported that on HP-UX the gcc test will end up
5115 # making a dummy file named `D' -- because `-MD' means `put the output
5119 # Copy depcomp to subdir because otherwise we won't find it if we're
5120 # using a relative directory.
5121 cp "$am_depcomp" conftest.dir
5123 # We will build objects and dependencies in a subdirectory because
5124 # it helps to detect inapplicable dependency modes. For instance
5125 # both Tru64's cc and ICC support -MD to output dependencies as a
5126 # side effect of compilation, but ICC will put the dependencies in
5127 # the current directory while Tru64 will put them in the object
5131 am_cv_CC_dependencies_compiler_type=none
5132 if test "$am_compiler_list" = ""; then
5133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5136 case " $depcc " in #(
5137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5140 for depmode in $am_compiler_list; do
5141 # Setup a source with many dependencies, because some compilers
5142 # like to wrap large dependency lists on column 80 (with \), and
5143 # we should not choose a depcomp mode which is confused by this.
5145 # We need to recreate these files for each test, as the compiler may
5146 # overwrite some of them when testing with obscure command lines.
5147 # This happens at least with the AIX C compiler.
5149 for i in 1 2 3 4 5 6; do
5150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5152 # Solaris 8's {/usr,}/bin/sh.
5153 touch sub/conftst$i.h
5155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5157 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5158 # mode. It turns out that the SunPro C++ compiler does not properly
5159 # handle `-M -o', and we need to detect this. Also, some Intel
5160 # versions had trouble with output in subdirs
5161 am__obj=sub/conftest.${OBJEXT-o}
5162 am__minus_obj="-o $am__obj"
5165 # This depmode causes a compiler race in universal mode.
5166 test "$am__universal" = false || continue
5169 # after this tag, mechanisms are not by side-effect, so they'll
5170 # only be used when explicitly requested
5171 if test "x$enable_dependency_tracking" = xyes; then
5177 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5178 # This compiler won't grok `-c -o', but also, the minuso test has
5179 # not run yet. These depmodes are late enough in the game, and
5180 # so weak that their functioning should not be impacted.
5181 am__obj=conftest.${OBJEXT-o}
5186 if depmode=$depmode \
5187 source=sub/conftest.c object=$am__obj \
5188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5190 >/dev/null 2>conftest.err &&
5191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5195 # icc doesn't choke on unknown options, it will just issue warnings
5196 # or remarks (even with -Werror). So we grep stderr for any message
5197 # that says an option was ignored or not supported.
5198 # When given -MP, icc 7.0 and 7.1 complain thusly:
5199 # icc: Command line warning: ignoring option '-M'; no argument required
5200 # The diagnosis changed in icc 8.0:
5201 # icc: Command line remark: option '-MP' not supported
5202 if (grep 'ignoring option' conftest.err ||
5203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5204 am_cv_CC_dependencies_compiler_type=$depmode
5213 am_cv_CC_dependencies_compiler_type=none
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5222 test "x$enable_dependency_tracking" != xno \
5223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5225 am__fastdepCC_FALSE='#'
5227 am__fastdepCC_TRUE='#'
5228 am__fastdepCC_FALSE=
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5237 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5238 if ${ac_cv_path_GREP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -z "$GREP"; then
5242 ac_path_GREP_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in grep ggrep; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5252 as_fn_executable_p "$ac_path_GREP" || continue
5253 # Check for GNU ac_path_GREP and select it if it is found.
5254 # Check for GNU $ac_path_GREP
5255 case `"$ac_path_GREP" --version 2>&1` in
5257 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5260 $as_echo_n 0123456789 >"conftest.in"
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo 'GREP' >> "conftest.nl"
5267 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_GREP="$ac_path_GREP"
5273 ac_path_GREP_max=$ac_count
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281 $ac_path_GREP_found && break 3
5286 if test -z "$ac_cv_path_GREP"; then
5287 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290 ac_cv_path_GREP=$GREP
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5295 $as_echo "$ac_cv_path_GREP" >&6; }
5296 GREP="$ac_cv_path_GREP"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5300 $as_echo_n "checking for egrep... " >&6; }
5301 if ${ac_cv_path_EGREP+:} false; then :
5302 $as_echo_n "(cached) " >&6
5304 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5305 then ac_cv_path_EGREP="$GREP -E"
5307 if test -z "$EGREP"; then
5308 ac_path_EGREP_found=false
5309 # Loop through the user's path and test for each of PROGNAME-LIST
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314 test -z "$as_dir" && as_dir=.
5315 for ac_prog in egrep; do
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5318 as_fn_executable_p "$ac_path_EGREP" || continue
5319 # Check for GNU ac_path_EGREP and select it if it is found.
5320 # Check for GNU $ac_path_EGREP
5321 case `"$ac_path_EGREP" --version 2>&1` in
5323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5326 $as_echo_n 0123456789 >"conftest.in"
5329 cat "conftest.in" "conftest.in" >"conftest.tmp"
5330 mv "conftest.tmp" "conftest.in"
5331 cp "conftest.in" "conftest.nl"
5332 $as_echo 'EGREP' >> "conftest.nl"
5333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335 as_fn_arith $ac_count + 1 && ac_count=$as_val
5336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5337 # Best one so far, save it but keep looking for a better one
5338 ac_cv_path_EGREP="$ac_path_EGREP"
5339 ac_path_EGREP_max=$ac_count
5341 # 10*(2^10) chars as input seems more than enough
5342 test $ac_count -gt 10 && break
5344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347 $ac_path_EGREP_found && break 3
5352 if test -z "$ac_cv_path_EGREP"; then
5353 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 ac_cv_path_EGREP=$EGREP
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5362 $as_echo "$ac_cv_path_EGREP" >&6; }
5363 EGREP="$ac_cv_path_EGREP"
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
5369 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 $as_echo "yes" >&6; }
5383 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
5399 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5411 force compilation error
5419 if ac_fn_c_try_compile "$LINENO"; then :
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5422 $as_echo "yes" >&6; }
5423 tmp_thread_safe_initially_defined="yes"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 tmp_thread_safe_initially_defined="no"
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 if test "$tmp_thread_safe_initially_defined" = "no"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
5436 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
5439 aix[123].* | aix4.[012].*)
5440 tmp_need_thread_safe="no"
5443 tmp_need_thread_safe="yes"
5446 tmp_need_thread_safe="no"
5450 if test "$tmp_need_thread_safe" = "yes"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
5460 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
5461 if test "$tmp_thread_safe_initially_defined" = "yes" ||
5462 test "$tmp_need_thread_safe" = "yes"; then
5465 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
5467 cat >>confdefs.h <<_EOF
5468 #ifndef _THREAD_SAFE
5469 # define _THREAD_SAFE
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5474 $as_echo "yes" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
5484 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5496 force compilation error
5504 if ac_fn_c_try_compile "$LINENO"; then :
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 $as_echo "yes" >&6; }
5508 tmp_reentrant_initially_defined="yes"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 tmp_reentrant_initially_defined="no"
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 if test "$tmp_reentrant_initially_defined" = "no"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
5521 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
5525 tmp_need_reentrant="yes"
5528 tmp_need_reentrant="no"
5532 if test "$tmp_need_reentrant" = "no"; then
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5551 if ac_fn_c_try_compile "$LINENO"; then :
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 if test "$tmp_errno" = "yes"; then
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5574 force compilation error
5582 if ac_fn_c_try_compile "$LINENO"; then :
5584 tmp_errno="errno_macro_defined"
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5601 force compilation error
5609 if ac_fn_c_try_compile "$LINENO"; then :
5611 tmp_errno="errno_macro_needs_reentrant"
5612 tmp_need_reentrant="yes"
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 if test "$tmp_need_reentrant" = "no"; then
5624 if test "$tmp_need_reentrant" = "no"; then
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5630 #define gmtime_r innocuous_gmtime_r
5632 # include <limits.h>
5634 # include <assert.h>
5641 #if defined __stub_gmtime_r || defined __stub___gmtime_r
5653 if ac_fn_c_try_link "$LINENO"; then :
5662 rm -f core conftest.err conftest.$ac_objext \
5663 conftest$ac_exeext conftest.$ac_ext
5664 if test "$tmp_gmtime_r" = "yes"; then
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5668 #include <sys/types.h>
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "gmtime_r" >/dev/null 2>&1; then :
5675 tmp_gmtime_r="proto_declared"
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5683 #include <sys/types.h>
5687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5688 $EGREP "gmtime_r" >/dev/null 2>&1; then :
5690 tmp_gmtime_r="proto_needs_reentrant"
5691 tmp_need_reentrant="yes"
5703 if test "$tmp_need_reentrant" = "no"; then
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5709 #define localtime_r innocuous_localtime_r
5711 # include <limits.h>
5713 # include <assert.h>
5719 char localtime_r ();
5720 #if defined __stub_localtime_r || defined __stub___localtime_r
5726 return localtime_r ();
5732 if ac_fn_c_try_link "$LINENO"; then :
5734 tmp_localtime_r="yes"
5738 tmp_localtime_r="no"
5741 rm -f core conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5743 if test "$tmp_localtime_r" = "yes"; then
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5747 #include <sys/types.h>
5751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752 $EGREP "localtime_r" >/dev/null 2>&1; then :
5754 tmp_localtime_r="proto_declared"
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5762 #include <sys/types.h>
5766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5767 $EGREP "localtime_r" >/dev/null 2>&1; then :
5769 tmp_localtime_r="proto_needs_reentrant"
5770 tmp_need_reentrant="yes"
5782 if test "$tmp_need_reentrant" = "no"; then
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5788 #define strerror_r innocuous_strerror_r
5790 # include <limits.h>
5792 # include <assert.h>
5799 #if defined __stub_strerror_r || defined __stub___strerror_r
5805 return strerror_r ();
5811 if ac_fn_c_try_link "$LINENO"; then :
5813 tmp_strerror_r="yes"
5820 rm -f core conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 if test "$tmp_strerror_r" = "yes"; then
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5826 #include <sys/types.h>
5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831 $EGREP "strerror_r" >/dev/null 2>&1; then :
5833 tmp_strerror_r="proto_declared"
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5841 #include <sys/types.h>
5845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5846 $EGREP "strerror_r" >/dev/null 2>&1; then :
5848 tmp_strerror_r="proto_needs_reentrant"
5849 tmp_need_reentrant="yes"
5861 if test "$tmp_need_reentrant" = "no"; then
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5867 #define strtok_r innocuous_strtok_r
5869 # include <limits.h>
5871 # include <assert.h>
5878 #if defined __stub_strtok_r || defined __stub___strtok_r
5890 if ac_fn_c_try_link "$LINENO"; then :
5899 rm -f core conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5901 if test "$tmp_strtok_r" = "yes"; then
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5905 #include <sys/types.h>
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "strtok_r" >/dev/null 2>&1; then :
5912 tmp_strtok_r="proto_declared"
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5920 #include <sys/types.h>
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "strtok_r" >/dev/null 2>&1; then :
5927 tmp_strtok_r="proto_needs_reentrant"
5928 tmp_need_reentrant="yes"
5940 if test "$tmp_need_reentrant" = "no"; then
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5946 #define inet_ntoa_r innocuous_inet_ntoa_r
5948 # include <limits.h>
5950 # include <assert.h>
5956 char inet_ntoa_r ();
5957 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
5963 return inet_ntoa_r ();
5969 if ac_fn_c_try_link "$LINENO"; then :
5971 tmp_inet_ntoa_r="yes"
5975 tmp_inet_ntoa_r="no"
5978 rm -f core conftest.err conftest.$ac_objext \
5979 conftest$ac_exeext conftest.$ac_ext
5980 if test "$tmp_inet_ntoa_r" = "yes"; then
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5984 #include <sys/types.h>
5985 #include <sys/socket.h>
5986 #include <netinet/in.h>
5987 #include <arpa/inet.h>
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
5993 tmp_inet_ntoa_r="proto_declared"
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6001 #include <sys/types.h>
6002 #include <sys/socket.h>
6003 #include <netinet/in.h>
6004 #include <arpa/inet.h>
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6010 tmp_inet_ntoa_r="proto_needs_reentrant"
6011 tmp_need_reentrant="yes"
6023 if test "$tmp_need_reentrant" = "no"; then
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6029 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6031 # include <limits.h>
6033 # include <assert.h>
6035 #undef gethostbyaddr_r
6039 char gethostbyaddr_r ();
6040 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6046 return gethostbyaddr_r ();
6052 if ac_fn_c_try_link "$LINENO"; then :
6054 tmp_gethostbyaddr_r="yes"
6058 tmp_gethostbyaddr_r="no"
6061 rm -f core conftest.err conftest.$ac_objext \
6062 conftest$ac_exeext conftest.$ac_ext
6063 if test "$tmp_gethostbyaddr_r" = "yes"; then
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6067 #include <sys/types.h>
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6074 tmp_gethostbyaddr_r="proto_declared"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6082 #include <sys/types.h>
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6089 tmp_gethostbyaddr_r="proto_needs_reentrant"
6090 tmp_need_reentrant="yes"
6102 if test "$tmp_need_reentrant" = "no"; then
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6108 #define gethostbyname_r innocuous_gethostbyname_r
6110 # include <limits.h>
6112 # include <assert.h>
6114 #undef gethostbyname_r
6118 char gethostbyname_r ();
6119 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6125 return gethostbyname_r ();
6131 if ac_fn_c_try_link "$LINENO"; then :
6133 tmp_gethostbyname_r="yes"
6137 tmp_gethostbyname_r="no"
6140 rm -f core conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6142 if test "$tmp_gethostbyname_r" = "yes"; then
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6146 #include <sys/types.h>
6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6153 tmp_gethostbyname_r="proto_declared"
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6161 #include <sys/types.h>
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6168 tmp_gethostbyname_r="proto_needs_reentrant"
6169 tmp_need_reentrant="yes"
6181 if test "$tmp_need_reentrant" = "no"; then
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6187 #define getprotobyname_r innocuous_getprotobyname_r
6189 # include <limits.h>
6191 # include <assert.h>
6193 #undef getprotobyname_r
6197 char getprotobyname_r ();
6198 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6204 return getprotobyname_r ();
6210 if ac_fn_c_try_link "$LINENO"; then :
6212 tmp_getprotobyname_r="yes"
6216 tmp_getprotobyname_r="no"
6219 rm -f core conftest.err conftest.$ac_objext \
6220 conftest$ac_exeext conftest.$ac_ext
6221 if test "$tmp_getprotobyname_r" = "yes"; then
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6225 #include <sys/types.h>
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6232 tmp_getprotobyname_r="proto_declared"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6240 #include <sys/types.h>
6244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6245 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6247 tmp_getprotobyname_r="proto_needs_reentrant"
6248 tmp_need_reentrant="yes"
6260 if test "$tmp_need_reentrant" = "no"; then
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6266 #define getservbyport_r innocuous_getservbyport_r
6268 # include <limits.h>
6270 # include <assert.h>
6272 #undef getservbyport_r
6276 char getservbyport_r ();
6277 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6283 return getservbyport_r ();
6289 if ac_fn_c_try_link "$LINENO"; then :
6291 tmp_getservbyport_r="yes"
6295 tmp_getservbyport_r="no"
6298 rm -f core conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6300 if test "$tmp_getservbyport_r" = "yes"; then
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6304 #include <sys/types.h>
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6311 tmp_getservbyport_r="proto_declared"
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6319 #include <sys/types.h>
6323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6326 tmp_getservbyport_r="proto_needs_reentrant"
6327 tmp_need_reentrant="yes"
6341 if test "$tmp_need_reentrant" = "yes"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343 $as_echo "yes" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
6351 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
6352 if test "$tmp_reentrant_initially_defined" = "yes" ||
6353 test "$tmp_need_reentrant" = "yes"; then
6356 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
6358 cat >>confdefs.h <<_EOF
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6365 $as_echo "yes" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6373 # Check whether --enable-largefile was given.
6374 if test "${enable_largefile+set}" = set; then :
6375 enableval=$enable_largefile;
6378 if test "$enable_largefile" != no; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6382 if ${ac_cv_sys_largefile_CC+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 ac_cv_sys_largefile_CC=no
6386 if test "$GCC" != yes; then
6389 # IRIX 6.2 and later do not support large files by default,
6390 # so use the C compiler's -n32 option if that helps.
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 #include <sys/types.h>
6394 /* Check that off_t can represent 2**63 - 1 correctly.
6395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6396 since some C++ compilers masquerading as C compilers
6397 incorrectly reject 9223372036854775807. */
6398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6400 && LARGE_OFF_T % 2147483647 == 1)
6409 if ac_fn_c_try_compile "$LINENO"; then :
6412 rm -f core conftest.err conftest.$ac_objext
6414 if ac_fn_c_try_compile "$LINENO"; then :
6415 ac_cv_sys_largefile_CC=' -n32'; break
6417 rm -f core conftest.err conftest.$ac_objext
6421 rm -f conftest.$ac_ext
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6425 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6426 if test "$ac_cv_sys_largefile_CC" != no; then
6427 CC=$CC$ac_cv_sys_largefile_CC
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6431 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6432 if ${ac_cv_sys_file_offset_bits+:} false; then :
6433 $as_echo_n "(cached) " >&6
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 #include <sys/types.h>
6439 /* Check that off_t can represent 2**63 - 1 correctly.
6440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6441 since some C++ compilers masquerading as C compilers
6442 incorrectly reject 9223372036854775807. */
6443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6445 && LARGE_OFF_T % 2147483647 == 1)
6454 if ac_fn_c_try_compile "$LINENO"; then :
6455 ac_cv_sys_file_offset_bits=no; break
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #define _FILE_OFFSET_BITS 64
6461 #include <sys/types.h>
6462 /* Check that off_t can represent 2**63 - 1 correctly.
6463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6464 since some C++ compilers masquerading as C compilers
6465 incorrectly reject 9223372036854775807. */
6466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6468 && LARGE_OFF_T % 2147483647 == 1)
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 ac_cv_sys_file_offset_bits=64; break
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 ac_cv_sys_file_offset_bits=unknown
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6486 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6487 case $ac_cv_sys_file_offset_bits in #(
6490 cat >>confdefs.h <<_ACEOF
6491 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6496 if test $ac_cv_sys_file_offset_bits = unknown; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6498 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6499 if ${ac_cv_sys_large_files+:} false; then :
6500 $as_echo_n "(cached) " >&6
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <sys/types.h>
6506 /* Check that off_t can represent 2**63 - 1 correctly.
6507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6508 since some C++ compilers masquerading as C compilers
6509 incorrectly reject 9223372036854775807. */
6510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6512 && LARGE_OFF_T % 2147483647 == 1)
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 ac_cv_sys_large_files=no; break
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #define _LARGE_FILES 1
6528 #include <sys/types.h>
6529 /* Check that off_t can represent 2**63 - 1 correctly.
6530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6531 since some C++ compilers masquerading as C compilers
6532 incorrectly reject 9223372036854775807. */
6533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6535 && LARGE_OFF_T % 2147483647 == 1)
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 ac_cv_sys_large_files=1; break
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 ac_cv_sys_large_files=unknown
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6553 $as_echo "$ac_cv_sys_large_files" >&6; }
6554 case $ac_cv_sys_large_files in #(
6557 cat >>confdefs.h <<_ACEOF
6558 #define _LARGE_FILES $ac_cv_sys_large_files
6572 $as_echo "#define ETC_INET 1" >>confdefs.h
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6580 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6585 macro_version='2.4.2'
6586 macro_revision='1.3337'
6600 ltmain="$ac_aux_dir/ltmain.sh"
6602 # Backslashify metacharacters that are still active within
6603 # double-quoted strings.
6604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6613 # Sed substitution to delay expansion of an escaped single quote.
6614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6616 # Sed substitution to avoid accidental globbing in evaled expressions
6617 no_glob_subst='s/\*/\\\*/g'
6619 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6621 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6624 $as_echo_n "checking how to print strings... " >&6; }
6625 # Test print first, because it will be a builtin if present.
6626 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6627 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6629 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6632 # Use this function as a fallback that always works.
6633 func_fallback_echo ()
6635 eval 'cat <<_LTECHO_EOF
6639 ECHO='func_fallback_echo'
6642 # func_echo_all arg...
6643 # Invoke $ECHO with all args, space-separated.
6650 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6651 $as_echo "printf" >&6; } ;;
6652 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6653 $as_echo "print -r" >&6; } ;;
6654 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6655 $as_echo "cat" >&6; } ;;
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6672 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6673 if ${ac_cv_path_SED+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6677 for ac_i in 1 2 3 4 5 6 7; do
6678 ac_script="$ac_script$as_nl$ac_script"
6680 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6681 { ac_script=; unset ac_script;}
6682 if test -z "$SED"; then
6683 ac_path_SED_found=false
6684 # Loop through the user's path and test for each of PROGNAME-LIST
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_prog in sed gsed; do
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6693 as_fn_executable_p "$ac_path_SED" || continue
6694 # Check for GNU ac_path_SED and select it if it is found.
6695 # Check for GNU $ac_path_SED
6696 case `"$ac_path_SED" --version 2>&1` in
6698 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6701 $as_echo_n 0123456789 >"conftest.in"
6704 cat "conftest.in" "conftest.in" >"conftest.tmp"
6705 mv "conftest.tmp" "conftest.in"
6706 cp "conftest.in" "conftest.nl"
6707 $as_echo '' >> "conftest.nl"
6708 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6710 as_fn_arith $ac_count + 1 && ac_count=$as_val
6711 if test $ac_count -gt ${ac_path_SED_max-0}; then
6712 # Best one so far, save it but keep looking for a better one
6713 ac_cv_path_SED="$ac_path_SED"
6714 ac_path_SED_max=$ac_count
6716 # 10*(2^10) chars as input seems more than enough
6717 test $ac_count -gt 10 && break
6719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6722 $ac_path_SED_found && break 3
6727 if test -z "$ac_cv_path_SED"; then
6728 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6736 $as_echo "$ac_cv_path_SED" >&6; }
6737 SED="$ac_cv_path_SED"
6740 test -z "$SED" && SED=sed
6741 Xsed="$SED -e 1s/^X//"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6754 $as_echo_n "checking for fgrep... " >&6; }
6755 if ${ac_cv_path_FGREP+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6759 then ac_cv_path_FGREP="$GREP -F"
6761 if test -z "$FGREP"; then
6762 ac_path_FGREP_found=false
6763 # Loop through the user's path and test for each of PROGNAME-LIST
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6768 test -z "$as_dir" && as_dir=.
6769 for ac_prog in fgrep; do
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6772 as_fn_executable_p "$ac_path_FGREP" || continue
6773 # Check for GNU ac_path_FGREP and select it if it is found.
6774 # Check for GNU $ac_path_FGREP
6775 case `"$ac_path_FGREP" --version 2>&1` in
6777 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6780 $as_echo_n 0123456789 >"conftest.in"
6783 cat "conftest.in" "conftest.in" >"conftest.tmp"
6784 mv "conftest.tmp" "conftest.in"
6785 cp "conftest.in" "conftest.nl"
6786 $as_echo 'FGREP' >> "conftest.nl"
6787 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6789 as_fn_arith $ac_count + 1 && ac_count=$as_val
6790 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6791 # Best one so far, save it but keep looking for a better one
6792 ac_cv_path_FGREP="$ac_path_FGREP"
6793 ac_path_FGREP_max=$ac_count
6795 # 10*(2^10) chars as input seems more than enough
6796 test $ac_count -gt 10 && break
6798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6801 $ac_path_FGREP_found && break 3
6806 if test -z "$ac_cv_path_FGREP"; then
6807 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6810 ac_cv_path_FGREP=$FGREP
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6816 $as_echo "$ac_cv_path_FGREP" >&6; }
6817 FGREP="$ac_cv_path_FGREP"
6820 test -z "$GREP" && GREP=grep
6840 # Check whether --with-gnu-ld was given.
6841 if test "${with_gnu_ld+set}" = set; then :
6842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6848 if test "$GCC" = yes; then
6849 # Check if gcc -print-prog-name=ld gives a path.
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6851 $as_echo_n "checking for ld used by $CC... " >&6; }
6854 # gcc leaves a trailing carriage return which upsets mingw
6855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6860 # Accept absolute paths.
6862 re_direlt='/[^/][^/]*/\.\./'
6863 # Canonicalize the pathname of ld
6864 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6865 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6866 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6868 test -z "$LD" && LD="$ac_prog"
6871 # If it fails, then pretend we aren't using GCC.
6875 # If it is relative, then search for the first ld in PATH.
6879 elif test "$with_gnu_ld" = yes; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6881 $as_echo_n "checking for GNU ld... " >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6884 $as_echo_n "checking for non-GNU ld... " >&6; }
6886 if ${lt_cv_path_LD+:} false; then :
6887 $as_echo_n "(cached) " >&6
6889 if test -z "$LD"; then
6890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6891 for ac_dir in $PATH; do
6893 test -z "$ac_dir" && ac_dir=.
6894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6895 lt_cv_path_LD="$ac_dir/$ac_prog"
6896 # Check to see if the program is GNU ld. I'd rather use --version,
6897 # but apparently some variants of GNU ld only accept -v.
6898 # Break only if it was the GNU/non-GNU ld that we prefer.
6899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6900 *GNU* | *'with BFD'*)
6901 test "$with_gnu_ld" != no && break
6904 test "$with_gnu_ld" != yes && break
6911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6916 if test -n "$LD"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6918 $as_echo "$LD" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6926 if ${lt_cv_prog_gnu_ld+:} false; then :
6927 $as_echo_n "(cached) " >&6
6929 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6930 case `$LD -v 2>&1 </dev/null` in
6931 *GNU* | *'with BFD'*)
6932 lt_cv_prog_gnu_ld=yes
6935 lt_cv_prog_gnu_ld=no
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6941 with_gnu_ld=$lt_cv_prog_gnu_ld
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6953 if ${lt_cv_path_NM+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 if test -n "$NM"; then
6957 # Let the user override the test.
6960 lt_nm_to_check="${ac_tool_prefix}nm"
6961 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6962 lt_nm_to_check="$lt_nm_to_check nm"
6964 for lt_tmp_nm in $lt_nm_to_check; do
6965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6966 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6968 test -z "$ac_dir" && ac_dir=.
6969 tmp_nm="$ac_dir/$lt_tmp_nm"
6970 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6971 # Check to see if the nm accepts a BSD-compat flag.
6972 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6973 # nm: unknown option "B" ignored
6974 # Tru64's nm complains that /dev/null is an invalid object file
6975 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6976 */dev/null* | *'Invalid file or object type'*)
6977 lt_cv_path_NM="$tmp_nm -B"
6981 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6983 lt_cv_path_NM="$tmp_nm -p"
6987 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6988 continue # so that we can try to find one that supports BSD flags
6997 : ${lt_cv_path_NM=no}
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7001 $as_echo "$lt_cv_path_NM" >&6; }
7002 if test "$lt_cv_path_NM" != "no"; then
7005 # Didn't find any BSD compatible name lister, look for dumpbin.
7006 if test -n "$DUMPBIN"; then :
7007 # Let the user override the test.
7009 if test -n "$ac_tool_prefix"; then
7010 for ac_prog in dumpbin "link -dump"
7012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_DUMPBIN+:} false; then :
7017 $as_echo_n "(cached) " >&6
7019 if test -n "$DUMPBIN"; then
7020 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 DUMPBIN=$ac_cv_prog_DUMPBIN
7040 if test -n "$DUMPBIN"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7042 $as_echo "$DUMPBIN" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7049 test -n "$DUMPBIN" && break
7052 if test -z "$DUMPBIN"; then
7053 ac_ct_DUMPBIN=$DUMPBIN
7054 for ac_prog in dumpbin "link -dump"
7056 # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 if test -n "$ac_ct_DUMPBIN"; then
7064 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7084 if test -n "$ac_ct_DUMPBIN"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7086 $as_echo "$ac_ct_DUMPBIN" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7093 test -n "$ac_ct_DUMPBIN" && break
7096 if test "x$ac_ct_DUMPBIN" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7105 DUMPBIN=$ac_ct_DUMPBIN
7109 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7111 DUMPBIN="$DUMPBIN -symbols"
7119 if test "$DUMPBIN" != ":"; then
7123 test -z "$NM" && NM=nm
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7132 if ${lt_cv_nm_interface+:} false; then :
7133 $as_echo_n "(cached) " >&6
7135 lt_cv_nm_interface="BSD nm"
7136 echo "int some_variable = 0;" > conftest.$ac_ext
7137 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7138 (eval "$ac_compile" 2>conftest.err)
7139 cat conftest.err >&5
7140 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7141 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7142 cat conftest.err >&5
7143 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7144 cat conftest.out >&5
7145 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7146 lt_cv_nm_interface="MS dumpbin"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7151 $as_echo "$lt_cv_nm_interface" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7154 $as_echo_n "checking whether ln -s works... " >&6; }
7156 if test "$LN_S" = "ln -s"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7158 $as_echo "yes" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7161 $as_echo "no, using $LN_S" >&6; }
7164 # find the maximum length of command line arguments
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7167 if ${lt_cv_sys_max_cmd_len+:} false; then :
7168 $as_echo_n "(cached) " >&6
7175 # On DJGPP, this test can blow up pretty badly due to problems in libc
7176 # (any single argument exceeding 2000 bytes causes a buffer overrun
7177 # during glob expansion). Even if it were fixed, the result of this
7178 # check would be larger than it should be.
7179 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7183 # Under GNU Hurd, this test is not required because there is
7184 # no limit to the length of command line arguments.
7185 # Libtool will interpret -1 as no limit whatsoever
7186 lt_cv_sys_max_cmd_len=-1;
7189 cygwin* | mingw* | cegcc*)
7190 # On Win9x/ME, this test blows up -- it succeeds, but takes
7191 # about 5 minutes as the teststring grows exponentially.
7192 # Worse, since 9x/ME are not pre-emptively multitasking,
7193 # you end up with a "frozen" computer, even though with patience
7194 # the test eventually succeeds (with a max line length of 256k).
7195 # Instead, let's just punt: use the minimum linelength reported by
7196 # all of the supported platforms: 8192 (on NT/2K/XP).
7197 lt_cv_sys_max_cmd_len=8192;
7201 # On MiNT this can take a long time and run out of memory.
7202 lt_cv_sys_max_cmd_len=8192;
7206 # On AmigaOS with pdksh, this test takes hours, literally.
7207 # So we just punt and use a minimum line length of 8192.
7208 lt_cv_sys_max_cmd_len=8192;
7211 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7212 # This has been around since 386BSD, at least. Likely further.
7213 if test -x /sbin/sysctl; then
7214 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7215 elif test -x /usr/sbin/sysctl; then
7216 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7218 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7220 # And add a safety zone
7221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7226 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7227 lt_cv_sys_max_cmd_len=196608
7231 # The test takes a long time on OS/2.
7232 lt_cv_sys_max_cmd_len=8192
7236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7238 # nice to cause kernel panics so lets avoid the loop below.
7239 # First set a reasonable default.
7240 lt_cv_sys_max_cmd_len=16384
7242 if test -x /sbin/sysconfig; then
7243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7249 lt_cv_sys_max_cmd_len=102400
7251 sysv5* | sco5v6* | sysv4.2uw2*)
7252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7253 if test -n "$kargmax"; then
7254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7256 lt_cv_sys_max_cmd_len=32768
7260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7261 if test -n "$lt_cv_sys_max_cmd_len" && \
7262 test undefined != "$lt_cv_sys_max_cmd_len"; then
7263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7266 # Make teststring a little bigger before we do anything with it.
7267 # a 1K string should be a reasonable start.
7268 for i in 1 2 3 4 5 6 7 8 ; do
7269 teststring=$teststring$teststring
7271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7272 # If test is not a shell built-in, we'll probably end up computing a
7273 # maximum length that is only half of the actual maximum length, but
7275 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7276 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7277 test $i != 17 # 1/2 MB should be enough
7280 teststring=$teststring$teststring
7282 # Only check the string length outside the loop.
7283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7285 # Add a significant safety factor because C++ compilers can tack on
7286 # massive amounts of additional arguments before passing them to the
7287 # linker. It appears as though 1/2 is a usable value.
7288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7295 if test -n $lt_cv_sys_max_cmd_len ; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7300 $as_echo "none" >&6; }
7302 max_cmd_len=$lt_cv_sys_max_cmd_len
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7314 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7315 # Try some XSI features
7318 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7320 && eval 'test $(( 1 + 1 )) -eq 2 \
7321 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7324 $as_echo "$xsi_shell" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7328 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7330 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7332 && lt_shell_append=yes
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7334 $as_echo "$lt_shell_append" >&6; }
7337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7347 # test EBCDIC or ASCII
7348 case `echo X|tr X '\101'` in
7349 A) # ASCII based system
7350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7351 lt_SP2NL='tr \040 \012'
7352 lt_NL2SP='tr \015\012 \040\040'
7354 *) # EBCDIC based system
7355 lt_SP2NL='tr \100 \n'
7356 lt_NL2SP='tr \r\n \100\100'
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7369 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7370 if ${lt_cv_to_host_file_cmd+:} false; then :
7371 $as_echo_n "(cached) " >&6
7376 *-*-mingw* ) # actually msys
7377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7380 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7382 * ) # otherwise, assume *nix
7383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7389 *-*-mingw* ) # actually msys
7390 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7393 lt_cv_to_host_file_cmd=func_convert_file_noop
7395 * ) # otherwise, assume *nix
7396 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7400 * ) # unhandled hosts (and "normal" native builds)
7401 lt_cv_to_host_file_cmd=func_convert_file_noop
7407 to_host_file_cmd=$lt_cv_to_host_file_cmd
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7409 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7416 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7417 if ${lt_cv_to_tool_file_cmd+:} false; then :
7418 $as_echo_n "(cached) " >&6
7420 #assume ordinary cross tools, or native build.
7421 lt_cv_to_tool_file_cmd=func_convert_file_noop
7425 *-*-mingw* ) # actually msys
7426 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7434 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7436 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7443 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7444 if ${lt_cv_ld_reload_flag+:} false; then :
7445 $as_echo_n "(cached) " >&6
7447 lt_cv_ld_reload_flag='-r'
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7450 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7451 reload_flag=$lt_cv_ld_reload_flag
7452 case $reload_flag in
7454 *) reload_flag=" $reload_flag" ;;
7456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7458 cygwin* | mingw* | pw32* | cegcc*)
7459 if test "$GCC" != yes; then
7464 if test "$GCC" = yes; then
7465 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_OBJDUMP+:} false; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$OBJDUMP"; then
7489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 OBJDUMP=$ac_cv_prog_OBJDUMP
7509 if test -n "$OBJDUMP"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7511 $as_echo "$OBJDUMP" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7519 if test -z "$ac_cv_prog_OBJDUMP"; then
7520 ac_ct_OBJDUMP=$OBJDUMP
7521 # Extract the first word of "objdump", so it can be a program name with args.
7522 set dummy objdump; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7526 $as_echo_n "(cached) " >&6
7528 if test -n "$ac_ct_OBJDUMP"; then
7529 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7549 if test -n "$ac_ct_OBJDUMP"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7551 $as_echo "$ac_ct_OBJDUMP" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7557 if test "x$ac_ct_OBJDUMP" = x; then
7560 case $cross_compiling:$ac_tool_warned in
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7566 OBJDUMP=$ac_ct_OBJDUMP
7569 OBJDUMP="$ac_cv_prog_OBJDUMP"
7572 test -z "$OBJDUMP" && OBJDUMP=objdump
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7580 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7581 if ${lt_cv_deplibs_check_method+:} false; then :
7582 $as_echo_n "(cached) " >&6
7584 lt_cv_file_magic_cmd='$MAGIC_CMD'
7585 lt_cv_file_magic_test_file=
7586 lt_cv_deplibs_check_method='unknown'
7587 # Need to set the preceding variable on all platforms that support
7588 # interlibrary dependencies.
7589 # 'none' -- dependencies not supported.
7590 # `unknown' -- same as none, but documents that we really don't know.
7591 # 'pass_all' -- all dependencies passed with no checks.
7592 # 'test_compile' -- check by making test program.
7593 # 'file_magic [[regex]]' -- check by looking for files in library path
7594 # which responds to the $file_magic_cmd with a given extended regex.
7595 # If you have `file' or equivalent on your system and you're not sure
7596 # whether `pass_all' will *always* work, you probably want this one.
7600 lt_cv_deplibs_check_method=pass_all
7604 lt_cv_deplibs_check_method=pass_all
7608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7609 lt_cv_file_magic_cmd='/usr/bin/file -L'
7610 lt_cv_file_magic_test_file=/shlib/libc.so
7614 # func_win32_libid is a shell function defined in ltmain.sh
7615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7616 lt_cv_file_magic_cmd='func_win32_libid'
7620 # Base MSYS/MinGW do not provide the 'file' command needed by
7621 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7622 # unless we find 'file', for example because we are cross-compiling.
7623 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7624 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7625 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7626 lt_cv_file_magic_cmd='func_win32_libid'
7628 # Keep this pattern in sync with the one in func_win32_libid.
7629 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7630 lt_cv_file_magic_cmd='$OBJDUMP -f'
7635 # use the weaker test based on 'objdump'. See mingw*.
7636 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7637 lt_cv_file_magic_cmd='$OBJDUMP -f'
7640 darwin* | rhapsody*)
7641 lt_cv_deplibs_check_method=pass_all
7644 freebsd* | dragonfly*)
7645 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7648 # Not sure whether the presence of OpenBSD here was a mistake.
7649 # Let's accept both of them until this is cleared up.
7650 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7651 lt_cv_file_magic_cmd=/usr/bin/file
7652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7656 lt_cv_deplibs_check_method=pass_all
7661 lt_cv_deplibs_check_method=pass_all
7664 hpux10.20* | hpux11*)
7665 lt_cv_file_magic_cmd=/usr/bin/file
7668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7669 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7672 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]'
7673 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7676 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7677 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7683 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7687 irix5* | irix6* | nonstopux*)
7689 *-32|*"-32 ") libmagic=32-bit;;
7690 *-n32|*"-n32 ") libmagic=N32;;
7691 *-64|*"-64 ") libmagic=64-bit;;
7692 *) libmagic=never-match;;
7694 lt_cv_deplibs_check_method=pass_all
7697 # This must be glibc/ELF.
7698 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7699 lt_cv_deplibs_check_method=pass_all
7702 netbsd* | netbsdelf*-gnu)
7703 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7712 lt_cv_file_magic_cmd=/usr/bin/file
7713 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7717 lt_cv_deplibs_check_method=pass_all
7721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7728 osf3* | osf4* | osf5*)
7729 lt_cv_deplibs_check_method=pass_all
7733 lt_cv_deplibs_check_method=pass_all
7737 lt_cv_deplibs_check_method=pass_all
7740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7741 lt_cv_deplibs_check_method=pass_all
7745 case $host_vendor in
7747 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]'
7748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7751 lt_cv_deplibs_check_method=pass_all
7754 lt_cv_file_magic_cmd='/bin/file'
7755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7758 lt_cv_file_magic_cmd='/bin/file'
7759 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7760 lt_cv_file_magic_test_file=/lib/libc.so
7763 lt_cv_deplibs_check_method=pass_all
7766 lt_cv_deplibs_check_method=pass_all
7772 lt_cv_deplibs_check_method=pass_all
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7778 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7782 if test "$build" = "$host"; then
7785 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7788 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7794 file_magic_cmd=$lt_cv_file_magic_cmd
7795 deplibs_check_method=$lt_cv_deplibs_check_method
7796 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_DLLTOOL+:} false; then :
7825 $as_echo_n "(cached) " >&6
7827 if test -n "$DLLTOOL"; then
7828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 DLLTOOL=$ac_cv_prog_DLLTOOL
7848 if test -n "$DLLTOOL"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7850 $as_echo "$DLLTOOL" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7858 if test -z "$ac_cv_prog_DLLTOOL"; then
7859 ac_ct_DLLTOOL=$DLLTOOL
7860 # Extract the first word of "dlltool", so it can be a program name with args.
7861 set dummy dlltool; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7865 $as_echo_n "(cached) " >&6
7867 if test -n "$ac_ct_DLLTOOL"; then
7868 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7888 if test -n "$ac_ct_DLLTOOL"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7890 $as_echo "$ac_ct_DLLTOOL" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7896 if test "x$ac_ct_DLLTOOL" = x; then
7899 case $cross_compiling:$ac_tool_warned in
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903 ac_tool_warned=yes ;;
7905 DLLTOOL=$ac_ct_DLLTOOL
7908 DLLTOOL="$ac_cv_prog_DLLTOOL"
7911 test -z "$DLLTOOL" && DLLTOOL=dlltool
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7920 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7921 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7922 $as_echo_n "(cached) " >&6
7924 lt_cv_sharedlib_from_linklib_cmd='unknown'
7927 cygwin* | mingw* | pw32* | cegcc*)
7928 # two different shell functions defined in ltmain.sh
7929 # decide which to use based on capabilities of $DLLTOOL
7930 case `$DLLTOOL --help 2>&1` in
7931 *--identify-strict*)
7932 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7935 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7940 # fallback: assume linklib IS sharedlib
7941 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7947 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7948 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7949 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7957 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_AR+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 if test -n "$AR"; then
7968 ac_cv_prog_AR="$AR" # Let the user override the test.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 if test -n "$AR"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7990 $as_echo "$AR" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7997 test -n "$AR" && break
8000 if test -z "$AR"; then
8004 # Extract the first word of "$ac_prog", so it can be a program name with args.
8005 set dummy $ac_prog; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8009 $as_echo_n "(cached) " >&6
8011 if test -n "$ac_ct_AR"; then
8012 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_ac_ct_AR="$ac_prog"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8032 if test -n "$ac_ct_AR"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8034 $as_echo "$ac_ct_AR" >&6; }
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8041 test -n "$ac_ct_AR" && break
8044 if test "x$ac_ct_AR" = x; then
8047 case $cross_compiling:$ac_tool_warned in
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8071 $as_echo_n "checking for archiver @FILE support... " >&6; }
8072 if ${lt_cv_ar_at_file+:} false; then :
8073 $as_echo_n "(cached) " >&6
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087 echo conftest.$ac_objext > conftest.lst
8088 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8090 (eval $lt_ar_try) 2>&5
8092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093 test $ac_status = 0; }
8094 if test "$ac_status" -eq 0; then
8095 # Ensure the archiver fails upon bogus file names.
8096 rm -f conftest.$ac_objext libconftest.a
8097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8098 (eval $lt_ar_try) 2>&5
8100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8101 test $ac_status = 0; }
8102 if test "$ac_status" -ne 0; then
8106 rm -f conftest.* libconftest.a
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8113 $as_echo "$lt_cv_ar_at_file" >&6; }
8115 if test "x$lt_cv_ar_at_file" = xno; then
8118 archiver_list_spec=$lt_cv_ar_at_file
8127 if test -n "$ac_tool_prefix"; then
8128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8129 set dummy ${ac_tool_prefix}strip; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if ${ac_cv_prog_STRIP+:} false; then :
8133 $as_echo_n "(cached) " >&6
8135 if test -n "$STRIP"; then
8136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 STRIP=$ac_cv_prog_STRIP
8156 if test -n "$STRIP"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8158 $as_echo "$STRIP" >&6; }
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8166 if test -z "$ac_cv_prog_STRIP"; then
8168 # Extract the first word of "strip", so it can be a program name with args.
8169 set dummy strip; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8173 $as_echo_n "(cached) " >&6
8175 if test -n "$ac_ct_STRIP"; then
8176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185 ac_cv_prog_ac_ct_STRIP="strip"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8196 if test -n "$ac_ct_STRIP"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8198 $as_echo "$ac_ct_STRIP" >&6; }
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8204 if test "x$ac_ct_STRIP" = x; then
8207 case $cross_compiling:$ac_tool_warned in
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8211 ac_tool_warned=yes ;;
8216 STRIP="$ac_cv_prog_STRIP"
8219 test -z "$STRIP" && STRIP=:
8226 if test -n "$ac_tool_prefix"; then
8227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if ${ac_cv_prog_RANLIB+:} false; then :
8232 $as_echo_n "(cached) " >&6
8234 if test -n "$RANLIB"; then
8235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 RANLIB=$ac_cv_prog_RANLIB
8255 if test -n "$RANLIB"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8257 $as_echo "$RANLIB" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8265 if test -z "$ac_cv_prog_RANLIB"; then
8266 ac_ct_RANLIB=$RANLIB
8267 # Extract the first word of "ranlib", so it can be a program name with args.
8268 set dummy ranlib; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8272 $as_echo_n "(cached) " >&6
8274 if test -n "$ac_ct_RANLIB"; then
8275 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_ac_ct_RANLIB="ranlib"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8295 if test -n "$ac_ct_RANLIB"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8297 $as_echo "$ac_ct_RANLIB" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8303 if test "x$ac_ct_RANLIB" = x; then
8306 case $cross_compiling:$ac_tool_warned in
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8310 ac_tool_warned=yes ;;
8312 RANLIB=$ac_ct_RANLIB
8315 RANLIB="$ac_cv_prog_RANLIB"
8318 test -z "$RANLIB" && RANLIB=:
8325 # Determine commands to create old-style static archives.
8326 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8327 old_postinstall_cmds='chmod 644 $oldlib'
8328 old_postuninstall_cmds=
8330 if test -n "$RANLIB"; then
8333 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8336 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8339 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8344 lock_old_archive_extraction=yes ;;
8346 lock_old_archive_extraction=no ;;
8387 # If no C compiler was specified, use CC.
8390 # If no C compiler flags were specified, use CFLAGS.
8391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8393 # Allow CC to be a program name with arguments.
8397 # Check for command to grab the raw symbol name followed by C symbol from nm.
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8399 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8400 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8401 $as_echo_n "(cached) " >&6
8404 # These are sane defaults that work on at least a few old systems.
8405 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8407 # Character class describing NM global symbol codes.
8408 symcode='[BCDEGRST]'
8410 # Regexp to match symbols that can be accessed directly from C.
8411 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8413 # Define system-specific variables.
8418 cygwin* | mingw* | pw32* | cegcc*)
8419 symcode='[ABCDGISTW]'
8422 if test "$host_cpu" = ia64; then
8423 symcode='[ABCDEGRST]'
8427 symcode='[BCDEGRST]'
8430 symcode='[BCDEGQRST]'
8441 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8449 # If we're using GNU nm, then use its standard symbol codes.
8450 case `$NM -V 2>&1` in
8451 *GNU* | *'with BFD'*)
8452 symcode='[ABCDGIRSTW]' ;;
8455 # Transform an extracted symbol line into a proper C declaration.
8456 # Some systems (esp. on ia64) link data and code symbols differently,
8457 # so use this general approach.
8458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8460 # Transform an extracted symbol line into symbol name and symbol address
8461 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8462 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8464 # Handle CRLF in mingw tool chain
8468 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8472 # Try without a prefix underscore, then with it.
8473 for ac_symprfx in "" "_"; do
8475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8476 symxfrm="\\1 $ac_symprfx\\2 \\2"
8478 # Write the raw and C identifiers.
8479 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8480 # Fake it for dumpbin and say T for any non-static function
8481 # and D for any global variable.
8482 # Also find C++ and __fastcall symbols from MSVC++,
8483 # which start with @ or ?.
8484 lt_cv_sys_global_symbol_pipe="$AWK '"\
8485 " {last_section=section; section=\$ 3};"\
8486 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8487 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8488 " \$ 0!~/External *\|/{next};"\
8489 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8490 " {if(hide[section]) next};"\
8491 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8492 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8493 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8494 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8495 " ' prfx=^$ac_symprfx"
8497 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8499 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8501 # Check to see that the pipe works correctly.
8505 cat > conftest.$ac_ext <<_LT_EOF
8510 void nm_test_func(void);
8511 void nm_test_func(void){}
8515 int main(){nm_test_var='a';nm_test_func();return(0);}
8518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8519 (eval $ac_compile) 2>&5
8521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8522 test $ac_status = 0; }; then
8523 # Now try to grab the symbols.
8525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8526 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8529 test $ac_status = 0; } && test -s "$nlist"; then
8530 # Try sorting and uniquifying the output.
8531 if sort "$nlist" | uniq > "$nlist"T; then
8532 mv -f "$nlist"T "$nlist"
8537 # Make sure that we snagged all the symbols we need.
8538 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8539 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8540 cat <<_LT_EOF > conftest.$ac_ext
8541 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8542 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8543 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8544 relocations are performed -- see ld's documentation on pseudo-relocs. */
8545 # define LT_DLSYM_CONST
8546 #elif defined(__osf__)
8547 /* This system does not cope well with relocations in const data. */
8548 # define LT_DLSYM_CONST
8550 # define LT_DLSYM_CONST const
8558 # Now generate the symbol file.
8559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8561 cat <<_LT_EOF >> conftest.$ac_ext
8563 /* The mapping between symbol names and symbols. */
8564 LT_DLSYM_CONST struct {
8568 lt__PROGRAM__LTX_preloaded_symbols[] =
8570 { "@PROGRAM@", (void *) 0 },
8572 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8573 cat <<\_LT_EOF >> conftest.$ac_ext
8577 /* This works around a problem in FreeBSD linker */
8578 #ifdef FREEBSD_WORKAROUND
8579 static const void *lt_preloaded_setup() {
8580 return lt__PROGRAM__LTX_preloaded_symbols;
8588 # Now try linking the two files.
8589 mv -f conftest.$ac_objext conftstm.$ac_objext
8590 lt_globsym_save_LIBS=$LIBS
8591 lt_globsym_save_CFLAGS=$CFLAGS
8592 LIBS="conftstm.$ac_objext"
8593 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8595 (eval $ac_link) 2>&5
8597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8598 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8601 LIBS=$lt_globsym_save_LIBS
8602 CFLAGS=$lt_globsym_save_CFLAGS
8604 echo "cannot find nm_test_func in $nlist" >&5
8607 echo "cannot find nm_test_var in $nlist" >&5
8610 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8613 echo "$progname: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8616 rm -rf conftest* conftst*
8618 # Do not use the global_symbol_pipe unless it works.
8619 if test "$pipe_works" = yes; then
8622 lt_cv_sys_global_symbol_pipe=
8628 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8629 lt_cv_sys_global_symbol_to_cdecl=
8631 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8633 $as_echo "failed" >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8636 $as_echo "ok" >&6; }
8639 # Response file support.
8640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8641 nm_file_list_spec='@'
8642 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8643 nm_file_list_spec='@'
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8673 $as_echo_n "checking for sysroot... " >&6; }
8675 # Check whether --with-sysroot was given.
8676 if test "${with_sysroot+set}" = set; then :
8677 withval=$with_sysroot;
8684 case ${with_sysroot} in #(
8686 if test "$GCC" = yes; then
8687 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8691 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8697 $as_echo "${with_sysroot}" >&6; }
8698 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8703 $as_echo "${lt_sysroot:-no}" >&6; }
8709 # Check whether --enable-libtool-lock was given.
8710 if test "${enable_libtool_lock+set}" = set; then :
8711 enableval=$enable_libtool_lock;
8714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8716 # Some flags need to be propagated to the compiler or linker for good
8720 # Find out which ABI we are using.
8721 echo 'int i;' > conftest.$ac_ext
8722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8723 (eval $ac_compile) 2>&5
8725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8726 test $ac_status = 0; }; then
8727 case `/usr/bin/file conftest.$ac_objext` in
8739 # Find out which ABI we are using.
8740 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8742 (eval $ac_compile) 2>&5
8744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8745 test $ac_status = 0; }; then
8746 if test "$lt_cv_prog_gnu_ld" = yes; then
8747 case `/usr/bin/file conftest.$ac_objext` in
8749 LD="${LD-ld} -melf32bsmip"
8752 LD="${LD-ld} -melf32bmipn32"
8755 LD="${LD-ld} -melf64bmip"
8759 case `/usr/bin/file conftest.$ac_objext` in
8775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8777 # Find out which ABI we are using.
8778 echo 'int i;' > conftest.$ac_ext
8779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8780 (eval $ac_compile) 2>&5
8782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783 test $ac_status = 0; }; then
8784 case `/usr/bin/file conftest.o` in
8787 x86_64-*kfreebsd*-gnu)
8788 LD="${LD-ld} -m elf_i386_fbsd"
8791 case `/usr/bin/file conftest.o` in
8793 LD="${LD-ld} -m elf32_x86_64"
8796 LD="${LD-ld} -m elf_i386"
8800 ppc64-*linux*|powerpc64-*linux*)
8801 LD="${LD-ld} -m elf32ppclinux"
8804 LD="${LD-ld} -m elf_s390"
8807 LD="${LD-ld} -m elf32_sparc"
8813 x86_64-*kfreebsd*-gnu)
8814 LD="${LD-ld} -m elf_x86_64_fbsd"
8817 LD="${LD-ld} -m elf_x86_64"
8819 ppc*-*linux*|powerpc*-*linux*)
8820 LD="${LD-ld} -m elf64ppc"
8822 s390*-*linux*|s390*-*tpf*)
8823 LD="${LD-ld} -m elf64_s390"
8826 LD="${LD-ld} -m elf64_sparc"
8836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8837 SAVE_CFLAGS="$CFLAGS"
8838 CFLAGS="$CFLAGS -belf"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8840 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8841 if ${lt_cv_cc_needs_belf+:} false; then :
8842 $as_echo_n "(cached) " >&6
8845 ac_cpp='$CPP $CPPFLAGS'
8846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8860 if ac_fn_c_try_link "$LINENO"; then :
8861 lt_cv_cc_needs_belf=yes
8863 lt_cv_cc_needs_belf=no
8865 rm -f core conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8868 ac_cpp='$CPP $CPPFLAGS'
8869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8875 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8876 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8878 CFLAGS="$SAVE_CFLAGS"
8882 # Find out which ABI we are using.
8883 echo 'int i;' > conftest.$ac_ext
8884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8885 (eval $ac_compile) 2>&5
8887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8888 test $ac_status = 0; }; then
8889 case `/usr/bin/file conftest.o` in
8891 case $lt_cv_prog_gnu_ld in
8895 LD="${LD-ld} -m elf_x86_64"
8898 LD="${LD-ld} -m elf64_sparc"
8901 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8902 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8907 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8919 need_locks="$enable_libtool_lock"
8921 if test -n "$ac_tool_prefix"; then
8922 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8923 set dummy ${ac_tool_prefix}mt; ac_word=$2
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925 $as_echo_n "checking for $ac_word... " >&6; }
8926 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8927 $as_echo_n "(cached) " >&6
8929 if test -n "$MANIFEST_TOOL"; then
8930 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8950 if test -n "$MANIFEST_TOOL"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8952 $as_echo "$MANIFEST_TOOL" >&6; }
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8960 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8961 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8962 # Extract the first word of "mt", so it can be a program name with args.
8963 set dummy mt; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8967 $as_echo_n "(cached) " >&6
8969 if test -n "$ac_ct_MANIFEST_TOOL"; then
8970 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8990 if test -n "$ac_ct_MANIFEST_TOOL"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8992 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8998 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9001 case $cross_compiling:$ac_tool_warned in
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9005 ac_tool_warned=yes ;;
9007 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9010 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9013 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9015 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9016 if ${lt_cv_path_mainfest_tool+:} false; then :
9017 $as_echo_n "(cached) " >&6
9019 lt_cv_path_mainfest_tool=no
9020 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9021 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9022 cat conftest.err >&5
9023 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9024 lt_cv_path_mainfest_tool=yes
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9029 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9030 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9040 rhapsody* | darwin*)
9041 if test -n "$ac_tool_prefix"; then
9042 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9047 $as_echo_n "(cached) " >&6
9049 if test -n "$DSYMUTIL"; then
9050 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9070 if test -n "$DSYMUTIL"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9072 $as_echo "$DSYMUTIL" >&6; }
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9080 if test -z "$ac_cv_prog_DSYMUTIL"; then
9081 ac_ct_DSYMUTIL=$DSYMUTIL
9082 # Extract the first word of "dsymutil", so it can be a program name with args.
9083 set dummy dsymutil; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9087 $as_echo_n "(cached) " >&6
9089 if test -n "$ac_ct_DSYMUTIL"; then
9090 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9110 if test -n "$ac_ct_DSYMUTIL"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9112 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9118 if test "x$ac_ct_DSYMUTIL" = x; then
9121 case $cross_compiling:$ac_tool_warned in
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125 ac_tool_warned=yes ;;
9127 DSYMUTIL=$ac_ct_DSYMUTIL
9130 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9133 if test -n "$ac_tool_prefix"; then
9134 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9135 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_NMEDIT+:} false; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$NMEDIT"; then
9142 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 NMEDIT=$ac_cv_prog_NMEDIT
9162 if test -n "$NMEDIT"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9164 $as_echo "$NMEDIT" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9172 if test -z "$ac_cv_prog_NMEDIT"; then
9173 ac_ct_NMEDIT=$NMEDIT
9174 # Extract the first word of "nmedit", so it can be a program name with args.
9175 set dummy nmedit; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 if test -n "$ac_ct_NMEDIT"; then
9182 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9202 if test -n "$ac_ct_NMEDIT"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9204 $as_echo "$ac_ct_NMEDIT" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9210 if test "x$ac_ct_NMEDIT" = x; then
9213 case $cross_compiling:$ac_tool_warned in
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9217 ac_tool_warned=yes ;;
9219 NMEDIT=$ac_ct_NMEDIT
9222 NMEDIT="$ac_cv_prog_NMEDIT"
9225 if test -n "$ac_tool_prefix"; then
9226 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9227 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_LIPO+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 if test -n "$LIPO"; then
9234 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 LIPO=$ac_cv_prog_LIPO
9254 if test -n "$LIPO"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9256 $as_echo "$LIPO" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9264 if test -z "$ac_cv_prog_LIPO"; then
9266 # Extract the first word of "lipo", so it can be a program name with args.
9267 set dummy lipo; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9271 $as_echo_n "(cached) " >&6
9273 if test -n "$ac_ct_LIPO"; then
9274 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_ac_ct_LIPO="lipo"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9294 if test -n "$ac_ct_LIPO"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9296 $as_echo "$ac_ct_LIPO" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9302 if test "x$ac_ct_LIPO" = x; then
9305 case $cross_compiling:$ac_tool_warned in
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309 ac_tool_warned=yes ;;
9314 LIPO="$ac_cv_prog_LIPO"
9317 if test -n "$ac_tool_prefix"; then
9318 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9319 set dummy ${ac_tool_prefix}otool; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_prog_OTOOL+:} false; then :
9323 $as_echo_n "(cached) " >&6
9325 if test -n "$OTOOL"; then
9326 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 OTOOL=$ac_cv_prog_OTOOL
9346 if test -n "$OTOOL"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9348 $as_echo "$OTOOL" >&6; }
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9356 if test -z "$ac_cv_prog_OTOOL"; then
9358 # Extract the first word of "otool", so it can be a program name with args.
9359 set dummy otool; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9363 $as_echo_n "(cached) " >&6
9365 if test -n "$ac_ct_OTOOL"; then
9366 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375 ac_cv_prog_ac_ct_OTOOL="otool"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9386 if test -n "$ac_ct_OTOOL"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9388 $as_echo "$ac_ct_OTOOL" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9394 if test "x$ac_ct_OTOOL" = x; then
9397 case $cross_compiling:$ac_tool_warned in
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401 ac_tool_warned=yes ;;
9406 OTOOL="$ac_cv_prog_OTOOL"
9409 if test -n "$ac_tool_prefix"; then
9410 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9411 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if ${ac_cv_prog_OTOOL64+:} false; then :
9415 $as_echo_n "(cached) " >&6
9417 if test -n "$OTOOL64"; then
9418 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 OTOOL64=$ac_cv_prog_OTOOL64
9438 if test -n "$OTOOL64"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9440 $as_echo "$OTOOL64" >&6; }
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9448 if test -z "$ac_cv_prog_OTOOL64"; then
9449 ac_ct_OTOOL64=$OTOOL64
9450 # Extract the first word of "otool64", so it can be a program name with args.
9451 set dummy otool64; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9455 $as_echo_n "(cached) " >&6
9457 if test -n "$ac_ct_OTOOL64"; then
9458 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467 ac_cv_prog_ac_ct_OTOOL64="otool64"
9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9478 if test -n "$ac_ct_OTOOL64"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9480 $as_echo "$ac_ct_OTOOL64" >&6; }
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9486 if test "x$ac_ct_OTOOL64" = x; then
9489 case $cross_compiling:$ac_tool_warned in
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9493 ac_tool_warned=yes ;;
9495 OTOOL64=$ac_ct_OTOOL64
9498 OTOOL64="$ac_cv_prog_OTOOL64"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9528 $as_echo_n "checking for -single_module linker flag... " >&6; }
9529 if ${lt_cv_apple_cc_single_mod+:} false; then :
9530 $as_echo_n "(cached) " >&6
9532 lt_cv_apple_cc_single_mod=no
9533 if test -z "${LT_MULTI_MODULE}"; then
9534 # By default we will add the -single_module flag. You can override
9535 # by either setting the environment variable LT_MULTI_MODULE
9536 # non-empty at configure time, or by adding -multi_module to the
9538 rm -rf libconftest.dylib*
9539 echo "int foo(void){return 1;}" > conftest.c
9540 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9541 -dynamiclib -Wl,-single_module conftest.c" >&5
9542 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9543 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9545 # If there is a non-empty error log, and "single_module"
9546 # appears in it, assume the flag caused a linker warning
9547 if test -s conftest.err && $GREP single_module conftest.err; then
9548 cat conftest.err >&5
9549 # Otherwise, if the output was created with a 0 exit code from
9550 # the compiler, it worked.
9551 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9552 lt_cv_apple_cc_single_mod=yes
9554 cat conftest.err >&5
9556 rm -rf libconftest.dylib*
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9561 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9564 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9565 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9566 $as_echo_n "(cached) " >&6
9568 lt_cv_ld_exported_symbols_list=no
9569 save_LDFLAGS=$LDFLAGS
9570 echo "_main" > conftest.sym
9571 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9582 if ac_fn_c_try_link "$LINENO"; then :
9583 lt_cv_ld_exported_symbols_list=yes
9585 lt_cv_ld_exported_symbols_list=no
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LDFLAGS="$save_LDFLAGS"
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9593 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9596 $as_echo_n "checking for -force_load linker flag... " >&6; }
9597 if ${lt_cv_ld_force_load+:} false; then :
9598 $as_echo_n "(cached) " >&6
9600 lt_cv_ld_force_load=no
9601 cat > conftest.c << _LT_EOF
9602 int forced_loaded() { return 2;}
9604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9606 echo "$AR cru libconftest.a conftest.o" >&5
9607 $AR cru libconftest.a conftest.o 2>&5
9608 echo "$RANLIB libconftest.a" >&5
9609 $RANLIB libconftest.a 2>&5
9610 cat > conftest.c << _LT_EOF
9611 int main() { return 0;}
9613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9616 if test -s conftest.err && $GREP force_load conftest.err; then
9617 cat conftest.err >&5
9618 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9619 lt_cv_ld_force_load=yes
9621 cat conftest.err >&5
9623 rm -f conftest.err libconftest.a conftest conftest.c
9624 rm -rf conftest.dSYM
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9628 $as_echo "$lt_cv_ld_force_load" >&6; }
9630 rhapsody* | darwin1.[012])
9631 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9633 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9634 darwin*) # darwin 5.x on
9635 # if running on 10.5 or later, the deployment target defaults
9636 # to the OS version, if on x86, and 10.4, the deployment
9637 # target defaults to 10.4. Don't you love it?
9638 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9639 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9642 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9644 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9648 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9649 _lt_dar_single_mod='$single_module'
9651 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9652 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9654 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9656 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9657 _lt_dsymutil='~$DSYMUTIL $lib || :'
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9665 $as_echo_n "checking for ANSI C header files... " >&6; }
9666 if ${ac_cv_header_stdc+:} false; then :
9667 $as_echo_n "(cached) " >&6
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9683 if ac_fn_c_try_compile "$LINENO"; then :
9684 ac_cv_header_stdc=yes
9686 ac_cv_header_stdc=no
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690 if test $ac_cv_header_stdc = yes; then
9691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9698 $EGREP "memchr" >/dev/null 2>&1; then :
9701 ac_cv_header_stdc=no
9707 if test $ac_cv_header_stdc = yes; then
9708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9715 $EGREP "free" >/dev/null 2>&1; then :
9718 ac_cv_header_stdc=no
9724 if test $ac_cv_header_stdc = yes; then
9725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9726 if test "$cross_compiling" = yes; then :
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9733 #if ((' ' & 0x0FF) == 0x020)
9734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9737 # define ISLOWER(c) \
9738 (('a' <= (c) && (c) <= 'i') \
9739 || ('j' <= (c) && (c) <= 'r') \
9740 || ('s' <= (c) && (c) <= 'z'))
9741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9749 for (i = 0; i < 256; i++)
9750 if (XOR (islower (i), ISLOWER (i))
9751 || toupper (i) != TOUPPER (i))
9756 if ac_fn_c_try_run "$LINENO"; then :
9759 ac_cv_header_stdc=no
9761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9762 conftest.$ac_objext conftest.beam conftest.$ac_ext
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9768 $as_echo "$ac_cv_header_stdc" >&6; }
9769 if test $ac_cv_header_stdc = yes; then
9771 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9775 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9776 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9777 inttypes.h stdint.h unistd.h
9779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9783 cat >>confdefs.h <<_ACEOF
9784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9792 for ac_header in dlfcn.h
9794 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9796 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE_DLFCN_H 1
9805 # ------------------------------------ #
9806 # Determine libtool default behavior #
9807 # ------------------------------------ #
9810 # Default behavior is to enable shared and static libraries on systems
9811 # where libtool knows how to build both library versions, and does not
9812 # require separate configuration and build runs for each flavor.
9815 xc_lt_want_enable_shared='yes'
9816 xc_lt_want_enable_static='yes'
9819 # User may have disabled shared or static libraries.
9821 case "x$enable_shared" in # (
9823 xc_lt_want_enable_shared='no'
9826 case "x$enable_static" in # (
9828 xc_lt_want_enable_static='no'
9831 if test "x$xc_lt_want_enable_shared" = 'xno' &&
9832 test "x$xc_lt_want_enable_static" = 'xno'; then
9833 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
9837 # Default behavior on systems that require independent configuration
9838 # and build runs for shared and static is to enable shared libraries
9839 # and disable static ones. On these systems option '--disable-shared'
9840 # must be used in order to build a proper static library.
9843 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
9844 test "x$xc_lt_want_enable_static" = 'xyes'; then
9845 case $host_os in # (
9846 mingw* | pw32* | cegcc* | os2* | aix*)
9847 xc_lt_want_enable_static='no'
9853 # Make libtool aware of current shared and static library preferences
9854 # taking in account that, depending on host characteristics, libtool
9855 # may modify these option preferences later in this configure script.
9858 enable_shared=$xc_lt_want_enable_shared
9859 enable_static=$xc_lt_want_enable_static
9862 # Default behavior is to build PIC objects for shared libraries and
9863 # non-PIC objects for static libraries.
9866 xc_lt_want_with_pic='default'
9869 # User may have specified PIC preference.
9872 case "x$with_pic" in # ((
9874 xc_lt_want_with_pic='no'
9877 xc_lt_want_with_pic='yes'
9882 # Default behavior on some systems where building a shared library out
9883 # of non-PIC compiled objects will fail with following linker error
9884 # "relocation R_X86_64_32 can not be used when making a shared object"
9885 # is to build PIC objects even for static libraries. This behavior may
9886 # be overriden using 'configure --disable-shared --without-pic'.
9889 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
9890 case $host_cpu in # (
9891 x86_64 | amd64 | ia64)
9892 case $host_os in # (
9894 xc_lt_want_with_pic='yes'
9902 # Make libtool aware of current PIC preference taking in account that,
9903 # depending on host characteristics, libtool may modify PIC default
9904 # behavior to fit host system idiosyncrasies later in this script.
9907 with_pic=$xc_lt_want_with_pic
9909 ## ----------------------- ##
9910 ## Start of libtool code ##
9911 ## ----------------------- ##
9917 enable_win32_dll=yes
9920 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9921 if test -n "$ac_tool_prefix"; then
9922 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9923 set dummy ${ac_tool_prefix}as; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if ${ac_cv_prog_AS+:} false; then :
9927 $as_echo_n "(cached) " >&6
9929 if test -n "$AS"; then
9930 ac_cv_prog_AS="$AS" # Let the user override the test.
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9939 ac_cv_prog_AS="${ac_tool_prefix}as"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 if test -n "$AS"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9952 $as_echo "$AS" >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9960 if test -z "$ac_cv_prog_AS"; then
9962 # Extract the first word of "as", so it can be a program name with args.
9963 set dummy as; ac_word=$2
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965 $as_echo_n "checking for $ac_word... " >&6; }
9966 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9967 $as_echo_n "(cached) " >&6
9969 if test -n "$ac_ct_AS"; then
9970 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_prog_ac_ct_AS="as"
9980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9990 if test -n "$ac_ct_AS"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9992 $as_echo "$ac_ct_AS" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9998 if test "x$ac_ct_AS" = x; then
10001 case $cross_compiling:$ac_tool_warned in
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10005 ac_tool_warned=yes ;;
10010 AS="$ac_cv_prog_AS"
10013 if test -n "$ac_tool_prefix"; then
10014 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10015 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_prog_DLLTOOL+:} false; then :
10019 $as_echo_n "(cached) " >&6
10021 if test -n "$DLLTOOL"; then
10022 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 DLLTOOL=$ac_cv_prog_DLLTOOL
10042 if test -n "$DLLTOOL"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10044 $as_echo "$DLLTOOL" >&6; }
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10052 if test -z "$ac_cv_prog_DLLTOOL"; then
10053 ac_ct_DLLTOOL=$DLLTOOL
10054 # Extract the first word of "dlltool", so it can be a program name with args.
10055 set dummy dlltool; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10059 $as_echo_n "(cached) " >&6
10061 if test -n "$ac_ct_DLLTOOL"; then
10062 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10082 if test -n "$ac_ct_DLLTOOL"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10084 $as_echo "$ac_ct_DLLTOOL" >&6; }
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10090 if test "x$ac_ct_DLLTOOL" = x; then
10093 case $cross_compiling:$ac_tool_warned in
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10097 ac_tool_warned=yes ;;
10099 DLLTOOL=$ac_ct_DLLTOOL
10102 DLLTOOL="$ac_cv_prog_DLLTOOL"
10105 if test -n "$ac_tool_prefix"; then
10106 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10107 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109 $as_echo_n "checking for $ac_word... " >&6; }
10110 if ${ac_cv_prog_OBJDUMP+:} false; then :
10111 $as_echo_n "(cached) " >&6
10113 if test -n "$OBJDUMP"; then
10114 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117 for as_dir in $PATH
10120 test -z "$as_dir" && as_dir=.
10121 for ac_exec_ext in '' $ac_executable_extensions; do
10122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10123 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 OBJDUMP=$ac_cv_prog_OBJDUMP
10134 if test -n "$OBJDUMP"; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10136 $as_echo "$OBJDUMP" >&6; }
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10144 if test -z "$ac_cv_prog_OBJDUMP"; then
10145 ac_ct_OBJDUMP=$OBJDUMP
10146 # Extract the first word of "objdump", so it can be a program name with args.
10147 set dummy objdump; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10151 $as_echo_n "(cached) " >&6
10153 if test -n "$ac_ct_OBJDUMP"; then
10154 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10174 if test -n "$ac_ct_OBJDUMP"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10176 $as_echo "$ac_ct_OBJDUMP" >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10182 if test "x$ac_ct_OBJDUMP" = x; then
10185 case $cross_compiling:$ac_tool_warned in
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10189 ac_tool_warned=yes ;;
10191 OBJDUMP=$ac_ct_OBJDUMP
10194 OBJDUMP="$ac_cv_prog_OBJDUMP"
10200 test -z "$AS" && AS=as
10206 test -z "$DLLTOOL" && DLLTOOL=dlltool
10212 test -z "$OBJDUMP" && OBJDUMP=objdump
10224 # Check whether --enable-shared was given.
10225 if test "${enable_shared+set}" = set; then :
10226 enableval=$enable_shared; p=${PACKAGE-default}
10228 yes) enable_shared=yes ;;
10229 no) enable_shared=no ;;
10232 # Look at the argument we got. We use all the common list separators.
10233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10234 for pkg in $enableval; do
10236 if test "X$pkg" = "X$p"; then
10255 # Check whether --enable-static was given.
10256 if test "${enable_static+set}" = set; then :
10257 enableval=$enable_static; p=${PACKAGE-default}
10259 yes) enable_static=yes ;;
10260 no) enable_static=no ;;
10263 # Look at the argument we got. We use all the common list separators.
10264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10265 for pkg in $enableval; do
10267 if test "X$pkg" = "X$p"; then
10287 # Check whether --with-pic was given.
10288 if test "${with_pic+set}" = set; then :
10289 withval=$with_pic; lt_p=${PACKAGE-default}
10291 yes|no) pic_mode=$withval ;;
10294 # Look at the argument we got. We use all the common list separators.
10295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10296 for lt_pkg in $withval; do
10298 if test "X$lt_pkg" = "X$lt_p"; then
10310 test -z "$pic_mode" && pic_mode=default
10318 # Check whether --enable-fast-install was given.
10319 if test "${enable_fast_install+set}" = set; then :
10320 enableval=$enable_fast_install; p=${PACKAGE-default}
10322 yes) enable_fast_install=yes ;;
10323 no) enable_fast_install=no ;;
10325 enable_fast_install=no
10326 # Look at the argument we got. We use all the common list separators.
10327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10328 for pkg in $enableval; do
10330 if test "X$pkg" = "X$p"; then
10331 enable_fast_install=yes
10338 enable_fast_install=yes
10351 # This can be used to rebuild libtool when needed
10352 LIBTOOL_DEPS="$ltmain"
10354 # Always use our own libtool.
10355 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10386 test -z "$LN_S" && LN_S="ln -s"
10401 if test -n "${ZSH_VERSION+set}" ; then
10402 setopt NO_GLOB_SUBST
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10406 $as_echo_n "checking for objdir... " >&6; }
10407 if ${lt_cv_objdir+:} false; then :
10408 $as_echo_n "(cached) " >&6
10410 rm -f .libs 2>/dev/null
10411 mkdir .libs 2>/dev/null
10412 if test -d .libs; then
10415 # MS-DOS does not allow filenames that begin with a dot.
10418 rmdir .libs 2>/dev/null
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10421 $as_echo "$lt_cv_objdir" >&6; }
10422 objdir=$lt_cv_objdir
10428 cat >>confdefs.h <<_ACEOF
10429 #define LT_OBJDIR "$lt_cv_objdir/"
10437 # AIX sometimes has problems with the GCC collect2 program. For some
10438 # reason, if we set the COLLECT_NAMES environment variable, the problems
10439 # vanish in a puff of smoke.
10440 if test "X${COLLECT_NAMES+set}" != Xset; then
10442 export COLLECT_NAMES
10447 # Global variables:
10449 can_build_shared=yes
10451 # All known linkers require a `.a' archive for static linking (except MSVC,
10452 # which needs '.lib').
10455 with_gnu_ld="$lt_cv_prog_gnu_ld"
10458 old_CFLAGS="$CFLAGS"
10460 # Set sane defaults for various variables
10461 test -z "$CC" && CC=cc
10462 test -z "$LTCC" && LTCC=$CC
10463 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10464 test -z "$LD" && LD=ld
10465 test -z "$ac_objext" && ac_objext=o
10467 for cc_temp in $compiler""; do
10469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10475 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10478 # Only perform the check for file, if the check method requires it
10479 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10480 case $deplibs_check_method in
10482 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10484 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10485 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10486 $as_echo_n "(cached) " >&6
10490 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10493 lt_save_MAGIC_CMD="$MAGIC_CMD"
10494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10495 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10496 for ac_dir in $ac_dummy; do
10498 test -z "$ac_dir" && ac_dir=.
10499 if test -f $ac_dir/${ac_tool_prefix}file; then
10500 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10501 if test -n "$file_magic_test_file"; then
10502 case $deplibs_check_method in
10504 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10507 $EGREP "$file_magic_regex" > /dev/null; then
10512 *** Warning: the command libtool uses to detect shared libraries,
10513 *** $file_magic_cmd, produces output that libtool cannot recognize.
10514 *** The result is that libtool may fail to recognize shared libraries
10515 *** as such. This will affect the creation of libtool libraries that
10516 *** depend on shared libraries, but programs linked with such libtool
10517 *** libraries will work regardless of this problem. Nevertheless, you
10518 *** may want to report the problem to your system manager and/or to
10519 *** bug-libtool@gnu.org
10529 MAGIC_CMD="$lt_save_MAGIC_CMD"
10534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10535 if test -n "$MAGIC_CMD"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10537 $as_echo "$MAGIC_CMD" >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10547 if test -z "$lt_cv_path_MAGIC_CMD"; then
10548 if test -n "$ac_tool_prefix"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10550 $as_echo_n "checking for file... " >&6; }
10551 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10552 $as_echo_n "(cached) " >&6
10556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10559 lt_save_MAGIC_CMD="$MAGIC_CMD"
10560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10562 for ac_dir in $ac_dummy; do
10564 test -z "$ac_dir" && ac_dir=.
10565 if test -f $ac_dir/file; then
10566 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10567 if test -n "$file_magic_test_file"; then
10568 case $deplibs_check_method in
10570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10573 $EGREP "$file_magic_regex" > /dev/null; then
10578 *** Warning: the command libtool uses to detect shared libraries,
10579 *** $file_magic_cmd, produces output that libtool cannot recognize.
10580 *** The result is that libtool may fail to recognize shared libraries
10581 *** as such. This will affect the creation of libtool libraries that
10582 *** depend on shared libraries, but programs linked with such libtool
10583 *** libraries will work regardless of this problem. Nevertheless, you
10584 *** may want to report the problem to your system manager and/or to
10585 *** bug-libtool@gnu.org
10595 MAGIC_CMD="$lt_save_MAGIC_CMD"
10600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10601 if test -n "$MAGIC_CMD"; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10603 $as_echo "$MAGIC_CMD" >&6; }
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10619 # Use C for the default configuration in the libtool script
10623 ac_cpp='$CPP $CPPFLAGS'
10624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10629 # Source file extension for C test sources.
10632 # Object file extension for compiled C test sources.
10636 # Code to be used in simple compile tests
10637 lt_simple_compile_test_code="int some_variable = 0;"
10639 # Code to be used in simple link tests
10640 lt_simple_link_test_code='int main(){return(0);}'
10648 # If no C compiler was specified, use CC.
10651 # If no C compiler flags were specified, use CFLAGS.
10652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10654 # Allow CC to be a program name with arguments.
10657 # Save the default compiler, since it gets overwritten when the other
10658 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10659 compiler_DEFAULT=$CC
10661 # save warnings/boilerplate of simple test code
10662 ac_outfile=conftest.$ac_objext
10663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10665 _lt_compiler_boilerplate=`cat conftest.err`
10668 ac_outfile=conftest.$ac_objext
10669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10671 _lt_linker_boilerplate=`cat conftest.err`
10676 ## There is no encapsulation within the following macros, do not change
10677 ## the running order or otherwise move them around unless you know exactly
10678 ## what you are doing...
10679 if test -n "$compiler"; then
10681 lt_prog_compiler_no_builtin_flag=
10683 if test "$GCC" = yes; then
10684 case $cc_basename in
10686 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10688 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10692 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10693 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10694 $as_echo_n "(cached) " >&6
10696 lt_cv_prog_compiler_rtti_exceptions=no
10697 ac_outfile=conftest.$ac_objext
10698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10699 lt_compiler_flag="-fno-rtti -fno-exceptions"
10700 # Insert the option either (1) after the last *FLAGS variable, or
10701 # (2) before a word containing "conftest.", or (3) at the end.
10702 # Note that $ac_compile itself does not contain backslashes and begins
10703 # with a dollar sign (not a hyphen), so the echo should work correctly.
10704 # The option is referenced via a variable to avoid confusing sed.
10705 lt_compile=`echo "$ac_compile" | $SED \
10706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10708 -e 's:$: $lt_compiler_flag:'`
10709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10710 (eval "$lt_compile" 2>conftest.err)
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 if (exit $ac_status) && test -s "$ac_outfile"; then
10715 # The compiler can only warn and ignore the option if not recognized
10716 # So say no if there are warnings other than the usual output.
10717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10720 lt_cv_prog_compiler_rtti_exceptions=yes
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10727 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10729 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10730 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10742 lt_prog_compiler_wl=
10743 lt_prog_compiler_pic=
10744 lt_prog_compiler_static=
10747 if test "$GCC" = yes; then
10748 lt_prog_compiler_wl='-Wl,'
10749 lt_prog_compiler_static='-static'
10753 # All AIX code is PIC.
10754 if test "$host_cpu" = ia64; then
10755 # AIX 5 now supports IA64 processor
10756 lt_prog_compiler_static='-Bstatic'
10763 # see comment about AmigaOS4 .so support
10764 lt_prog_compiler_pic='-fPIC'
10767 # FIXME: we need at least 68020 code to build shared libraries, but
10768 # adding the `-m68020' flag to GCC prevents building anything better,
10770 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10775 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10776 # PIC is the default for these OSes.
10779 mingw* | cygwin* | pw32* | os2* | cegcc*)
10780 # This hack is so that the source file can tell whether it is being
10781 # built for inclusion in a dll (and should export symbols for example).
10782 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10783 # (--disable-auto-import) libraries
10784 lt_prog_compiler_pic='-DDLL_EXPORT'
10787 darwin* | rhapsody*)
10788 # PIC is the default on this platform
10789 # Common symbols not allowed in MH_DYLIB files
10790 lt_prog_compiler_pic='-fno-common'
10794 # PIC is the default for Haiku.
10795 # The "-static" flag exists, but is broken.
10796 lt_prog_compiler_static=
10800 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10801 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10802 # sets the default TLS model and affects inlining.
10808 lt_prog_compiler_pic='-fPIC'
10814 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10815 # Instead, we relocate shared libraries at runtime.
10819 # Just because we use GCC doesn't mean we suddenly get shared libraries
10820 # on systems that don't support them.
10821 lt_prog_compiler_can_build_shared=no
10826 # QNX uses GNU C++, but need to define -shared option too, otherwise
10827 # it will coredump.
10828 lt_prog_compiler_pic='-fPIC -shared'
10832 if test -d /usr/nec; then
10833 lt_prog_compiler_pic=-Kconform_pic
10838 lt_prog_compiler_pic='-fPIC'
10842 case $cc_basename in
10843 nvcc*) # Cuda Compiler Driver 2.2
10844 lt_prog_compiler_wl='-Xlinker '
10845 if test -n "$lt_prog_compiler_pic"; then
10846 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10851 # PORTME Check for flag to pass linker flags through the system compiler.
10854 lt_prog_compiler_wl='-Wl,'
10855 if test "$host_cpu" = ia64; then
10856 # AIX 5 now supports IA64 processor
10857 lt_prog_compiler_static='-Bstatic'
10859 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10863 mingw* | cygwin* | pw32* | os2* | cegcc*)
10864 # This hack is so that the source file can tell whether it is being
10865 # built for inclusion in a dll (and should export symbols for example).
10866 lt_prog_compiler_pic='-DDLL_EXPORT'
10869 hpux9* | hpux10* | hpux11*)
10870 lt_prog_compiler_wl='-Wl,'
10871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10872 # not for PA HP-UX.
10878 lt_prog_compiler_pic='+Z'
10881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10882 lt_prog_compiler_static='${wl}-a ${wl}archive'
10885 irix5* | irix6* | nonstopux*)
10886 lt_prog_compiler_wl='-Wl,'
10887 # PIC (with -KPIC) is the default.
10888 lt_prog_compiler_static='-non_shared'
10891 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10892 case $cc_basename in
10893 # old Intel for x86_64 which still supported -KPIC.
10895 lt_prog_compiler_wl='-Wl,'
10896 lt_prog_compiler_pic='-KPIC'
10897 lt_prog_compiler_static='-static'
10899 # icc used to be incompatible with GCC.
10900 # ICC 10 doesn't accept -KPIC any more.
10902 lt_prog_compiler_wl='-Wl,'
10903 lt_prog_compiler_pic='-fPIC'
10904 lt_prog_compiler_static='-static'
10906 # Lahey Fortran 8.1.
10908 lt_prog_compiler_wl='-Wl,'
10909 lt_prog_compiler_pic='--shared'
10910 lt_prog_compiler_static='--static'
10913 # NAG Fortran compiler
10914 lt_prog_compiler_wl='-Wl,-Wl,,'
10915 lt_prog_compiler_pic='-PIC'
10916 lt_prog_compiler_static='-Bstatic'
10918 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10919 # Portland Group compilers (*not* the Pentium gcc compiler,
10920 # which looks to be a dead project)
10921 lt_prog_compiler_wl='-Wl,'
10922 lt_prog_compiler_pic='-fpic'
10923 lt_prog_compiler_static='-Bstatic'
10926 lt_prog_compiler_wl='-Wl,'
10927 # All Alpha code is PIC.
10928 lt_prog_compiler_static='-non_shared'
10930 xl* | bgxl* | bgf* | mpixl*)
10931 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10932 lt_prog_compiler_wl='-Wl,'
10933 lt_prog_compiler_pic='-qpic'
10934 lt_prog_compiler_static='-qstaticlink'
10937 case `$CC -V 2>&1 | sed 5q` in
10938 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10939 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10940 lt_prog_compiler_pic='-KPIC'
10941 lt_prog_compiler_static='-Bstatic'
10942 lt_prog_compiler_wl=''
10944 *Sun\ F* | *Sun*Fortran*)
10945 lt_prog_compiler_pic='-KPIC'
10946 lt_prog_compiler_static='-Bstatic'
10947 lt_prog_compiler_wl='-Qoption ld '
10951 lt_prog_compiler_pic='-KPIC'
10952 lt_prog_compiler_static='-Bstatic'
10953 lt_prog_compiler_wl='-Wl,'
10955 *Intel*\ [CF]*Compiler*)
10956 lt_prog_compiler_wl='-Wl,'
10957 lt_prog_compiler_pic='-fPIC'
10958 lt_prog_compiler_static='-static'
10961 lt_prog_compiler_wl='-Wl,'
10962 lt_prog_compiler_pic='-fpic'
10963 lt_prog_compiler_static='-Bstatic'
10971 lt_prog_compiler_pic='-KPIC'
10972 lt_prog_compiler_static='-Bstatic'
10976 # QNX uses GNU C++, but need to define -shared option too, otherwise
10977 # it will coredump.
10978 lt_prog_compiler_pic='-fPIC -shared'
10981 osf3* | osf4* | osf5*)
10982 lt_prog_compiler_wl='-Wl,'
10983 # All OSF/1 code is PIC.
10984 lt_prog_compiler_static='-non_shared'
10988 lt_prog_compiler_static='-non_shared'
10992 lt_prog_compiler_pic='-KPIC'
10993 lt_prog_compiler_static='-Bstatic'
10994 case $cc_basename in
10995 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10996 lt_prog_compiler_wl='-Qoption ld ';;
10998 lt_prog_compiler_wl='-Wl,';;
11003 lt_prog_compiler_wl='-Qoption ld '
11004 lt_prog_compiler_pic='-PIC'
11005 lt_prog_compiler_static='-Bstatic'
11008 sysv4 | sysv4.2uw2* | sysv4.3*)
11009 lt_prog_compiler_wl='-Wl,'
11010 lt_prog_compiler_pic='-KPIC'
11011 lt_prog_compiler_static='-Bstatic'
11015 if test -d /usr/nec ;then
11016 lt_prog_compiler_pic='-Kconform_pic'
11017 lt_prog_compiler_static='-Bstatic'
11021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11022 lt_prog_compiler_wl='-Wl,'
11023 lt_prog_compiler_pic='-KPIC'
11024 lt_prog_compiler_static='-Bstatic'
11028 lt_prog_compiler_wl='-Wl,'
11029 lt_prog_compiler_can_build_shared=no
11033 lt_prog_compiler_pic='-pic'
11034 lt_prog_compiler_static='-Bstatic'
11038 lt_prog_compiler_can_build_shared=no
11044 # For platforms which do not support PIC, -DPIC is meaningless:
11046 lt_prog_compiler_pic=
11049 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11055 if ${lt_cv_prog_compiler_pic+:} false; then :
11056 $as_echo_n "(cached) " >&6
11058 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11061 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11062 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11065 # Check to make sure the PIC flag actually works.
11067 if test -n "$lt_prog_compiler_pic"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11069 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11070 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11071 $as_echo_n "(cached) " >&6
11073 lt_cv_prog_compiler_pic_works=no
11074 ac_outfile=conftest.$ac_objext
11075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11076 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11077 # Insert the option either (1) after the last *FLAGS variable, or
11078 # (2) before a word containing "conftest.", or (3) at the end.
11079 # Note that $ac_compile itself does not contain backslashes and begins
11080 # with a dollar sign (not a hyphen), so the echo should work correctly.
11081 # The option is referenced via a variable to avoid confusing sed.
11082 lt_compile=`echo "$ac_compile" | $SED \
11083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11085 -e 's:$: $lt_compiler_flag:'`
11086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11087 (eval "$lt_compile" 2>conftest.err)
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 if (exit $ac_status) && test -s "$ac_outfile"; then
11092 # The compiler can only warn and ignore the option if not recognized
11093 # So say no if there are warnings other than the usual output.
11094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11097 lt_cv_prog_compiler_pic_works=yes
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11104 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11106 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11107 case $lt_prog_compiler_pic in
11109 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11112 lt_prog_compiler_pic=
11113 lt_prog_compiler_can_build_shared=no
11129 # Check to make sure the static flag actually works.
11131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11134 if ${lt_cv_prog_compiler_static_works+:} false; then :
11135 $as_echo_n "(cached) " >&6
11137 lt_cv_prog_compiler_static_works=no
11138 save_LDFLAGS="$LDFLAGS"
11139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11142 # The linker can only warn and ignore the option if not recognized
11143 # So say no if there are warnings
11144 if test -s conftest.err; then
11145 # Append any errors to the config.log.
11146 cat conftest.err 1>&5
11147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11149 if diff conftest.exp conftest.er2 >/dev/null; then
11150 lt_cv_prog_compiler_static_works=yes
11153 lt_cv_prog_compiler_static_works=yes
11157 LDFLAGS="$save_LDFLAGS"
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11166 lt_prog_compiler_static=
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11177 if ${lt_cv_prog_compiler_c_o+:} false; then :
11178 $as_echo_n "(cached) " >&6
11180 lt_cv_prog_compiler_c_o=no
11181 $RM -r conftest 2>/dev/null
11185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11187 lt_compiler_flag="-o out/conftest2.$ac_objext"
11188 # Insert the option either (1) after the last *FLAGS variable, or
11189 # (2) before a word containing "conftest.", or (3) at the end.
11190 # Note that $ac_compile itself does not contain backslashes and begins
11191 # with a dollar sign (not a hyphen), so the echo should work correctly.
11192 lt_compile=`echo "$ac_compile" | $SED \
11193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11195 -e 's:$: $lt_compiler_flag:'`
11196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11197 (eval "$lt_compile" 2>out/conftest.err)
11199 cat out/conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11203 # The compiler can only warn and ignore the option if not recognized
11204 # So say no if there are warnings
11205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11208 lt_cv_prog_compiler_c_o=yes
11213 # SGI C++ compiler will create directory out/ii_files/ for
11214 # template instantiation
11215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11216 $RM out/* && rmdir out
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11232 if ${lt_cv_prog_compiler_c_o+:} false; then :
11233 $as_echo_n "(cached) " >&6
11235 lt_cv_prog_compiler_c_o=no
11236 $RM -r conftest 2>/dev/null
11240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11242 lt_compiler_flag="-o out/conftest2.$ac_objext"
11243 # Insert the option either (1) after the last *FLAGS variable, or
11244 # (2) before a word containing "conftest.", or (3) at the end.
11245 # Note that $ac_compile itself does not contain backslashes and begins
11246 # with a dollar sign (not a hyphen), so the echo should work correctly.
11247 lt_compile=`echo "$ac_compile" | $SED \
11248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11250 -e 's:$: $lt_compiler_flag:'`
11251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11252 (eval "$lt_compile" 2>out/conftest.err)
11254 cat out/conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11258 # The compiler can only warn and ignore the option if not recognized
11259 # So say no if there are warnings
11260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11263 lt_cv_prog_compiler_c_o=yes
11268 # SGI C++ compiler will create directory out/ii_files/ for
11269 # template instantiation
11270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11271 $RM out/* && rmdir out
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11283 hard_links="nottested"
11284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11285 # do not overwrite the value of need_locks provided by the user
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11287 $as_echo_n "checking if we can lock with hard links... " >&6; }
11290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11292 ln conftest.a conftest.b 2>&5 || hard_links=no
11293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11295 $as_echo "$hard_links" >&6; }
11296 if test "$hard_links" = no; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11311 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11314 allow_undefined_flag=
11315 always_export_symbols=no
11317 archive_expsym_cmds=
11318 compiler_needs_object=no
11319 enable_shared_with_static_runtimes=no
11320 export_dynamic_flag_spec=
11321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11322 hardcode_automatic=no
11324 hardcode_direct_absolute=no
11325 hardcode_libdir_flag_spec=
11326 hardcode_libdir_separator=
11327 hardcode_minus_L=no
11328 hardcode_shlibpath_var=unsupported
11330 link_all_deplibs=unknown
11332 module_expsym_cmds=
11333 old_archive_from_new_cmds=
11334 old_archive_from_expsyms_cmds=
11335 thread_safe_flag_spec=
11336 whole_archive_flag_spec=
11337 # include_expsyms should be a list of space-separated symbols to be *always*
11338 # included in the symbol list
11340 # exclude_expsyms can be an extended regexp of symbols to exclude
11341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11343 # as well as any symbol that contains `d'.
11344 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11346 # platforms (ab)use it in PIC code, but their linkers get confused if
11347 # the symbol is explicitly referenced. Since portable code cannot
11348 # rely on this symbol name, it's probably fine to never include it in
11349 # preloaded symbol tables.
11350 # Exclude shared library initialization/finalization symbols.
11351 extract_expsyms_cmds=
11354 cygwin* | mingw* | pw32* | cegcc*)
11355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11356 # When not using gcc, we currently assume that we are using
11357 # Microsoft Visual C++.
11358 if test "$GCC" != yes; then
11363 # we just hope/assume this is gcc and not c89 (= MSVC++)
11369 linux* | k*bsd*-gnu | gnu*)
11370 link_all_deplibs=no
11376 # On some targets, GNU ld is compatible enough with the native linker
11377 # that we're better off using the native interface for both.
11378 lt_use_gnu_ld_interface=no
11379 if test "$with_gnu_ld" = yes; then
11382 # The AIX port of GNU ld has always aspired to compatibility
11383 # with the native linker. However, as the warning in the GNU ld
11384 # block says, versions before 2.19.5* couldn't really create working
11385 # shared libraries, regardless of the interface used.
11386 case `$LD -v 2>&1` in
11387 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11388 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11389 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11391 lt_use_gnu_ld_interface=yes
11396 lt_use_gnu_ld_interface=yes
11401 if test "$lt_use_gnu_ld_interface" = yes; then
11402 # If archive_cmds runs LD, not CC, wlarc should be empty
11405 # Set some defaults for GNU ld with shared library support. These
11406 # are reset later if shared libraries are not supported. Putting them
11407 # here allows them to be overridden if necessary.
11408 runpath_var=LD_RUN_PATH
11409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11410 export_dynamic_flag_spec='${wl}--export-dynamic'
11411 # ancient GNU ld didn't support --whole-archive et. al.
11412 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11413 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11415 whole_archive_flag_spec=
11417 supports_anon_versioning=no
11418 case `$LD -v 2>&1` in
11419 *GNU\ gold*) supports_anon_versioning=yes ;;
11420 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11421 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11422 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11423 *\ 2.11.*) ;; # other 2.11 versions
11424 *) supports_anon_versioning=yes ;;
11427 # See if GNU ld supports shared libraries.
11430 # On AIX/PPC, the GNU linker is very broken
11431 if test "$host_cpu" != ia64; then
11435 *** Warning: the GNU linker, at least up to release 2.19, is reported
11436 *** to be unable to reliably create shared libraries on AIX.
11437 *** Therefore, libtool is disabling shared libraries support. If you
11438 *** really care for shared libraries, you may want to install binutils
11439 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11440 *** You will then need to restart the configuration process.
11449 # see comment about AmigaOS4 .so support
11450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11451 archive_expsym_cmds=''
11454 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)'
11455 hardcode_libdir_flag_spec='-L$libdir'
11456 hardcode_minus_L=yes
11462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11463 allow_undefined_flag=unsupported
11464 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11465 # support --undefined. This deserves some investigation. FIXME
11466 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472 cygwin* | mingw* | pw32* | cegcc*)
11473 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11474 # as there is no search path for DLLs.
11475 hardcode_libdir_flag_spec='-L$libdir'
11476 export_dynamic_flag_spec='${wl}--export-all-symbols'
11477 allow_undefined_flag=unsupported
11478 always_export_symbols=no
11479 enable_shared_with_static_runtimes=yes
11480 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'
11481 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11483 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11485 # If the export-symbols file already is a .def file (1st line
11486 # is EXPORTS), use it as is; otherwise, prepend...
11487 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11488 cp $export_symbols $output_objdir/$soname.def;
11490 echo EXPORTS > $output_objdir/$soname.def;
11491 cat $export_symbols >> $output_objdir/$soname.def;
11493 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501 link_all_deplibs=yes
11506 hardcode_shlibpath_var=no
11507 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11508 export_dynamic_flag_spec='${wl}-E'
11509 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11510 # Instead, shared libraries are loaded at an image base (0x10000000 by
11511 # default) and relocated if they conflict, which is a slow very memory
11512 # consuming and fragmenting process. To avoid this, we pick a random,
11513 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11514 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11516 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'
11519 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11521 if test "$host_os" = linux-dietlibc; then
11522 case $cc_basename in
11523 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11526 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11527 && test "$tmp_diet" = no
11529 tmp_addflag=' $pic_flag'
11530 tmp_sharedflag='-shared'
11531 case $cc_basename,$host_cpu in
11532 pgcc*) # Portland Group C compiler
11533 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'
11534 tmp_addflag=' $pic_flag'
11536 pgf77* | pgf90* | pgf95* | pgfortran*)
11537 # Portland Group f77 and f90 compilers
11538 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'
11539 tmp_addflag=' $pic_flag -Mnomain' ;;
11540 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11541 tmp_addflag=' -i_dynamic' ;;
11542 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11543 tmp_addflag=' -i_dynamic -nofor_main' ;;
11544 ifc* | ifort*) # Intel Fortran compiler
11545 tmp_addflag=' -nofor_main' ;;
11546 lf95*) # Lahey Fortran 8.1
11547 whole_archive_flag_spec=
11548 tmp_sharedflag='--shared' ;;
11549 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11550 tmp_sharedflag='-qmkshrobj'
11552 nvcc*) # Cuda Compiler Driver 2.2
11553 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'
11554 compiler_needs_object=yes
11557 case `$CC -V 2>&1 | sed 5q` in
11558 *Sun\ C*) # Sun C 5.9
11559 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'
11560 compiler_needs_object=yes
11561 tmp_sharedflag='-G' ;;
11562 *Sun\ F*) # Sun Fortran 8.3
11563 tmp_sharedflag='-G' ;;
11565 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11567 if test "x$supports_anon_versioning" = xyes; then
11568 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11569 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11570 echo "local: *; };" >> $output_objdir/$libname.ver~
11571 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11574 case $cc_basename in
11575 xlf* | bgf* | bgxlf* | mpixlf*)
11576 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11577 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11579 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11580 if test "x$supports_anon_versioning" = xyes; then
11581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11583 echo "local: *; };" >> $output_objdir/$libname.ver~
11584 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11593 netbsd* | netbsdelf*-gnu)
11594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11595 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11599 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11604 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11608 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11609 *** create shared libraries on Solaris systems. Therefore, libtool
11610 *** is disabling shared libraries support. We urge you to upgrade GNU
11611 *** binutils to release 2.9.1 or newer. Another option is to modify
11612 *** your PATH or compiler configuration so that the native linker is
11613 *** used, and then restart.
11616 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11618 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11625 case `$LD -v 2>&1` in
11626 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11630 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11631 *** reliably create shared libraries on SCO systems. Therefore, libtool
11632 *** is disabling shared libraries support. We urge you to upgrade GNU
11633 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11634 *** your PATH or compiler configuration so that the native linker is
11635 *** used, and then restart.
11640 # For security reasons, it is highly recommended that you always
11641 # use absolute paths for naming shared libraries, and exclude the
11642 # DT_RUNPATH tag from executables and libraries. But doing so
11643 # requires that you compile everything twice, which is a pain.
11644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11656 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11658 hardcode_direct=yes
11659 hardcode_shlibpath_var=no
11663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11672 if test "$ld_shlibs" = no; then
11674 hardcode_libdir_flag_spec=
11675 export_dynamic_flag_spec=
11676 whole_archive_flag_spec=
11679 # PORTME fill in a description of your system's linker (not GNU ld)
11682 allow_undefined_flag=unsupported
11683 always_export_symbols=yes
11684 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'
11685 # Note: this linker hardcodes the directories in LIBPATH if there
11686 # are no directories specified by -L.
11687 hardcode_minus_L=yes
11688 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11689 # Neither direct hardcoding nor static linking is supported with a
11691 hardcode_direct=unsupported
11696 if test "$host_cpu" = ia64; then
11697 # On IA64, the linker does run time linking by default, so we don't
11698 # have to do anything special.
11699 aix_use_runtimelinking=no
11700 exp_sym_flag='-Bexport'
11703 # If we're using GNU nm, then we don't want the "-C" option.
11704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11705 # Also, AIX nm treats weak defined symbols like other global
11706 # defined symbols, whereas GNU nm marks them as "W".
11707 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11708 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11710 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11712 aix_use_runtimelinking=no
11714 # Test if we are trying to use run time linking or normal
11715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11716 # need to do runtime linking.
11717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11718 for ld_flag in $LDFLAGS; do
11719 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11720 aix_use_runtimelinking=yes
11727 exp_sym_flag='-bexport'
11728 no_entry_flag='-bnoentry'
11731 # When large executables or shared objects are built, AIX ld can
11732 # have problems creating the table of contents. If linking a library
11733 # or program results in "error TOC overflow" add -mminimal-toc to
11734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11738 hardcode_direct=yes
11739 hardcode_direct_absolute=yes
11740 hardcode_libdir_separator=':'
11741 link_all_deplibs=yes
11742 file_list_spec='${wl}-f,'
11744 if test "$GCC" = yes; then
11745 case $host_os in aix4.[012]|aix4.[012].*)
11746 # We only want to do this on AIX 4.2 and lower, the check
11747 # below for broken collect2 doesn't work under 4.3+
11748 collect2name=`${CC} -print-prog-name=collect2`
11749 if test -f "$collect2name" &&
11750 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11752 # We have reworked collect2
11755 # We have old collect2
11756 hardcode_direct=unsupported
11757 # It fails to find uninstalled libraries when the uninstalled
11758 # path is not listed in the libpath. Setting hardcode_minus_L
11759 # to unsupported forces relinking
11760 hardcode_minus_L=yes
11761 hardcode_libdir_flag_spec='-L$libdir'
11762 hardcode_libdir_separator=
11766 shared_flag='-shared'
11767 if test "$aix_use_runtimelinking" = yes; then
11768 shared_flag="$shared_flag "'${wl}-G'
11770 link_all_deplibs=no
11773 if test "$host_cpu" = ia64; then
11774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11775 # chokes on -Wl,-G. The following line is correct:
11778 if test "$aix_use_runtimelinking" = yes; then
11779 shared_flag='${wl}-G'
11781 shared_flag='${wl}-bM:SRE'
11786 export_dynamic_flag_spec='${wl}-bexpall'
11787 # It seems that -bexpall does not export symbols beginning with
11788 # underscore (_), so it is better to generate a list of symbols to export.
11789 always_export_symbols=yes
11790 if test "$aix_use_runtimelinking" = yes; then
11791 # Warning - without using the other runtime loading flags (-brtl),
11792 # -berok will link without error, but may produce a broken library.
11793 allow_undefined_flag='-berok'
11794 # Determine the default libpath from the value encoded in an
11795 # empty executable.
11796 if test "${lt_cv_aix_libpath+set}" = set; then
11797 aix_libpath=$lt_cv_aix_libpath
11799 if ${lt_cv_aix_libpath_+:} false; then :
11800 $as_echo_n "(cached) " >&6
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11812 if ac_fn_c_try_link "$LINENO"; then :
11814 lt_aix_libpath_sed='
11815 /Import File Strings/,/^$/ {
11817 s/^0 *\([^ ]*\) *$/\1/
11821 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11822 # Check for a 64-bit object if we didn't find anything.
11823 if test -z "$lt_cv_aix_libpath_"; then
11824 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 if test -z "$lt_cv_aix_libpath_"; then
11830 lt_cv_aix_libpath_="/usr/lib:/lib"
11835 aix_libpath=$lt_cv_aix_libpath_
11838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11839 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11841 if test "$host_cpu" = ia64; then
11842 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11843 allow_undefined_flag="-z nodefs"
11844 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"
11846 # Determine the default libpath from the value encoded in an
11847 # empty executable.
11848 if test "${lt_cv_aix_libpath+set}" = set; then
11849 aix_libpath=$lt_cv_aix_libpath
11851 if ${lt_cv_aix_libpath_+:} false; then :
11852 $as_echo_n "(cached) " >&6
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11864 if ac_fn_c_try_link "$LINENO"; then :
11866 lt_aix_libpath_sed='
11867 /Import File Strings/,/^$/ {
11869 s/^0 *\([^ ]*\) *$/\1/
11873 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11874 # Check for a 64-bit object if we didn't find anything.
11875 if test -z "$lt_cv_aix_libpath_"; then
11876 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 if test -z "$lt_cv_aix_libpath_"; then
11882 lt_cv_aix_libpath_="/usr/lib:/lib"
11887 aix_libpath=$lt_cv_aix_libpath_
11890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11891 # Warning - without using the other run time loading flags,
11892 # -berok will link without error, but may produce a broken library.
11893 no_undefined_flag=' ${wl}-bernotok'
11894 allow_undefined_flag=' ${wl}-berok'
11895 if test "$with_gnu_ld" = yes; then
11896 # We only use this code for GNU lds that support --whole-archive.
11897 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11899 # Exported symbols can be pulled into shared objects from archives
11900 whole_archive_flag_spec='$convenience'
11902 archive_cmds_need_lc=yes
11903 # This is similar to how AIX traditionally builds its shared libraries.
11904 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11912 # see comment about AmigaOS4 .so support
11913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11914 archive_expsym_cmds=''
11917 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)'
11918 hardcode_libdir_flag_spec='-L$libdir'
11919 hardcode_minus_L=yes
11925 export_dynamic_flag_spec=-rdynamic
11928 cygwin* | mingw* | pw32* | cegcc*)
11929 # When not using gcc, we currently assume that we are using
11930 # Microsoft Visual C++.
11931 # hardcode_libdir_flag_spec is actually meaningless, as there is
11932 # no search path for DLLs.
11933 case $cc_basename in
11936 hardcode_libdir_flag_spec=' '
11937 allow_undefined_flag=unsupported
11938 always_export_symbols=yes
11940 # Tell ltmain to make .lib files, not .a files.
11942 # Tell ltmain to make .dll files, not .so files.
11944 # FIXME: Setting linknames here is a bad hack.
11945 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11946 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11947 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11949 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11951 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11953 # The linker will not automatically build a static lib if we build a DLL.
11954 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11955 enable_shared_with_static_runtimes=yes
11956 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11959 old_postinstall_cmds='chmod 644 $oldlib'
11960 postlink_cmds='lt_outputfile="@OUTPUT@"~
11961 lt_tool_outputfile="@TOOL_OUTPUT@"~
11962 case $lt_outputfile in
11965 lt_outputfile="$lt_outputfile.exe"
11966 lt_tool_outputfile="$lt_tool_outputfile.exe"
11969 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11970 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11971 $RM "$lt_outputfile.manifest";
11975 # Assume MSVC wrapper
11976 hardcode_libdir_flag_spec=' '
11977 allow_undefined_flag=unsupported
11978 # Tell ltmain to make .lib files, not .a files.
11980 # Tell ltmain to make .dll files, not .so files.
11982 # FIXME: Setting linknames here is a bad hack.
11983 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11984 # The linker will automatically build a .lib file if we build a DLL.
11985 old_archive_from_new_cmds='true'
11986 # FIXME: Should let the user specify the lib program.
11987 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11988 enable_shared_with_static_runtimes=yes
11993 darwin* | rhapsody*)
11996 archive_cmds_need_lc=no
11998 hardcode_automatic=yes
11999 hardcode_shlibpath_var=unsupported
12000 if test "$lt_cv_ld_force_load" = "yes"; then
12001 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\"`'
12004 whole_archive_flag_spec=''
12006 link_all_deplibs=yes
12007 allow_undefined_flag="$_lt_dar_allow_undefined"
12008 case $cc_basename in
12009 ifort*) _lt_dar_can_shared=yes ;;
12010 *) _lt_dar_can_shared=$GCC ;;
12012 if test "$_lt_dar_can_shared" = "yes"; then
12013 output_verbose_link_cmd=func_echo_all
12014 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12015 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12016 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}"
12017 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}"
12026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12027 hardcode_libdir_flag_spec='-L$libdir'
12028 hardcode_shlibpath_var=no
12031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12032 # support. Future versions do this automatically, but an explicit c++rt0.o
12033 # does not break anything, and helps significantly (at the cost of a little
12036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12037 hardcode_libdir_flag_spec='-R$libdir'
12038 hardcode_direct=yes
12039 hardcode_shlibpath_var=no
12042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12045 hardcode_direct=yes
12046 hardcode_minus_L=yes
12047 hardcode_shlibpath_var=no
12050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12051 freebsd* | dragonfly*)
12052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12053 hardcode_libdir_flag_spec='-R$libdir'
12054 hardcode_direct=yes
12055 hardcode_shlibpath_var=no
12059 if test "$GCC" = yes; then
12060 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
12062 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
12064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12065 hardcode_libdir_separator=:
12066 hardcode_direct=yes
12068 # hardcode_minus_L: Not really in the search PATH,
12069 # but as the default location of the library.
12070 hardcode_minus_L=yes
12071 export_dynamic_flag_spec='${wl}-E'
12075 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12076 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12080 if test "$with_gnu_ld" = no; then
12081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12082 hardcode_libdir_separator=:
12083 hardcode_direct=yes
12084 hardcode_direct_absolute=yes
12085 export_dynamic_flag_spec='${wl}-E'
12086 # hardcode_minus_L: Not really in the search PATH,
12087 # but as the default location of the library.
12088 hardcode_minus_L=yes
12093 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12096 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12099 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12102 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12108 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12115 # Older versions of the 11.00 compiler do not understand -b yet
12116 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12118 $as_echo_n "checking if $CC understands -b... " >&6; }
12119 if ${lt_cv_prog_compiler__b+:} false; then :
12120 $as_echo_n "(cached) " >&6
12122 lt_cv_prog_compiler__b=no
12123 save_LDFLAGS="$LDFLAGS"
12124 LDFLAGS="$LDFLAGS -b"
12125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12127 # The linker can only warn and ignore the option if not recognized
12128 # So say no if there are warnings
12129 if test -s conftest.err; then
12130 # Append any errors to the config.log.
12131 cat conftest.err 1>&5
12132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12134 if diff conftest.exp conftest.er2 >/dev/null; then
12135 lt_cv_prog_compiler__b=yes
12138 lt_cv_prog_compiler__b=yes
12142 LDFLAGS="$save_LDFLAGS"
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12146 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12148 if test x"$lt_cv_prog_compiler__b" = xyes; then
12149 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12157 if test "$with_gnu_ld" = no; then
12158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12159 hardcode_libdir_separator=:
12164 hardcode_shlibpath_var=no
12167 hardcode_direct=yes
12168 hardcode_direct_absolute=yes
12169 export_dynamic_flag_spec='${wl}-E'
12171 # hardcode_minus_L: Not really in the search PATH,
12172 # but as the default location of the library.
12173 hardcode_minus_L=yes
12179 irix5* | irix6* | nonstopux*)
12180 if test "$GCC" = yes; then
12181 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'
12182 # Try to use the -exported_symbol ld option, if it does not
12183 # work, assume that -exports_file does not work either and
12184 # implicitly export all symbols.
12185 # This should be the same for all languages, so no per-tag cache variable.
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12187 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12188 if ${lt_cv_irix_exported_symbol+:} false; then :
12189 $as_echo_n "(cached) " >&6
12191 save_LDFLAGS="$LDFLAGS"
12192 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 int foo (void) { return 0; }
12197 if ac_fn_c_try_link "$LINENO"; then :
12198 lt_cv_irix_exported_symbol=yes
12200 lt_cv_irix_exported_symbol=no
12202 rm -f core conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LDFLAGS="$save_LDFLAGS"
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12207 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12208 if test "$lt_cv_irix_exported_symbol" = yes; then
12209 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'
12212 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'
12213 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'
12215 archive_cmds_need_lc='no'
12216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12217 hardcode_libdir_separator=:
12219 link_all_deplibs=yes
12222 netbsd* | netbsdelf*-gnu)
12223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12228 hardcode_libdir_flag_spec='-R$libdir'
12229 hardcode_direct=yes
12230 hardcode_shlibpath_var=no
12234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12235 hardcode_direct=yes
12236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12237 hardcode_libdir_separator=:
12238 hardcode_shlibpath_var=no
12245 if test -f /usr/libexec/ld.so; then
12246 hardcode_direct=yes
12247 hardcode_shlibpath_var=no
12248 hardcode_direct_absolute=yes
12249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12251 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12253 export_dynamic_flag_spec='${wl}-E'
12256 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12258 hardcode_libdir_flag_spec='-R$libdir'
12261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12272 hardcode_libdir_flag_spec='-L$libdir'
12273 hardcode_minus_L=yes
12274 allow_undefined_flag=unsupported
12275 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12276 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12280 if test "$GCC" = yes; then
12281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12282 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'
12284 allow_undefined_flag=' -expect_unresolved \*'
12285 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'
12287 archive_cmds_need_lc='no'
12288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12289 hardcode_libdir_separator=:
12292 osf4* | osf5*) # as osf3* with the addition of -msym flag
12293 if test "$GCC" = yes; then
12294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12295 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'
12296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12298 allow_undefined_flag=' -expect_unresolved \*'
12299 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'
12300 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~
12301 $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'
12303 # Both c and cxx compiler support -rpath directly
12304 hardcode_libdir_flag_spec='-rpath $libdir'
12306 archive_cmds_need_lc='no'
12307 hardcode_libdir_separator=:
12311 no_undefined_flag=' -z defs'
12312 if test "$GCC" = yes; then
12314 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12316 $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'
12318 case `$CC -V 2>&1` in
12321 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12327 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12329 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12333 hardcode_libdir_flag_spec='-R$libdir'
12334 hardcode_shlibpath_var=no
12336 solaris2.[0-5] | solaris2.[0-5].*) ;;
12338 # The compiler driver will combine and reorder linker options,
12339 # but understands `-z linker_flag'. GCC discards it without `$wl',
12340 # but is careful enough not to reorder.
12341 # Supported since Solaris 2.6 (maybe 2.5.1?)
12342 if test "$GCC" = yes; then
12343 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12345 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12349 link_all_deplibs=yes
12353 if test "x$host_vendor" = xsequent; then
12354 # Use $CC to link under sequent, because it throws in some extra .o
12355 # files that make .init and .fini sections work.
12356 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12358 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12360 hardcode_libdir_flag_spec='-L$libdir'
12361 hardcode_direct=yes
12362 hardcode_minus_L=yes
12363 hardcode_shlibpath_var=no
12367 case $host_vendor in
12369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370 hardcode_direct=yes # is this really true???
12373 ## LD is ld it makes a PLAMLIB
12374 ## CC just makes a GrossModule.
12375 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12376 reload_cmds='$CC -r -o $output$reload_objs'
12380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12381 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12384 runpath_var='LD_RUN_PATH'
12385 hardcode_shlibpath_var=no
12389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12390 hardcode_shlibpath_var=no
12391 export_dynamic_flag_spec='-Bexport'
12395 if test -d /usr/nec; then
12396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12397 hardcode_shlibpath_var=no
12398 runpath_var=LD_RUN_PATH
12399 hardcode_runpath_var=yes
12404 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12405 no_undefined_flag='${wl}-z,text'
12406 archive_cmds_need_lc=no
12407 hardcode_shlibpath_var=no
12408 runpath_var='LD_RUN_PATH'
12410 if test "$GCC" = yes; then
12411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12419 sysv5* | sco3.2v5* | sco5v6*)
12420 # Note: We can NOT use -z defs as we might desire, because we do not
12421 # link with -lc, and that would cause any symbols used from libc to
12422 # always be unresolved, which means just about no library would
12423 # ever link correctly. If we're not using GNU ld we use -z text
12424 # though, which does catch some bad symbols but isn't as heavy-handed
12426 no_undefined_flag='${wl}-z,text'
12427 allow_undefined_flag='${wl}-z,nodefs'
12428 archive_cmds_need_lc=no
12429 hardcode_shlibpath_var=no
12430 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12431 hardcode_libdir_separator=':'
12432 link_all_deplibs=yes
12433 export_dynamic_flag_spec='${wl}-Bexport'
12434 runpath_var='LD_RUN_PATH'
12436 if test "$GCC" = yes; then
12437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12447 hardcode_libdir_flag_spec='-L$libdir'
12448 hardcode_shlibpath_var=no
12456 if test x$host_vendor = xsni; then
12458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12459 export_dynamic_flag_spec='${wl}-Blargedynsym'
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12466 $as_echo "$ld_shlibs" >&6; }
12467 test "$ld_shlibs" = no && can_build_shared=no
12469 with_gnu_ld=$with_gnu_ld
12486 # Do we need to explicitly link libc?
12488 case "x$archive_cmds_need_lc" in
12490 # Assume -lc should be added
12491 archive_cmds_need_lc=yes
12493 if test "$enable_shared" = yes && test "$GCC" = yes; then
12494 case $archive_cmds in
12496 # FIXME: we may have to deal with multi-command sequences.
12499 # Test whether the compiler implicitly links with -lc since on some
12500 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12501 # to ld, don't add -lc before -lgcc.
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12503 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12504 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12505 $as_echo_n "(cached) " >&6
12508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12511 (eval $ac_compile) 2>&5
12513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12514 test $ac_status = 0; } 2>conftest.err; then
12517 libobjs=conftest.$ac_objext
12519 wl=$lt_prog_compiler_wl
12520 pic_flag=$lt_prog_compiler_pic
12526 lt_save_allow_undefined_flag=$allow_undefined_flag
12527 allow_undefined_flag=
12528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12529 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532 test $ac_status = 0; }
12534 lt_cv_archive_cmds_need_lc=no
12536 lt_cv_archive_cmds_need_lc=yes
12538 allow_undefined_flag=$lt_save_allow_undefined_flag
12540 cat conftest.err 1>&5
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12546 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12547 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12708 if test "$GCC" = yes; then
12710 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12711 *) lt_awk_arg="/^libraries:/" ;;
12714 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12715 *) lt_sed_strip_eq="s,=/,/,g" ;;
12717 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12718 case $lt_search_path_spec in
12720 # if the path contains ";" then we assume it to be the separator
12721 # otherwise default to the standard path separator (i.e. ":") - it is
12722 # assumed that no part of a normal pathname contains ";" but that should
12723 # okay in the real world where ";" in dirpaths is itself problematic.
12724 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12727 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12730 # Ok, now we have the path, separated by spaces, we can step through it
12731 # and add multilib dir if necessary.
12732 lt_tmp_lt_search_path_spec=
12733 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12734 for lt_sys_path in $lt_search_path_spec; do
12735 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12736 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12738 test -d "$lt_sys_path" && \
12739 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12742 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12743 BEGIN {RS=" "; FS="/|\n";} {
12746 for (lt_i = NF; lt_i > 0; lt_i--) {
12747 if ($lt_i != "" && $lt_i != ".") {
12748 if ($lt_i == "..") {
12751 if (lt_count == 0) {
12752 lt_foo="/" $lt_i lt_foo;
12759 if (lt_foo != "") { lt_freq[lt_foo]++; }
12760 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12762 # AWK program above erroneously prepends '/' to C:/dos/paths
12765 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12766 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12768 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12772 library_names_spec=
12773 libname_spec='lib$name'
12777 postuninstall_cmds=
12781 shlibpath_overrides_runpath=unknown
12783 dynamic_linker="$host_os ld.so"
12784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12785 need_lib_prefix=unknown
12786 hardcode_into_libs=no
12788 # when you set need_version to no, make sure it does not cause -set_version
12789 # flags to be left without arguments
12790 need_version=unknown
12794 version_type=linux # correct to gnu/linux during the next big refactor
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12796 shlibpath_var=LIBPATH
12798 # AIX 3 has no versioning support, so we append a major version to the name.
12799 soname_spec='${libname}${release}${shared_ext}$major'
12803 version_type=linux # correct to gnu/linux during the next big refactor
12806 hardcode_into_libs=yes
12807 if test "$host_cpu" = ia64; then
12808 # AIX 5 supports IA64
12809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12810 shlibpath_var=LD_LIBRARY_PATH
12812 # With GCC up to 2.95.x, collect2 would create an import file
12813 # for dependence libraries. The import file would start with
12814 # the line `#! .'. This would cause the generated library to
12815 # depend on `.', always an invalid library. This was fixed in
12816 # development snapshots of GCC prior to 3.0.
12818 aix4 | aix4.[01] | aix4.[01].*)
12819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12821 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12824 can_build_shared=no
12828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12829 # soname into executable. Probably we can add versioning support to
12830 # collect2, so additional links can be useful in future.
12831 if test "$aix_use_runtimelinking" = yes; then
12832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12833 # instead of lib<name>.a to let people know that these are not
12834 # typical AIX shared libraries.
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12837 # We preserve .a as extension for shared libraries through AIX4.2
12838 # and later when we are not doing run time linking.
12839 library_names_spec='${libname}${release}.a $libname.a'
12840 soname_spec='${libname}${release}${shared_ext}$major'
12842 shlibpath_var=LIBPATH
12849 # Since July 2007 AmigaOS4 officially supports .so libraries.
12850 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 library_names_spec='$libname.ixlibrary $libname.a'
12855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12856 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12862 library_names_spec='${libname}${shared_ext}'
12863 dynamic_linker="$host_os ld.so"
12864 shlibpath_var=LIBRARY_PATH
12868 version_type=linux # correct to gnu/linux during the next big refactor
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871 soname_spec='${libname}${release}${shared_ext}$major'
12872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12873 shlibpath_var=LD_LIBRARY_PATH
12874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12876 # the default ld.so.conf also contains /usr/contrib/lib and
12877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12878 # libtool to hard-code these into programs
12881 cygwin* | mingw* | pw32* | cegcc*)
12882 version_type=windows
12887 case $GCC,$cc_basename in
12890 library_names_spec='$libname.dll.a'
12891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12892 postinstall_cmds='base_file=`basename \${file}`~
12893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12894 dldir=$destdir/`dirname \$dlpath`~
12895 test -d \$dldir || mkdir -p \$dldir~
12896 $install_prog $dir/$dlname \$dldir/$dlname~
12897 chmod a+x \$dldir/$dlname~
12898 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12899 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12902 dlpath=$dir/\$dldll~
12904 shlibpath_overrides_runpath=yes
12908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12911 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12914 # MinGW DLLs use traditional 'lib' prefix
12915 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12918 # pw32 DLLs use 'pw' prefix rather than 'lib'
12919 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12922 dynamic_linker='Win32 ld.exe'
12927 libname_spec='$name'
12928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12929 library_names_spec='${libname}.dll.lib'
12933 sys_lib_search_path_spec=
12936 for lt_path in $LIB
12939 # Let DOS variable expansion print the short 8.3 style file name.
12940 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12941 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12944 # Convert to MSYS style.
12945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12948 # Convert to unix form, then to dos form, then back to unix form
12949 # but this time dos style (no spaces!) so that the unix form looks
12950 # like /cygdrive/c/PROGRA~1:/cygdr...
12951 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12952 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12953 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12956 sys_lib_search_path_spec="$LIB"
12957 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12958 # It is most probably a Windows format PATH.
12959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12963 # FIXME: find the short name or the path components, as spaces are
12964 # common. (e.g. "Program Files" -> "PROGRA~1")
12968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12969 postinstall_cmds='base_file=`basename \${file}`~
12970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12971 dldir=$destdir/`dirname \$dlpath`~
12972 test -d \$dldir || mkdir -p \$dldir~
12973 $install_prog $dir/$dlname \$dldir/$dlname'
12974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12975 dlpath=$dir/\$dldll~
12977 shlibpath_overrides_runpath=yes
12978 dynamic_linker='Win32 link.exe'
12982 # Assume MSVC wrapper
12983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12984 dynamic_linker='Win32 ld.exe'
12987 # FIXME: first we should search . and the directory the executable is in
12991 darwin* | rhapsody*)
12992 dynamic_linker="$host_os dyld"
12993 version_type=darwin
12996 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12997 soname_spec='${libname}${release}${major}$shared_ext'
12998 shlibpath_overrides_runpath=yes
12999 shlibpath_var=DYLD_LIBRARY_PATH
13000 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13002 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13007 version_type=linux # correct to gnu/linux during the next big refactor
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13011 soname_spec='${libname}${release}${shared_ext}$major'
13012 shlibpath_var=LD_LIBRARY_PATH
13015 freebsd* | dragonfly*)
13016 # DragonFly does not have aout. When/if they implement a new
13017 # versioning mechanism, adjust this.
13018 if test -x /usr/bin/objformat; then
13019 objformat=`/usr/bin/objformat`
13022 freebsd[23].*) objformat=aout ;;
13023 *) objformat=elf ;;
13026 version_type=freebsd-$objformat
13027 case $version_type in
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13038 shlibpath_var=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath=yes
13043 freebsd3.[01]* | freebsdelf3.[01]*)
13044 shlibpath_overrides_runpath=yes
13045 hardcode_into_libs=yes
13047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13049 shlibpath_overrides_runpath=no
13050 hardcode_into_libs=yes
13052 *) # from 4.6 on, and DragonFly
13053 shlibpath_overrides_runpath=yes
13054 hardcode_into_libs=yes
13060 version_type=linux # correct to gnu/linux during the next big refactor
13063 dynamic_linker="$host_os runtime_loader"
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LIBRARY_PATH
13067 shlibpath_overrides_runpath=yes
13068 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13069 hardcode_into_libs=yes
13072 hpux9* | hpux10* | hpux11*)
13073 # Give a soname corresponding to the major version so that dld.sl refuses to
13074 # link against other versions.
13081 hardcode_into_libs=yes
13082 dynamic_linker="$host_os dld.so"
13083 shlibpath_var=LD_LIBRARY_PATH
13084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13086 soname_spec='${libname}${release}${shared_ext}$major'
13087 if test "X$HPUX_IA64_MODE" = X32; then
13088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13096 hardcode_into_libs=yes
13097 dynamic_linker="$host_os dld.sl"
13098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13107 dynamic_linker="$host_os dld.sl"
13108 shlibpath_var=SHLIB_PATH
13109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111 soname_spec='${libname}${release}${shared_ext}$major'
13114 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13115 postinstall_cmds='chmod 555 $lib'
13116 # or fails outright, so override atomically:
13117 install_override_mode=555
13121 version_type=linux # correct to gnu/linux during the next big refactor
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 shlibpath_overrides_runpath=no
13129 hardcode_into_libs=yes
13132 irix5* | irix6* | nonstopux*)
13134 nonstopux*) version_type=nonstopux ;;
13136 if test "$lt_cv_prog_gnu_ld" = yes; then
13137 version_type=linux # correct to gnu/linux during the next big refactor
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13147 irix5* | nonstopux*)
13148 libsuff= shlibsuff=
13151 case $LD in # libtool.m4 will add one of these switches to LD
13152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13153 libsuff= shlibsuff= libmagic=32-bit;;
13154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13155 libsuff=32 shlibsuff=N32 libmagic=N32;;
13156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13157 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13158 *) libsuff= shlibsuff= libmagic=never-match;;
13162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13163 shlibpath_overrides_runpath=no
13164 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13165 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13166 hardcode_into_libs=yes
13169 # No shared lib support for Linux oldld, aout, or coff.
13170 linux*oldld* | linux*aout* | linux*coff*)
13174 # This must be glibc/ELF.
13175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13176 version_type=linux # correct to gnu/linux during the next big refactor
13179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13180 soname_spec='${libname}${release}${shared_ext}$major'
13181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 shlibpath_overrides_runpath=no
13185 # Some binutils ld are patched to set DT_RUNPATH
13186 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13187 $as_echo_n "(cached) " >&6
13189 lt_cv_shlibpath_overrides_runpath=no
13190 save_LDFLAGS=$LDFLAGS
13191 save_libdir=$libdir
13192 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13193 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13204 if ac_fn_c_try_link "$LINENO"; then :
13205 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13206 lt_cv_shlibpath_overrides_runpath=yes
13209 rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 LDFLAGS=$save_LDFLAGS
13212 libdir=$save_libdir
13216 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13218 # This implies no fast_install, which is unacceptable.
13219 # Some rework will be needed to allow for fast_install
13220 # before this can be enabled.
13221 hardcode_into_libs=yes
13223 # Append ld.so.conf contents to the search path
13224 if test -f /etc/ld.so.conf; then
13225 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' ' '`
13226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13229 # We used to test for /lib/ld.so.1 and disable shared libraries on
13230 # powerpc, because MkLinux only supported shared libraries with the
13231 # GNU dynamic linker. Since this was broken with cross compilers,
13232 # most powerpc-linux boxes support dynamic linking these days and
13233 # people can always --disable-shared, the test was removed, and we
13234 # assume the GNU/Linux dynamic linker is in use.
13235 dynamic_linker='GNU/Linux ld.so'
13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13243 soname_spec='${libname}${release}${shared_ext}$major'
13244 shlibpath_var=LD_LIBRARY_PATH
13245 shlibpath_overrides_runpath=no
13246 hardcode_into_libs=yes
13247 dynamic_linker='NetBSD ld.elf_so'
13254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13257 dynamic_linker='NetBSD (a.out) ld.so'
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260 soname_spec='${libname}${release}${shared_ext}$major'
13261 dynamic_linker='NetBSD ld.elf_so'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=yes
13265 hardcode_into_libs=yes
13269 version_type=linux # correct to gnu/linux during the next big refactor
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280 soname_spec='${libname}${release}${shared_ext}$major'
13281 shlibpath_var=LD_LIBRARY_PATH
13282 shlibpath_overrides_runpath=no
13283 hardcode_into_libs=yes
13284 dynamic_linker='ldqnx.so'
13289 sys_lib_dlsearch_path_spec="/usr/lib"
13291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13293 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13294 *) need_version=no ;;
13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13301 openbsd2.[89] | openbsd2.[89].*)
13302 shlibpath_overrides_runpath=no
13305 shlibpath_overrides_runpath=yes
13309 shlibpath_overrides_runpath=yes
13314 libname_spec='$name'
13317 library_names_spec='$libname${shared_ext} $libname.a'
13318 dynamic_linker='OS/2 ld.exe'
13319 shlibpath_var=LIBPATH
13322 osf3* | osf4* | osf5*)
13326 soname_spec='${libname}${release}${shared_ext}$major'
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13338 version_type=linux # correct to gnu/linux during the next big refactor
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 shlibpath_var=LD_LIBRARY_PATH
13344 shlibpath_overrides_runpath=yes
13345 hardcode_into_libs=yes
13346 # ldd complains unless libraries are executable
13347 postinstall_cmds='chmod +x $lib'
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes
13356 if test "$with_gnu_ld" = yes; then
13363 version_type=linux # correct to gnu/linux during the next big refactor
13364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13365 soname_spec='${libname}${release}${shared_ext}$major'
13366 shlibpath_var=LD_LIBRARY_PATH
13367 case $host_vendor in
13369 shlibpath_overrides_runpath=no
13371 runpath_var=LD_RUN_PATH
13379 shlibpath_overrides_runpath=no
13380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13386 if test -d /usr/nec ;then
13387 version_type=linux # correct to gnu/linux during the next big refactor
13388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13389 soname_spec='$libname${shared_ext}.$major'
13390 shlibpath_var=LD_LIBRARY_PATH
13394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13395 version_type=freebsd-elf
13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13399 soname_spec='${libname}${release}${shared_ext}$major'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=yes
13402 hardcode_into_libs=yes
13403 if test "$with_gnu_ld" = yes; then
13404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13413 sys_lib_dlsearch_path_spec='/usr/lib'
13417 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13418 version_type=linux # correct to gnu/linux during the next big refactor
13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 shlibpath_overrides_runpath=no
13424 hardcode_into_libs=yes
13428 version_type=linux # correct to gnu/linux during the next big refactor
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430 soname_spec='${libname}${release}${shared_ext}$major'
13431 shlibpath_var=LD_LIBRARY_PATH
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13439 $as_echo "$dynamic_linker" >&6; }
13440 test "$dynamic_linker" = no && can_build_shared=no
13442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13443 if test "$GCC" = yes; then
13444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13447 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13448 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13450 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13451 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13546 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13548 if test -n "$hardcode_libdir_flag_spec" ||
13549 test -n "$runpath_var" ||
13550 test "X$hardcode_automatic" = "Xyes" ; then
13552 # We can hardcode non-existent directories.
13553 if test "$hardcode_direct" != no &&
13554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13555 # have to relink, otherwise we might link with an installed library
13556 # when we should be linking with a yet-to-be-installed one
13557 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13558 test "$hardcode_minus_L" != no; then
13559 # Linking always hardcodes the temporary library directory.
13560 hardcode_action=relink
13562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13563 hardcode_action=immediate
13566 # We cannot hardcode anything, or else we can only hardcode existing
13568 hardcode_action=unsupported
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13571 $as_echo "$hardcode_action" >&6; }
13573 if test "$hardcode_action" = relink ||
13574 test "$inherit_rpath" = yes; then
13575 # Fast installation is not supported
13576 enable_fast_install=no
13577 elif test "$shlibpath_overrides_runpath" = yes ||
13578 test "$enable_shared" = no; then
13579 # Fast installation is not necessary
13580 enable_fast_install=needless
13588 if test "x$enable_dlopen" != xyes; then
13589 enable_dlopen=unknown
13590 enable_dlopen_self=unknown
13591 enable_dlopen_self_static=unknown
13598 lt_cv_dlopen="load_add_on"
13600 lt_cv_dlopen_self=yes
13603 mingw* | pw32* | cegcc*)
13604 lt_cv_dlopen="LoadLibrary"
13609 lt_cv_dlopen="dlopen"
13614 # if libdl is installed we need to link against it
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13616 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13617 if ${ac_cv_lib_dl_dlopen+:} false; then :
13618 $as_echo_n "(cached) " >&6
13620 ac_check_lib_save_LIBS=$LIBS
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13637 if ac_fn_c_try_link "$LINENO"; then :
13638 ac_cv_lib_dl_dlopen=yes
13640 ac_cv_lib_dl_dlopen=no
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13648 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13652 lt_cv_dlopen="dyld"
13654 lt_cv_dlopen_self=yes
13661 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13662 if test "x$ac_cv_func_shl_load" = xyes; then :
13663 lt_cv_dlopen="shl_load"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13667 if ${ac_cv_lib_dld_shl_load+:} false; then :
13668 $as_echo_n "(cached) " >&6
13670 ac_check_lib_save_LIBS=$LIBS
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13682 return shl_load ();
13687 if ac_fn_c_try_link "$LINENO"; then :
13688 ac_cv_lib_dld_shl_load=yes
13690 ac_cv_lib_dld_shl_load=no
13692 rm -f core conftest.err conftest.$ac_objext \
13693 conftest$ac_exeext conftest.$ac_ext
13694 LIBS=$ac_check_lib_save_LIBS
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13697 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13698 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13699 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13701 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13702 if test "x$ac_cv_func_dlopen" = xyes; then :
13703 lt_cv_dlopen="dlopen"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13706 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13707 if ${ac_cv_lib_dl_dlopen+:} false; then :
13708 $as_echo_n "(cached) " >&6
13710 ac_check_lib_save_LIBS=$LIBS
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 ac_cv_lib_dl_dlopen=yes
13730 ac_cv_lib_dl_dlopen=no
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13737 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13738 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13742 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13743 if ${ac_cv_lib_svld_dlopen+:} false; then :
13744 $as_echo_n "(cached) " >&6
13746 ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lsvld $LIBS"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13763 if ac_fn_c_try_link "$LINENO"; then :
13764 ac_cv_lib_svld_dlopen=yes
13766 ac_cv_lib_svld_dlopen=no
13768 rm -f core conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
13770 LIBS=$ac_check_lib_save_LIBS
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13773 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13774 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13778 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13779 if ${ac_cv_lib_dld_dld_link+:} false; then :
13780 $as_echo_n "(cached) " >&6
13782 ac_check_lib_save_LIBS=$LIBS
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13794 return dld_link ();
13799 if ac_fn_c_try_link "$LINENO"; then :
13800 ac_cv_lib_dld_dld_link=yes
13802 ac_cv_lib_dld_dld_link=no
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13809 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13810 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13811 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13832 if test "x$lt_cv_dlopen" != xno; then
13838 case $lt_cv_dlopen in
13840 save_CPPFLAGS="$CPPFLAGS"
13841 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13843 save_LDFLAGS="$LDFLAGS"
13844 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13847 LIBS="$lt_cv_dlopen_libs $LIBS"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13850 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13851 if ${lt_cv_dlopen_self+:} false; then :
13852 $as_echo_n "(cached) " >&6
13854 if test "$cross_compiling" = yes; then :
13855 lt_cv_dlopen_self=cross
13857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13858 lt_status=$lt_dlunknown
13859 cat > conftest.$ac_ext <<_LT_EOF
13860 #line $LINENO "configure"
13861 #include "confdefs.h"
13870 # define LT_DLGLOBAL RTLD_GLOBAL
13873 # define LT_DLGLOBAL DL_GLOBAL
13875 # define LT_DLGLOBAL 0
13879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13880 find out it does not work in some platform. */
13881 #ifndef LT_DLLAZY_OR_NOW
13883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13886 # define LT_DLLAZY_OR_NOW DL_LAZY
13889 # define LT_DLLAZY_OR_NOW RTLD_NOW
13892 # define LT_DLLAZY_OR_NOW DL_NOW
13894 # define LT_DLLAZY_OR_NOW 0
13901 /* When -fvisbility=hidden is used, assume the code has been annotated
13902 correspondingly for the symbols needed. */
13903 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13904 int fnord () __attribute__((visibility("default")));
13907 int fnord () { return 42; }
13910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13911 int status = $lt_dlunknown;
13915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13918 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13919 else puts (dlerror ());
13921 /* dlclose (self); */
13929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13930 (eval $ac_link) 2>&5
13932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13934 (./conftest; exit; ) >&5 2>/dev/null
13936 case x$lt_status in
13937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13939 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13942 # compilation failed
13943 lt_cv_dlopen_self=no
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13951 $as_echo "$lt_cv_dlopen_self" >&6; }
13953 if test "x$lt_cv_dlopen_self" = xyes; then
13954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13956 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13957 if ${lt_cv_dlopen_self_static+:} false; then :
13958 $as_echo_n "(cached) " >&6
13960 if test "$cross_compiling" = yes; then :
13961 lt_cv_dlopen_self_static=cross
13963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13964 lt_status=$lt_dlunknown
13965 cat > conftest.$ac_ext <<_LT_EOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13976 # define LT_DLGLOBAL RTLD_GLOBAL
13979 # define LT_DLGLOBAL DL_GLOBAL
13981 # define LT_DLGLOBAL 0
13985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13986 find out it does not work in some platform. */
13987 #ifndef LT_DLLAZY_OR_NOW
13989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13992 # define LT_DLLAZY_OR_NOW DL_LAZY
13995 # define LT_DLLAZY_OR_NOW RTLD_NOW
13998 # define LT_DLLAZY_OR_NOW DL_NOW
14000 # define LT_DLLAZY_OR_NOW 0
14007 /* When -fvisbility=hidden is used, assume the code has been annotated
14008 correspondingly for the symbols needed. */
14009 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14010 int fnord () __attribute__((visibility("default")));
14013 int fnord () { return 42; }
14016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14017 int status = $lt_dlunknown;
14021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14024 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14025 else puts (dlerror ());
14027 /* dlclose (self); */
14035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14036 (eval $ac_link) 2>&5
14038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14040 (./conftest; exit; ) >&5 2>/dev/null
14042 case x$lt_status in
14043 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14044 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14045 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14048 # compilation failed
14049 lt_cv_dlopen_self_static=no
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14057 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14060 CPPFLAGS="$save_CPPFLAGS"
14061 LDFLAGS="$save_LDFLAGS"
14066 case $lt_cv_dlopen_self in
14067 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14068 *) enable_dlopen_self=unknown ;;
14071 case $lt_cv_dlopen_self_static in
14072 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14073 *) enable_dlopen_self_static=unknown ;;
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14096 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14097 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14098 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14099 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101 $as_echo "yes" >&6; }
14103 # FIXME - insert some real tests, host_os isn't really good enough
14106 if test -n "$STRIP" ; then
14107 striplib="$STRIP -x"
14108 old_striplib="$STRIP -S"
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14110 $as_echo "yes" >&6; }
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14134 # Report which library types will actually be built
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14136 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14138 $as_echo "$can_build_shared" >&6; }
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14141 $as_echo_n "checking whether to build shared libraries... " >&6; }
14142 test "$can_build_shared" = "no" && enable_shared=no
14144 # On AIX, shared libraries and static libraries use the same namespace, and
14145 # are all built from PIC.
14148 test "$enable_shared" = yes && enable_static=no
14149 if test -n "$RANLIB"; then
14150 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14151 postinstall_cmds='$RANLIB $lib'
14156 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14157 test "$enable_shared" = yes && enable_static=no
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14162 $as_echo "$enable_shared" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14165 $as_echo_n "checking whether to build static libraries... " >&6; }
14166 # Make sure either enable_shared or enable_static is yes.
14167 test "$enable_shared" = yes || enable_static=yes
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14169 $as_echo "$enable_static" >&6; }
14176 ac_cpp='$CPP $CPPFLAGS'
14177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14197 ac_config_commands="$ac_config_commands libtool"
14202 # Only expand once:
14205 ## --------------------- ##
14206 ## End of libtool code ##
14207 ## --------------------- ##
14210 # Verify if finally libtool shared libraries will be built
14213 case "x$enable_shared" in # ((
14215 xc_lt_build_shared=$enable_shared
14218 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
14223 # Verify if finally libtool static libraries will be built
14226 case "x$enable_static" in # ((
14228 xc_lt_build_static=$enable_static
14231 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
14236 # Verify if libtool shared libraries should be linked using flag -version-info
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
14240 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
14241 xc_lt_shlib_use_version_info='yes'
14242 if test "x$version_type" = 'xnone'; then
14243 xc_lt_shlib_use_version_info='no'
14245 case $host_os in # (
14247 xc_lt_shlib_use_version_info='yes'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
14251 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
14254 # Verify if libtool shared libraries should be linked using flag -no-undefined
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
14258 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
14259 xc_lt_shlib_use_no_undefined='no'
14260 if test "x$allow_undefined" = 'xno'; then
14261 xc_lt_shlib_use_no_undefined='yes'
14262 elif test "x$allow_undefined_flag" = 'xunsupported'; then
14263 xc_lt_shlib_use_no_undefined='yes'
14265 case $host_os in # (
14266 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
14267 xc_lt_shlib_use_no_undefined='yes'
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
14271 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
14274 # Verify if libtool shared libraries should be linked using flag -mimpure-text
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
14278 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
14279 xc_lt_shlib_use_mimpure_text='no'
14280 case $host_os in # (
14282 if test "x$GCC" = 'xyes'; then
14283 xc_lt_shlib_use_mimpure_text='yes'
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
14288 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
14291 # Find out wether libtool libraries would be built wit PIC
14294 case "x$pic_mode" in # ((((
14296 xc_lt_build_shared_with_pic='yes'
14297 xc_lt_build_static_with_pic='no'
14300 xc_lt_build_shared_with_pic='yes'
14301 xc_lt_build_static_with_pic='yes'
14304 xc_lt_build_shared_with_pic='no'
14305 xc_lt_build_static_with_pic='no'
14308 xc_lt_build_shared_with_pic='unknown'
14309 xc_lt_build_static_with_pic='unknown'
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
14311 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
14315 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
14317 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
14319 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
14321 $as_echo "$xc_lt_build_static_with_pic" >&6; }
14324 # Verify if libtool shared libraries will be built while static not built
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
14328 $as_echo_n "checking whether to build shared libraries only... " >&6; }
14329 if test "$xc_lt_build_shared" = 'yes' &&
14330 test "$xc_lt_build_static" = 'no'; then
14331 xc_lt_build_shared_only='yes'
14333 xc_lt_build_shared_only='no'
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
14336 $as_echo "$xc_lt_build_shared_only" >&6; }
14339 # Verify if libtool static libraries will be built while shared not built
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
14343 $as_echo_n "checking whether to build static libraries only... " >&6; }
14344 if test "$xc_lt_build_static" = 'yes' &&
14345 test "$xc_lt_build_shared" = 'no'; then
14346 xc_lt_build_static_only='yes'
14348 xc_lt_build_static_only='no'
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
14351 $as_echo "$xc_lt_build_static_only" >&6; }
14357 # Automake conditionals based on libtool related checks
14360 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
14361 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
14362 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
14364 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
14365 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
14368 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
14369 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
14370 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
14372 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
14373 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
14376 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
14377 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
14378 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
14380 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
14381 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
14386 # Due to libtool and automake machinery limitations of not allowing
14387 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
14388 # inclusion of these in shared or static libraries, we are forced to
14389 # build using separate configure runs for shared and static libraries
14390 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
14391 # to compile objects for each kind of library. Notice that relying on
14392 # the '-DPIC' CFLAG that libtool provides is not valid given that the
14393 # user might for example choose to build static libraries with PIC.
14397 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
14398 # targeting a static library and not building its shared counterpart.
14401 if test "x$xc_lt_build_static_only" = 'xyes'; then
14402 USE_CPPFLAG_CARES_STATICLIB_TRUE=
14403 USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
14405 USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
14406 USE_CPPFLAG_CARES_STATICLIB_FALSE=
14411 # Make staticlib CPPFLAG variable and its definition visible in output
14412 # files unconditionally, providing an empty definition unless strictly
14413 # targeting a static library and not building its shared counterpart.
14416 CPPFLAG_CARES_STATICLIB=
14417 if test "x$xc_lt_build_static_only" = 'xyes'; then
14418 CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
14425 compiler_id="unknown"
14428 flags_dbg_all="unknown"
14429 flags_dbg_yes="unknown"
14430 flags_dbg_off="unknown"
14431 flags_opt_all="unknown"
14432 flags_opt_yes="unknown"
14433 flags_opt_off="unknown"
14435 flags_prefer_cppflags="no"
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
14439 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
14441 if test -z "$SED"; then
14442 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14444 if test -z "$GREP"; then
14445 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14454 CURL_DEF_TOKEN __DECC
14459 if ac_fn_c_try_cpp "$LINENO"; then :
14461 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14462 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14463 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14464 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14465 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
14470 rm -f conftest.err conftest.i conftest.$ac_ext
14471 if test -z "$tmp_exp"; then
14472 curl_cv_have_def___DECC=no
14475 curl_cv_have_def___DECC=yes
14476 curl_cv_def___DECC=$tmp_exp
14481 if test -z "$SED"; then
14482 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14484 if test -z "$GREP"; then
14485 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14494 CURL_DEF_TOKEN __DECC_VER
14499 if ac_fn_c_try_cpp "$LINENO"; then :
14501 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14502 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14503 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14504 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14505 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
14510 rm -f conftest.err conftest.i conftest.$ac_ext
14511 if test -z "$tmp_exp"; then
14512 curl_cv_have_def___DECC_VER=no
14515 curl_cv_have_def___DECC_VER=yes
14516 curl_cv_def___DECC_VER=$tmp_exp
14520 if test "$curl_cv_have_def___DECC" = "yes" &&
14521 test "$curl_cv_have_def___DECC_VER" = "yes"; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14523 $as_echo "yes" >&6; }
14524 compiler_id="DEC_C"
14525 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14526 flags_dbg_yes="-g2"
14527 flags_dbg_off="-g0"
14528 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
14529 flags_opt_yes="-O1"
14530 flags_opt_off="-O0"
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
14538 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
14540 if test -z "$SED"; then
14541 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14543 if test -z "$GREP"; then
14544 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14553 CURL_DEF_TOKEN __HP_cc
14558 if ac_fn_c_try_cpp "$LINENO"; then :
14560 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14561 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14562 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14563 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14564 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
14569 rm -f conftest.err conftest.i conftest.$ac_ext
14570 if test -z "$tmp_exp"; then
14571 curl_cv_have_def___HP_cc=no
14574 curl_cv_have_def___HP_cc=yes
14575 curl_cv_def___HP_cc=$tmp_exp
14579 if test "$curl_cv_have_def___HP_cc" = "yes"; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14581 $as_echo "yes" >&6; }
14582 compiler_id="HP_UX_C"
14583 flags_dbg_all="-g -s"
14586 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
14587 flags_opt_yes="+O2"
14588 flags_opt_off="+O0"
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
14596 $as_echo_n "checking if compiler is IBM C... " >&6; }
14598 if test -z "$SED"; then
14599 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14601 if test -z "$GREP"; then
14602 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14611 CURL_DEF_TOKEN __IBMC__
14616 if ac_fn_c_try_cpp "$LINENO"; then :
14618 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14619 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14620 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14621 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14622 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
14627 rm -f conftest.err conftest.i conftest.$ac_ext
14628 if test -z "$tmp_exp"; then
14629 curl_cv_have_def___IBMC__=no
14632 curl_cv_have_def___IBMC__=yes
14633 curl_cv_def___IBMC__=$tmp_exp
14637 if test "$curl_cv_have_def___IBMC__" = "yes"; then
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14639 $as_echo "yes" >&6; }
14640 compiler_id="IBM_C"
14641 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14644 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
14645 flags_opt_all="$flags_opt_all -qnooptimize"
14646 flags_opt_all="$flags_opt_all -qoptimize=0"
14647 flags_opt_all="$flags_opt_all -qoptimize=1"
14648 flags_opt_all="$flags_opt_all -qoptimize=2"
14649 flags_opt_all="$flags_opt_all -qoptimize=3"
14650 flags_opt_all="$flags_opt_all -qoptimize=4"
14651 flags_opt_all="$flags_opt_all -qoptimize=5"
14652 flags_opt_yes="-O2"
14653 flags_opt_off="-qnooptimize"
14654 flags_prefer_cppflags="yes"
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
14662 $as_echo_n "checking if compiler is Intel C... " >&6; }
14664 if test -z "$SED"; then
14665 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14667 if test -z "$GREP"; then
14668 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14676 #ifdef __INTEL_COMPILER
14677 CURL_DEF_TOKEN __INTEL_COMPILER
14682 if ac_fn_c_try_cpp "$LINENO"; then :
14684 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14685 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14686 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14687 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14688 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
14693 rm -f conftest.err conftest.i conftest.$ac_ext
14694 if test -z "$tmp_exp"; then
14695 curl_cv_have_def___INTEL_COMPILER=no
14698 curl_cv_have_def___INTEL_COMPILER=yes
14699 curl_cv_def___INTEL_COMPILER=$tmp_exp
14703 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14705 $as_echo "yes" >&6; }
14706 compiler_num="$curl_cv_def___INTEL_COMPILER"
14708 if test -z "$SED"; then
14709 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14711 if test -z "$GREP"; then
14712 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14721 CURL_DEF_TOKEN __unix__
14726 if ac_fn_c_try_cpp "$LINENO"; then :
14728 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14729 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14730 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14731 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14732 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
14737 rm -f conftest.err conftest.i conftest.$ac_ext
14738 if test -z "$tmp_exp"; then
14739 curl_cv_have_def___unix__=no
14742 curl_cv_have_def___unix__=yes
14743 curl_cv_def___unix__=$tmp_exp
14747 if test "$curl_cv_have_def___unix__" = "yes"; then
14748 compiler_id="INTEL_UNIX_C"
14749 flags_dbg_all="-g -g0"
14751 flags_dbg_off="-g0"
14752 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14753 flags_opt_yes="-O2"
14754 flags_opt_off="-O0"
14756 compiler_id="INTEL_WINDOWS_C"
14757 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
14758 flags_dbg_all="$flags_dbg_all /debug"
14759 flags_dbg_all="$flags_dbg_all /debug:none"
14760 flags_dbg_all="$flags_dbg_all /debug:minimal"
14761 flags_dbg_all="$flags_dbg_all /debug:partial"
14762 flags_dbg_all="$flags_dbg_all /debug:full"
14763 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
14764 flags_dbg_all="$flags_dbg_all /debug:extended"
14765 flags_dbg_yes="/Zi /Oy-"
14766 flags_dbg_off="/debug:none /Oy-"
14767 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
14768 flags_opt_yes="/O2"
14769 flags_opt_off="/Od"
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773 $as_echo "no" >&6; }
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
14778 $as_echo_n "checking if compiler is clang... " >&6; }
14780 if test -z "$SED"; then
14781 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14783 if test -z "$GREP"; then
14784 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14793 CURL_DEF_TOKEN __clang__
14798 if ac_fn_c_try_cpp "$LINENO"; then :
14800 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14801 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14802 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14803 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14804 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
14809 rm -f conftest.err conftest.i conftest.$ac_ext
14810 if test -z "$tmp_exp"; then
14811 curl_cv_have_def___clang__=no
14814 curl_cv_have_def___clang__=yes
14815 curl_cv_def___clang__=$tmp_exp
14819 if test "$curl_cv_have_def___clang__" = "yes"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14821 $as_echo "yes" >&6; }
14822 compiler_id="CLANG"
14823 clangver=`$CC -dumpversion`
14824 clangvhi=`echo $clangver | cut -d . -f1`
14825 clangvlo=`echo $clangver | cut -d . -f2`
14826 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
14827 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14828 flags_dbg_all="$flags_dbg_all -ggdb"
14829 flags_dbg_all="$flags_dbg_all -gstabs"
14830 flags_dbg_all="$flags_dbg_all -gstabs+"
14831 flags_dbg_all="$flags_dbg_all -gcoff"
14832 flags_dbg_all="$flags_dbg_all -gxcoff"
14833 flags_dbg_all="$flags_dbg_all -gdwarf-2"
14834 flags_dbg_all="$flags_dbg_all -gvms"
14836 flags_dbg_off="-g0"
14837 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
14838 flags_opt_yes="-Os"
14839 flags_opt_off="-O0"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842 $as_echo "no" >&6; }
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
14847 $as_echo_n "checking if compiler is GNU C... " >&6; }
14849 if test -z "$SED"; then
14850 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14852 if test -z "$GREP"; then
14853 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14862 CURL_DEF_TOKEN __GNUC__
14867 if ac_fn_c_try_cpp "$LINENO"; then :
14869 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14870 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14871 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14872 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14873 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14878 rm -f conftest.err conftest.i conftest.$ac_ext
14879 if test -z "$tmp_exp"; then
14880 curl_cv_have_def___GNUC__=no
14883 curl_cv_have_def___GNUC__=yes
14884 curl_cv_def___GNUC__=$tmp_exp
14888 if test "$curl_cv_have_def___GNUC__" = "yes" &&
14889 test "$compiler_id" = "unknown"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14892 compiler_id="GNU_C"
14893 gccver=`$CC -dumpversion`
14894 gccvhi=`echo $gccver | cut -d . -f1`
14895 gccvlo=`echo $gccver | cut -d . -f2`
14896 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
14897 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14898 flags_dbg_all="$flags_dbg_all -ggdb"
14899 flags_dbg_all="$flags_dbg_all -gstabs"
14900 flags_dbg_all="$flags_dbg_all -gstabs+"
14901 flags_dbg_all="$flags_dbg_all -gcoff"
14902 flags_dbg_all="$flags_dbg_all -gxcoff"
14903 flags_dbg_all="$flags_dbg_all -gdwarf-2"
14904 flags_dbg_all="$flags_dbg_all -gvms"
14906 flags_dbg_off="-g0"
14907 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14908 flags_opt_yes="-O2"
14909 flags_opt_off="-O0"
14911 if test -z "$SED"; then
14912 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14914 if test -z "$GREP"; then
14915 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14924 CURL_DEF_TOKEN _WIN32
14929 if ac_fn_c_try_cpp "$LINENO"; then :
14931 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14932 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14933 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14934 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14935 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
14940 rm -f conftest.err conftest.i conftest.$ac_ext
14941 if test -z "$tmp_exp"; then
14942 curl_cv_have_def__WIN32=no
14945 curl_cv_have_def__WIN32=yes
14946 curl_cv_def__WIN32=$tmp_exp
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
14957 $as_echo_n "checking if compiler is LCC... " >&6; }
14959 if test -z "$SED"; then
14960 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14962 if test -z "$GREP"; then
14963 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14972 CURL_DEF_TOKEN __LCC__
14977 if ac_fn_c_try_cpp "$LINENO"; then :
14979 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14980 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14981 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14982 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14983 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
14988 rm -f conftest.err conftest.i conftest.$ac_ext
14989 if test -z "$tmp_exp"; then
14990 curl_cv_have_def___LCC__=no
14993 curl_cv_have_def___LCC__=yes
14994 curl_cv_def___LCC__=$tmp_exp
14998 if test "$curl_cv_have_def___LCC__" = "yes"; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15000 $as_echo "yes" >&6; }
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010 $as_echo "no" >&6; }
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
15015 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
15017 if test -z "$SED"; then
15018 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15020 if test -z "$GREP"; then
15021 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15030 CURL_DEF_TOKEN __GNUC__
15035 if ac_fn_c_try_cpp "$LINENO"; then :
15037 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15038 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15039 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15040 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15041 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15046 rm -f conftest.err conftest.i conftest.$ac_ext
15047 if test -z "$tmp_exp"; then
15048 curl_cv_have_def___GNUC__=no
15051 curl_cv_have_def___GNUC__=yes
15052 curl_cv_def___GNUC__=$tmp_exp
15057 if test -z "$SED"; then
15058 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15060 if test -z "$GREP"; then
15061 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15069 #ifdef _COMPILER_VERSION
15070 CURL_DEF_TOKEN _COMPILER_VERSION
15075 if ac_fn_c_try_cpp "$LINENO"; then :
15077 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15078 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15079 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15080 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15081 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
15086 rm -f conftest.err conftest.i conftest.$ac_ext
15087 if test -z "$tmp_exp"; then
15088 curl_cv_have_def__COMPILER_VERSION=no
15091 curl_cv_have_def__COMPILER_VERSION=yes
15092 curl_cv_def__COMPILER_VERSION=$tmp_exp
15097 if test -z "$SED"; then
15098 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15100 if test -z "$GREP"; then
15101 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15109 #ifdef _SGI_COMPILER_VERSION
15110 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
15115 if ac_fn_c_try_cpp "$LINENO"; then :
15117 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15118 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15119 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15120 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15121 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
15126 rm -f conftest.err conftest.i conftest.$ac_ext
15127 if test -z "$tmp_exp"; then
15128 curl_cv_have_def__SGI_COMPILER_VERSION=no
15131 curl_cv_have_def__SGI_COMPILER_VERSION=yes
15132 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
15136 if test "$curl_cv_have_def___GNUC__" = "no" &&
15137 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
15138 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15140 $as_echo "yes" >&6; }
15141 compiler_id="SGI_MIPSPRO_C"
15142 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15144 flags_dbg_off="-g0"
15145 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
15146 flags_opt_yes="-O2"
15147 flags_opt_off="-O0"
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150 $as_echo "no" >&6; }
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
15155 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
15157 if test -z "$SED"; then
15158 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15160 if test -z "$GREP"; then
15161 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15170 CURL_DEF_TOKEN __GNUC__
15175 if ac_fn_c_try_cpp "$LINENO"; then :
15177 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15178 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15179 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15180 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15181 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15186 rm -f conftest.err conftest.i conftest.$ac_ext
15187 if test -z "$tmp_exp"; then
15188 curl_cv_have_def___GNUC__=no
15191 curl_cv_have_def___GNUC__=yes
15192 curl_cv_def___GNUC__=$tmp_exp
15197 if test -z "$SED"; then
15198 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15200 if test -z "$GREP"; then
15201 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15210 CURL_DEF_TOKEN __sgi
15215 if ac_fn_c_try_cpp "$LINENO"; then :
15217 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15218 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15219 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15220 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15221 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
15226 rm -f conftest.err conftest.i conftest.$ac_ext
15227 if test -z "$tmp_exp"; then
15228 curl_cv_have_def___sgi=no
15231 curl_cv_have_def___sgi=yes
15232 curl_cv_def___sgi=$tmp_exp
15236 if test "$curl_cv_have_def___GNUC__" = "no" &&
15237 test "$curl_cv_have_def___sgi" = "yes" &&
15238 test "$compiler_id" = "unknown"; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15240 $as_echo "yes" >&6; }
15241 compiler_id="SGI_MIPS_C"
15242 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15244 flags_dbg_off="-g0"
15245 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
15246 flags_opt_yes="-O2"
15247 flags_opt_off="-O0"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15250 $as_echo "no" >&6; }
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
15255 $as_echo_n "checking if compiler is SunPro C... " >&6; }
15257 if test -z "$SED"; then
15258 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15260 if test -z "$GREP"; then
15261 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15270 CURL_DEF_TOKEN __SUNPRO_C
15275 if ac_fn_c_try_cpp "$LINENO"; then :
15277 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15278 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15279 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15280 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15281 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
15286 rm -f conftest.err conftest.i conftest.$ac_ext
15287 if test -z "$tmp_exp"; then
15288 curl_cv_have_def___SUNPRO_C=no
15291 curl_cv_have_def___SUNPRO_C=yes
15292 curl_cv_def___SUNPRO_C=$tmp_exp
15296 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15298 $as_echo "yes" >&6; }
15299 compiler_id="SUNPRO_C"
15300 flags_dbg_all="-g -s"
15303 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
15304 flags_opt_yes="-xO2"
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 $as_echo "no" >&6; }
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
15313 $as_echo_n "checking if compiler is Tiny C... " >&6; }
15315 if test -z "$SED"; then
15316 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15318 if test -z "$GREP"; then
15319 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15328 CURL_DEF_TOKEN __TINYC__
15333 if ac_fn_c_try_cpp "$LINENO"; then :
15335 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15336 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15337 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15338 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15339 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
15344 rm -f conftest.err conftest.i conftest.$ac_ext
15345 if test -z "$tmp_exp"; then
15346 curl_cv_have_def___TINYC__=no
15349 curl_cv_have_def___TINYC__=yes
15350 curl_cv_def___TINYC__=$tmp_exp
15354 if test "$curl_cv_have_def___TINYC__" = "yes"; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15356 $as_echo "yes" >&6; }
15357 compiler_id="TINY_C"
15358 flags_dbg_all="-g -b"
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
15371 $as_echo_n "checking if compiler is Watcom C... " >&6; }
15373 if test -z "$SED"; then
15374 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15376 if test -z "$GREP"; then
15377 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15386 CURL_DEF_TOKEN __WATCOMC__
15391 if ac_fn_c_try_cpp "$LINENO"; then :
15393 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15394 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15395 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15396 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15397 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
15402 rm -f conftest.err conftest.i conftest.$ac_ext
15403 if test -z "$tmp_exp"; then
15404 curl_cv_have_def___WATCOMC__=no
15407 curl_cv_have_def___WATCOMC__=yes
15408 curl_cv_def___WATCOMC__=$tmp_exp
15412 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15414 $as_echo "yes" >&6; }
15416 if test -z "$SED"; then
15417 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15419 if test -z "$GREP"; then
15420 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15429 CURL_DEF_TOKEN __UNIX__
15434 if ac_fn_c_try_cpp "$LINENO"; then :
15436 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15437 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15438 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15439 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15440 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
15445 rm -f conftest.err conftest.i conftest.$ac_ext
15446 if test -z "$tmp_exp"; then
15447 curl_cv_have_def___UNIX__=no
15450 curl_cv_have_def___UNIX__=yes
15451 curl_cv_def___UNIX__=$tmp_exp
15455 if test "$curl_cv_have_def___UNIX__" = "yes"; then
15456 compiler_id="WATCOM_UNIX_C"
15457 flags_dbg_all="-g1 -g1+ -g2 -g3"
15458 flags_dbg_yes="-g2"
15460 flags_opt_all="-O0 -O1 -O2 -O3"
15461 flags_opt_yes="-O2"
15462 flags_opt_off="-O0"
15464 compiler_id="WATCOM_WINDOWS_C"
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15478 if test "$compiler_id" = "unknown"; then
15481 *** Warning: This configure script does not have information about the
15482 *** compiler you are using, relative to the flags required to enable or
15483 *** disable generation of debug info, optimization options or warnings.
15485 *** Whatever settings are present in CFLAGS will be used for this run.
15487 *** If you wish to help the c-ares project to better support your compiler
15488 *** you can report this and the required info on the c-ares development
15489 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
15497 eval _sqz_input=\$$1
15498 for _sqz_token in $_sqz_input; do
15499 if test -z "$_sqz_result"; then
15500 _sqz_result="$_sqz_token"
15502 _sqz_result="$_sqz_result $_sqz_token"
15505 eval $1=\$_sqz_result
15511 if test "$compiler_id" != "unknown"; then
15513 if test "$compiler_id" = "GNU_C" ||
15514 test "$compiler_id" = "CLANG"; then
15516 if test "$compiler_id" = "GNU_C" ||
15517 test "$compiler_id" = "CLANG"; then
15518 tmp_has_include="no"
15519 tmp_chg_FLAGS="$CFLAGS"
15520 for word1 in $tmp_chg_FLAGS; do
15523 tmp_has_include="yes"
15527 if test "$tmp_has_include" = "yes"; then
15528 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15529 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15530 CFLAGS="$tmp_chg_FLAGS"
15533 tmp_has_include="no"
15534 tmp_chg_FLAGS="$CPPFLAGS"
15535 for word1 in $tmp_chg_FLAGS; do
15538 tmp_has_include="yes"
15542 if test "$tmp_has_include" = "yes"; then
15543 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15544 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15545 CPPFLAGS="$tmp_chg_FLAGS"
15552 tmp_save_CPPFLAGS="$CPPFLAGS"
15553 tmp_save_CFLAGS="$CFLAGS"
15557 case "$compiler_id" in
15561 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
15566 tmp_CFLAGS="$tmp_CFLAGS -std1"
15567 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
15568 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
15569 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
15574 tmp_CFLAGS="$tmp_CFLAGS"
15579 tmp_CFLAGS="$tmp_CFLAGS -z"
15580 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
15585 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
15586 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
15587 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
15592 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
15593 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
15594 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
15599 tmp_CFLAGS="$tmp_CFLAGS"
15604 tmp_CFLAGS="$tmp_CFLAGS -n"
15609 tmp_CFLAGS="$tmp_CFLAGS"
15614 tmp_CFLAGS="$tmp_CFLAGS"
15619 tmp_CFLAGS="$tmp_CFLAGS"
15624 tmp_CFLAGS="$tmp_CFLAGS"
15629 tmp_CFLAGS="$tmp_CFLAGS"
15634 tmp_CFLAGS="$tmp_CFLAGS"
15639 squeeze tmp_CPPFLAGS
15642 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
15644 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
15645 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
15646 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
15650 tmp_compiler_works="unknown"
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15667 if ac_fn_c_try_compile "$LINENO"; then :
15669 tmp_compiler_works="yes"
15673 tmp_compiler_works="no"
15675 sed 's/^/cc-fail: /' conftest.err >&6
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 if test "$tmp_compiler_works" = "yes"; then
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15697 if ac_fn_c_try_link "$LINENO"; then :
15699 tmp_compiler_works="yes"
15703 tmp_compiler_works="no"
15705 sed 's/^/link-fail: /' conftest.err >&6
15709 rm -f core conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15712 if test "x$cross_compiling" != "xyes" &&
15713 test "$tmp_compiler_works" = "yes"; then
15714 if test "$cross_compiling" = yes; then :
15715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15717 as_fn_error $? "cannot run test program while cross compiling
15718 See \`config.log' for more details" "$LINENO" 5; }
15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15725 # include <stdlib.h>
15739 if ac_fn_c_try_run "$LINENO"; then :
15741 tmp_compiler_works="yes"
15745 tmp_compiler_works="no"
15747 echo "run-fail: test program exited with status $ac_status" >&6
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752 conftest.$ac_objext conftest.beam conftest.$ac_ext
15756 if test "$tmp_compiler_works" = "yes"; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15759 $as_echo "yes" >&6; }
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15761 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15768 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
15769 CPPFLAGS="$tmp_save_CPPFLAGS"
15770 CFLAGS="$tmp_save_CFLAGS"
15780 if test "$compiler_id" != "unknown"; then
15782 tmp_save_CFLAGS="$CFLAGS"
15783 tmp_save_CPPFLAGS="$CPPFLAGS"
15786 tmp_CFLAGS="$CFLAGS"
15787 tmp_CPPFLAGS="$CPPFLAGS"
15790 for word1 in $tmp_CFLAGS; do
15791 ac_var_strip_word="no"
15792 for word2 in $flags_dbg_all; do
15793 if test "$word1" = "$word2"; then
15794 ac_var_strip_word="yes"
15797 if test "$ac_var_strip_word" = "no"; then
15798 ac_var_stripped="$ac_var_stripped $word1"
15801 tmp_CFLAGS="$ac_var_stripped"
15806 for word1 in $tmp_CPPFLAGS; do
15807 ac_var_strip_word="no"
15808 for word2 in $flags_dbg_all; do
15809 if test "$word1" = "$word2"; then
15810 ac_var_strip_word="yes"
15813 if test "$ac_var_strip_word" = "no"; then
15814 ac_var_stripped="$ac_var_stripped $word1"
15817 tmp_CPPFLAGS="$ac_var_stripped"
15818 squeeze tmp_CPPFLAGS
15821 if test "$want_debug" = "yes"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
15823 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
15824 tmp_options="$flags_dbg_yes"
15826 if test "$want_debug" = "no"; then
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
15828 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
15829 tmp_options="$flags_dbg_off"
15832 if test "$flags_prefer_cppflags" = "yes"; then
15833 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
15834 CFLAGS="$tmp_CFLAGS"
15836 CPPFLAGS="$tmp_CPPFLAGS"
15837 CFLAGS="$tmp_CFLAGS $tmp_options"
15842 tmp_compiler_works="unknown"
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15859 if ac_fn_c_try_compile "$LINENO"; then :
15861 tmp_compiler_works="yes"
15865 tmp_compiler_works="no"
15867 sed 's/^/cc-fail: /' conftest.err >&6
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872 if test "$tmp_compiler_works" = "yes"; then
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15889 if ac_fn_c_try_link "$LINENO"; then :
15891 tmp_compiler_works="yes"
15895 tmp_compiler_works="no"
15897 sed 's/^/link-fail: /' conftest.err >&6
15901 rm -f core conftest.err conftest.$ac_objext \
15902 conftest$ac_exeext conftest.$ac_ext
15904 if test "x$cross_compiling" != "xyes" &&
15905 test "$tmp_compiler_works" = "yes"; then
15906 if test "$cross_compiling" = yes; then :
15907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15909 as_fn_error $? "cannot run test program while cross compiling
15910 See \`config.log' for more details" "$LINENO" 5; }
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15917 # include <stdlib.h>
15931 if ac_fn_c_try_run "$LINENO"; then :
15933 tmp_compiler_works="yes"
15937 tmp_compiler_works="no"
15939 echo "run-fail: test program exited with status $ac_status" >&6
15943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15944 conftest.$ac_objext conftest.beam conftest.$ac_ext
15948 if test "$tmp_compiler_works" = "yes"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15951 $as_echo "yes" >&6; }
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15953 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15960 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15961 CPPFLAGS="$tmp_save_CPPFLAGS"
15962 CFLAGS="$tmp_save_CFLAGS"
15971 if test "$compiler_id" != "unknown"; then
15973 tmp_save_CFLAGS="$CFLAGS"
15974 tmp_save_CPPFLAGS="$CPPFLAGS"
15977 tmp_CFLAGS="$CFLAGS"
15978 tmp_CPPFLAGS="$CPPFLAGS"
15979 honor_optimize_option="yes"
15982 if test "$want_optimize" = "assume_no" ||
15983 test "$want_optimize" = "assume_yes"; then
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
15985 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
15988 ac_var_match_word="no"
15989 for word1 in $tmp_CFLAGS; do
15990 for word2 in $flags_opt_all; do
15991 if test "$word1" = "$word2"; then
15992 ac_var_match_word="yes"
15997 if test "$ac_var_match_word" = "yes"; then
15999 honor_optimize_option="no"
16006 ac_var_match_word="no"
16007 for word1 in $tmp_CPPFLAGS; do
16008 for word2 in $flags_opt_all; do
16009 if test "$word1" = "$word2"; then
16010 ac_var_match_word="yes"
16015 if test "$ac_var_match_word" = "yes"; then
16017 honor_optimize_option="no"
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
16023 $as_echo "$honor_optimize_option" >&6; }
16024 if test "$honor_optimize_option" = "yes"; then
16025 if test "$want_optimize" = "assume_yes"; then
16026 want_optimize="yes"
16028 if test "$want_optimize" = "assume_no"; then
16034 if test "$honor_optimize_option" = "yes"; then
16037 for word1 in $tmp_CFLAGS; do
16038 ac_var_strip_word="no"
16039 for word2 in $flags_opt_all; do
16040 if test "$word1" = "$word2"; then
16041 ac_var_strip_word="yes"
16044 if test "$ac_var_strip_word" = "no"; then
16045 ac_var_stripped="$ac_var_stripped $word1"
16048 tmp_CFLAGS="$ac_var_stripped"
16053 for word1 in $tmp_CPPFLAGS; do
16054 ac_var_strip_word="no"
16055 for word2 in $flags_opt_all; do
16056 if test "$word1" = "$word2"; then
16057 ac_var_strip_word="yes"
16060 if test "$ac_var_strip_word" = "no"; then
16061 ac_var_stripped="$ac_var_stripped $word1"
16064 tmp_CPPFLAGS="$ac_var_stripped"
16065 squeeze tmp_CPPFLAGS
16067 if test "$want_optimize" = "yes"; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
16069 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
16070 tmp_options="$flags_opt_yes"
16072 if test "$want_optimize" = "no"; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
16074 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
16075 tmp_options="$flags_opt_off"
16077 if test "$flags_prefer_cppflags" = "yes"; then
16078 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
16079 CFLAGS="$tmp_CFLAGS"
16081 CPPFLAGS="$tmp_CPPFLAGS"
16082 CFLAGS="$tmp_CFLAGS $tmp_options"
16087 tmp_compiler_works="unknown"
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16104 if ac_fn_c_try_compile "$LINENO"; then :
16106 tmp_compiler_works="yes"
16110 tmp_compiler_works="no"
16112 sed 's/^/cc-fail: /' conftest.err >&6
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 if test "$tmp_compiler_works" = "yes"; then
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16134 if ac_fn_c_try_link "$LINENO"; then :
16136 tmp_compiler_works="yes"
16140 tmp_compiler_works="no"
16142 sed 's/^/link-fail: /' conftest.err >&6
16146 rm -f core conftest.err conftest.$ac_objext \
16147 conftest$ac_exeext conftest.$ac_ext
16149 if test "x$cross_compiling" != "xyes" &&
16150 test "$tmp_compiler_works" = "yes"; then
16151 if test "$cross_compiling" = yes; then :
16152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16154 as_fn_error $? "cannot run test program while cross compiling
16155 See \`config.log' for more details" "$LINENO" 5; }
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16162 # include <stdlib.h>
16176 if ac_fn_c_try_run "$LINENO"; then :
16178 tmp_compiler_works="yes"
16182 tmp_compiler_works="no"
16184 echo "run-fail: test program exited with status $ac_status" >&6
16188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16189 conftest.$ac_objext conftest.beam conftest.$ac_ext
16193 if test "$tmp_compiler_works" = "yes"; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16196 $as_echo "yes" >&6; }
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
16198 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
16205 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
16206 CPPFLAGS="$tmp_save_CPPFLAGS"
16207 CFLAGS="$tmp_save_CFLAGS"
16217 if test "$compiler_id" != "unknown"; then
16219 tmp_save_CPPFLAGS="$CPPFLAGS"
16220 tmp_save_CFLAGS="$CFLAGS"
16224 case "$compiler_id" in
16228 if test "$want_warnings" = "yes"; then
16229 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
16230 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
16231 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
16232 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
16233 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
16234 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
16235 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
16236 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
16237 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
16238 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
16239 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
16240 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
16241 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
16242 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
16243 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
16244 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
16245 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
16247 if test "$compiler_num" -ge "101"; then
16248 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
16255 if test "$want_warnings" = "yes"; then
16256 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
16262 if test "$want_warnings" = "yes"; then
16264 if test "x$cross_compiling" != "xyes" ||
16265 test "$compiler_num" -ge "300"; then
16266 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
16269 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
16271 if test "$compiler_num" -ge "104"; then
16272 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
16273 if test "x$cross_compiling" != "xyes" ||
16274 test "$compiler_num" -ge "300"; then
16275 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
16279 if test "$compiler_num" -ge "207"; then
16280 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
16281 if test "x$cross_compiling" != "xyes" ||
16282 test "$compiler_num" -ge "300"; then
16283 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
16284 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
16288 if test "$compiler_num" -ge "295"; then
16289 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
16292 if test "$compiler_num" -ge "296"; then
16293 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
16294 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
16295 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
16298 if test "$compiler_num" -ge "297"; then
16299 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
16302 if test "$compiler_num" -ge "300"; then
16303 tmp_CFLAGS="$tmp_CFLAGS"
16306 if test "$compiler_num" -ge "303"; then
16307 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
16310 if test "$compiler_num" -ge "304"; then
16311 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
16314 if test "$compiler_num" -ge "400"; then
16315 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
16318 if test "$compiler_num" -ge "402"; then
16319 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
16322 if test "$compiler_num" -ge "403"; then
16323 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
16324 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
16325 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
16326 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
16329 if test "$compiler_num" -ge "405"; then
16330 if test "$curl_cv_have_def__WIN32" = "yes"; then
16331 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
16337 if test "$compiler_num" -ge "300"; then
16338 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
16340 if test "x$cross_compiling" = "xyes"; then
16341 if test "$compiler_num" -ge "104"; then
16342 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
16344 if test "$compiler_num" -ge "207"; then
16345 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
16346 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
16354 if test "$want_warnings" = "yes"; then
16355 tmp_CFLAGS="$tmp_CFLAGS +w1"
16361 tmp_CFLAGS="$tmp_CFLAGS"
16366 if test "$want_warnings" = "yes"; then
16367 if test "$compiler_num" -gt "600"; then
16368 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
16369 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
16370 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
16371 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
16372 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
16373 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
16374 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
16375 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
16376 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
16377 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
16378 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
16381 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
16382 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
16383 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
16384 if test "$compiler_num" -ge "1000"; then
16385 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
16391 tmp_CFLAGS="$tmp_CFLAGS"
16396 if test "$want_warnings" = "yes"; then
16397 tmp_CFLAGS="$tmp_CFLAGS"
16403 if test "$want_warnings" = "yes"; then
16404 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
16410 if test "$want_warnings" = "yes"; then
16411 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
16412 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
16418 if test "$want_warnings" = "yes"; then
16419 tmp_CFLAGS="$tmp_CFLAGS -v"
16425 if test "$want_warnings" = "yes"; then
16426 tmp_CFLAGS="$tmp_CFLAGS -Wall"
16427 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
16428 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
16434 if test "$want_warnings" = "yes"; then
16435 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
16441 tmp_CFLAGS="$tmp_CFLAGS"
16446 squeeze tmp_CPPFLAGS
16449 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
16451 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
16452 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16453 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16457 tmp_compiler_works="unknown"
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h. */
16474 if ac_fn_c_try_compile "$LINENO"; then :
16476 tmp_compiler_works="yes"
16480 tmp_compiler_works="no"
16482 sed 's/^/cc-fail: /' conftest.err >&6
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 if test "$tmp_compiler_works" = "yes"; then
16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h. */
16504 if ac_fn_c_try_link "$LINENO"; then :
16506 tmp_compiler_works="yes"
16510 tmp_compiler_works="no"
16512 sed 's/^/link-fail: /' conftest.err >&6
16516 rm -f core conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16519 if test "x$cross_compiling" != "xyes" &&
16520 test "$tmp_compiler_works" = "yes"; then
16521 if test "$cross_compiling" = yes; then :
16522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16524 as_fn_error $? "cannot run test program while cross compiling
16525 See \`config.log' for more details" "$LINENO" 5; }
16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h. */
16532 # include <stdlib.h>
16546 if ac_fn_c_try_run "$LINENO"; then :
16548 tmp_compiler_works="yes"
16552 tmp_compiler_works="no"
16554 echo "run-fail: test program exited with status $ac_status" >&6
16558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16559 conftest.$ac_objext conftest.beam conftest.$ac_ext
16563 if test "$tmp_compiler_works" = "yes"; then
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566 $as_echo "yes" >&6; }
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16568 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16575 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16576 CPPFLAGS="$tmp_save_CPPFLAGS"
16577 CFLAGS="$tmp_save_CFLAGS"
16586 if test "$compiler_id" = "INTEL_UNIX_C"; then
16588 if test "$compiler_num" -ge "1000"; then
16589 CFLAGS="$CFLAGS -shared-intel"
16590 elif test "$compiler_num" -ge "900"; then
16591 CFLAGS="$CFLAGS -i-dynamic"
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
16598 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16607 force compilation error
16614 if ac_fn_c_try_compile "$LINENO"; then :
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617 $as_echo "no" >&6; }
16618 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16623 $as_echo "yes" >&6; }
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
16630 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16635 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
16647 if ac_fn_c_try_compile "$LINENO"; then :
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16651 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16656 $as_echo "yes" >&6; }
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
16663 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16668 # include <stdlib.h>
16682 int j = rand(i[0]);
16691 if ac_fn_c_try_compile "$LINENO"; then :
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16695 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16700 $as_echo "yes" >&6; }
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
16707 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
16708 supports_symbol_hiding="no"
16709 symbol_hiding_CFLAGS=""
16710 symbol_hiding_EXTERN=""
16713 case "$compiler_id" in
16715 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
16716 tmp_CFLAGS="-fvisibility=hidden"
16717 supports_symbol_hiding="yes"
16720 if test "$compiler_num" -ge "304"; then
16721 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
16722 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
16723 tmp_CFLAGS="-fvisibility=hidden"
16724 supports_symbol_hiding="yes"
16729 if test "$compiler_num" -ge "900"; then
16730 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
16731 tmp_save_CFLAGS="$CFLAGS"
16732 CFLAGS="$CFLAGS -fvisibility=hidden"
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16737 # include <stdio.h>
16742 printf("icc fvisibility bug test");
16749 if ac_fn_c_try_link "$LINENO"; then :
16751 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
16752 tmp_CFLAGS="-fvisibility=hidden"
16753 supports_symbol_hiding="yes"
16756 rm -f core conftest.err conftest.$ac_objext \
16757 conftest$ac_exeext conftest.$ac_ext
16758 CFLAGS="$tmp_save_CFLAGS"
16763 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
16764 tmp_EXTERN="__global"
16765 tmp_CFLAGS="-xldscope=hidden"
16766 supports_symbol_hiding="yes"
16770 if test "$supports_symbol_hiding" = "yes"; then
16771 tmp_save_CFLAGS="$CFLAGS"
16772 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16778 $tmp_EXTERN char *dummy(char *buff);
16779 char *dummy(char *buff)
16791 char *r = dummy(&b[0]);
16800 if ac_fn_c_try_compile "$LINENO"; then :
16802 supports_symbol_hiding="yes"
16803 if test -f conftest.err; then
16804 grep 'visibility' conftest.err >/dev/null
16805 if test "$?" -eq "0"; then
16806 supports_symbol_hiding="no"
16812 supports_symbol_hiding="no"
16814 sed 's/^/cc-src: /' conftest.$ac_ext >&6
16815 sed 's/^/cc-err: /' conftest.err >&6
16819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820 CFLAGS="$tmp_save_CFLAGS"
16822 if test "$supports_symbol_hiding" = "yes"; then
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16824 $as_echo "yes" >&6; }
16825 symbol_hiding_CFLAGS="$tmp_CFLAGS"
16826 symbol_hiding_EXTERN="$tmp_EXTERN"
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 $as_echo "no" >&6; }
16834 cares_builddir=`pwd`
16835 supports_curldebug="unknown"
16836 if test "$want_curldebug" = "yes"; then
16837 if test "x$enable_shared" != "xno" &&
16838 test "x$enable_shared" != "xyes"; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
16840 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
16841 supports_curldebug="no"
16843 if test "x$enable_static" != "xno" &&
16844 test "x$enable_static" != "xyes"; then
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
16846 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
16847 supports_curldebug="no"
16849 if test "$supports_curldebug" != "no"; then
16850 if test "$enable_shared" = "yes" &&
16851 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16852 supports_curldebug="no"
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
16854 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
16856 if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
16858 $as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
16859 supports_curldebug="no"
16860 elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
16862 $as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
16863 supports_curldebug="no"
16864 elif test ! -f "$cares_builddir/../libcurl.pc" ||
16865 test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
16867 $as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
16868 supports_curldebug="no"
16869 elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
16871 $as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
16872 supports_curldebug="no"
16873 elif test ! -f "$cares_builddir/../config.status"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
16875 $as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
16876 supports_curldebug="no"
16878 if test "$supports_curldebug" != "no"; then
16879 grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
16880 if test "$?" -ne "0"; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
16882 $as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
16883 supports_curldebug="no"
16886 if test "$supports_curldebug" != "no"; then
16887 grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
16888 if test "$?" -ne "0"; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
16890 $as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
16891 supports_curldebug="no"
16897 if test "$want_curldebug" = "yes"; then
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
16899 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
16900 test "$supports_curldebug" = "no" || supports_curldebug="yes"
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
16902 $as_echo "$supports_curldebug" >&6; }
16903 if test "$supports_curldebug" = "no"; then
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
16905 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
16906 want_curldebug="no"
16910 if test "$want_curldebug" = "yes"; then
16912 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
16914 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
16918 if test "$want_debug" = "yes"; then
16919 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
16923 if test x$want_curldebug = xyes; then
16925 CURLDEBUG_FALSE='#'
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
16936 $as_echo_n "checking for windows.h... " >&6; }
16937 if ${ac_cv_header_windows_h+:} false; then :
16938 $as_echo_n "(cached) " >&6
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16946 #ifndef WIN32_LEAN_AND_MEAN
16947 #define WIN32_LEAN_AND_MEAN
16949 #include <windows.h>
16954 #if defined(__CYGWIN__) || defined(__CEGCC__)
16955 HAVE_WINDOWS_H shall not be defined.
16957 int dummy=2*WINVER;
16965 if ac_fn_c_try_compile "$LINENO"; then :
16967 ac_cv_header_windows_h="yes"
16971 ac_cv_header_windows_h="no"
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
16978 $as_echo "$ac_cv_header_windows_h" >&6; }
16979 case "$ac_cv_header_windows_h" in
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_WINDOWS_H 1
16987 cat >>confdefs.h <<_ACEOF
16988 #define WIN32_LEAN_AND_MEAN 1
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
16996 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
16997 if ${ac_cv_native_windows+:} false; then :
16998 $as_echo_n "(cached) " >&6
17001 if test "$ac_cv_header_windows_h" = "no"; then
17002 ac_cv_native_windows="no"
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17012 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
17013 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
17016 Not a native Windows build target.
17024 if ac_fn_c_try_compile "$LINENO"; then :
17026 ac_cv_native_windows="yes"
17030 ac_cv_native_windows="no"
17033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
17038 $as_echo "$ac_cv_native_windows" >&6; }
17039 if test "x$ac_cv_native_windows" = xyes; then
17040 DOING_NATIVE_WINDOWS_TRUE=
17041 DOING_NATIVE_WINDOWS_FALSE='#'
17043 DOING_NATIVE_WINDOWS_TRUE='#'
17044 DOING_NATIVE_WINDOWS_FALSE=
17048 case X-"$ac_cv_native_windows" in
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
17052 $as_echo_n "checking for winsock.h... " >&6; }
17053 if ${ac_cv_header_winsock_h+:} false; then :
17054 $as_echo_n "(cached) " >&6
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17062 #ifndef WIN32_LEAN_AND_MEAN
17063 #define WIN32_LEAN_AND_MEAN
17065 #include <windows.h>
17066 #include <winsock.h>
17071 #if defined(__CYGWIN__) || defined(__CEGCC__)
17072 HAVE_WINSOCK_H shall not be defined.
17074 int dummy=WSACleanup();
17082 if ac_fn_c_try_compile "$LINENO"; then :
17084 ac_cv_header_winsock_h="yes"
17088 ac_cv_header_winsock_h="no"
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
17095 $as_echo "$ac_cv_header_winsock_h" >&6; }
17096 case "$ac_cv_header_winsock_h" in
17099 cat >>confdefs.h <<_ACEOF
17100 #define HAVE_WINSOCK_H 1
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
17108 $as_echo_n "checking for winsock2.h... " >&6; }
17109 if ${ac_cv_header_winsock2_h+:} false; then :
17110 $as_echo_n "(cached) " >&6
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17118 #ifndef WIN32_LEAN_AND_MEAN
17119 #define WIN32_LEAN_AND_MEAN
17121 #include <windows.h>
17122 #include <winsock2.h>
17127 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17128 HAVE_WINSOCK2_H shall not be defined.
17130 int dummy=2*IPPROTO_ESP;
17138 if ac_fn_c_try_compile "$LINENO"; then :
17140 ac_cv_header_winsock2_h="yes"
17144 ac_cv_header_winsock2_h="no"
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
17151 $as_echo "$ac_cv_header_winsock2_h" >&6; }
17152 case "$ac_cv_header_winsock2_h" in
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_WINSOCK2_H 1
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
17164 $as_echo_n "checking for ws2tcpip.h... " >&6; }
17165 if ${ac_cv_header_ws2tcpip_h+:} false; then :
17166 $as_echo_n "(cached) " >&6
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17174 #ifndef WIN32_LEAN_AND_MEAN
17175 #define WIN32_LEAN_AND_MEAN
17177 #include <windows.h>
17178 #include <winsock2.h>
17179 #include <ws2tcpip.h>
17184 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17185 HAVE_WS2TCPIP_H shall not be defined.
17187 int dummy=2*IP_PKTINFO;
17195 if ac_fn_c_try_compile "$LINENO"; then :
17197 ac_cv_header_ws2tcpip_h="yes"
17201 ac_cv_header_ws2tcpip_h="no"
17204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
17208 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
17209 case "$ac_cv_header_ws2tcpip_h" in
17212 cat >>confdefs.h <<_ACEOF
17213 #define HAVE_WS2TCPIP_H 1
17221 ac_cv_header_winsock_h="no"
17222 ac_cv_header_winsock2_h="no"
17223 ac_cv_header_ws2tcpip_h="no"
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
17230 $as_echo_n "checking if X/Open network library is required... " >&6; }
17231 tst_lib_xnet_required="no"
17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233 /* end confdefs.h. */
17238 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
17240 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
17243 force compilation error
17249 if ac_fn_c_try_compile "$LINENO"; then :
17251 tst_lib_xnet_required="yes"
17252 LIBS="$LIBS -lxnet"
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
17257 $as_echo "$tst_lib_xnet_required" >&6; }
17260 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17261 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17262 HAVE_GETHOSTBYNAME="1"
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17266 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17267 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17268 $as_echo_n "(cached) " >&6
17270 ac_check_lib_save_LIBS=$LIBS
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17279 char gethostbyname ();
17282 return gethostbyname ();
17287 if ac_fn_c_try_link "$LINENO"; then :
17288 ac_cv_lib_nsl_gethostbyname=yes
17290 ac_cv_lib_nsl_gethostbyname=no
17292 rm -f core conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17297 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17298 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17299 HAVE_GETHOSTBYNAME="1"
17308 if test "$HAVE_GETHOSTBYNAME" != "1"
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
17311 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
17312 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
17313 $as_echo_n "(cached) " >&6
17315 ac_check_lib_save_LIBS=$LIBS
17316 LIBS="-lsocket $LIBS"
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h. */
17324 char gethostbyname ();
17327 return gethostbyname ();
17332 if ac_fn_c_try_link "$LINENO"; then :
17333 ac_cv_lib_socket_gethostbyname=yes
17335 ac_cv_lib_socket_gethostbyname=no
17337 rm -f core conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17339 LIBS=$ac_check_lib_save_LIBS
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
17342 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
17343 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
17344 HAVE_GETHOSTBYNAME="1"
17345 LIBS="$LIBS -lsocket"
17351 if test "$HAVE_GETHOSTBYNAME" != "1"
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
17354 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
17355 my_ac_save_LIBS=$LIBS
17356 LIBS="-lnsl -lsocket $LIBS"
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h. */
17372 if ac_fn_c_try_link "$LINENO"; then :
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375 $as_echo "yes" >&6; }
17376 HAVE_GETHOSTBYNAME="1"
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381 $as_echo "no" >&6; }
17382 LIBS=$my_ac_save_LIBS
17385 rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17389 if test "$HAVE_GETHOSTBYNAME" != "1"
17391 if test "$ac_cv_header_windows_h" = "yes"; then
17392 if test "$ac_cv_header_winsock_h" = "yes"; then
17395 winsock_LIB="-lwinsock"
17398 winsock_LIB="-lwsock32"
17402 if test "$ac_cv_header_winsock2_h" = "yes"; then
17403 winsock_LIB="-lws2_32"
17405 if test ! -z "$winsock_LIB"; then
17406 my_ac_save_LIBS=$LIBS
17407 LIBS="$winsock_LIB $LIBS"
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
17409 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17414 #ifdef HAVE_WINDOWS_H
17415 #ifndef WIN32_LEAN_AND_MEAN
17416 #define WIN32_LEAN_AND_MEAN
17418 #include <windows.h>
17419 #ifdef HAVE_WINSOCK2_H
17420 #include <winsock2.h>
17422 #ifdef HAVE_WINSOCK_H
17423 #include <winsock.h>
17431 gethostbyname("www.dummysite.com");
17438 if ac_fn_c_try_link "$LINENO"; then :
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17441 $as_echo "yes" >&6; }
17442 HAVE_GETHOSTBYNAME="1"
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447 $as_echo "no" >&6; }
17449 LIBS=$my_ac_save_LIBS
17452 rm -f core conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
17458 if test "$HAVE_GETHOSTBYNAME" != "1"
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
17461 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17466 /* Older Minix versions may need <net/gen/netdb.h> here instead */
17472 gethostbyname("www.dummysite.com");
17479 if ac_fn_c_try_link "$LINENO"; then :
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17482 $as_echo "yes" >&6; }
17483 HAVE_GETHOSTBYNAME="1"
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17491 rm -f core conftest.err conftest.$ac_objext \
17492 conftest$ac_exeext conftest.$ac_ext
17495 if test "$HAVE_GETHOSTBYNAME" != "1"
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
17498 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17509 gethostbyname("www.dummysite.com");
17516 if ac_fn_c_try_link "$LINENO"; then :
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17519 $as_echo "yes" >&6; }
17520 HAVE_GETHOSTBYNAME="1"
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525 $as_echo "no" >&6; }
17528 rm -f core conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17532 if test "$HAVE_GETHOSTBYNAME" != "1"
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
17535 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
17536 if ${ac_cv_lib_net_gethostbyname+:} false; then :
17537 $as_echo_n "(cached) " >&6
17539 ac_check_lib_save_LIBS=$LIBS
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17548 char gethostbyname ();
17551 return gethostbyname ();
17556 if ac_fn_c_try_link "$LINENO"; then :
17557 ac_cv_lib_net_gethostbyname=yes
17559 ac_cv_lib_net_gethostbyname=no
17561 rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563 LIBS=$ac_check_lib_save_LIBS
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
17566 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
17567 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
17568 HAVE_GETHOSTBYNAME="1"
17576 if test "$HAVE_GETHOSTBYNAME" != "1"; then
17577 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
17580 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17581 if test "x$ac_cv_func_strcasecmp" = xyes; then :
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17585 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17586 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
17587 $as_echo_n "(cached) " >&6
17589 ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-lresolve $LIBS"
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17598 char strcasecmp ();
17601 return strcasecmp ();
17606 if ac_fn_c_try_link "$LINENO"; then :
17607 ac_cv_lib_resolve_strcasecmp=yes
17609 ac_cv_lib_resolve_strcasecmp=no
17611 rm -f core conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17616 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17617 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
17618 cat >>confdefs.h <<_ACEOF
17619 #define HAVE_LIBRESOLVE 1
17622 LIBS="-lresolve $LIBS"
17629 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17631 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17632 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
17633 $as_echo_n "(cached) " >&6
17635 ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-lresolve -lnsl $LIBS"
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17644 char strcasecmp ();
17647 return strcasecmp ();
17652 if ac_fn_c_try_link "$LINENO"; then :
17653 ac_cv_lib_resolve_strcasecmp=yes
17655 ac_cv_lib_resolve_strcasecmp=no
17657 rm -f core conftest.err conftest.$ac_objext \
17658 conftest$ac_exeext conftest.$ac_ext
17659 LIBS=$ac_check_lib_save_LIBS
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17662 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17663 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
17664 LIBS="-lresolve $LIBS"
17668 ac_cv_func_strcasecmp="no"
17671 cares_includes_winsock2="\
17672 /* includes start */
17673 #ifdef HAVE_WINDOWS_H
17674 # ifndef WIN32_LEAN_AND_MEAN
17675 # define WIN32_LEAN_AND_MEAN
17677 # include <windows.h>
17678 # ifdef HAVE_WINSOCK2_H
17679 # include <winsock2.h>
17681 # ifdef HAVE_WINSOCK_H
17682 # include <winsock.h>
17686 /* includes end */"
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
17689 $as_echo_n "checking for windows.h... " >&6; }
17690 if ${ac_cv_header_windows_h+:} false; then :
17691 $as_echo_n "(cached) " >&6
17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17699 #ifndef WIN32_LEAN_AND_MEAN
17700 #define WIN32_LEAN_AND_MEAN
17702 #include <windows.h>
17707 #if defined(__CYGWIN__) || defined(__CEGCC__)
17708 HAVE_WINDOWS_H shall not be defined.
17710 int dummy=2*WINVER;
17718 if ac_fn_c_try_compile "$LINENO"; then :
17720 ac_cv_header_windows_h="yes"
17724 ac_cv_header_windows_h="no"
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
17731 $as_echo "$ac_cv_header_windows_h" >&6; }
17732 case "$ac_cv_header_windows_h" in
17735 cat >>confdefs.h <<_ACEOF
17736 #define HAVE_WINDOWS_H 1
17740 cat >>confdefs.h <<_ACEOF
17741 #define WIN32_LEAN_AND_MEAN 1
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
17749 $as_echo_n "checking for winsock.h... " >&6; }
17750 if ${ac_cv_header_winsock_h+:} false; then :
17751 $as_echo_n "(cached) " >&6
17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h. */
17759 #ifndef WIN32_LEAN_AND_MEAN
17760 #define WIN32_LEAN_AND_MEAN
17762 #include <windows.h>
17763 #include <winsock.h>
17768 #if defined(__CYGWIN__) || defined(__CEGCC__)
17769 HAVE_WINSOCK_H shall not be defined.
17771 int dummy=WSACleanup();
17779 if ac_fn_c_try_compile "$LINENO"; then :
17781 ac_cv_header_winsock_h="yes"
17785 ac_cv_header_winsock_h="no"
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
17792 $as_echo "$ac_cv_header_winsock_h" >&6; }
17793 case "$ac_cv_header_winsock_h" in
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_WINSOCK_H 1
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
17805 $as_echo_n "checking for winsock2.h... " >&6; }
17806 if ${ac_cv_header_winsock2_h+:} false; then :
17807 $as_echo_n "(cached) " >&6
17810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h. */
17815 #ifndef WIN32_LEAN_AND_MEAN
17816 #define WIN32_LEAN_AND_MEAN
17818 #include <windows.h>
17819 #include <winsock2.h>
17824 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17825 HAVE_WINSOCK2_H shall not be defined.
17827 int dummy=2*IPPROTO_ESP;
17835 if ac_fn_c_try_compile "$LINENO"; then :
17837 ac_cv_header_winsock2_h="yes"
17841 ac_cv_header_winsock2_h="no"
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
17848 $as_echo "$ac_cv_header_winsock2_h" >&6; }
17849 case "$ac_cv_header_winsock2_h" in
17852 cat >>confdefs.h <<_ACEOF
17853 #define HAVE_WINSOCK2_H 1
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
17862 $as_echo_n "checking for connect in libraries... " >&6; }
17863 tst_connect_save_LIBS="$LIBS"
17864 tst_connect_need_LIBS="unknown"
17865 for tst_lib in '' '-lsocket' ; do
17866 if test "$tst_connect_need_LIBS" = "unknown"; then
17867 LIBS="$tst_lib $tst_connect_save_LIBS"
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17872 $cares_includes_winsock2
17873 #ifndef HAVE_WINDOWS_H
17874 int connect(int, void*, int);
17880 if(0 != connect(0, 0, 0))
17888 if ac_fn_c_try_link "$LINENO"; then :
17890 tst_connect_need_LIBS="$tst_lib"
17893 rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17897 LIBS="$tst_connect_save_LIBS"
17899 case X-"$tst_connect_need_LIBS" in
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
17902 $as_echo "cannot find connect" >&6; }
17903 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17907 $as_echo "yes" >&6; }
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
17911 $as_echo "$tst_connect_need_LIBS" >&6; }
17912 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17918 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17919 if ${ac_cv_header_time+:} false; then :
17920 $as_echo_n "(cached) " >&6
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17924 #include <sys/types.h>
17925 #include <sys/time.h>
17930 if ((struct tm *) 0)
17936 if ac_fn_c_try_compile "$LINENO"; then :
17937 ac_cv_header_time=yes
17939 ac_cv_header_time=no
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17944 $as_echo "$ac_cv_header_time" >&6; }
17945 if test $ac_cv_header_time = yes; then
17947 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17952 for ac_header in sys/types.h sys/time.h time.h
17954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17955 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17956 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17957 cat >>confdefs.h <<_ACEOF
17958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
17966 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17971 #ifdef HAVE_SYS_TYPES_H
17972 #include <sys/types.h>
17974 #ifdef HAVE_SYS_TIME_H
17975 #include <sys/time.h>
17976 #ifdef TIME_WITH_SYS_TIME
17988 struct timespec ts;
17989 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17996 if ac_fn_c_try_compile "$LINENO"; then :
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17999 $as_echo "yes" >&6; }
18000 ac_cv_func_clock_gettime="yes"
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18006 ac_cv_func_clock_gettime="no"
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 if test "$ac_cv_func_clock_gettime" = "yes"; then
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
18016 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
18018 curl_cv_save_LIBS="$LIBS"
18019 curl_cv_gclk_LIBS="unknown"
18021 for x_xlibs in '' '-lrt' '-lposix4' ; do
18022 if test "$curl_cv_gclk_LIBS" = "unknown"; then
18023 if test -z "$x_xlibs"; then
18024 LIBS="$curl_cv_save_LIBS"
18026 LIBS="$x_xlibs $curl_cv_save_LIBS"
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18032 #ifdef HAVE_SYS_TYPES_H
18033 #include <sys/types.h>
18035 #ifdef HAVE_SYS_TIME_H
18036 #include <sys/time.h>
18037 #ifdef TIME_WITH_SYS_TIME
18049 struct timespec ts;
18050 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
18057 if ac_fn_c_try_link "$LINENO"; then :
18059 curl_cv_gclk_LIBS="$x_xlibs"
18062 rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18067 LIBS="$curl_cv_save_LIBS"
18069 case X-"$curl_cv_gclk_LIBS" in
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
18072 $as_echo "cannot find clock_gettime" >&6; }
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
18074 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
18075 ac_cv_func_clock_gettime="no"
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
18079 $as_echo "no additional lib required" >&6; }
18080 ac_cv_func_clock_gettime="yes"
18083 if test -z "$curl_cv_save_LIBS"; then
18084 LIBS="$curl_cv_gclk_LIBS"
18086 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
18089 $as_echo "$curl_cv_gclk_LIBS" >&6; }
18090 ac_cv_func_clock_gettime="yes"
18094 if test "x$cross_compiling" != "xyes" &&
18095 test "$ac_cv_func_clock_gettime" = "yes"; then
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
18097 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
18098 if test "$cross_compiling" = yes; then :
18099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18101 as_fn_error $? "cannot run test program while cross compiling
18102 See \`config.log' for more details" "$LINENO" 5; }
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18108 #ifdef HAVE_STDLIB_H
18109 #include <stdlib.h>
18111 #ifdef HAVE_SYS_TYPES_H
18112 #include <sys/types.h>
18114 #ifdef HAVE_SYS_TIME_H
18115 #include <sys/time.h>
18116 #ifdef TIME_WITH_SYS_TIME
18128 struct timespec ts;
18129 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
18139 if ac_fn_c_try_run "$LINENO"; then :
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18142 $as_echo "yes" >&6; }
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147 $as_echo "no" >&6; }
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
18149 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
18150 ac_cv_func_clock_gettime="no"
18151 LIBS="$curl_cv_save_LIBS"
18154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18155 conftest.$ac_objext conftest.beam conftest.$ac_ext
18160 case "$ac_cv_func_clock_gettime" in
18163 cat >>confdefs.h <<_ACEOF
18164 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
18175 $as_echo_n "checking whether to use libgcc... " >&6; }
18176 # Check whether --enable-libgcc was given.
18177 if test "${enable_libgcc+set}" = set; then :
18178 enableval=$enable_libgcc; case "$enableval" in
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18182 $as_echo "yes" >&6; }
18184 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18185 $as_echo "no" >&6; }
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190 $as_echo "no" >&6; }
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18200 $as_echo_n "checking for ANSI C header files... " >&6; }
18201 if ${ac_cv_header_stdc+:} false; then :
18202 $as_echo_n "(cached) " >&6
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18206 #include <stdlib.h>
18207 #include <stdarg.h>
18208 #include <string.h>
18218 if ac_fn_c_try_compile "$LINENO"; then :
18219 ac_cv_header_stdc=yes
18221 ac_cv_header_stdc=no
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18225 if test $ac_cv_header_stdc = yes; then
18226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h. */
18229 #include <string.h>
18232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18233 $EGREP "memchr" >/dev/null 2>&1; then :
18236 ac_cv_header_stdc=no
18242 if test $ac_cv_header_stdc = yes; then
18243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18246 #include <stdlib.h>
18249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18250 $EGREP "free" >/dev/null 2>&1; then :
18253 ac_cv_header_stdc=no
18259 if test $ac_cv_header_stdc = yes; then
18260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18261 if test "$cross_compiling" = yes; then :
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18267 #include <stdlib.h>
18268 #if ((' ' & 0x0FF) == 0x020)
18269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18272 # define ISLOWER(c) \
18273 (('a' <= (c) && (c) <= 'i') \
18274 || ('j' <= (c) && (c) <= 'r') \
18275 || ('s' <= (c) && (c) <= 'z'))
18276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18284 for (i = 0; i < 256; i++)
18285 if (XOR (islower (i), ISLOWER (i))
18286 || toupper (i) != TOUPPER (i))
18291 if ac_fn_c_try_run "$LINENO"; then :
18294 ac_cv_header_stdc=no
18296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18297 conftest.$ac_objext conftest.beam conftest.$ac_ext
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18303 $as_echo "$ac_cv_header_stdc" >&6; }
18304 if test $ac_cv_header_stdc = yes; then
18306 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
18313 $as_echo_n "checking for malloc.h... " >&6; }
18314 if ${ac_cv_header_malloc_h+:} false; then :
18315 $as_echo_n "(cached) " >&6
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18322 #include <malloc.h>
18327 void *p = malloc(10);
18328 void *q = calloc(10,10);
18337 if ac_fn_c_try_compile "$LINENO"; then :
18339 ac_cv_header_malloc_h="yes"
18343 ac_cv_header_malloc_h="no"
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
18350 $as_echo "$ac_cv_header_malloc_h" >&6; }
18351 if test "$ac_cv_header_malloc_h" = "yes"; then
18353 cat >>confdefs.h <<_ACEOF
18354 #define HAVE_MALLOC_H 1
18358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h. */
18362 #include <stdlib.h>
18367 void *p = malloc(10);
18368 void *q = calloc(10,10);
18377 if ac_fn_c_try_compile "$LINENO"; then :
18379 curl_cv_need_header_malloc_h="no"
18383 curl_cv_need_header_malloc_h="yes"
18386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18388 case "$curl_cv_need_header_malloc_h" in
18391 cat >>confdefs.h <<_ACEOF
18392 #define NEED_MALLOC_H 1
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
18401 $as_echo_n "checking for memory.h... " >&6; }
18402 if ${ac_cv_header_memory_h+:} false; then :
18403 $as_echo_n "(cached) " >&6
18406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18407 /* end confdefs.h. */
18410 #include <memory.h>
18415 void *p = malloc(10);
18416 void *q = calloc(10,10);
18425 if ac_fn_c_try_compile "$LINENO"; then :
18427 ac_cv_header_memory_h="yes"
18431 ac_cv_header_memory_h="no"
18434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
18438 $as_echo "$ac_cv_header_memory_h" >&6; }
18439 if test "$ac_cv_header_memory_h" = "yes"; then
18441 cat >>confdefs.h <<_ACEOF
18442 #define HAVE_MEMORY_H 1
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18450 #include <stdlib.h>
18455 void *p = malloc(10);
18456 void *q = calloc(10,10);
18465 if ac_fn_c_try_compile "$LINENO"; then :
18467 curl_cv_need_header_memory_h="no"
18471 curl_cv_need_header_memory_h="yes"
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 case "$curl_cv_need_header_memory_h" in
18479 cat >>confdefs.h <<_ACEOF
18480 #define NEED_MEMORY_H 1
18488 for ac_header in sys/types.h \
18507 arpa/nameser_compat.h \
18510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18511 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18512 #ifdef HAVE_SYS_TYPES_H
18513 #include <sys/types.h>
18515 #ifdef HAVE_SYS_TIME_H
18516 #include <sys/time.h>
18518 #ifdef HAVE_ARPA_NAMESER_H
18519 #include <arpa/nameser.h>
18522 #ifdef HAVE_SYS_SOCKET_H
18523 #include <sys/socket.h>
18525 #ifdef HAVE_NETINET_IN_H
18526 #include <netinet/in.h>
18531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18532 cat >>confdefs.h <<_ACEOF
18533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18542 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18543 if ${ac_cv_c_const+:} false; then :
18544 $as_echo_n "(cached) " >&6
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18552 #ifndef __cplusplus
18553 /* Ultrix mips cc rejects this sort of thing. */
18554 typedef int charset[2];
18555 const charset cs = { 0, 0 };
18556 /* SunOS 4.1.1 cc rejects this. */
18557 char const *const *pcpcc;
18559 /* NEC SVR4.0.2 mips cc rejects this. */
18560 struct point {int x, y;};
18561 static struct point const zero = {0,0};
18562 /* AIX XL C 1.02.0.0 rejects this.
18563 It does not let you subtract one const X* pointer from another in
18564 an arm of an if-expression whose if-part is not a constant
18566 const char *g = "string";
18567 pcpcc = &g + (g ? g-g : 0);
18568 /* HPUX 7.0 cc rejects these. */
18570 ppc = (char**) pcpcc;
18571 pcpcc = (char const *const *) ppc;
18572 { /* SCO 3.2v4 cc rejects this sort of thing. */
18575 char const *s = 0 ? (char *) 0 : (char const *) 0;
18580 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18581 int x[] = {25, 17};
18582 const int *foo = &x[0];
18585 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18586 typedef const int *iptr;
18590 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18591 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18592 struct s { int j; const int *ap[3]; } bx;
18593 struct s *b = &bx; b->j = 5;
18595 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18596 const int foo = 10;
18597 if (!foo) return 0;
18599 return !cs[0] && !zero.x;
18606 if ac_fn_c_try_compile "$LINENO"; then :
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18614 $as_echo "$ac_cv_c_const" >&6; }
18615 if test $ac_cv_c_const = no; then
18617 $as_echo "#define const /**/" >>confdefs.h
18621 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18622 if test "x$ac_cv_type_size_t" = xyes; then :
18626 cat >>confdefs.h <<_ACEOF
18627 #define size_t unsigned int
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18633 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18634 if ${ac_cv_header_time+:} false; then :
18635 $as_echo_n "(cached) " >&6
18637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h. */
18639 #include <sys/types.h>
18640 #include <sys/time.h>
18645 if ((struct tm *) 0)
18651 if ac_fn_c_try_compile "$LINENO"; then :
18652 ac_cv_header_time=yes
18654 ac_cv_header_time=no
18656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18659 $as_echo "$ac_cv_header_time" >&6; }
18660 if test $ac_cv_header_time = yes; then
18662 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18667 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
18669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18672 cat >>confdefs.h <<_ACEOF
18673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18681 $as_echo_n "checking for struct timeval... " >&6; }
18682 if ${ac_cv_struct_timeval+:} false; then :
18683 $as_echo_n "(cached) " >&6
18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h. */
18691 #ifdef HAVE_WINDOWS_H
18692 #ifndef WIN32_LEAN_AND_MEAN
18693 #define WIN32_LEAN_AND_MEAN
18695 #include <windows.h>
18696 #ifdef HAVE_WINSOCK2_H
18697 #include <winsock2.h>
18699 #ifdef HAVE_WINSOCK_H
18700 #include <winsock.h>
18704 #ifdef HAVE_SYS_TYPES_H
18705 #include <sys/types.h>
18707 #ifdef HAVE_SYS_TIME_H
18708 #include <sys/time.h>
18709 #ifdef TIME_WITH_SYS_TIME
18717 #ifdef HAVE_SYS_SOCKET_H
18718 #include <sys/socket.h>
18733 if ac_fn_c_try_compile "$LINENO"; then :
18735 ac_cv_struct_timeval="yes"
18739 ac_cv_struct_timeval="no"
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
18746 $as_echo "$ac_cv_struct_timeval" >&6; }
18747 case "$ac_cv_struct_timeval" in
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_STRUCT_TIMEVAL 1
18758 # The cast to long int works around a bug in the HP C Compiler
18759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18761 # This bug is HP SR number 8606223364.
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
18763 $as_echo_n "checking size of size_t... " >&6; }
18764 if ${ac_cv_sizeof_size_t+:} false; then :
18765 $as_echo_n "(cached) " >&6
18767 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
18770 if test "$ac_cv_type_size_t" = yes; then
18771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18773 as_fn_error 77 "cannot compute sizeof (size_t)
18774 See \`config.log' for more details" "$LINENO" 5; }
18776 ac_cv_sizeof_size_t=0
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
18782 $as_echo "$ac_cv_sizeof_size_t" >&6; }
18786 cat >>confdefs.h <<_ACEOF
18787 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18791 # The cast to long int works around a bug in the HP C Compiler
18792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18794 # This bug is HP SR number 8606223364.
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18796 $as_echo_n "checking size of long... " >&6; }
18797 if ${ac_cv_sizeof_long+:} false; then :
18798 $as_echo_n "(cached) " >&6
18800 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
18803 if test "$ac_cv_type_long" = yes; then
18804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18806 as_fn_error 77 "cannot compute sizeof (long)
18807 See \`config.log' for more details" "$LINENO" 5; }
18809 ac_cv_sizeof_long=0
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18815 $as_echo "$ac_cv_sizeof_long" >&6; }
18819 cat >>confdefs.h <<_ACEOF
18820 #define SIZEOF_LONG $ac_cv_sizeof_long
18824 # The cast to long int works around a bug in the HP C Compiler
18825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18827 # This bug is HP SR number 8606223364.
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18829 $as_echo_n "checking size of int... " >&6; }
18830 if ${ac_cv_sizeof_int+:} false; then :
18831 $as_echo_n "(cached) " >&6
18833 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18836 if test "$ac_cv_type_int" = yes; then
18837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18839 as_fn_error 77 "cannot compute sizeof (int)
18840 See \`config.log' for more details" "$LINENO" 5; }
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18848 $as_echo "$ac_cv_sizeof_int" >&6; }
18852 cat >>confdefs.h <<_ACEOF
18853 #define SIZEOF_INT $ac_cv_sizeof_int
18857 # The cast to long int works around a bug in the HP C Compiler
18858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18860 # This bug is HP SR number 8606223364.
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18862 $as_echo_n "checking size of short... " >&6; }
18863 if ${ac_cv_sizeof_short+:} false; then :
18864 $as_echo_n "(cached) " >&6
18866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
18869 if test "$ac_cv_type_short" = yes; then
18870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18872 as_fn_error 77 "cannot compute sizeof (short)
18873 See \`config.log' for more details" "$LINENO" 5; }
18875 ac_cv_sizeof_short=0
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18881 $as_echo "$ac_cv_sizeof_short" >&6; }
18885 cat >>confdefs.h <<_ACEOF
18886 #define SIZEOF_SHORT $ac_cv_sizeof_short
18891 if test -z "$ac_cv_sizeof_long" ||
18892 test "$ac_cv_sizeof_long" -eq "0"; then
18893 as_fn_error $? "cannot find out size of long." "$LINENO" 5
18896 cat >>confdefs.h <<_EOF
18897 #define CARES_SIZEOF_LONG $ac_cv_sizeof_long
18901 # The cast to long int works around a bug in the HP C Compiler
18902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18904 # This bug is HP SR number 8606223364.
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18906 $as_echo_n "checking size of time_t... " >&6; }
18907 if ${ac_cv_sizeof_time_t+:} false; then :
18908 $as_echo_n "(cached) " >&6
18910 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
18913 if test "$ac_cv_type_time_t" = yes; then
18914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18916 as_fn_error 77 "cannot compute sizeof (time_t)
18917 See \`config.log' for more details" "$LINENO" 5; }
18919 ac_cv_sizeof_time_t=0
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18925 $as_echo "$ac_cv_sizeof_time_t" >&6; }
18929 cat >>confdefs.h <<_ACEOF
18930 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18935 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18936 if test "x$ac_cv_type_long_long" = xyes; then :
18938 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
18945 if test "xyes" = "x$longlong"; then
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
18947 $as_echo_n "checking if numberLL works... " >&6; }
18948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949 /* end confdefs.h. */
18956 long long val = 1000LL;
18963 if ac_fn_c_try_compile "$LINENO"; then :
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18966 $as_echo "yes" >&6; }
18968 $as_echo "#define HAVE_LL 1" >>confdefs.h
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 $as_echo "no" >&6; }
18977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 # check for ssize_t
18982 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18983 if test "x$ac_cv_type_ssize_t" = xyes; then :
18987 $as_echo "#define ssize_t int" >>confdefs.h
18992 # check for bool type
18993 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
18994 #ifdef HAVE_SYS_TYPES_H
18995 #include <sys/types.h>
18997 #ifdef HAVE_STDBOOL_H
18998 #include <stdbool.h>
19002 if test "x$ac_cv_type_bool" = xyes; then :
19005 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
19012 cares_includes_ws2tcpip="\
19013 /* includes start */
19014 #ifdef HAVE_WINDOWS_H
19015 # ifndef WIN32_LEAN_AND_MEAN
19016 # define WIN32_LEAN_AND_MEAN
19018 # include <windows.h>
19019 # ifdef HAVE_WINSOCK2_H
19020 # include <winsock2.h>
19021 # ifdef HAVE_WS2TCPIP_H
19022 # include <ws2tcpip.h>
19026 /* includes end */"
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19029 $as_echo_n "checking for windows.h... " >&6; }
19030 if ${ac_cv_header_windows_h+:} false; then :
19031 $as_echo_n "(cached) " >&6
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19039 #ifndef WIN32_LEAN_AND_MEAN
19040 #define WIN32_LEAN_AND_MEAN
19042 #include <windows.h>
19047 #if defined(__CYGWIN__) || defined(__CEGCC__)
19048 HAVE_WINDOWS_H shall not be defined.
19050 int dummy=2*WINVER;
19058 if ac_fn_c_try_compile "$LINENO"; then :
19060 ac_cv_header_windows_h="yes"
19064 ac_cv_header_windows_h="no"
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19071 $as_echo "$ac_cv_header_windows_h" >&6; }
19072 case "$ac_cv_header_windows_h" in
19075 cat >>confdefs.h <<_ACEOF
19076 #define HAVE_WINDOWS_H 1
19080 cat >>confdefs.h <<_ACEOF
19081 #define WIN32_LEAN_AND_MEAN 1
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19089 $as_echo_n "checking for winsock2.h... " >&6; }
19090 if ${ac_cv_header_winsock2_h+:} false; then :
19091 $as_echo_n "(cached) " >&6
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19099 #ifndef WIN32_LEAN_AND_MEAN
19100 #define WIN32_LEAN_AND_MEAN
19102 #include <windows.h>
19103 #include <winsock2.h>
19108 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19109 HAVE_WINSOCK2_H shall not be defined.
19111 int dummy=2*IPPROTO_ESP;
19119 if ac_fn_c_try_compile "$LINENO"; then :
19121 ac_cv_header_winsock2_h="yes"
19125 ac_cv_header_winsock2_h="no"
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19132 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19133 case "$ac_cv_header_winsock2_h" in
19136 cat >>confdefs.h <<_ACEOF
19137 #define HAVE_WINSOCK2_H 1
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
19145 $as_echo_n "checking for ws2tcpip.h... " >&6; }
19146 if ${ac_cv_header_ws2tcpip_h+:} false; then :
19147 $as_echo_n "(cached) " >&6
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19155 #ifndef WIN32_LEAN_AND_MEAN
19156 #define WIN32_LEAN_AND_MEAN
19158 #include <windows.h>
19159 #include <winsock2.h>
19160 #include <ws2tcpip.h>
19165 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19166 HAVE_WS2TCPIP_H shall not be defined.
19168 int dummy=2*IP_PKTINFO;
19176 if ac_fn_c_try_compile "$LINENO"; then :
19178 ac_cv_header_ws2tcpip_h="yes"
19182 ac_cv_header_ws2tcpip_h="no"
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
19189 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
19190 case "$ac_cv_header_ws2tcpip_h" in
19193 cat >>confdefs.h <<_ACEOF
19194 #define HAVE_WS2TCPIP_H 1
19202 cares_includes_sys_socket="\
19203 /* includes start */
19204 #ifdef HAVE_SYS_TYPES_H
19205 # include <sys/types.h>
19207 #ifdef HAVE_SYS_SOCKET_H
19208 # include <sys/socket.h>
19210 /* includes end */"
19211 for ac_header in sys/types.h sys/socket.h
19213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19214 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
19216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19217 cat >>confdefs.h <<_ACEOF
19218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19227 cares_preprocess_callconv="\
19228 /* preprocess start */
19229 #ifdef HAVE_WINDOWS_H
19230 # define FUNCALLCONV __stdcall
19232 # define FUNCALLCONV
19234 /* preprocess end */"
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
19239 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
19240 cares_typeof_ares_socklen_t="unknown"
19241 for arg1 in int SOCKET; do
19242 for arg2 in 'struct sockaddr' void; do
19243 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
19244 if test "$cares_typeof_ares_socklen_t" = "unknown"; then
19245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246 /* end confdefs.h. */
19249 $cares_includes_ws2tcpip
19250 $cares_includes_sys_socket
19251 $cares_preprocess_callconv
19252 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
19258 if(0 != getpeername(0, 0, lenptr))
19266 if ac_fn_c_try_compile "$LINENO"; then :
19268 cares_typeof_ares_socklen_t="$t"
19271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276 for t in socklen_t int; do
19277 if test "$cares_typeof_ares_socklen_t" = "void"; then
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19282 $cares_includes_sys_socket
19283 typedef $t ares_socklen_t;
19288 ares_socklen_t dummy;
19295 if ac_fn_c_try_compile "$LINENO"; then :
19297 cares_typeof_ares_socklen_t="$t"
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
19304 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
19305 if test "$cares_typeof_ares_socklen_t" = "void" ||
19306 test "$cares_typeof_ares_socklen_t" = "unknown"; then
19307 as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
19311 $as_echo_n "checking size of ares_socklen_t... " >&6; }
19312 cares_sizeof_ares_socklen_t="unknown"
19313 cares_pull_headers_socklen_t="unknown"
19314 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
19315 tst_pull_header_checks='none ws2tcpip'
19316 tst_size_checks='4'
19318 tst_pull_header_checks='none systypes syssocket'
19319 tst_size_checks='4 8 2'
19321 for tst_size in $tst_size_checks; do
19322 for tst_pull_headers in $tst_pull_header_checks; do
19323 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
19324 case $tst_pull_headers in
19326 tmp_includes="$cares_includes_ws2tcpip"
19329 tmp_includes="$cares_includes_sys_types"
19332 tmp_includes="$cares_includes_sys_socket"
19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h. */
19343 typedef $cares_typeof_ares_socklen_t ares_socklen_t;
19344 typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
19349 ares_socklen_t dummy;
19356 if ac_fn_c_try_compile "$LINENO"; then :
19358 cares_sizeof_ares_socklen_t="$tst_size"
19359 cares_pull_headers_socklen_t="$tst_pull_headers"
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
19367 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
19368 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
19369 as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
19372 case $cares_pull_headers_socklen_t in
19375 cat >>confdefs.h <<_EOF
19376 #define CARES_PULL_WS2TCPIP_H 1
19382 cat >>confdefs.h <<_EOF
19383 #define CARES_PULL_SYS_TYPES_H 1
19389 cat >>confdefs.h <<_EOF
19390 #define CARES_PULL_SYS_TYPES_H 1
19394 cat >>confdefs.h <<_EOF
19395 #define CARES_PULL_SYS_SOCKET_H 1
19401 cat >>confdefs.h <<_EOF
19402 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
19406 cat >>confdefs.h <<_EOF
19407 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
19413 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
19415 #ifdef HAVE_WINDOWS_H
19416 #ifndef WIN32_LEAN_AND_MEAN
19417 #define WIN32_LEAN_AND_MEAN
19419 #include <windows.h>
19420 #ifdef HAVE_WINSOCK2_H
19421 #include <winsock2.h>
19423 #ifdef HAVE_WINSOCK_H
19424 #include <winsock.h>
19428 #ifdef HAVE_SYS_TYPES_H
19429 #include <sys/types.h>
19431 #ifdef HAVE_SYS_SOCKET_H
19432 #include <sys/socket.h>
19434 #ifdef HAVE_NETINET_IN_H
19435 #include <netinet/in.h>
19437 #ifdef HAVE_ARPA_INET_H
19438 #include <arpa/inet.h>
19443 if test "x$ac_cv_type_in_addr_t" = xyes; then :
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
19448 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
19449 if ${curl_cv_in_addr_t_equiv+:} false; then :
19450 $as_echo_n "(cached) " >&6
19453 curl_cv_in_addr_t_equiv="unknown"
19454 for t in "unsigned long" int size_t unsigned long; do
19455 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19461 #ifdef HAVE_WINDOWS_H
19462 #ifndef WIN32_LEAN_AND_MEAN
19463 #define WIN32_LEAN_AND_MEAN
19465 #include <windows.h>
19466 #ifdef HAVE_WINSOCK2_H
19467 #include <winsock2.h>
19469 #ifdef HAVE_WINSOCK_H
19470 #include <winsock.h>
19474 #ifdef HAVE_SYS_TYPES_H
19475 #include <sys/types.h>
19477 #ifdef HAVE_SYS_SOCKET_H
19478 #include <sys/socket.h>
19480 #ifdef HAVE_NETINET_IN_H
19481 #include <netinet/in.h>
19483 #ifdef HAVE_ARPA_INET_H
19484 #include <arpa/inet.h>
19491 $t data = inet_addr ("1.2.3.4");
19498 if ac_fn_c_try_link "$LINENO"; then :
19500 curl_cv_in_addr_t_equiv="$t"
19503 rm -f core conftest.err conftest.$ac_objext \
19504 conftest$ac_exeext conftest.$ac_ext
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
19510 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
19511 case "$curl_cv_in_addr_t_equiv" in
19513 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
19517 cat >>confdefs.h <<_ACEOF
19518 #define in_addr_t $curl_cv_in_addr_t_equiv
19529 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
19531 #ifdef HAVE_WINDOWS_H
19532 #ifndef WIN32_LEAN_AND_MEAN
19533 #define WIN32_LEAN_AND_MEAN
19535 #include <windows.h>
19536 #ifdef HAVE_WINSOCK2_H
19537 #include <winsock2.h>
19540 #ifdef HAVE_SYS_TYPES_H
19541 #include <sys/types.h>
19543 #ifdef HAVE_SYS_SOCKET_H
19544 #include <sys/socket.h>
19546 #ifdef HAVE_NETINET_IN_H
19547 #include <netinet/in.h>
19549 #ifdef HAVE_ARPA_INET_H
19550 #include <arpa/inet.h>
19555 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
19557 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
19564 for ac_header in signal.h
19566 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
19567 if test "x$ac_cv_header_signal_h" = xyes; then :
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_SIGNAL_H 1
19576 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
19577 #ifdef HAVE_SIGNAL_H
19578 #include <signal.h>
19582 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
19585 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
19590 case "$ac_cv_type_sig_atomic_t" in
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
19594 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19599 #ifdef HAVE_SIGNAL_H
19600 #include <signal.h>
19606 static volatile sig_atomic_t dummy = 0;
19613 if ac_fn_c_try_link "$LINENO"; then :
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616 $as_echo "no" >&6; }
19617 ac_cv_sig_atomic_t_volatile="no"
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19622 $as_echo "yes" >&6; }
19623 ac_cv_sig_atomic_t_volatile="yes"
19626 rm -f core conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
19629 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
19631 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19639 $as_echo_n "checking return type of signal handlers... " >&6; }
19640 if ${ac_cv_type_signal+:} false; then :
19641 $as_echo_n "(cached) " >&6
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645 #include <sys/types.h>
19646 #include <signal.h>
19650 return *(signal (0, 0)) (0) == 1;
19655 if ac_fn_c_try_compile "$LINENO"; then :
19656 ac_cv_type_signal=int
19658 ac_cv_type_signal=void
19660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19663 $as_echo "$ac_cv_type_signal" >&6; }
19665 cat >>confdefs.h <<_ACEOF
19666 #define RETSIGTYPE $ac_cv_type_signal
19672 for ac_header in sys/types.h sys/socket.h
19674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19675 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19676 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19677 cat >>confdefs.h <<_ACEOF
19678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
19687 $as_echo_n "checking for recv... " >&6; }
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19693 #ifdef HAVE_WINDOWS_H
19694 #ifndef WIN32_LEAN_AND_MEAN
19695 #define WIN32_LEAN_AND_MEAN
19697 #include <windows.h>
19698 #ifdef HAVE_WINSOCK2_H
19699 #include <winsock2.h>
19701 #ifdef HAVE_WINSOCK_H
19702 #include <winsock.h>
19706 #ifdef HAVE_SYS_TYPES_H
19707 #include <sys/types.h>
19709 #ifdef HAVE_SYS_SOCKET_H
19710 #include <sys/socket.h>
19724 if ac_fn_c_try_link "$LINENO"; then :
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19727 $as_echo "yes" >&6; }
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19733 $as_echo "no" >&6; }
19737 rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19740 if test "$curl_cv_recv" = "yes"; then
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
19742 $as_echo_n "checking types of args and return type for recv... " >&6; }
19743 if ${curl_cv_func_recv_args+:} false; then :
19744 $as_echo_n "(cached) " >&6
19747 curl_cv_func_recv_args="unknown"
19748 for recv_retv in 'int' 'ssize_t'; do
19749 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
19750 for recv_arg2 in 'char *' 'void *'; do
19751 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
19752 for recv_arg4 in 'int' 'unsigned int'; do
19753 if test "$curl_cv_func_recv_args" = "unknown"; then
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19759 #ifdef HAVE_WINDOWS_H
19760 #ifndef WIN32_LEAN_AND_MEAN
19761 #define WIN32_LEAN_AND_MEAN
19763 #include <windows.h>
19764 #ifdef HAVE_WINSOCK2_H
19765 #include <winsock2.h>
19767 #ifdef HAVE_WINSOCK_H
19768 #include <winsock.h>
19771 #define RECVCALLCONV PASCAL
19773 #ifdef HAVE_SYS_TYPES_H
19774 #include <sys/types.h>
19776 #ifdef HAVE_SYS_SOCKET_H
19777 #include <sys/socket.h>
19779 #define RECVCALLCONV
19781 extern $recv_retv RECVCALLCONV
19782 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
19790 $recv_arg4 flags=0;
19791 $recv_retv res = recv(s, buf, len, flags);
19798 if ac_fn_c_try_compile "$LINENO"; then :
19800 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
19803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
19813 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
19814 if test "$curl_cv_func_recv_args" = "unknown"; then
19815 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
19817 recv_prev_IFS=$IFS; IFS=','
19818 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
19823 cat >>confdefs.h <<_ACEOF
19824 #define RECV_TYPE_ARG1 $1
19828 cat >>confdefs.h <<_ACEOF
19829 #define RECV_TYPE_ARG2 $2
19833 cat >>confdefs.h <<_ACEOF
19834 #define RECV_TYPE_ARG3 $3
19838 cat >>confdefs.h <<_ACEOF
19839 #define RECV_TYPE_ARG4 $4
19843 cat >>confdefs.h <<_ACEOF
19844 #define RECV_TYPE_RETV $5
19849 cat >>confdefs.h <<_ACEOF
19850 #define HAVE_RECV 1
19853 ac_cv_func_recv="yes"
19856 as_fn_error $? "Unable to link function recv" "$LINENO" 5
19860 for ac_header in sys/types.h sys/socket.h
19862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19865 cat >>confdefs.h <<_ACEOF
19866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
19875 $as_echo_n "checking for recvfrom... " >&6; }
19876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19881 #ifdef HAVE_WINDOWS_H
19882 #ifndef WIN32_LEAN_AND_MEAN
19883 #define WIN32_LEAN_AND_MEAN
19885 #include <windows.h>
19886 #ifdef HAVE_WINSOCK2_H
19887 #include <winsock2.h>
19889 #ifdef HAVE_WINSOCK_H
19890 #include <winsock.h>
19894 #ifdef HAVE_SYS_TYPES_H
19895 #include <sys/types.h>
19897 #ifdef HAVE_SYS_SOCKET_H
19898 #include <sys/socket.h>
19905 recvfrom(0, 0, 0, 0, 0, 0);
19912 if ac_fn_c_try_link "$LINENO"; then :
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19915 $as_echo "yes" >&6; }
19916 curl_cv_recvfrom="yes"
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19921 $as_echo "no" >&6; }
19922 curl_cv_recvfrom="no"
19925 rm -f core conftest.err conftest.$ac_objext \
19926 conftest$ac_exeext conftest.$ac_ext
19928 if test "$curl_cv_recvfrom" = "yes"; then
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
19930 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
19931 if ${curl_cv_func_recvfrom_args+:} false; then :
19932 $as_echo_n "(cached) " >&6
19935 curl_cv_func_recvfrom_args="unknown"
19936 for recvfrom_retv in 'int' 'ssize_t'; do
19937 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
19938 for recvfrom_arg2 in 'char *' 'void *'; do
19939 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
19940 for recvfrom_arg4 in 'int' 'unsigned int'; do
19941 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
19942 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
19943 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19949 #ifdef HAVE_WINDOWS_H
19950 #ifndef WIN32_LEAN_AND_MEAN
19951 #define WIN32_LEAN_AND_MEAN
19953 #include <windows.h>
19954 #ifdef HAVE_WINSOCK2_H
19955 #include <winsock2.h>
19957 #ifdef HAVE_WINSOCK_H
19958 #include <winsock.h>
19961 #define RECVFROMCALLCONV PASCAL
19963 #ifdef HAVE_SYS_TYPES_H
19964 #include <sys/types.h>
19966 #ifdef HAVE_SYS_SOCKET_H
19967 #include <sys/socket.h>
19969 #define RECVFROMCALLCONV
19971 extern $recvfrom_retv RECVFROMCALLCONV
19972 recvfrom($recvfrom_arg1, $recvfrom_arg2,
19973 $recvfrom_arg3, $recvfrom_arg4,
19974 $recvfrom_arg5, $recvfrom_arg6);
19979 $recvfrom_arg1 s=0;
19980 $recvfrom_arg2 buf=0;
19981 $recvfrom_arg3 len=0;
19982 $recvfrom_arg4 flags=0;
19983 $recvfrom_arg5 addr=0;
19984 $recvfrom_arg6 addrlen=0;
19985 $recvfrom_retv res=0;
19986 res = recvfrom(s, buf, len, flags, addr, addrlen);
19993 if ac_fn_c_try_compile "$LINENO"; then :
19995 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
19998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
20010 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
20011 # Nearly last minute change for this release starts here
20013 cat >>confdefs.h <<_ACEOF
20014 #define HAVE_RECVFROM 1
20017 ac_cv_func_recvfrom="yes"
20018 # Nearly last minute change for this release ends here
20019 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
20021 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
20023 recvfrom_prev_IFS=$IFS; IFS=','
20024 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
20025 IFS=$recvfrom_prev_IFS
20028 recvfrom_ptrt_arg2=$2
20029 recvfrom_qual_ptrt_arg5=$5
20030 recvfrom_ptrt_arg6=$6
20033 cat >>confdefs.h <<_ACEOF
20034 #define RECVFROM_TYPE_ARG1 $1
20038 cat >>confdefs.h <<_ACEOF
20039 #define RECVFROM_TYPE_ARG3 $3
20043 cat >>confdefs.h <<_ACEOF
20044 #define RECVFROM_TYPE_ARG4 $4
20048 cat >>confdefs.h <<_ACEOF
20049 #define RECVFROM_TYPE_RETV $7
20055 case $prev_sh_opts in
20063 case "$recvfrom_qual_ptrt_arg5" in
20065 recvfrom_qual_arg5=const
20066 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
20069 recvfrom_qual_arg5=
20070 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
20074 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
20075 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
20076 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
20079 cat >>confdefs.h <<_ACEOF
20080 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
20084 cat >>confdefs.h <<_ACEOF
20085 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
20089 cat >>confdefs.h <<_ACEOF
20090 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
20094 cat >>confdefs.h <<_ACEOF
20095 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
20099 if test "$recvfrom_type_arg2" = "void"; then
20101 cat >>confdefs.h <<_ACEOF
20102 #define RECVFROM_TYPE_ARG2_IS_VOID 1
20106 if test "$recvfrom_type_arg5" = "void"; then
20108 cat >>confdefs.h <<_ACEOF
20109 #define RECVFROM_TYPE_ARG5_IS_VOID 1
20113 if test "$recvfrom_type_arg6" = "void"; then
20115 cat >>confdefs.h <<_ACEOF
20116 #define RECVFROM_TYPE_ARG6_IS_VOID 1
20121 case $prev_sh_opts in
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_RECVFROM 1
20134 ac_cv_func_recvfrom="yes"
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
20138 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
20140 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
20144 for ac_header in sys/types.h sys/socket.h
20146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20147 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20149 cat >>confdefs.h <<_ACEOF
20150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
20159 $as_echo_n "checking for send... " >&6; }
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20165 #ifdef HAVE_WINDOWS_H
20166 #ifndef WIN32_LEAN_AND_MEAN
20167 #define WIN32_LEAN_AND_MEAN
20169 #include <windows.h>
20170 #ifdef HAVE_WINSOCK2_H
20171 #include <winsock2.h>
20173 #ifdef HAVE_WINSOCK_H
20174 #include <winsock.h>
20178 #ifdef HAVE_SYS_TYPES_H
20179 #include <sys/types.h>
20181 #ifdef HAVE_SYS_SOCKET_H
20182 #include <sys/socket.h>
20196 if ac_fn_c_try_link "$LINENO"; then :
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20199 $as_echo "yes" >&6; }
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20205 $as_echo "no" >&6; }
20209 rm -f core conftest.err conftest.$ac_objext \
20210 conftest$ac_exeext conftest.$ac_ext
20212 if test "$curl_cv_send" = "yes"; then
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
20214 $as_echo_n "checking types of args and return type for send... " >&6; }
20215 if ${curl_cv_func_send_args+:} false; then :
20216 $as_echo_n "(cached) " >&6
20219 curl_cv_func_send_args="unknown"
20220 for send_retv in 'int' 'ssize_t'; do
20221 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
20222 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
20223 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
20224 for send_arg4 in 'int' 'unsigned int'; do
20225 if test "$curl_cv_func_send_args" = "unknown"; then
20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20231 #ifdef HAVE_WINDOWS_H
20232 #ifndef WIN32_LEAN_AND_MEAN
20233 #define WIN32_LEAN_AND_MEAN
20235 #include <windows.h>
20236 #ifdef HAVE_WINSOCK2_H
20237 #include <winsock2.h>
20239 #ifdef HAVE_WINSOCK_H
20240 #include <winsock.h>
20243 #define SENDCALLCONV PASCAL
20245 #ifdef HAVE_SYS_TYPES_H
20246 #include <sys/types.h>
20248 #ifdef HAVE_SYS_SOCKET_H
20249 #include <sys/socket.h>
20251 #define SENDCALLCONV
20253 extern $send_retv SENDCALLCONV
20254 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
20261 $send_arg4 flags=0;
20262 $send_retv res = send(s, 0, len, flags);
20269 if ac_fn_c_try_compile "$LINENO"; then :
20271 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
20284 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
20285 if test "$curl_cv_func_send_args" = "unknown"; then
20286 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
20288 send_prev_IFS=$IFS; IFS=','
20289 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
20293 send_qual_type_arg2=$2
20296 cat >>confdefs.h <<_ACEOF
20297 #define SEND_TYPE_ARG1 $1
20301 cat >>confdefs.h <<_ACEOF
20302 #define SEND_TYPE_ARG3 $3
20306 cat >>confdefs.h <<_ACEOF
20307 #define SEND_TYPE_ARG4 $4
20311 cat >>confdefs.h <<_ACEOF
20312 #define SEND_TYPE_RETV $5
20318 case $prev_sh_opts in
20326 case "$send_qual_type_arg2" in
20328 send_qual_arg2=const
20329 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
20333 send_type_arg2=$send_qual_type_arg2
20338 cat >>confdefs.h <<_ACEOF
20339 #define SEND_QUAL_ARG2 $send_qual_arg2
20343 cat >>confdefs.h <<_ACEOF
20344 #define SEND_TYPE_ARG2 $send_type_arg2
20348 case $prev_sh_opts in
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_SEND 1
20361 ac_cv_func_send="yes"
20364 as_fn_error $? "Unable to link function send" "$LINENO" 5
20368 for ac_header in sys/types.h sys/socket.h
20370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20373 cat >>confdefs.h <<_ACEOF
20374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
20382 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
20383 if ${ac_cv_msg_nosignal+:} false; then :
20384 $as_echo_n "(cached) " >&6
20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20392 #ifdef HAVE_WINDOWS_H
20393 #ifndef WIN32_LEAN_AND_MEAN
20394 #define WIN32_LEAN_AND_MEAN
20396 #include <windows.h>
20397 #ifdef HAVE_WINSOCK2_H
20398 #include <winsock2.h>
20400 #ifdef HAVE_WINSOCK_H
20401 #include <winsock.h>
20405 #ifdef HAVE_SYS_TYPES_H
20406 #include <sys/types.h>
20408 #ifdef HAVE_SYS_SOCKET_H
20409 #include <sys/socket.h>
20416 int flag=MSG_NOSIGNAL;
20423 if ac_fn_c_try_compile "$LINENO"; then :
20425 ac_cv_msg_nosignal="yes"
20429 ac_cv_msg_nosignal="no"
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
20436 $as_echo "$ac_cv_msg_nosignal" >&6; }
20437 case "$ac_cv_msg_nosignal" in
20440 cat >>confdefs.h <<_ACEOF
20441 #define HAVE_MSG_NOSIGNAL 1
20449 cares_includes_socket="\
20450 /* includes start */
20451 #ifdef HAVE_SYS_TYPES_H
20452 # include <sys/types.h>
20454 #ifdef HAVE_SOCKET_H
20455 # include <socket.h>
20457 /* includes end */"
20458 for ac_header in sys/types.h socket.h
20460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20461 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
20463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20464 cat >>confdefs.h <<_ACEOF
20465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20475 tst_links_closesocket="unknown"
20476 tst_proto_closesocket="unknown"
20477 tst_compi_closesocket="unknown"
20478 tst_allow_closesocket="unknown"
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
20481 $as_echo_n "checking if closesocket can be linked... " >&6; }
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20486 $cares_includes_winsock2
20487 $cares_includes_socket
20492 if(0 != closesocket(0))
20500 if ac_fn_c_try_link "$LINENO"; then :
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20503 $as_echo "yes" >&6; }
20504 tst_links_closesocket="yes"
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20509 $as_echo "no" >&6; }
20510 tst_links_closesocket="no"
20513 rm -f core conftest.err conftest.$ac_objext \
20514 conftest$ac_exeext conftest.$ac_ext
20516 if test "$tst_links_closesocket" = "yes"; then
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
20518 $as_echo_n "checking if closesocket is prototyped... " >&6; }
20519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20520 /* end confdefs.h. */
20522 $cares_includes_winsock2
20523 $cares_includes_socket
20526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20527 $EGREP "closesocket" >/dev/null 2>&1; then :
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20530 $as_echo "yes" >&6; }
20531 tst_proto_closesocket="yes"
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20536 $as_echo "no" >&6; }
20537 tst_proto_closesocket="no"
20544 if test "$tst_proto_closesocket" = "yes"; then
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
20546 $as_echo_n "checking if closesocket is compilable... " >&6; }
20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h. */
20551 $cares_includes_winsock2
20552 $cares_includes_socket
20557 if(0 != closesocket(0))
20565 if ac_fn_c_try_compile "$LINENO"; then :
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20568 $as_echo "yes" >&6; }
20569 tst_compi_closesocket="yes"
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20574 $as_echo "no" >&6; }
20575 tst_compi_closesocket="no"
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 if test "$tst_compi_closesocket" = "yes"; then
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
20583 $as_echo_n "checking if closesocket usage allowed... " >&6; }
20584 if test "x$cares_disallow_closesocket" != "xyes"; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20586 $as_echo "yes" >&6; }
20587 tst_allow_closesocket="yes"
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20590 $as_echo "no" >&6; }
20591 tst_allow_closesocket="no"
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
20596 $as_echo_n "checking if closesocket might be used... " >&6; }
20597 if test "$tst_links_closesocket" = "yes" &&
20598 test "$tst_proto_closesocket" = "yes" &&
20599 test "$tst_compi_closesocket" = "yes" &&
20600 test "$tst_allow_closesocket" = "yes"; then
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20602 $as_echo "yes" >&6; }
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_CLOSESOCKET 1
20608 ac_cv_func_closesocket="yes"
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20611 $as_echo "no" >&6; }
20612 ac_cv_func_closesocket="no"
20617 tst_links_closesocket_camel="unknown"
20618 tst_proto_closesocket_camel="unknown"
20619 tst_compi_closesocket_camel="unknown"
20620 tst_allow_closesocket_camel="unknown"
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
20623 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
20624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20625 /* end confdefs.h. */
20628 $cares_includes_sys_socket
20633 if(0 != CloseSocket(0))
20641 if ac_fn_c_try_link "$LINENO"; then :
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20644 $as_echo "yes" >&6; }
20645 tst_links_closesocket_camel="yes"
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20650 $as_echo "no" >&6; }
20651 tst_links_closesocket_camel="no"
20654 rm -f core conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
20657 if test "$tst_links_closesocket_camel" = "yes"; then
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
20659 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h. */
20663 $cares_includes_sys_socket
20666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20667 $EGREP "CloseSocket" >/dev/null 2>&1; then :
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20670 $as_echo "yes" >&6; }
20671 tst_proto_closesocket_camel="yes"
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676 $as_echo "no" >&6; }
20677 tst_proto_closesocket_camel="no"
20684 if test "$tst_proto_closesocket_camel" = "yes"; then
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
20686 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
20687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h. */
20691 $cares_includes_sys_socket
20696 if(0 != CloseSocket(0))
20704 if ac_fn_c_try_compile "$LINENO"; then :
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20707 $as_echo "yes" >&6; }
20708 tst_compi_closesocket_camel="yes"
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20713 $as_echo "no" >&6; }
20714 tst_compi_closesocket_camel="no"
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 if test "$tst_compi_closesocket_camel" = "yes"; then
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
20722 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
20723 if test "x$cares_disallow_closesocket_camel" != "xyes"; then
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20725 $as_echo "yes" >&6; }
20726 tst_allow_closesocket_camel="yes"
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20729 $as_echo "no" >&6; }
20730 tst_allow_closesocket_camel="no"
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
20735 $as_echo_n "checking if CloseSocket might be used... " >&6; }
20736 if test "$tst_links_closesocket_camel" = "yes" &&
20737 test "$tst_proto_closesocket_camel" = "yes" &&
20738 test "$tst_compi_closesocket_camel" = "yes" &&
20739 test "$tst_allow_closesocket_camel" = "yes"; then
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20741 $as_echo "yes" >&6; }
20743 cat >>confdefs.h <<_ACEOF
20744 #define HAVE_CLOSESOCKET_CAMEL 1
20747 ac_cv_func_closesocket_camel="yes"
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20750 $as_echo "no" >&6; }
20751 ac_cv_func_closesocket_camel="no"
20756 tst_links_connect="unknown"
20757 tst_proto_connect="unknown"
20758 tst_compi_connect="unknown"
20759 tst_allow_connect="unknown"
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
20762 $as_echo_n "checking if connect can be linked... " >&6; }
20763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h. */
20767 $cares_includes_winsock2
20768 $cares_includes_sys_socket
20769 $cares_includes_socket
20774 if(0 != connect(0, 0, 0))
20782 if ac_fn_c_try_link "$LINENO"; then :
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20785 $as_echo "yes" >&6; }
20786 tst_links_connect="yes"
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791 $as_echo "no" >&6; }
20792 tst_links_connect="no"
20795 rm -f core conftest.err conftest.$ac_objext \
20796 conftest$ac_exeext conftest.$ac_ext
20798 if test "$tst_links_connect" = "yes"; then
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
20800 $as_echo_n "checking if connect is prototyped... " >&6; }
20801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20802 /* end confdefs.h. */
20804 $cares_includes_winsock2
20805 $cares_includes_sys_socket
20806 $cares_includes_socket
20809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20810 $EGREP "connect" >/dev/null 2>&1; then :
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20813 $as_echo "yes" >&6; }
20814 tst_proto_connect="yes"
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20819 $as_echo "no" >&6; }
20820 tst_proto_connect="no"
20827 if test "$tst_proto_connect" = "yes"; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
20829 $as_echo_n "checking if connect is compilable... " >&6; }
20830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h. */
20834 $cares_includes_winsock2
20835 $cares_includes_sys_socket
20836 $cares_includes_socket
20841 if(0 != connect(0, 0, 0))
20849 if ac_fn_c_try_compile "$LINENO"; then :
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20852 $as_echo "yes" >&6; }
20853 tst_compi_connect="yes"
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20858 $as_echo "no" >&6; }
20859 tst_compi_connect="no"
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 if test "$tst_compi_connect" = "yes"; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
20867 $as_echo_n "checking if connect usage allowed... " >&6; }
20868 if test "x$cares_disallow_connect" != "xyes"; then
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20870 $as_echo "yes" >&6; }
20871 tst_allow_connect="yes"
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874 $as_echo "no" >&6; }
20875 tst_allow_connect="no"
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
20880 $as_echo_n "checking if connect might be used... " >&6; }
20881 if test "$tst_links_connect" = "yes" &&
20882 test "$tst_proto_connect" = "yes" &&
20883 test "$tst_compi_connect" = "yes" &&
20884 test "$tst_allow_connect" = "yes"; then
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20886 $as_echo "yes" >&6; }
20888 cat >>confdefs.h <<_ACEOF
20889 #define HAVE_CONNECT 1
20892 ac_cv_func_connect="yes"
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20895 $as_echo "no" >&6; }
20896 ac_cv_func_connect="no"
20900 cares_includes_fcntl="\
20901 /* includes start */
20902 #ifdef HAVE_SYS_TYPES_H
20903 # include <sys/types.h>
20905 #ifdef HAVE_UNISTD_H
20906 # include <unistd.h>
20908 #ifdef HAVE_FCNTL_H
20909 # include <fcntl.h>
20911 /* includes end */"
20912 for ac_header in sys/types.h unistd.h fcntl.h
20914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20915 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
20917 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20918 cat >>confdefs.h <<_ACEOF
20919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20929 tst_links_fcntl="unknown"
20930 tst_proto_fcntl="unknown"
20931 tst_compi_fcntl="unknown"
20932 tst_allow_fcntl="unknown"
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
20935 $as_echo_n "checking if fcntl can be linked... " >&6; }
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20940 #define fcntl innocuous_fcntl
20942 # include <limits.h>
20944 # include <assert.h>
20951 #if defined __stub_fcntl || defined __stub___fcntl
20963 if ac_fn_c_try_link "$LINENO"; then :
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20966 $as_echo "yes" >&6; }
20967 tst_links_fcntl="yes"
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20972 $as_echo "no" >&6; }
20973 tst_links_fcntl="no"
20976 rm -f core conftest.err conftest.$ac_objext \
20977 conftest$ac_exeext conftest.$ac_ext
20979 if test "$tst_links_fcntl" = "yes"; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
20981 $as_echo_n "checking if fcntl is prototyped... " >&6; }
20982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h. */
20985 $cares_includes_fcntl
20988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20989 $EGREP "fcntl" >/dev/null 2>&1; then :
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20992 $as_echo "yes" >&6; }
20993 tst_proto_fcntl="yes"
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20998 $as_echo "no" >&6; }
20999 tst_proto_fcntl="no"
21006 if test "$tst_proto_fcntl" = "yes"; then
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
21008 $as_echo_n "checking if fcntl is compilable... " >&6; }
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21013 $cares_includes_fcntl
21018 if(0 != fcntl(0, 0, 0))
21026 if ac_fn_c_try_compile "$LINENO"; then :
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21029 $as_echo "yes" >&6; }
21030 tst_compi_fcntl="yes"
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21035 $as_echo "no" >&6; }
21036 tst_compi_fcntl="no"
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21042 if test "$tst_compi_fcntl" = "yes"; then
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
21044 $as_echo_n "checking if fcntl usage allowed... " >&6; }
21045 if test "x$cares_disallow_fcntl" != "xyes"; then
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21047 $as_echo "yes" >&6; }
21048 tst_allow_fcntl="yes"
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 $as_echo "no" >&6; }
21052 tst_allow_fcntl="no"
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
21057 $as_echo_n "checking if fcntl might be used... " >&6; }
21058 if test "$tst_links_fcntl" = "yes" &&
21059 test "$tst_proto_fcntl" = "yes" &&
21060 test "$tst_compi_fcntl" = "yes" &&
21061 test "$tst_allow_fcntl" = "yes"; then
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21063 $as_echo "yes" >&6; }
21065 cat >>confdefs.h <<_ACEOF
21066 #define HAVE_FCNTL 1
21069 ac_cv_func_fcntl="yes"
21072 tst_compi_fcntl_o_nonblock="unknown"
21073 tst_allow_fcntl_o_nonblock="unknown"
21076 sunos4* | aix3* | beos*)
21077 cares_disallow_fcntl_o_nonblock="yes"
21081 if test "$ac_cv_func_fcntl" = "yes"; then
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
21083 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h. */
21088 $cares_includes_fcntl
21094 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
21102 if ac_fn_c_try_compile "$LINENO"; then :
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21105 $as_echo "yes" >&6; }
21106 tst_compi_fcntl_o_nonblock="yes"
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21111 $as_echo "no" >&6; }
21112 tst_compi_fcntl_o_nonblock="no"
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
21120 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
21121 if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21123 $as_echo "yes" >&6; }
21124 tst_allow_fcntl_o_nonblock="yes"
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21127 $as_echo "no" >&6; }
21128 tst_allow_fcntl_o_nonblock="no"
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
21133 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
21134 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
21135 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21137 $as_echo "yes" >&6; }
21139 cat >>confdefs.h <<_ACEOF
21140 #define HAVE_FCNTL_O_NONBLOCK 1
21143 ac_cv_func_fcntl_o_nonblock="yes"
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21146 $as_echo "no" >&6; }
21147 ac_cv_func_fcntl_o_nonblock="no"
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21152 $as_echo "no" >&6; }
21153 ac_cv_func_fcntl="no"
21157 cares_includes_netdb="\
21158 /* includes start */
21159 #ifdef HAVE_SYS_TYPES_H
21160 # include <sys/types.h>
21162 #ifdef HAVE_NETDB_H
21163 # include <netdb.h>
21165 /* includes end */"
21166 for ac_header in sys/types.h netdb.h
21168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
21171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21172 cat >>confdefs.h <<_ACEOF
21173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21183 tst_links_freeaddrinfo="unknown"
21184 tst_proto_freeaddrinfo="unknown"
21185 tst_compi_freeaddrinfo="unknown"
21186 tst_allow_freeaddrinfo="unknown"
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
21189 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
21190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h. */
21194 $cares_includes_ws2tcpip
21195 $cares_includes_sys_socket
21196 $cares_includes_netdb
21208 if ac_fn_c_try_link "$LINENO"; then :
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21211 $as_echo "yes" >&6; }
21212 tst_links_freeaddrinfo="yes"
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21217 $as_echo "no" >&6; }
21218 tst_links_freeaddrinfo="no"
21221 rm -f core conftest.err conftest.$ac_objext \
21222 conftest$ac_exeext conftest.$ac_ext
21224 if test "$tst_links_freeaddrinfo" = "yes"; then
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
21226 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21230 $cares_includes_ws2tcpip
21231 $cares_includes_sys_socket
21232 $cares_includes_netdb
21235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21236 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21239 $as_echo "yes" >&6; }
21240 tst_proto_freeaddrinfo="yes"
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 $as_echo "no" >&6; }
21246 tst_proto_freeaddrinfo="no"
21253 if test "$tst_proto_freeaddrinfo" = "yes"; then
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
21255 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
21256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h. */
21260 $cares_includes_ws2tcpip
21261 $cares_includes_sys_socket
21262 $cares_includes_netdb
21274 if ac_fn_c_try_compile "$LINENO"; then :
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21277 $as_echo "yes" >&6; }
21278 tst_compi_freeaddrinfo="yes"
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21283 $as_echo "no" >&6; }
21284 tst_compi_freeaddrinfo="no"
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 if test "$tst_compi_freeaddrinfo" = "yes"; then
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
21292 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
21293 if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21295 $as_echo "yes" >&6; }
21296 tst_allow_freeaddrinfo="yes"
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 $as_echo "no" >&6; }
21300 tst_allow_freeaddrinfo="no"
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
21305 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
21306 if test "$tst_links_freeaddrinfo" = "yes" &&
21307 test "$tst_proto_freeaddrinfo" = "yes" &&
21308 test "$tst_compi_freeaddrinfo" = "yes" &&
21309 test "$tst_allow_freeaddrinfo" = "yes"; then
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21311 $as_echo "yes" >&6; }
21313 cat >>confdefs.h <<_ACEOF
21314 #define HAVE_FREEADDRINFO 1
21317 ac_cv_func_freeaddrinfo="yes"
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21320 $as_echo "no" >&6; }
21321 ac_cv_func_freeaddrinfo="no"
21325 cares_includes_stdlib="\
21326 /* includes start */
21327 #ifdef HAVE_SYS_TYPES_H
21328 # include <sys/types.h>
21330 #ifdef HAVE_STDLIB_H
21331 # include <stdlib.h>
21333 /* includes end */"
21334 for ac_header in sys/types.h stdlib.h
21336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21337 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
21339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21340 cat >>confdefs.h <<_ACEOF
21341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21350 cares_includes_string="\
21351 /* includes start */
21352 #ifdef HAVE_SYS_TYPES_H
21353 # include <sys/types.h>
21355 #ifdef HAVE_STRING_H
21356 # include <string.h>
21358 #ifdef HAVE_STRINGS_H
21359 # include <strings.h>
21361 /* includes end */"
21362 for ac_header in sys/types.h string.h strings.h
21364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21365 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
21367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21368 cat >>confdefs.h <<_ACEOF
21369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21379 tst_links_getaddrinfo="unknown"
21380 tst_proto_getaddrinfo="unknown"
21381 tst_compi_getaddrinfo="unknown"
21382 tst_works_getaddrinfo="unknown"
21383 tst_allow_getaddrinfo="unknown"
21384 tst_tsafe_getaddrinfo="unknown"
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
21387 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
21388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21389 /* end confdefs.h. */
21392 $cares_includes_ws2tcpip
21393 $cares_includes_sys_socket
21394 $cares_includes_netdb
21399 if(0 != getaddrinfo(0, 0, 0, 0))
21407 if ac_fn_c_try_link "$LINENO"; then :
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21410 $as_echo "yes" >&6; }
21411 tst_links_getaddrinfo="yes"
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417 tst_links_getaddrinfo="no"
21420 rm -f core conftest.err conftest.$ac_objext \
21421 conftest$ac_exeext conftest.$ac_ext
21423 if test "$tst_links_getaddrinfo" = "yes"; then
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
21425 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
21426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h. */
21429 $cares_includes_ws2tcpip
21430 $cares_includes_sys_socket
21431 $cares_includes_netdb
21434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21435 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21438 $as_echo "yes" >&6; }
21439 tst_proto_getaddrinfo="yes"
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21444 $as_echo "no" >&6; }
21445 tst_proto_getaddrinfo="no"
21452 if test "$tst_proto_getaddrinfo" = "yes"; then
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
21454 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21459 $cares_includes_ws2tcpip
21460 $cares_includes_sys_socket
21461 $cares_includes_netdb
21466 if(0 != getaddrinfo(0, 0, 0, 0))
21474 if ac_fn_c_try_compile "$LINENO"; then :
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21477 $as_echo "yes" >&6; }
21478 tst_compi_getaddrinfo="yes"
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21483 $as_echo "no" >&6; }
21484 tst_compi_getaddrinfo="no"
21487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490 if test "x$cross_compiling" != "xyes" &&
21491 test "$tst_compi_getaddrinfo" = "yes"; then
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
21493 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
21494 if test "$cross_compiling" = yes; then :
21495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21497 as_fn_error $? "cannot run test program while cross compiling
21498 See \`config.log' for more details" "$LINENO" 5; }
21500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h. */
21504 $cares_includes_ws2tcpip
21505 $cares_includes_stdlib
21506 $cares_includes_string
21507 $cares_includes_sys_socket
21508 $cares_includes_netdb
21513 struct addrinfo hints;
21514 struct addrinfo *ai = 0;
21517 memset(&hints, 0, sizeof(hints));
21518 hints.ai_flags = AI_NUMERICHOST;
21519 hints.ai_family = AF_UNSPEC;
21520 hints.ai_socktype = SOCK_STREAM;
21521 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
21523 exit(1); /* fail */
21532 if ac_fn_c_try_run "$LINENO"; then :
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21535 $as_echo "yes" >&6; }
21536 tst_works_getaddrinfo="yes"
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21541 $as_echo "no" >&6; }
21542 tst_works_getaddrinfo="no"
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21546 conftest.$ac_objext conftest.beam conftest.$ac_ext
21551 if test "$tst_compi_getaddrinfo" = "yes" &&
21552 test "$tst_works_getaddrinfo" != "no"; then
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
21554 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
21555 if test "x$cares_disallow_getaddrinfo" != "xyes"; then
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21557 $as_echo "yes" >&6; }
21558 tst_allow_getaddrinfo="yes"
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21562 tst_allow_getaddrinfo="no"
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
21567 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
21568 if test "$tst_links_getaddrinfo" = "yes" &&
21569 test "$tst_proto_getaddrinfo" = "yes" &&
21570 test "$tst_compi_getaddrinfo" = "yes" &&
21571 test "$tst_allow_getaddrinfo" = "yes" &&
21572 test "$tst_works_getaddrinfo" != "no"; then
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21574 $as_echo "yes" >&6; }
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE_GETADDRINFO 1
21580 ac_cv_func_getaddrinfo="yes"
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21583 $as_echo "no" >&6; }
21584 ac_cv_func_getaddrinfo="no"
21585 ac_cv_func_getaddrinfo_threadsafe="no"
21588 if test "$ac_cv_func_getaddrinfo" = "yes"; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
21590 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
21592 aix[1234].* | aix5.[01].*)
21593 tst_tsafe_getaddrinfo="no"
21596 tst_tsafe_getaddrinfo="yes"
21599 tst_tsafe_getaddrinfo="no"
21602 tst_tsafe_getaddrinfo="yes"
21604 freebsd[1234].* | freebsd5.[1234]*)
21605 tst_tsafe_getaddrinfo="no"
21608 tst_tsafe_getaddrinfo="yes"
21610 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
21611 tst_tsafe_getaddrinfo="no"
21614 tst_tsafe_getaddrinfo="yes"
21617 tst_tsafe_getaddrinfo="no"
21620 tst_tsafe_getaddrinfo="yes"
21623 tst_tsafe_getaddrinfo="no"
21626 tst_tsafe_getaddrinfo="yes"
21629 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
21630 test "$ac_cv_native_windows" = "yes"; then
21631 tst_tsafe_getaddrinfo="yes"
21633 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h. */
21640 $cares_includes_sys_socket
21641 $cares_includes_netdb
21648 force compilation error
21654 if ac_fn_c_try_compile "$LINENO"; then :
21656 tst_symbol_defined="yes"
21660 tst_symbol_defined="no"
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 if test "$tst_symbol_defined" = "yes"; then
21665 curl_cv_have_def_h_errno=yes
21668 curl_cv_have_def_h_errno=no
21672 if test "$curl_cv_have_def_h_errno" = "yes"; then
21673 tst_h_errno_macro="yes"
21675 tst_h_errno_macro="no"
21677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678 /* end confdefs.h. */
21681 $cares_includes_sys_socket
21682 $cares_includes_netdb
21696 if ac_fn_c_try_compile "$LINENO"; then :
21698 tst_h_errno_modifiable_lvalue="yes"
21702 tst_h_errno_modifiable_lvalue="no"
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21714 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
21716 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
21719 force compilation error
21727 if ac_fn_c_try_compile "$LINENO"; then :
21729 tst_h_errno_sbs_issue_7="yes"
21733 tst_h_errno_sbs_issue_7="no"
21736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737 if test "$tst_h_errno_macro" = "no" &&
21738 test "$tst_h_errno_modifiable_lvalue" = "no" &&
21739 test "$tst_h_errno_sbs_issue_7" = "no"; then
21740 tst_tsafe_getaddrinfo="no"
21742 tst_tsafe_getaddrinfo="yes"
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
21746 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
21747 if test "$tst_tsafe_getaddrinfo" = "yes"; then
21749 cat >>confdefs.h <<_ACEOF
21750 #define HAVE_GETADDRINFO_THREADSAFE 1
21753 ac_cv_func_getaddrinfo_threadsafe="yes"
21755 ac_cv_func_getaddrinfo_threadsafe="no"
21761 tst_links_getenv="unknown"
21762 tst_proto_getenv="unknown"
21763 tst_compi_getenv="unknown"
21764 tst_allow_getenv="unknown"
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
21767 $as_echo_n "checking if getenv can be linked... " >&6; }
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21772 #define getenv innocuous_getenv
21774 # include <limits.h>
21776 # include <assert.h>
21783 #if defined __stub_getenv || defined __stub___getenv
21795 if ac_fn_c_try_link "$LINENO"; then :
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21798 $as_echo "yes" >&6; }
21799 tst_links_getenv="yes"
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21804 $as_echo "no" >&6; }
21805 tst_links_getenv="no"
21808 rm -f core conftest.err conftest.$ac_objext \
21809 conftest$ac_exeext conftest.$ac_ext
21811 if test "$tst_links_getenv" = "yes"; then
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
21813 $as_echo_n "checking if getenv is prototyped... " >&6; }
21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h. */
21817 $cares_includes_stdlib
21820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21821 $EGREP "getenv" >/dev/null 2>&1; then :
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824 $as_echo "yes" >&6; }
21825 tst_proto_getenv="yes"
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21830 $as_echo "no" >&6; }
21831 tst_proto_getenv="no"
21838 if test "$tst_proto_getenv" = "yes"; then
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
21840 $as_echo_n "checking if getenv is compilable... " >&6; }
21841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h. */
21845 $cares_includes_stdlib
21858 if ac_fn_c_try_compile "$LINENO"; then :
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21861 $as_echo "yes" >&6; }
21862 tst_compi_getenv="yes"
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21867 $as_echo "no" >&6; }
21868 tst_compi_getenv="no"
21871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874 if test "$tst_compi_getenv" = "yes"; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
21876 $as_echo_n "checking if getenv usage allowed... " >&6; }
21877 if test "x$cares_disallow_getenv" != "xyes"; then
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21879 $as_echo "yes" >&6; }
21880 tst_allow_getenv="yes"
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21883 $as_echo "no" >&6; }
21884 tst_allow_getenv="no"
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
21889 $as_echo_n "checking if getenv might be used... " >&6; }
21890 if test "$tst_links_getenv" = "yes" &&
21891 test "$tst_proto_getenv" = "yes" &&
21892 test "$tst_compi_getenv" = "yes" &&
21893 test "$tst_allow_getenv" = "yes"; then
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21895 $as_echo "yes" >&6; }
21897 cat >>confdefs.h <<_ACEOF
21898 #define HAVE_GETENV 1
21901 ac_cv_func_getenv="yes"
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21904 $as_echo "no" >&6; }
21905 ac_cv_func_getenv="no"
21910 tst_links_gethostbyaddr="unknown"
21911 tst_proto_gethostbyaddr="unknown"
21912 tst_compi_gethostbyaddr="unknown"
21913 tst_allow_gethostbyaddr="unknown"
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
21916 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
21917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21921 $cares_includes_winsock2
21922 $cares_includes_netdb
21927 if(0 != gethostbyaddr(0, 0, 0))
21935 if ac_fn_c_try_link "$LINENO"; then :
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21939 tst_links_gethostbyaddr="yes"
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21944 $as_echo "no" >&6; }
21945 tst_links_gethostbyaddr="no"
21948 rm -f core conftest.err conftest.$ac_objext \
21949 conftest$ac_exeext conftest.$ac_ext
21951 if test "$tst_links_gethostbyaddr" = "yes"; then
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
21953 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21957 $cares_includes_winsock2
21958 $cares_includes_netdb
21961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21962 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21965 $as_echo "yes" >&6; }
21966 tst_proto_gethostbyaddr="yes"
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21971 $as_echo "no" >&6; }
21972 tst_proto_gethostbyaddr="no"
21979 if test "$tst_proto_gethostbyaddr" = "yes"; then
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
21981 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h. */
21986 $cares_includes_winsock2
21987 $cares_includes_netdb
21992 if(0 != gethostbyaddr(0, 0, 0))
22000 if ac_fn_c_try_compile "$LINENO"; then :
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22003 $as_echo "yes" >&6; }
22004 tst_compi_gethostbyaddr="yes"
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 $as_echo "no" >&6; }
22010 tst_compi_gethostbyaddr="no"
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22016 if test "$tst_compi_gethostbyaddr" = "yes"; then
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
22018 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
22019 if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22021 $as_echo "yes" >&6; }
22022 tst_allow_gethostbyaddr="yes"
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22025 $as_echo "no" >&6; }
22026 tst_allow_gethostbyaddr="no"
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
22031 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
22032 if test "$tst_links_gethostbyaddr" = "yes" &&
22033 test "$tst_proto_gethostbyaddr" = "yes" &&
22034 test "$tst_compi_gethostbyaddr" = "yes" &&
22035 test "$tst_allow_gethostbyaddr" = "yes"; then
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22037 $as_echo "yes" >&6; }
22039 cat >>confdefs.h <<_ACEOF
22040 #define HAVE_GETHOSTBYADDR 1
22043 ac_cv_func_gethostbyaddr="yes"
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22046 $as_echo "no" >&6; }
22047 ac_cv_func_gethostbyaddr="no"
22052 tst_links_gethostbyname="unknown"
22053 tst_proto_gethostbyname="unknown"
22054 tst_compi_gethostbyname="unknown"
22055 tst_allow_gethostbyname="unknown"
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
22058 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
22059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060 /* end confdefs.h. */
22063 $cares_includes_winsock2
22064 $cares_includes_netdb
22069 if(0 != gethostbyname(0))
22077 if ac_fn_c_try_link "$LINENO"; then :
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22080 $as_echo "yes" >&6; }
22081 tst_links_gethostbyname="yes"
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22086 $as_echo "no" >&6; }
22087 tst_links_gethostbyname="no"
22090 rm -f core conftest.err conftest.$ac_objext \
22091 conftest$ac_exeext conftest.$ac_ext
22093 if test "$tst_links_gethostbyname" = "yes"; then
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
22095 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097 /* end confdefs.h. */
22099 $cares_includes_winsock2
22100 $cares_includes_netdb
22103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22104 $EGREP "gethostbyname" >/dev/null 2>&1; then :
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22107 $as_echo "yes" >&6; }
22108 tst_proto_gethostbyname="yes"
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 $as_echo "no" >&6; }
22114 tst_proto_gethostbyname="no"
22121 if test "$tst_proto_gethostbyname" = "yes"; then
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
22123 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h. */
22128 $cares_includes_winsock2
22129 $cares_includes_netdb
22134 if(0 != gethostbyname(0))
22142 if ac_fn_c_try_compile "$LINENO"; then :
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22145 $as_echo "yes" >&6; }
22146 tst_compi_gethostbyname="yes"
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22151 $as_echo "no" >&6; }
22152 tst_compi_gethostbyname="no"
22155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158 if test "$tst_compi_gethostbyname" = "yes"; then
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
22160 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
22161 if test "x$cares_disallow_gethostbyname" != "xyes"; then
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22163 $as_echo "yes" >&6; }
22164 tst_allow_gethostbyname="yes"
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22167 $as_echo "no" >&6; }
22168 tst_allow_gethostbyname="no"
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
22173 $as_echo_n "checking if gethostbyname might be used... " >&6; }
22174 if test "$tst_links_gethostbyname" = "yes" &&
22175 test "$tst_proto_gethostbyname" = "yes" &&
22176 test "$tst_compi_gethostbyname" = "yes" &&
22177 test "$tst_allow_gethostbyname" = "yes"; then
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22179 $as_echo "yes" >&6; }
22181 cat >>confdefs.h <<_ACEOF
22182 #define HAVE_GETHOSTBYNAME 1
22185 ac_cv_func_gethostbyname="yes"
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22188 $as_echo "no" >&6; }
22189 ac_cv_func_gethostbyname="no"
22193 cares_includes_unistd="\
22194 /* includes start */
22195 #ifdef HAVE_SYS_TYPES_H
22196 # include <sys/types.h>
22198 #ifdef HAVE_UNISTD_H
22199 # include <unistd.h>
22201 /* includes end */"
22202 for ac_header in sys/types.h unistd.h
22204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22205 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
22207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22208 cat >>confdefs.h <<_ACEOF
22209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22219 tst_links_gethostname="unknown"
22220 tst_proto_gethostname="unknown"
22221 tst_compi_gethostname="unknown"
22222 tst_allow_gethostname="unknown"
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
22225 $as_echo_n "checking if gethostname can be linked... " >&6; }
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22230 $cares_includes_winsock2
22231 $cares_includes_unistd
22236 if(0 != gethostname(0, 0))
22244 if ac_fn_c_try_link "$LINENO"; then :
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22247 $as_echo "yes" >&6; }
22248 tst_links_gethostname="yes"
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22253 $as_echo "no" >&6; }
22254 tst_links_gethostname="no"
22257 rm -f core conftest.err conftest.$ac_objext \
22258 conftest$ac_exeext conftest.$ac_ext
22260 if test "$tst_links_gethostname" = "yes"; then
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
22262 $as_echo_n "checking if gethostname is prototyped... " >&6; }
22263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h. */
22266 $cares_includes_winsock2
22267 $cares_includes_unistd
22270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22271 $EGREP "gethostname" >/dev/null 2>&1; then :
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274 $as_echo "yes" >&6; }
22275 tst_proto_gethostname="yes"
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280 $as_echo "no" >&6; }
22281 tst_proto_gethostname="no"
22288 if test "$tst_proto_gethostname" = "yes"; then
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
22290 $as_echo_n "checking if gethostname is compilable... " >&6; }
22291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h. */
22295 $cares_includes_winsock2
22296 $cares_includes_unistd
22301 if(0 != gethostname(0, 0))
22309 if ac_fn_c_try_compile "$LINENO"; then :
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22312 $as_echo "yes" >&6; }
22313 tst_compi_gethostname="yes"
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319 tst_compi_gethostname="no"
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 if test "$tst_compi_gethostname" = "yes"; then
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
22327 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
22328 tst_gethostname_type_arg2="unknown"
22329 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
22330 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
22331 if test "$tst_gethostname_type_arg2" = "unknown"; then
22332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333 /* end confdefs.h. */
22336 $cares_includes_winsock2
22337 $cares_includes_unistd
22338 $cares_preprocess_callconv
22339 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
22344 if(0 != gethostname(0, 0))
22352 if ac_fn_c_try_compile "$LINENO"; then :
22354 tst_gethostname_type_arg2="$tst_arg2"
22357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
22362 $as_echo "$tst_gethostname_type_arg2" >&6; }
22363 if test "$tst_gethostname_type_arg2" != "unknown"; then
22365 cat >>confdefs.h <<_ACEOF
22366 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
22372 if test "$tst_compi_gethostname" = "yes"; then
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
22374 $as_echo_n "checking if gethostname usage allowed... " >&6; }
22375 if test "x$cares_disallow_gethostname" != "xyes"; then
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22377 $as_echo "yes" >&6; }
22378 tst_allow_gethostname="yes"
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22381 $as_echo "no" >&6; }
22382 tst_allow_gethostname="no"
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
22387 $as_echo_n "checking if gethostname might be used... " >&6; }
22388 if test "$tst_links_gethostname" = "yes" &&
22389 test "$tst_proto_gethostname" = "yes" &&
22390 test "$tst_compi_gethostname" = "yes" &&
22391 test "$tst_allow_gethostname" = "yes"; then
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22393 $as_echo "yes" >&6; }
22395 cat >>confdefs.h <<_ACEOF
22396 #define HAVE_GETHOSTNAME 1
22399 ac_cv_func_gethostname="yes"
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22402 $as_echo "no" >&6; }
22403 ac_cv_func_gethostname="no"
22408 tst_links_getservbyport_r="unknown"
22409 tst_proto_getservbyport_r="unknown"
22410 tst_compi_getservbyport_r="unknown"
22411 tst_allow_getservbyport_r="unknown"
22412 tst_nargs_getservbyport_r="unknown"
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
22415 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22420 #define getservbyport_r innocuous_getservbyport_r
22422 # include <limits.h>
22424 # include <assert.h>
22426 #undef getservbyport_r
22430 char getservbyport_r ();
22431 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
22437 return getservbyport_r ();
22443 if ac_fn_c_try_link "$LINENO"; then :
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22446 $as_echo "yes" >&6; }
22447 tst_links_getservbyport_r="yes"
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22452 $as_echo "no" >&6; }
22453 tst_links_getservbyport_r="no"
22456 rm -f core conftest.err conftest.$ac_objext \
22457 conftest$ac_exeext conftest.$ac_ext
22459 if test "$tst_links_getservbyport_r" = "yes"; then
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
22461 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463 /* end confdefs.h. */
22465 $cares_includes_netdb
22468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22469 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22472 $as_echo "yes" >&6; }
22473 tst_proto_getservbyport_r="yes"
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22478 $as_echo "no" >&6; }
22479 tst_proto_getservbyport_r="no"
22486 if test "$tst_proto_getservbyport_r" = "yes"; then
22487 if test "$tst_nargs_getservbyport_r" = "unknown"; then
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
22489 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22494 $cares_includes_netdb
22499 if(0 != getservbyport_r(0, 0, 0, 0))
22507 if ac_fn_c_try_compile "$LINENO"; then :
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22510 $as_echo "yes" >&6; }
22511 tst_compi_getservbyport_r="yes"
22512 tst_nargs_getservbyport_r="4"
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22517 $as_echo "no" >&6; }
22518 tst_compi_getservbyport_r="no"
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523 if test "$tst_nargs_getservbyport_r" = "unknown"; then
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
22525 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h. */
22530 $cares_includes_netdb
22535 if(0 != getservbyport_r(0, 0, 0, 0, 0))
22543 if ac_fn_c_try_compile "$LINENO"; then :
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22546 $as_echo "yes" >&6; }
22547 tst_compi_getservbyport_r="yes"
22548 tst_nargs_getservbyport_r="5"
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22554 tst_compi_getservbyport_r="no"
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 if test "$tst_nargs_getservbyport_r" = "unknown"; then
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
22561 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
22562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h. */
22566 $cares_includes_netdb
22571 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
22579 if ac_fn_c_try_compile "$LINENO"; then :
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22582 $as_echo "yes" >&6; }
22583 tst_compi_getservbyport_r="yes"
22584 tst_nargs_getservbyport_r="6"
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22589 $as_echo "no" >&6; }
22590 tst_compi_getservbyport_r="no"
22593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
22596 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
22597 if test "$tst_compi_getservbyport_r" = "yes"; then
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22599 $as_echo "yes" >&6; }
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22602 $as_echo "no" >&6; }
22606 if test "$tst_compi_getservbyport_r" = "yes"; then
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
22608 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
22609 if test "x$cares_disallow_getservbyport_r" != "xyes"; then
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22611 $as_echo "yes" >&6; }
22612 tst_allow_getservbyport_r="yes"
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22615 $as_echo "no" >&6; }
22616 tst_allow_getservbyport_r="no"
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
22621 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
22622 if test "$tst_links_getservbyport_r" = "yes" &&
22623 test "$tst_proto_getservbyport_r" = "yes" &&
22624 test "$tst_compi_getservbyport_r" = "yes" &&
22625 test "$tst_allow_getservbyport_r" = "yes"; then
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22627 $as_echo "yes" >&6; }
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_GETSERVBYPORT_R 1
22634 cat >>confdefs.h <<_ACEOF
22635 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
22638 if test "$tst_nargs_getservbyport_r" -eq "4"; then
22640 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
22644 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
22647 ac_cv_func_getservbyport_r="yes"
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22650 $as_echo "no" >&6; }
22651 ac_cv_func_getservbyport_r="no"
22655 cares_includes_arpa_inet="\
22656 /* includes start */
22657 #ifdef HAVE_SYS_TYPES_H
22658 # include <sys/types.h>
22660 #ifdef HAVE_SYS_SOCKET_H
22661 # include <sys/socket.h>
22663 #ifdef HAVE_NETINET_IN_H
22664 # include <netinet/in.h>
22666 #ifdef HAVE_ARPA_INET_H
22667 # include <arpa/inet.h>
22669 /* includes end */"
22670 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
22672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
22675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22676 cat >>confdefs.h <<_ACEOF
22677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22687 tst_links_inet_net_pton="unknown"
22688 tst_proto_inet_net_pton="unknown"
22689 tst_compi_inet_net_pton="unknown"
22690 tst_works_inet_net_pton="unknown"
22691 tst_allow_inet_net_pton="unknown"
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
22694 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
22695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22696 /* end confdefs.h. */
22699 #define inet_net_pton innocuous_inet_net_pton
22701 # include <limits.h>
22703 # include <assert.h>
22705 #undef inet_net_pton
22709 char inet_net_pton ();
22710 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
22716 return inet_net_pton ();
22722 if ac_fn_c_try_link "$LINENO"; then :
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22725 $as_echo "yes" >&6; }
22726 tst_links_inet_net_pton="yes"
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22731 $as_echo "no" >&6; }
22732 tst_links_inet_net_pton="no"
22735 rm -f core conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22738 if test "$tst_links_inet_net_pton" = "yes"; then
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
22740 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
22741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22742 /* end confdefs.h. */
22744 $cares_includes_arpa_inet
22747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22748 $EGREP "inet_net_pton" >/dev/null 2>&1; then :
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22751 $as_echo "yes" >&6; }
22752 tst_proto_inet_net_pton="yes"
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22757 $as_echo "no" >&6; }
22758 tst_proto_inet_net_pton="no"
22765 if test "$tst_proto_inet_net_pton" = "yes"; then
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
22767 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
22768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h. */
22772 $cares_includes_arpa_inet
22777 if(0 != inet_net_pton(0, 0, 0, 0))
22785 if ac_fn_c_try_compile "$LINENO"; then :
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22788 $as_echo "yes" >&6; }
22789 tst_compi_inet_net_pton="yes"
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22794 $as_echo "no" >&6; }
22795 tst_compi_inet_net_pton="no"
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 if test "x$cross_compiling" != "xyes" &&
22802 test "$tst_compi_inet_net_pton" = "yes"; then
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
22804 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
22805 if test "$cross_compiling" = yes; then :
22806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22808 as_fn_error $? "cannot run test program while cross compiling
22809 See \`config.log' for more details" "$LINENO" 5; }
22811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22812 /* end confdefs.h. */
22815 $cares_includes_stdlib
22816 $cares_includes_arpa_inet
22817 $cares_includes_string
22822 unsigned char ipv6a[16+1];
22823 unsigned char ipv4a[4+1];
22824 const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
22825 const char *ipv6net2 = "::fffe:7f00:1";
22826 const char *ipv6net3 = "7f20:1::/64";
22827 const char *ipv6net4 = "7f20:1::/2147483649";
22828 const char *ipv4net1 = "192.168.100.1";
22829 const char *ipv4net2 = "192.168.100/32";
22830 const char *ipv4net3 = "192.168.100.1/2147483649";
22832 memset(ipv4a, 1, sizeof(ipv4a));
22833 if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
22834 exit(1); /* fail */
22836 if( (ipv4a[0x00] != 0xc0) ||
22837 (ipv4a[0x01] != 0xa8) ||
22838 (ipv4a[0x02] != 0x64) ||
22839 (ipv4a[0x03] != 0x01) ||
22840 (ipv4a[0x04] != 0x01) )
22841 exit(1); /* fail */
22843 memset(ipv4a, 1, sizeof(ipv4a));
22844 if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
22845 exit(1); /* fail */
22847 if( (ipv4a[0x00] != 0xc0) ||
22848 (ipv4a[0x01] != 0xa8) ||
22849 (ipv4a[0x02] != 0x64) ||
22850 (ipv4a[0x03] != 0x00) ||
22851 (ipv4a[0x04] != 0x01) )
22852 exit(1); /* fail */
22854 memset(ipv4a, 1, sizeof(ipv4a));
22855 if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
22856 exit(1); /* fail */
22858 memset(ipv6a, 1, sizeof(ipv6a));
22859 if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
22860 exit(1); /* fail */
22862 if( (ipv6a[0x00] != 0xfe) ||
22863 (ipv6a[0x01] != 0x80) ||
22864 (ipv6a[0x08] != 0x02) ||
22865 (ipv6a[0x09] != 0x14) ||
22866 (ipv6a[0x0a] != 0x4f) ||
22867 (ipv6a[0x0b] != 0xff) ||
22868 (ipv6a[0x0c] != 0xfe) ||
22869 (ipv6a[0x0d] != 0x0b) ||
22870 (ipv6a[0x0e] != 0x76) ||
22871 (ipv6a[0x0f] != 0xc8) ||
22872 (ipv6a[0x10] != 0x01) )
22873 exit(1); /* fail */
22875 if( (ipv6a[0x02] != 0x0) ||
22876 (ipv6a[0x03] != 0x0) ||
22877 (ipv6a[0x04] != 0x0) ||
22878 (ipv6a[0x05] != 0x0) ||
22879 (ipv6a[0x06] != 0x0) ||
22880 (ipv6a[0x07] != 0x0) )
22881 exit(1); /* fail */
22883 memset(ipv6a, 0, sizeof(ipv6a));
22884 ipv6a[0x10] = 0x01;
22885 if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
22886 exit(1); /* fail */
22888 if( (ipv6a[0x0a] != 0xff) ||
22889 (ipv6a[0x0b] != 0xfe) ||
22890 (ipv6a[0x0c] != 0x7f) ||
22891 (ipv6a[0x0f] != 0x01) ||
22892 (ipv6a[0x10] != 0x01) )
22893 exit(1); /* fail */
22895 if( (ipv6a[0x00] != 0x0) ||
22896 (ipv6a[0x01] != 0x0) ||
22897 (ipv6a[0x02] != 0x0) ||
22898 (ipv6a[0x03] != 0x0) ||
22899 (ipv6a[0x04] != 0x0) ||
22900 (ipv6a[0x05] != 0x0) ||
22901 (ipv6a[0x06] != 0x0) ||
22902 (ipv6a[0x07] != 0x0) ||
22903 (ipv6a[0x08] != 0x0) ||
22904 (ipv6a[0x09] != 0x0) ||
22905 (ipv6a[0x0d] != 0x0) ||
22906 (ipv6a[0x0e] != 0x0) )
22907 exit(1); /* fail */
22909 memset(ipv6a, 1, sizeof(ipv6a));
22910 if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
22911 exit(1); /* fail */
22912 if( (ipv6a[0x00] != 0x7f) ||
22913 (ipv6a[0x01] != 0x20) ||
22914 (ipv6a[0x03] != 0x01) ||
22915 (ipv6a[0x08] != 0x01) ||
22916 (ipv6a[0x09] != 0x01) ||
22917 (ipv6a[0x0a] != 0x01) ||
22918 (ipv6a[0x0b] != 0x01) ||
22919 (ipv6a[0x0c] != 0x01) ||
22920 (ipv6a[0x0d] != 0x01) ||
22921 (ipv6a[0x0e] != 0x01) ||
22922 (ipv6a[0x0f] != 0x01) ||
22923 (ipv6a[0x10] != 0x01) )
22924 exit(1); /* fail */
22925 if( (ipv6a[0x02] != 0x0) ||
22926 (ipv6a[0x04] != 0x0) ||
22927 (ipv6a[0x05] != 0x0) ||
22928 (ipv6a[0x06] != 0x0) ||
22929 (ipv6a[0x07] != 0x0) ||
22930 (ipv6a[0x07] != 0x0) )
22931 exit(1); /* fail */
22933 memset(ipv6a, 1, sizeof(ipv6a));
22934 if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
22935 exit(1); /* fail */
22944 if ac_fn_c_try_run "$LINENO"; then :
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22947 $as_echo "yes" >&6; }
22948 tst_works_inet_net_pton="yes"
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953 $as_echo "no" >&6; }
22954 tst_works_inet_net_pton="no"
22957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22958 conftest.$ac_objext conftest.beam conftest.$ac_ext
22963 if test "$tst_compi_inet_net_pton" = "yes" &&
22964 test "$tst_works_inet_net_pton" != "no"; then
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
22966 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
22967 if test "x$cares_disallow_inet_net_pton" != "xyes"; then
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22969 $as_echo "yes" >&6; }
22970 tst_allow_inet_net_pton="yes"
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22973 $as_echo "no" >&6; }
22974 tst_allow_inet_net_pton="no"
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
22979 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
22980 if test "$tst_links_inet_net_pton" = "yes" &&
22981 test "$tst_proto_inet_net_pton" = "yes" &&
22982 test "$tst_compi_inet_net_pton" = "yes" &&
22983 test "$tst_allow_inet_net_pton" = "yes" &&
22984 test "$tst_works_inet_net_pton" != "no"; then
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22986 $as_echo "yes" >&6; }
22988 cat >>confdefs.h <<_ACEOF
22989 #define HAVE_INET_NET_PTON 1
22992 ac_cv_func_inet_net_pton="yes"
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22995 $as_echo "no" >&6; }
22996 ac_cv_func_inet_net_pton="no"
23001 tst_links_inet_ntop="unknown"
23002 tst_proto_inet_ntop="unknown"
23003 tst_compi_inet_ntop="unknown"
23004 tst_works_inet_ntop="unknown"
23005 tst_allow_inet_ntop="unknown"
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
23008 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
23009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23010 /* end confdefs.h. */
23013 #define inet_ntop innocuous_inet_ntop
23015 # include <limits.h>
23017 # include <assert.h>
23024 #if defined __stub_inet_ntop || defined __stub___inet_ntop
23030 return inet_ntop ();
23036 if ac_fn_c_try_link "$LINENO"; then :
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23039 $as_echo "yes" >&6; }
23040 tst_links_inet_ntop="yes"
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23045 $as_echo "no" >&6; }
23046 tst_links_inet_ntop="no"
23049 rm -f core conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
23052 if test "$tst_links_inet_ntop" = "yes"; then
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
23054 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23058 $cares_includes_arpa_inet
23061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23062 $EGREP "inet_ntop" >/dev/null 2>&1; then :
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23065 $as_echo "yes" >&6; }
23066 tst_proto_inet_ntop="yes"
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23071 $as_echo "no" >&6; }
23072 tst_proto_inet_ntop="no"
23079 if test "$tst_proto_inet_ntop" = "yes"; then
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
23081 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23086 $cares_includes_arpa_inet
23091 if(0 != inet_ntop(0, 0, 0, 0))
23099 if ac_fn_c_try_compile "$LINENO"; then :
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23102 $as_echo "yes" >&6; }
23103 tst_compi_inet_ntop="yes"
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23108 $as_echo "no" >&6; }
23109 tst_compi_inet_ntop="no"
23112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 if test "x$cross_compiling" != "xyes" &&
23116 test "$tst_compi_inet_ntop" = "yes"; then
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
23118 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
23119 if test "$cross_compiling" = yes; then :
23120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23122 as_fn_error $? "cannot run test program while cross compiling
23123 See \`config.log' for more details" "$LINENO" 5; }
23125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23126 /* end confdefs.h. */
23129 $cares_includes_stdlib
23130 $cares_includes_arpa_inet
23131 $cares_includes_string
23136 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
23137 char ipv4res[sizeof "255.255.255.255"];
23138 unsigned char ipv6a[26];
23139 unsigned char ipv4a[5];
23150 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
23152 exit(1); /* fail */
23153 if(ipv4ptr != ipv4res)
23154 exit(1); /* fail */
23156 exit(1); /* fail */
23157 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
23158 exit(1); /* fail */
23161 memset(ipv6a, 0, sizeof(ipv6a));
23174 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
23176 exit(1); /* fail */
23177 if(ipv6ptr != ipv6res)
23178 exit(1); /* fail */
23180 exit(1); /* fail */
23181 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
23182 exit(1); /* fail */
23191 if ac_fn_c_try_run "$LINENO"; then :
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23194 $as_echo "yes" >&6; }
23195 tst_works_inet_ntop="yes"
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23200 $as_echo "no" >&6; }
23201 tst_works_inet_ntop="no"
23204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23205 conftest.$ac_objext conftest.beam conftest.$ac_ext
23210 if test "$tst_compi_inet_ntop" = "yes" &&
23211 test "$tst_works_inet_ntop" != "no"; then
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
23213 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
23214 if test "x$cares_disallow_inet_ntop" != "xyes"; then
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23216 $as_echo "yes" >&6; }
23217 tst_allow_inet_ntop="yes"
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23220 $as_echo "no" >&6; }
23221 tst_allow_inet_ntop="no"
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
23226 $as_echo_n "checking if inet_ntop might be used... " >&6; }
23227 if test "$tst_links_inet_ntop" = "yes" &&
23228 test "$tst_proto_inet_ntop" = "yes" &&
23229 test "$tst_compi_inet_ntop" = "yes" &&
23230 test "$tst_allow_inet_ntop" = "yes" &&
23231 test "$tst_works_inet_ntop" != "no"; then
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23233 $as_echo "yes" >&6; }
23235 cat >>confdefs.h <<_ACEOF
23236 #define HAVE_INET_NTOP 1
23239 ac_cv_func_inet_ntop="yes"
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23242 $as_echo "no" >&6; }
23243 ac_cv_func_inet_ntop="no"
23248 tst_links_inet_pton="unknown"
23249 tst_proto_inet_pton="unknown"
23250 tst_compi_inet_pton="unknown"
23251 tst_works_inet_pton="unknown"
23252 tst_allow_inet_pton="unknown"
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
23255 $as_echo_n "checking if inet_pton can be linked... " >&6; }
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h. */
23260 #define inet_pton innocuous_inet_pton
23262 # include <limits.h>
23264 # include <assert.h>
23271 #if defined __stub_inet_pton || defined __stub___inet_pton
23277 return inet_pton ();
23283 if ac_fn_c_try_link "$LINENO"; then :
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23286 $as_echo "yes" >&6; }
23287 tst_links_inet_pton="yes"
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23292 $as_echo "no" >&6; }
23293 tst_links_inet_pton="no"
23296 rm -f core conftest.err conftest.$ac_objext \
23297 conftest$ac_exeext conftest.$ac_ext
23299 if test "$tst_links_inet_pton" = "yes"; then
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
23301 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
23302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23303 /* end confdefs.h. */
23305 $cares_includes_arpa_inet
23308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23309 $EGREP "inet_pton" >/dev/null 2>&1; then :
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23312 $as_echo "yes" >&6; }
23313 tst_proto_inet_pton="yes"
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23318 $as_echo "no" >&6; }
23319 tst_proto_inet_pton="no"
23326 if test "$tst_proto_inet_pton" = "yes"; then
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
23328 $as_echo_n "checking if inet_pton is compilable... " >&6; }
23329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330 /* end confdefs.h. */
23333 $cares_includes_arpa_inet
23338 if(0 != inet_pton(0, 0, 0))
23346 if ac_fn_c_try_compile "$LINENO"; then :
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23349 $as_echo "yes" >&6; }
23350 tst_compi_inet_pton="yes"
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23355 $as_echo "no" >&6; }
23356 tst_compi_inet_pton="no"
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 if test "x$cross_compiling" != "xyes" &&
23363 test "$tst_compi_inet_pton" = "yes"; then
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
23365 $as_echo_n "checking if inet_pton seems to work... " >&6; }
23366 if test "$cross_compiling" = yes; then :
23367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23369 as_fn_error $? "cannot run test program while cross compiling
23370 See \`config.log' for more details" "$LINENO" 5; }
23372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23373 /* end confdefs.h. */
23376 $cares_includes_stdlib
23377 $cares_includes_arpa_inet
23378 $cares_includes_string
23383 unsigned char ipv6a[16+1];
23384 unsigned char ipv4a[4+1];
23385 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
23386 const char *ipv4src = "192.168.100.1";
23388 memset(ipv4a, 1, sizeof(ipv4a));
23389 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
23390 exit(1); /* fail */
23392 if( (ipv4a[0] != 0xc0) ||
23393 (ipv4a[1] != 0xa8) ||
23394 (ipv4a[2] != 0x64) ||
23395 (ipv4a[3] != 0x01) ||
23396 (ipv4a[4] != 0x01) )
23397 exit(1); /* fail */
23399 memset(ipv6a, 1, sizeof(ipv6a));
23400 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
23401 exit(1); /* fail */
23403 if( (ipv6a[0] != 0xfe) ||
23404 (ipv6a[1] != 0x80) ||
23405 (ipv6a[8] != 0x02) ||
23406 (ipv6a[9] != 0x14) ||
23407 (ipv6a[10] != 0x4f) ||
23408 (ipv6a[11] != 0xff) ||
23409 (ipv6a[12] != 0xfe) ||
23410 (ipv6a[13] != 0x0b) ||
23411 (ipv6a[14] != 0x76) ||
23412 (ipv6a[15] != 0xc8) ||
23413 (ipv6a[16] != 0x01) )
23414 exit(1); /* fail */
23416 if( (ipv6a[2] != 0x0) ||
23417 (ipv6a[3] != 0x0) ||
23418 (ipv6a[4] != 0x0) ||
23419 (ipv6a[5] != 0x0) ||
23420 (ipv6a[6] != 0x0) ||
23421 (ipv6a[7] != 0x0) )
23422 exit(1); /* fail */
23431 if ac_fn_c_try_run "$LINENO"; then :
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23434 $as_echo "yes" >&6; }
23435 tst_works_inet_pton="yes"
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23440 $as_echo "no" >&6; }
23441 tst_works_inet_pton="no"
23444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23445 conftest.$ac_objext conftest.beam conftest.$ac_ext
23450 if test "$tst_compi_inet_pton" = "yes" &&
23451 test "$tst_works_inet_pton" != "no"; then
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
23453 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
23454 if test "x$cares_disallow_inet_pton" != "xyes"; then
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23456 $as_echo "yes" >&6; }
23457 tst_allow_inet_pton="yes"
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23460 $as_echo "no" >&6; }
23461 tst_allow_inet_pton="no"
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
23466 $as_echo_n "checking if inet_pton might be used... " >&6; }
23467 if test "$tst_links_inet_pton" = "yes" &&
23468 test "$tst_proto_inet_pton" = "yes" &&
23469 test "$tst_compi_inet_pton" = "yes" &&
23470 test "$tst_allow_inet_pton" = "yes" &&
23471 test "$tst_works_inet_pton" != "no"; then
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23473 $as_echo "yes" >&6; }
23475 cat >>confdefs.h <<_ACEOF
23476 #define HAVE_INET_PTON 1
23479 ac_cv_func_inet_pton="yes"
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23482 $as_echo "no" >&6; }
23483 ac_cv_func_inet_pton="no"
23487 cares_includes_stropts="\
23488 /* includes start */
23489 #ifdef HAVE_SYS_TYPES_H
23490 # include <sys/types.h>
23492 #ifdef HAVE_UNISTD_H
23493 # include <unistd.h>
23495 #ifdef HAVE_SYS_SOCKET_H
23496 # include <sys/socket.h>
23498 #ifdef HAVE_SYS_IOCTL_H
23499 # include <sys/ioctl.h>
23501 #ifdef HAVE_STROPTS_H
23502 # include <stropts.h>
23504 /* includes end */"
23505 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
23507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23508 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
23510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23511 cat >>confdefs.h <<_ACEOF
23512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23522 tst_links_ioctl="unknown"
23523 tst_proto_ioctl="unknown"
23524 tst_compi_ioctl="unknown"
23525 tst_allow_ioctl="unknown"
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
23528 $as_echo_n "checking if ioctl can be linked... " >&6; }
23529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23530 /* end confdefs.h. */
23533 #define ioctl innocuous_ioctl
23535 # include <limits.h>
23537 # include <assert.h>
23544 #if defined __stub_ioctl || defined __stub___ioctl
23556 if ac_fn_c_try_link "$LINENO"; then :
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23559 $as_echo "yes" >&6; }
23560 tst_links_ioctl="yes"
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23565 $as_echo "no" >&6; }
23566 tst_links_ioctl="no"
23569 rm -f core conftest.err conftest.$ac_objext \
23570 conftest$ac_exeext conftest.$ac_ext
23572 if test "$tst_links_ioctl" = "yes"; then
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
23574 $as_echo_n "checking if ioctl is prototyped... " >&6; }
23575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h. */
23578 $cares_includes_stropts
23581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23582 $EGREP "ioctl" >/dev/null 2>&1; then :
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23585 $as_echo "yes" >&6; }
23586 tst_proto_ioctl="yes"
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23591 $as_echo "no" >&6; }
23592 tst_proto_ioctl="no"
23599 if test "$tst_proto_ioctl" = "yes"; then
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
23601 $as_echo_n "checking if ioctl is compilable... " >&6; }
23602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23603 /* end confdefs.h. */
23606 $cares_includes_stropts
23611 if(0 != ioctl(0, 0, 0))
23619 if ac_fn_c_try_compile "$LINENO"; then :
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23622 $as_echo "yes" >&6; }
23623 tst_compi_ioctl="yes"
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23628 $as_echo "no" >&6; }
23629 tst_compi_ioctl="no"
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23635 if test "$tst_compi_ioctl" = "yes"; then
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
23637 $as_echo_n "checking if ioctl usage allowed... " >&6; }
23638 if test "x$cares_disallow_ioctl" != "xyes"; then
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23640 $as_echo "yes" >&6; }
23641 tst_allow_ioctl="yes"
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23644 $as_echo "no" >&6; }
23645 tst_allow_ioctl="no"
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
23650 $as_echo_n "checking if ioctl might be used... " >&6; }
23651 if test "$tst_links_ioctl" = "yes" &&
23652 test "$tst_proto_ioctl" = "yes" &&
23653 test "$tst_compi_ioctl" = "yes" &&
23654 test "$tst_allow_ioctl" = "yes"; then
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23656 $as_echo "yes" >&6; }
23658 cat >>confdefs.h <<_ACEOF
23659 #define HAVE_IOCTL 1
23662 ac_cv_func_ioctl="yes"
23665 tst_compi_ioctl_fionbio="unknown"
23666 tst_allow_ioctl_fionbio="unknown"
23668 if test "$ac_cv_func_ioctl" = "yes"; then
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
23670 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
23671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23672 /* end confdefs.h. */
23675 $cares_includes_stropts
23681 if(0 != ioctl(0, FIONBIO, &flags))
23689 if ac_fn_c_try_compile "$LINENO"; then :
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23692 $as_echo "yes" >&6; }
23693 tst_compi_ioctl_fionbio="yes"
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23698 $as_echo "no" >&6; }
23699 tst_compi_ioctl_fionbio="no"
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23705 if test "$tst_compi_ioctl_fionbio" = "yes"; then
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
23707 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
23708 if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23710 $as_echo "yes" >&6; }
23711 tst_allow_ioctl_fionbio="yes"
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23715 tst_allow_ioctl_fionbio="no"
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
23720 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
23721 if test "$tst_compi_ioctl_fionbio" = "yes" &&
23722 test "$tst_allow_ioctl_fionbio" = "yes"; then
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23726 cat >>confdefs.h <<_ACEOF
23727 #define HAVE_IOCTL_FIONBIO 1
23730 ac_cv_func_ioctl_fionbio="yes"
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23733 $as_echo "no" >&6; }
23734 ac_cv_func_ioctl_fionbio="no"
23739 tst_compi_ioctl_siocgifaddr="unknown"
23740 tst_allow_ioctl_siocgifaddr="unknown"
23742 if test "$ac_cv_func_ioctl" = "yes"; then
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
23744 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
23745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h. */
23749 $cares_includes_stropts
23750 #include <net/if.h>
23756 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
23764 if ac_fn_c_try_compile "$LINENO"; then :
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23767 $as_echo "yes" >&6; }
23768 tst_compi_ioctl_siocgifaddr="yes"
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773 $as_echo "no" >&6; }
23774 tst_compi_ioctl_siocgifaddr="no"
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23780 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
23782 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
23783 if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23785 $as_echo "yes" >&6; }
23786 tst_allow_ioctl_siocgifaddr="yes"
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23789 $as_echo "no" >&6; }
23790 tst_allow_ioctl_siocgifaddr="no"
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
23795 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
23796 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
23797 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23799 $as_echo "yes" >&6; }
23801 cat >>confdefs.h <<_ACEOF
23802 #define HAVE_IOCTL_SIOCGIFADDR 1
23805 ac_cv_func_ioctl_siocgifaddr="yes"
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23808 $as_echo "no" >&6; }
23809 ac_cv_func_ioctl_siocgifaddr="no"
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23814 $as_echo "no" >&6; }
23815 ac_cv_func_ioctl="no"
23820 tst_links_ioctlsocket="unknown"
23821 tst_proto_ioctlsocket="unknown"
23822 tst_compi_ioctlsocket="unknown"
23823 tst_allow_ioctlsocket="unknown"
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
23826 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
23827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h. */
23831 $cares_includes_winsock2
23836 if(0 != ioctlsocket(0, 0, 0))
23844 if ac_fn_c_try_link "$LINENO"; then :
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23847 $as_echo "yes" >&6; }
23848 tst_links_ioctlsocket="yes"
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23853 $as_echo "no" >&6; }
23854 tst_links_ioctlsocket="no"
23857 rm -f core conftest.err conftest.$ac_objext \
23858 conftest$ac_exeext conftest.$ac_ext
23860 if test "$tst_links_ioctlsocket" = "yes"; then
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
23862 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h. */
23866 $cares_includes_winsock2
23869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23870 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23873 $as_echo "yes" >&6; }
23874 tst_proto_ioctlsocket="yes"
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23879 $as_echo "no" >&6; }
23880 tst_proto_ioctlsocket="no"
23887 if test "$tst_proto_ioctlsocket" = "yes"; then
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
23889 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h. */
23894 $cares_includes_winsock2
23899 if(0 != ioctlsocket(0, 0, 0))
23907 if ac_fn_c_try_compile "$LINENO"; then :
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23910 $as_echo "yes" >&6; }
23911 tst_compi_ioctlsocket="yes"
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23916 $as_echo "no" >&6; }
23917 tst_compi_ioctlsocket="no"
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 if test "$tst_compi_ioctlsocket" = "yes"; then
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
23925 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
23926 if test "x$cares_disallow_ioctlsocket" != "xyes"; then
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23928 $as_echo "yes" >&6; }
23929 tst_allow_ioctlsocket="yes"
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23932 $as_echo "no" >&6; }
23933 tst_allow_ioctlsocket="no"
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
23938 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
23939 if test "$tst_links_ioctlsocket" = "yes" &&
23940 test "$tst_proto_ioctlsocket" = "yes" &&
23941 test "$tst_compi_ioctlsocket" = "yes" &&
23942 test "$tst_allow_ioctlsocket" = "yes"; then
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23944 $as_echo "yes" >&6; }
23946 cat >>confdefs.h <<_ACEOF
23947 #define HAVE_IOCTLSOCKET 1
23950 ac_cv_func_ioctlsocket="yes"
23953 tst_compi_ioctlsocket_fionbio="unknown"
23954 tst_allow_ioctlsocket_fionbio="unknown"
23956 if test "$ac_cv_func_ioctlsocket" = "yes"; then
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
23958 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23963 $cares_includes_winsock2
23969 if(0 != ioctlsocket(0, FIONBIO, &flags))
23977 if ac_fn_c_try_compile "$LINENO"; then :
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23980 $as_echo "yes" >&6; }
23981 tst_compi_ioctlsocket_fionbio="yes"
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23986 $as_echo "no" >&6; }
23987 tst_compi_ioctlsocket_fionbio="no"
23990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
23995 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
23996 if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23998 $as_echo "yes" >&6; }
23999 tst_allow_ioctlsocket_fionbio="yes"
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24002 $as_echo "no" >&6; }
24003 tst_allow_ioctlsocket_fionbio="no"
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
24008 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
24009 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
24010 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24012 $as_echo "yes" >&6; }
24014 cat >>confdefs.h <<_ACEOF
24015 #define HAVE_IOCTLSOCKET_FIONBIO 1
24018 ac_cv_func_ioctlsocket_fionbio="yes"
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24021 $as_echo "no" >&6; }
24022 ac_cv_func_ioctlsocket_fionbio="no"
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24027 $as_echo "no" >&6; }
24028 ac_cv_func_ioctlsocket="no"
24033 tst_links_ioctlsocket_camel="unknown"
24034 tst_proto_ioctlsocket_camel="unknown"
24035 tst_compi_ioctlsocket_camel="unknown"
24036 tst_allow_ioctlsocket_camel="unknown"
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
24039 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h. */
24044 #define IoctlSocket innocuous_IoctlSocket
24046 # include <limits.h>
24048 # include <assert.h>
24054 char IoctlSocket ();
24055 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
24061 return IoctlSocket ();
24067 if ac_fn_c_try_link "$LINENO"; then :
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24070 $as_echo "yes" >&6; }
24071 tst_links_ioctlsocket_camel="yes"
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24076 $as_echo "no" >&6; }
24077 tst_links_ioctlsocket_camel="no"
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24083 if test "$tst_links_ioctlsocket_camel" = "yes"; then
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
24085 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h. */
24089 $cares_includes_stropts
24092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24093 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24096 $as_echo "yes" >&6; }
24097 tst_proto_ioctlsocket_camel="yes"
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24102 $as_echo "no" >&6; }
24103 tst_proto_ioctlsocket_camel="no"
24110 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
24112 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
24113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24114 /* end confdefs.h. */
24117 $cares_includes_stropts
24122 if(0 != IoctlSocket(0, 0, 0))
24130 if ac_fn_c_try_compile "$LINENO"; then :
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24133 $as_echo "yes" >&6; }
24134 tst_compi_ioctlsocket_camel="yes"
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24139 $as_echo "no" >&6; }
24140 tst_compi_ioctlsocket_camel="no"
24143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24146 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
24148 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
24149 if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24151 $as_echo "yes" >&6; }
24152 tst_allow_ioctlsocket_camel="yes"
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24155 $as_echo "no" >&6; }
24156 tst_allow_ioctlsocket_camel="no"
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
24161 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
24162 if test "$tst_links_ioctlsocket_camel" = "yes" &&
24163 test "$tst_proto_ioctlsocket_camel" = "yes" &&
24164 test "$tst_compi_ioctlsocket_camel" = "yes" &&
24165 test "$tst_allow_ioctlsocket_camel" = "yes"; then
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24167 $as_echo "yes" >&6; }
24169 cat >>confdefs.h <<_ACEOF
24170 #define HAVE_IOCTLSOCKET_CAMEL 1
24173 ac_cv_func_ioctlsocket_camel="yes"
24176 tst_compi_ioctlsocket_camel_fionbio="unknown"
24177 tst_allow_ioctlsocket_camel_fionbio="unknown"
24179 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
24181 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
24182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24183 /* end confdefs.h. */
24186 $cares_includes_stropts
24192 if(0 != ioctlsocket(0, FIONBIO, &flags))
24200 if ac_fn_c_try_compile "$LINENO"; then :
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24203 $as_echo "yes" >&6; }
24204 tst_compi_ioctlsocket_camel_fionbio="yes"
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209 $as_echo "no" >&6; }
24210 tst_compi_ioctlsocket_camel_fionbio="no"
24213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24216 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
24218 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
24219 if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24221 $as_echo "yes" >&6; }
24222 tst_allow_ioctlsocket_camel_fionbio="yes"
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24225 $as_echo "no" >&6; }
24226 tst_allow_ioctlsocket_camel_fionbio="no"
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
24231 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
24232 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
24233 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24235 $as_echo "yes" >&6; }
24237 cat >>confdefs.h <<_ACEOF
24238 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
24241 ac_cv_func_ioctlsocket_camel_fionbio="yes"
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24244 $as_echo "no" >&6; }
24245 ac_cv_func_ioctlsocket_camel_fionbio="no"
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24250 $as_echo "no" >&6; }
24251 ac_cv_func_ioctlsocket_camel="no"
24256 tst_links_setsockopt="unknown"
24257 tst_proto_setsockopt="unknown"
24258 tst_compi_setsockopt="unknown"
24259 tst_allow_setsockopt="unknown"
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
24262 $as_echo_n "checking if setsockopt can be linked... " >&6; }
24263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24264 /* end confdefs.h. */
24267 $cares_includes_winsock2
24268 $cares_includes_sys_socket
24273 if(0 != setsockopt(0, 0, 0, 0, 0))
24281 if ac_fn_c_try_link "$LINENO"; then :
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24284 $as_echo "yes" >&6; }
24285 tst_links_setsockopt="yes"
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24290 $as_echo "no" >&6; }
24291 tst_links_setsockopt="no"
24294 rm -f core conftest.err conftest.$ac_objext \
24295 conftest$ac_exeext conftest.$ac_ext
24297 if test "$tst_links_setsockopt" = "yes"; then
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
24299 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
24300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24301 /* end confdefs.h. */
24303 $cares_includes_winsock2
24304 $cares_includes_sys_socket
24307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24308 $EGREP "setsockopt" >/dev/null 2>&1; then :
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24311 $as_echo "yes" >&6; }
24312 tst_proto_setsockopt="yes"
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24317 $as_echo "no" >&6; }
24318 tst_proto_setsockopt="no"
24325 if test "$tst_proto_setsockopt" = "yes"; then
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
24327 $as_echo_n "checking if setsockopt is compilable... " >&6; }
24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h. */
24332 $cares_includes_winsock2
24333 $cares_includes_sys_socket
24338 if(0 != setsockopt(0, 0, 0, 0, 0))
24346 if ac_fn_c_try_compile "$LINENO"; then :
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24349 $as_echo "yes" >&6; }
24350 tst_compi_setsockopt="yes"
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24355 $as_echo "no" >&6; }
24356 tst_compi_setsockopt="no"
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24362 if test "$tst_compi_setsockopt" = "yes"; then
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
24364 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
24365 if test "x$cares_disallow_setsockopt" != "xyes"; then
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24367 $as_echo "yes" >&6; }
24368 tst_allow_setsockopt="yes"
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24371 $as_echo "no" >&6; }
24372 tst_allow_setsockopt="no"
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
24377 $as_echo_n "checking if setsockopt might be used... " >&6; }
24378 if test "$tst_links_setsockopt" = "yes" &&
24379 test "$tst_proto_setsockopt" = "yes" &&
24380 test "$tst_compi_setsockopt" = "yes" &&
24381 test "$tst_allow_setsockopt" = "yes"; then
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24383 $as_echo "yes" >&6; }
24385 cat >>confdefs.h <<_ACEOF
24386 #define HAVE_SETSOCKOPT 1
24389 ac_cv_func_setsockopt="yes"
24392 tst_compi_setsockopt_so_nonblock="unknown"
24393 tst_allow_setsockopt_so_nonblock="unknown"
24395 if test "$ac_cv_func_setsockopt" = "yes"; then
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
24397 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
24398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399 /* end confdefs.h. */
24402 $cares_includes_winsock2
24403 $cares_includes_sys_socket
24408 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
24416 if ac_fn_c_try_compile "$LINENO"; then :
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24419 $as_echo "yes" >&6; }
24420 tst_compi_setsockopt_so_nonblock="yes"
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24425 $as_echo "no" >&6; }
24426 tst_compi_setsockopt_so_nonblock="no"
24429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
24434 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
24435 if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24437 $as_echo "yes" >&6; }
24438 tst_allow_setsockopt_so_nonblock="yes"
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441 $as_echo "no" >&6; }
24442 tst_allow_setsockopt_so_nonblock="no"
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
24447 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
24448 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
24449 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24451 $as_echo "yes" >&6; }
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
24457 ac_cv_func_setsockopt_so_nonblock="yes"
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24460 $as_echo "no" >&6; }
24461 ac_cv_func_setsockopt_so_nonblock="no"
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24466 $as_echo "no" >&6; }
24467 ac_cv_func_setsockopt="no"
24472 tst_links_socket="unknown"
24473 tst_proto_socket="unknown"
24474 tst_compi_socket="unknown"
24475 tst_allow_socket="unknown"
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
24478 $as_echo_n "checking if socket can be linked... " >&6; }
24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480 /* end confdefs.h. */
24483 $cares_includes_winsock2
24484 $cares_includes_sys_socket
24485 $cares_includes_socket
24490 if(0 != socket(0, 0, 0))
24498 if ac_fn_c_try_link "$LINENO"; then :
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24501 $as_echo "yes" >&6; }
24502 tst_links_socket="yes"
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24507 $as_echo "no" >&6; }
24508 tst_links_socket="no"
24511 rm -f core conftest.err conftest.$ac_objext \
24512 conftest$ac_exeext conftest.$ac_ext
24514 if test "$tst_links_socket" = "yes"; then
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
24516 $as_echo_n "checking if socket is prototyped... " >&6; }
24517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h. */
24520 $cares_includes_winsock2
24521 $cares_includes_sys_socket
24522 $cares_includes_socket
24525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24526 $EGREP "socket" >/dev/null 2>&1; then :
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24529 $as_echo "yes" >&6; }
24530 tst_proto_socket="yes"
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24535 $as_echo "no" >&6; }
24536 tst_proto_socket="no"
24543 if test "$tst_proto_socket" = "yes"; then
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
24545 $as_echo_n "checking if socket is compilable... " >&6; }
24546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24547 /* end confdefs.h. */
24550 $cares_includes_winsock2
24551 $cares_includes_sys_socket
24552 $cares_includes_socket
24557 if(0 != socket(0, 0, 0))
24565 if ac_fn_c_try_compile "$LINENO"; then :
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24568 $as_echo "yes" >&6; }
24569 tst_compi_socket="yes"
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24574 $as_echo "no" >&6; }
24575 tst_compi_socket="no"
24578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581 if test "$tst_compi_socket" = "yes"; then
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
24583 $as_echo_n "checking if socket usage allowed... " >&6; }
24584 if test "x$cares_disallow_socket" != "xyes"; then
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24586 $as_echo "yes" >&6; }
24587 tst_allow_socket="yes"
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24590 $as_echo "no" >&6; }
24591 tst_allow_socket="no"
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
24596 $as_echo_n "checking if socket might be used... " >&6; }
24597 if test "$tst_links_socket" = "yes" &&
24598 test "$tst_proto_socket" = "yes" &&
24599 test "$tst_compi_socket" = "yes" &&
24600 test "$tst_allow_socket" = "yes"; then
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24602 $as_echo "yes" >&6; }
24604 cat >>confdefs.h <<_ACEOF
24605 #define HAVE_SOCKET 1
24608 ac_cv_func_socket="yes"
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24611 $as_echo "no" >&6; }
24612 ac_cv_func_socket="no"
24617 tst_links_strcasecmp="unknown"
24618 tst_proto_strcasecmp="unknown"
24619 tst_compi_strcasecmp="unknown"
24620 tst_allow_strcasecmp="unknown"
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
24623 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
24624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625 /* end confdefs.h. */
24628 #define strcasecmp innocuous_strcasecmp
24630 # include <limits.h>
24632 # include <assert.h>
24638 char strcasecmp ();
24639 #if defined __stub_strcasecmp || defined __stub___strcasecmp
24645 return strcasecmp ();
24651 if ac_fn_c_try_link "$LINENO"; then :
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24654 $as_echo "yes" >&6; }
24655 tst_links_strcasecmp="yes"
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24660 $as_echo "no" >&6; }
24661 tst_links_strcasecmp="no"
24664 rm -f core conftest.err conftest.$ac_objext \
24665 conftest$ac_exeext conftest.$ac_ext
24667 if test "$tst_links_strcasecmp" = "yes"; then
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
24669 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h. */
24673 $cares_includes_string
24676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24677 $EGREP "strcasecmp" >/dev/null 2>&1; then :
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24680 $as_echo "yes" >&6; }
24681 tst_proto_strcasecmp="yes"
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24686 $as_echo "no" >&6; }
24687 tst_proto_strcasecmp="no"
24694 if test "$tst_proto_strcasecmp" = "yes"; then
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
24696 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
24697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24701 $cares_includes_string
24706 if(0 != strcasecmp(0, 0))
24714 if ac_fn_c_try_compile "$LINENO"; then :
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24717 $as_echo "yes" >&6; }
24718 tst_compi_strcasecmp="yes"
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24723 $as_echo "no" >&6; }
24724 tst_compi_strcasecmp="no"
24727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24730 if test "$tst_compi_strcasecmp" = "yes"; then
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
24732 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
24733 if test "x$cares_disallow_strcasecmp" != "xyes"; then
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24735 $as_echo "yes" >&6; }
24736 tst_allow_strcasecmp="yes"
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24739 $as_echo "no" >&6; }
24740 tst_allow_strcasecmp="no"
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
24745 $as_echo_n "checking if strcasecmp might be used... " >&6; }
24746 if test "$tst_links_strcasecmp" = "yes" &&
24747 test "$tst_proto_strcasecmp" = "yes" &&
24748 test "$tst_compi_strcasecmp" = "yes" &&
24749 test "$tst_allow_strcasecmp" = "yes"; then
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24751 $as_echo "yes" >&6; }
24753 cat >>confdefs.h <<_ACEOF
24754 #define HAVE_STRCASECMP 1
24757 ac_cv_func_strcasecmp="yes"
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24760 $as_echo "no" >&6; }
24761 ac_cv_func_strcasecmp="no"
24766 tst_links_strcmpi="unknown"
24767 tst_proto_strcmpi="unknown"
24768 tst_compi_strcmpi="unknown"
24769 tst_allow_strcmpi="unknown"
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
24772 $as_echo_n "checking if strcmpi can be linked... " >&6; }
24773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24774 /* end confdefs.h. */
24777 #define strcmpi innocuous_strcmpi
24779 # include <limits.h>
24781 # include <assert.h>
24788 #if defined __stub_strcmpi || defined __stub___strcmpi
24800 if ac_fn_c_try_link "$LINENO"; then :
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24803 $as_echo "yes" >&6; }
24804 tst_links_strcmpi="yes"
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24809 $as_echo "no" >&6; }
24810 tst_links_strcmpi="no"
24813 rm -f core conftest.err conftest.$ac_objext \
24814 conftest$ac_exeext conftest.$ac_ext
24816 if test "$tst_links_strcmpi" = "yes"; then
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
24818 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
24819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24820 /* end confdefs.h. */
24822 $cares_includes_string
24825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24826 $EGREP "strcmpi" >/dev/null 2>&1; then :
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24829 $as_echo "yes" >&6; }
24830 tst_proto_strcmpi="yes"
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24835 $as_echo "no" >&6; }
24836 tst_proto_strcmpi="no"
24843 if test "$tst_proto_strcmpi" = "yes"; then
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
24845 $as_echo_n "checking if strcmpi is compilable... " >&6; }
24846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24847 /* end confdefs.h. */
24850 $cares_includes_string
24855 if(0 != strcmpi(0, 0))
24863 if ac_fn_c_try_compile "$LINENO"; then :
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24866 $as_echo "yes" >&6; }
24867 tst_compi_strcmpi="yes"
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24873 tst_compi_strcmpi="no"
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879 if test "$tst_compi_strcmpi" = "yes"; then
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
24881 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
24882 if test "x$cares_disallow_strcmpi" != "xyes"; then
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24884 $as_echo "yes" >&6; }
24885 tst_allow_strcmpi="yes"
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 $as_echo "no" >&6; }
24889 tst_allow_strcmpi="no"
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
24894 $as_echo_n "checking if strcmpi might be used... " >&6; }
24895 if test "$tst_links_strcmpi" = "yes" &&
24896 test "$tst_proto_strcmpi" = "yes" &&
24897 test "$tst_compi_strcmpi" = "yes" &&
24898 test "$tst_allow_strcmpi" = "yes"; then
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24900 $as_echo "yes" >&6; }
24902 cat >>confdefs.h <<_ACEOF
24903 #define HAVE_STRCMPI 1
24906 ac_cv_func_strcmpi="yes"
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24909 $as_echo "no" >&6; }
24910 ac_cv_func_strcmpi="no"
24915 tst_links_strdup="unknown"
24916 tst_proto_strdup="unknown"
24917 tst_compi_strdup="unknown"
24918 tst_allow_strdup="unknown"
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
24921 $as_echo_n "checking if strdup can be linked... " >&6; }
24922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h. */
24926 #define strdup innocuous_strdup
24928 # include <limits.h>
24930 # include <assert.h>
24937 #if defined __stub_strdup || defined __stub___strdup
24949 if ac_fn_c_try_link "$LINENO"; then :
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24952 $as_echo "yes" >&6; }
24953 tst_links_strdup="yes"
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24958 $as_echo "no" >&6; }
24959 tst_links_strdup="no"
24962 rm -f core conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
24965 if test "$tst_links_strdup" = "yes"; then
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
24967 $as_echo_n "checking if strdup is prototyped... " >&6; }
24968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h. */
24971 $cares_includes_string
24974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24975 $EGREP "strdup" >/dev/null 2>&1; then :
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24978 $as_echo "yes" >&6; }
24979 tst_proto_strdup="yes"
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24984 $as_echo "no" >&6; }
24985 tst_proto_strdup="no"
24992 if test "$tst_proto_strdup" = "yes"; then
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
24994 $as_echo_n "checking if strdup is compilable... " >&6; }
24995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24996 /* end confdefs.h. */
24999 $cares_includes_string
25012 if ac_fn_c_try_compile "$LINENO"; then :
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25015 $as_echo "yes" >&6; }
25016 tst_compi_strdup="yes"
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25021 $as_echo "no" >&6; }
25022 tst_compi_strdup="no"
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25028 if test "$tst_compi_strdup" = "yes"; then
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
25030 $as_echo_n "checking if strdup usage allowed... " >&6; }
25031 if test "x$cares_disallow_strdup" != "xyes"; then
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25033 $as_echo "yes" >&6; }
25034 tst_allow_strdup="yes"
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25037 $as_echo "no" >&6; }
25038 tst_allow_strdup="no"
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
25043 $as_echo_n "checking if strdup might be used... " >&6; }
25044 if test "$tst_links_strdup" = "yes" &&
25045 test "$tst_proto_strdup" = "yes" &&
25046 test "$tst_compi_strdup" = "yes" &&
25047 test "$tst_allow_strdup" = "yes"; then
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25049 $as_echo "yes" >&6; }
25051 cat >>confdefs.h <<_ACEOF
25052 #define HAVE_STRDUP 1
25055 ac_cv_func_strdup="yes"
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25058 $as_echo "no" >&6; }
25059 ac_cv_func_strdup="no"
25064 tst_links_stricmp="unknown"
25065 tst_proto_stricmp="unknown"
25066 tst_compi_stricmp="unknown"
25067 tst_allow_stricmp="unknown"
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
25070 $as_echo_n "checking if stricmp can be linked... " >&6; }
25071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25072 /* end confdefs.h. */
25075 #define stricmp innocuous_stricmp
25077 # include <limits.h>
25079 # include <assert.h>
25086 #if defined __stub_stricmp || defined __stub___stricmp
25098 if ac_fn_c_try_link "$LINENO"; then :
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25101 $as_echo "yes" >&6; }
25102 tst_links_stricmp="yes"
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25107 $as_echo "no" >&6; }
25108 tst_links_stricmp="no"
25111 rm -f core conftest.err conftest.$ac_objext \
25112 conftest$ac_exeext conftest.$ac_ext
25114 if test "$tst_links_stricmp" = "yes"; then
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
25116 $as_echo_n "checking if stricmp is prototyped... " >&6; }
25117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25118 /* end confdefs.h. */
25120 $cares_includes_string
25123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25124 $EGREP "stricmp" >/dev/null 2>&1; then :
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25127 $as_echo "yes" >&6; }
25128 tst_proto_stricmp="yes"
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25133 $as_echo "no" >&6; }
25134 tst_proto_stricmp="no"
25141 if test "$tst_proto_stricmp" = "yes"; then
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
25143 $as_echo_n "checking if stricmp is compilable... " >&6; }
25144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h. */
25148 $cares_includes_string
25153 if(0 != stricmp(0, 0))
25161 if ac_fn_c_try_compile "$LINENO"; then :
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25164 $as_echo "yes" >&6; }
25165 tst_compi_stricmp="yes"
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25170 $as_echo "no" >&6; }
25171 tst_compi_stricmp="no"
25174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 if test "$tst_compi_stricmp" = "yes"; then
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
25179 $as_echo_n "checking if stricmp usage allowed... " >&6; }
25180 if test "x$cares_disallow_stricmp" != "xyes"; then
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25182 $as_echo "yes" >&6; }
25183 tst_allow_stricmp="yes"
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25186 $as_echo "no" >&6; }
25187 tst_allow_stricmp="no"
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
25192 $as_echo_n "checking if stricmp might be used... " >&6; }
25193 if test "$tst_links_stricmp" = "yes" &&
25194 test "$tst_proto_stricmp" = "yes" &&
25195 test "$tst_compi_stricmp" = "yes" &&
25196 test "$tst_allow_stricmp" = "yes"; then
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25198 $as_echo "yes" >&6; }
25200 cat >>confdefs.h <<_ACEOF
25201 #define HAVE_STRICMP 1
25204 ac_cv_func_stricmp="yes"
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25207 $as_echo "no" >&6; }
25208 ac_cv_func_stricmp="no"
25213 tst_links_strncasecmp="unknown"
25214 tst_proto_strncasecmp="unknown"
25215 tst_compi_strncasecmp="unknown"
25216 tst_allow_strncasecmp="unknown"
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
25219 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
25220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h. */
25224 #define strncasecmp innocuous_strncasecmp
25226 # include <limits.h>
25228 # include <assert.h>
25234 char strncasecmp ();
25235 #if defined __stub_strncasecmp || defined __stub___strncasecmp
25241 return strncasecmp ();
25247 if ac_fn_c_try_link "$LINENO"; then :
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25250 $as_echo "yes" >&6; }
25251 tst_links_strncasecmp="yes"
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25256 $as_echo "no" >&6; }
25257 tst_links_strncasecmp="no"
25260 rm -f core conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
25263 if test "$tst_links_strncasecmp" = "yes"; then
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
25265 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
25266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25267 /* end confdefs.h. */
25269 $cares_includes_string
25272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25273 $EGREP "strncasecmp" >/dev/null 2>&1; then :
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25276 $as_echo "yes" >&6; }
25277 tst_proto_strncasecmp="yes"
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25283 tst_proto_strncasecmp="no"
25290 if test "$tst_proto_strncasecmp" = "yes"; then
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
25292 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
25293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294 /* end confdefs.h. */
25297 $cares_includes_string
25302 if(0 != strncasecmp(0, 0, 0))
25310 if ac_fn_c_try_compile "$LINENO"; then :
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25313 $as_echo "yes" >&6; }
25314 tst_compi_strncasecmp="yes"
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25319 $as_echo "no" >&6; }
25320 tst_compi_strncasecmp="no"
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 if test "$tst_compi_strncasecmp" = "yes"; then
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
25328 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
25329 if test "x$cares_disallow_strncasecmp" != "xyes"; then
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25331 $as_echo "yes" >&6; }
25332 tst_allow_strncasecmp="yes"
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25335 $as_echo "no" >&6; }
25336 tst_allow_strncasecmp="no"
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
25341 $as_echo_n "checking if strncasecmp might be used... " >&6; }
25342 if test "$tst_links_strncasecmp" = "yes" &&
25343 test "$tst_proto_strncasecmp" = "yes" &&
25344 test "$tst_compi_strncasecmp" = "yes" &&
25345 test "$tst_allow_strncasecmp" = "yes"; then
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25347 $as_echo "yes" >&6; }
25349 cat >>confdefs.h <<_ACEOF
25350 #define HAVE_STRNCASECMP 1
25353 ac_cv_func_strncasecmp="yes"
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25356 $as_echo "no" >&6; }
25357 ac_cv_func_strncasecmp="no"
25362 tst_links_strncmpi="unknown"
25363 tst_proto_strncmpi="unknown"
25364 tst_compi_strncmpi="unknown"
25365 tst_allow_strncmpi="unknown"
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
25368 $as_echo_n "checking if strncmpi can be linked... " >&6; }
25369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25370 /* end confdefs.h. */
25373 #define strncmpi innocuous_strncmpi
25375 # include <limits.h>
25377 # include <assert.h>
25384 #if defined __stub_strncmpi || defined __stub___strncmpi
25390 return strncmpi ();
25396 if ac_fn_c_try_link "$LINENO"; then :
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25399 $as_echo "yes" >&6; }
25400 tst_links_strncmpi="yes"
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25405 $as_echo "no" >&6; }
25406 tst_links_strncmpi="no"
25409 rm -f core conftest.err conftest.$ac_objext \
25410 conftest$ac_exeext conftest.$ac_ext
25412 if test "$tst_links_strncmpi" = "yes"; then
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
25414 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
25415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h. */
25418 $cares_includes_string
25421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25422 $EGREP "strncmpi" >/dev/null 2>&1; then :
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25425 $as_echo "yes" >&6; }
25426 tst_proto_strncmpi="yes"
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25431 $as_echo "no" >&6; }
25432 tst_proto_strncmpi="no"
25439 if test "$tst_proto_strncmpi" = "yes"; then
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
25441 $as_echo_n "checking if strncmpi is compilable... " >&6; }
25442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443 /* end confdefs.h. */
25446 $cares_includes_string
25451 if(0 != strncmpi(0, 0))
25459 if ac_fn_c_try_compile "$LINENO"; then :
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25462 $as_echo "yes" >&6; }
25463 tst_compi_strncmpi="yes"
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25468 $as_echo "no" >&6; }
25469 tst_compi_strncmpi="no"
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 if test "$tst_compi_strncmpi" = "yes"; then
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
25477 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
25478 if test "x$cares_disallow_strncmpi" != "xyes"; then
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25480 $as_echo "yes" >&6; }
25481 tst_allow_strncmpi="yes"
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25484 $as_echo "no" >&6; }
25485 tst_allow_strncmpi="no"
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
25490 $as_echo_n "checking if strncmpi might be used... " >&6; }
25491 if test "$tst_links_strncmpi" = "yes" &&
25492 test "$tst_proto_strncmpi" = "yes" &&
25493 test "$tst_compi_strncmpi" = "yes" &&
25494 test "$tst_allow_strncmpi" = "yes"; then
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25496 $as_echo "yes" >&6; }
25498 cat >>confdefs.h <<_ACEOF
25499 #define HAVE_STRNCMPI 1
25502 ac_cv_func_strncmpi="yes"
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25505 $as_echo "no" >&6; }
25506 ac_cv_func_strncmpi="no"
25511 tst_links_strnicmp="unknown"
25512 tst_proto_strnicmp="unknown"
25513 tst_compi_strnicmp="unknown"
25514 tst_allow_strnicmp="unknown"
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
25517 $as_echo_n "checking if strnicmp can be linked... " >&6; }
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h. */
25522 #define strnicmp innocuous_strnicmp
25524 # include <limits.h>
25526 # include <assert.h>
25533 #if defined __stub_strnicmp || defined __stub___strnicmp
25539 return strnicmp ();
25545 if ac_fn_c_try_link "$LINENO"; then :
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25548 $as_echo "yes" >&6; }
25549 tst_links_strnicmp="yes"
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25554 $as_echo "no" >&6; }
25555 tst_links_strnicmp="no"
25558 rm -f core conftest.err conftest.$ac_objext \
25559 conftest$ac_exeext conftest.$ac_ext
25561 if test "$tst_links_strnicmp" = "yes"; then
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
25563 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565 /* end confdefs.h. */
25567 $cares_includes_string
25570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25571 $EGREP "strnicmp" >/dev/null 2>&1; then :
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25574 $as_echo "yes" >&6; }
25575 tst_proto_strnicmp="yes"
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25580 $as_echo "no" >&6; }
25581 tst_proto_strnicmp="no"
25588 if test "$tst_proto_strnicmp" = "yes"; then
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
25590 $as_echo_n "checking if strnicmp is compilable... " >&6; }
25591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25592 /* end confdefs.h. */
25595 $cares_includes_string
25600 if(0 != strnicmp(0, 0))
25608 if ac_fn_c_try_compile "$LINENO"; then :
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25611 $as_echo "yes" >&6; }
25612 tst_compi_strnicmp="yes"
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25617 $as_echo "no" >&6; }
25618 tst_compi_strnicmp="no"
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624 if test "$tst_compi_strnicmp" = "yes"; then
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
25626 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
25627 if test "x$cares_disallow_strnicmp" != "xyes"; then
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25629 $as_echo "yes" >&6; }
25630 tst_allow_strnicmp="yes"
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25633 $as_echo "no" >&6; }
25634 tst_allow_strnicmp="no"
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
25639 $as_echo_n "checking if strnicmp might be used... " >&6; }
25640 if test "$tst_links_strnicmp" = "yes" &&
25641 test "$tst_proto_strnicmp" = "yes" &&
25642 test "$tst_compi_strnicmp" = "yes" &&
25643 test "$tst_allow_strnicmp" = "yes"; then
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25645 $as_echo "yes" >&6; }
25647 cat >>confdefs.h <<_ACEOF
25648 #define HAVE_STRNICMP 1
25651 ac_cv_func_strnicmp="yes"
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25654 $as_echo "no" >&6; }
25655 ac_cv_func_strnicmp="no"
25659 cares_includes_sys_uio="\
25660 /* includes start */
25661 #ifdef HAVE_SYS_TYPES_H
25662 # include <sys/types.h>
25664 #ifdef HAVE_SYS_UIO_H
25665 # include <sys/uio.h>
25667 /* includes end */"
25668 for ac_header in sys/types.h sys/uio.h
25670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25671 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
25673 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25674 cat >>confdefs.h <<_ACEOF
25675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25685 tst_links_writev="unknown"
25686 tst_proto_writev="unknown"
25687 tst_compi_writev="unknown"
25688 tst_allow_writev="unknown"
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
25691 $as_echo_n "checking if writev can be linked... " >&6; }
25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693 /* end confdefs.h. */
25696 #define writev innocuous_writev
25698 # include <limits.h>
25700 # include <assert.h>
25707 #if defined __stub_writev || defined __stub___writev
25719 if ac_fn_c_try_link "$LINENO"; then :
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25722 $as_echo "yes" >&6; }
25723 tst_links_writev="yes"
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25728 $as_echo "no" >&6; }
25729 tst_links_writev="no"
25732 rm -f core conftest.err conftest.$ac_objext \
25733 conftest$ac_exeext conftest.$ac_ext
25735 if test "$tst_links_writev" = "yes"; then
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
25737 $as_echo_n "checking if writev is prototyped... " >&6; }
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25741 $cares_includes_sys_uio
25744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25745 $EGREP "writev" >/dev/null 2>&1; then :
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25748 $as_echo "yes" >&6; }
25749 tst_proto_writev="yes"
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25754 $as_echo "no" >&6; }
25755 tst_proto_writev="no"
25762 if test "$tst_proto_writev" = "yes"; then
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
25764 $as_echo_n "checking if writev is compilable... " >&6; }
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h. */
25769 $cares_includes_sys_uio
25774 if(0 != writev(0, 0, 0))
25782 if ac_fn_c_try_compile "$LINENO"; then :
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25785 $as_echo "yes" >&6; }
25786 tst_compi_writev="yes"
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791 $as_echo "no" >&6; }
25792 tst_compi_writev="no"
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25798 if test "$tst_compi_writev" = "yes"; then
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
25800 $as_echo_n "checking if writev usage allowed... " >&6; }
25801 if test "x$cares_disallow_writev" != "xyes"; then
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25803 $as_echo "yes" >&6; }
25804 tst_allow_writev="yes"
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25807 $as_echo "no" >&6; }
25808 tst_allow_writev="no"
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
25813 $as_echo_n "checking if writev might be used... " >&6; }
25814 if test "$tst_links_writev" = "yes" &&
25815 test "$tst_proto_writev" = "yes" &&
25816 test "$tst_compi_writev" = "yes" &&
25817 test "$tst_allow_writev" = "yes"; then
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25819 $as_echo "yes" >&6; }
25821 cat >>confdefs.h <<_ACEOF
25822 #define HAVE_WRITEV 1
25825 ac_cv_func_writev="yes"
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25828 $as_echo "no" >&6; }
25829 ac_cv_func_writev="no"
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
25836 $as_echo_n "checking for PF_INET6... " >&6; }
25837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h. */
25842 #ifdef HAVE_WINDOWS_H
25843 #ifndef WIN32_LEAN_AND_MEAN
25844 #define WIN32_LEAN_AND_MEAN
25846 #include <windows.h>
25847 #ifdef HAVE_WINSOCK2_H
25848 #include <winsock2.h>
25851 #ifdef HAVE_SYS_TYPES_H
25852 #include <sys/types.h>
25854 #ifdef HAVE_SYS_SOCKET_H
25855 #include <sys/socket.h>
25867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25868 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
25876 if test "$ac_constant" = "yes" ; then
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25878 $as_echo "yes" >&6; }
25880 cat >>confdefs.h <<_ACEOF
25881 #define HAVE_PF_INET6 1
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25887 $as_echo "no" >&6; }
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
25894 $as_echo_n "checking for AF_INET6... " >&6; }
25895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25896 /* end confdefs.h. */
25900 #ifdef HAVE_WINDOWS_H
25901 #ifndef WIN32_LEAN_AND_MEAN
25902 #define WIN32_LEAN_AND_MEAN
25904 #include <windows.h>
25905 #ifdef HAVE_WINSOCK2_H
25906 #include <winsock2.h>
25909 #ifdef HAVE_SYS_TYPES_H
25910 #include <sys/types.h>
25912 #ifdef HAVE_SYS_SOCKET_H
25913 #include <sys/socket.h>
25925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25926 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
25934 if test "$ac_constant" = "yes" ; then
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25936 $as_echo "yes" >&6; }
25938 cat >>confdefs.h <<_ACEOF
25939 #define HAVE_AF_INET6 1
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25945 $as_echo "no" >&6; }
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
25953 $as_echo_n "checking for struct in6_addr... " >&6; }
25954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955 /* end confdefs.h. */
25958 #ifdef HAVE_WINDOWS_H
25959 #ifndef WIN32_LEAN_AND_MEAN
25960 #define WIN32_LEAN_AND_MEAN
25962 #include <windows.h>
25963 #ifdef HAVE_WINSOCK2_H
25964 #include <winsock2.h>
25965 #ifdef HAVE_WS2TCPIP_H
25966 #include <ws2tcpip.h>
25970 #ifdef HAVE_SYS_TYPES_H
25971 #include <sys/types.h>
25973 #ifdef HAVE_NETINET_IN_H
25974 #include <netinet/in.h>
25981 struct in6_addr struct_instance;
25987 if ac_fn_c_try_compile "$LINENO"; then :
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 if test "$ac_struct" = "yes" ; then
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25995 $as_echo "yes" >&6; }
25997 cat >>confdefs.h <<_ACEOF
25998 #define HAVE_STRUCT_IN6_ADDR 1
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26004 $as_echo "no" >&6; }
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
26011 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
26012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26013 /* end confdefs.h. */
26016 #ifdef HAVE_WINDOWS_H
26017 #ifndef WIN32_LEAN_AND_MEAN
26018 #define WIN32_LEAN_AND_MEAN
26020 #include <windows.h>
26021 #ifdef HAVE_WINSOCK2_H
26022 #include <winsock2.h>
26023 #ifdef HAVE_WS2TCPIP_H
26024 #include <ws2tcpip.h>
26028 #ifdef HAVE_SYS_TYPES_H
26029 #include <sys/types.h>
26031 #ifdef HAVE_NETINET_IN_H
26032 #include <netinet/in.h>
26039 struct sockaddr_in6 struct_instance;
26045 if ac_fn_c_try_compile "$LINENO"; then :
26050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051 if test "$ac_struct" = "yes" ; then
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26053 $as_echo "yes" >&6; }
26055 cat >>confdefs.h <<_ACEOF
26056 #define HAVE_STRUCT_SOCKADDR_IN6 1
26058 ac_have_sockaddr_in6=yes
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26062 $as_echo "no" >&6; }
26067 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
26069 #ifdef HAVE_WINDOWS_H
26070 #ifndef WIN32_LEAN_AND_MEAN
26071 #define WIN32_LEAN_AND_MEAN
26073 #include <windows.h>
26074 #ifdef HAVE_WINSOCK2_H
26075 #include <winsock2.h>
26076 #ifdef HAVE_WS2TCPIP_H
26077 #include <ws2tcpip.h>
26081 #ifdef HAVE_SYS_TYPES_H
26082 #include <sys/types.h>
26084 #ifdef HAVE_NETINET_IN_H
26085 #include <netinet/in.h>
26090 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
26092 cat >>confdefs.h <<_ACEOF
26093 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
26100 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
26102 #ifdef HAVE_WINDOWS_H
26103 #ifndef WIN32_LEAN_AND_MEAN
26104 #define WIN32_LEAN_AND_MEAN
26106 #include <windows.h>
26107 #ifdef HAVE_WINSOCK2_H
26108 #include <winsock2.h>
26109 #ifdef HAVE_WS2TCPIP_H
26110 #include <ws2tcpip.h>
26114 #ifdef HAVE_SYS_TYPES_H
26115 #include <sys/types.h>
26117 #ifdef HAVE_NETINET_IN_H
26118 #include <netinet/in.h>
26120 #ifdef HAVE_SYS_SOCKET_H
26121 #include <sys/socket.h>
26123 #ifdef HAVE_NETDB_H
26130 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
26132 cat >>confdefs.h <<_ACEOF
26133 #define HAVE_STRUCT_ADDRINFO 1
26140 for ac_func in bitncmp \
26145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26148 cat >>confdefs.h <<_ACEOF
26149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
26157 $as_echo_n "checking deeper for $func... " >&6; }
26158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26159 /* end confdefs.h. */
26173 if ac_fn_c_try_link "$LINENO"; then :
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26176 $as_echo "yes" >&6; }
26177 eval "ac_cv_func_$func=yes"
26179 cat >>confdefs.h <<_ACEOF
26180 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
26187 $as_echo "but still no" >&6; }
26190 rm -f core conftest.err conftest.$ac_objext \
26191 conftest$ac_exeext conftest.$ac_ext
26198 # The cast to long int works around a bug in the HP C Compiler
26199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26201 # This bug is HP SR number 8606223364.
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in6_addr" >&5
26203 $as_echo_n "checking size of struct in6_addr... " >&6; }
26204 if ${ac_cv_sizeof_struct_in6_addr+:} false; then :
26205 $as_echo_n "(cached) " >&6
26207 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in6_addr))" "ac_cv_sizeof_struct_in6_addr" "
26209 #ifdef HAVE_WINDOWS_H
26210 #ifndef WIN32_LEAN_AND_MEAN
26211 #define WIN32_LEAN_AND_MEAN
26213 #include <windows.h>
26214 #ifdef HAVE_WINSOCK2_H
26215 #include <winsock2.h>
26216 #ifdef HAVE_WS2TCPIP_H
26217 #include <ws2tcpip.h>
26221 #ifdef HAVE_SYS_TYPES_H
26222 #include <sys/types.h>
26224 #ifdef HAVE_SYS_SOCKET_H
26225 #include <sys/socket.h>
26227 #ifdef HAVE_NETINET_IN_H
26228 #include <netinet/in.h>
26236 if test "$ac_cv_type_struct_in6_addr" = yes; then
26237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26239 as_fn_error 77 "cannot compute sizeof (struct in6_addr)
26240 See \`config.log' for more details" "$LINENO" 5; }
26242 ac_cv_sizeof_struct_in6_addr=0
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in6_addr" >&5
26248 $as_echo "$ac_cv_sizeof_struct_in6_addr" >&6; }
26252 cat >>confdefs.h <<_ACEOF
26253 #define SIZEOF_STRUCT_IN6_ADDR $ac_cv_sizeof_struct_in6_addr
26258 # The cast to long int works around a bug in the HP C Compiler
26259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26261 # This bug is HP SR number 8606223364.
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in_addr" >&5
26263 $as_echo_n "checking size of struct in_addr... " >&6; }
26264 if ${ac_cv_sizeof_struct_in_addr+:} false; then :
26265 $as_echo_n "(cached) " >&6
26267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in_addr))" "ac_cv_sizeof_struct_in_addr" "
26269 #ifdef HAVE_WINDOWS_H
26270 #ifndef WIN32_LEAN_AND_MEAN
26271 #define WIN32_LEAN_AND_MEAN
26273 #include <windows.h>
26274 #ifdef HAVE_WINSOCK2_H
26275 #include <winsock2.h>
26276 #ifdef HAVE_WS2TCPIP_H
26277 #include <ws2tcpip.h>
26281 #ifdef HAVE_SYS_TYPES_H
26282 #include <sys/types.h>
26284 #ifdef HAVE_SYS_SOCKET_H
26285 #include <sys/socket.h>
26287 #ifdef HAVE_NETINET_IN_H
26288 #include <netinet/in.h>
26296 if test "$ac_cv_type_struct_in_addr" = yes; then
26297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26299 as_fn_error 77 "cannot compute sizeof (struct in_addr)
26300 See \`config.log' for more details" "$LINENO" 5; }
26302 ac_cv_sizeof_struct_in_addr=0
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in_addr" >&5
26308 $as_echo "$ac_cv_sizeof_struct_in_addr" >&6; }
26312 cat >>confdefs.h <<_ACEOF
26313 #define SIZEOF_STRUCT_IN_ADDR $ac_cv_sizeof_struct_in_addr
26320 for ac_header in sys/types.h sys/socket.h netdb.h
26322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26325 cat >>confdefs.h <<_ACEOF
26326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
26335 $as_echo_n "checking for getnameinfo... " >&6; }
26336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337 /* end confdefs.h. */
26340 #define getnameinfo innocuous_getnameinfo
26342 # include <limits.h>
26344 # include <assert.h>
26350 char getnameinfo ();
26351 #if defined __stub_getnameinfo || defined __stub___getnameinfo
26357 return getnameinfo ();
26363 if ac_fn_c_try_link "$LINENO"; then :
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26366 $as_echo "yes" >&6; }
26367 curl_cv_getnameinfo="yes"
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26372 $as_echo "no" >&6; }
26373 curl_cv_getnameinfo="no"
26376 rm -f core conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
26379 if test "$curl_cv_getnameinfo" != "yes"; then
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
26381 $as_echo_n "checking deeper for getnameinfo... " >&6; }
26382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26383 /* end confdefs.h. */
26397 if ac_fn_c_try_link "$LINENO"; then :
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26400 $as_echo "yes" >&6; }
26401 curl_cv_getnameinfo="yes"
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
26406 $as_echo "but still no" >&6; }
26407 curl_cv_getnameinfo="no"
26410 rm -f core conftest.err conftest.$ac_objext \
26411 conftest$ac_exeext conftest.$ac_ext
26414 if test "$curl_cv_getnameinfo" != "yes"; then
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
26416 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
26417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26418 /* end confdefs.h. */
26422 #ifdef HAVE_WINDOWS_H
26423 #ifndef WIN32_LEAN_AND_MEAN
26424 #define WIN32_LEAN_AND_MEAN
26426 #include <windows.h>
26427 #ifdef HAVE_WINSOCK2_H
26428 #include <winsock2.h>
26429 #ifdef HAVE_WS2TCPIP_H
26430 #include <ws2tcpip.h>
26434 #ifdef HAVE_SYS_TYPES_H
26435 #include <sys/types.h>
26437 #ifdef HAVE_SYS_SOCKET_H
26438 #include <sys/socket.h>
26440 #ifdef HAVE_NETDB_H
26448 getnameinfo(0, 0, 0, 0, 0, 0, 0);
26455 if ac_fn_c_try_link "$LINENO"; then :
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26458 $as_echo "yes" >&6; }
26459 curl_cv_getnameinfo="yes"
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
26464 $as_echo "but still no" >&6; }
26465 curl_cv_getnameinfo="no"
26468 rm -f core conftest.err conftest.$ac_objext \
26469 conftest$ac_exeext conftest.$ac_ext
26472 if test "$curl_cv_getnameinfo" = "yes"; then
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
26474 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
26475 if ${curl_cv_func_getnameinfo_args+:} false; then :
26476 $as_echo_n "(cached) " >&6
26479 curl_cv_func_getnameinfo_args="unknown"
26480 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
26481 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
26482 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
26483 for gni_arg7 in 'int' 'unsigned int'; do
26484 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
26485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h. */
26490 #ifdef HAVE_WINDOWS_H
26491 #ifndef WIN32_LEAN_AND_MEAN
26492 #define WIN32_LEAN_AND_MEAN
26494 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
26495 #undef _WIN32_WINNT
26496 #define _WIN32_WINNT 0x0501
26498 #include <windows.h>
26499 #ifdef HAVE_WINSOCK2_H
26500 #include <winsock2.h>
26501 #ifdef HAVE_WS2TCPIP_H
26502 #include <ws2tcpip.h>
26505 #define GNICALLCONV WSAAPI
26507 #ifdef HAVE_SYS_TYPES_H
26508 #include <sys/types.h>
26510 #ifdef HAVE_SYS_SOCKET_H
26511 #include <sys/socket.h>
26513 #ifdef HAVE_NETDB_H
26516 #define GNICALLCONV
26518 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
26519 char *, $gni_arg46,
26520 char *, $gni_arg46,
26527 $gni_arg46 hostlen=0;
26528 $gni_arg46 servlen=0;
26530 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
26537 if ac_fn_c_try_compile "$LINENO"; then :
26539 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
26542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
26551 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
26552 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
26554 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
26556 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
26558 gni_prev_IFS=$IFS; IFS=','
26559 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
26563 gni_qual_type_arg1=$1
26566 cat >>confdefs.h <<_ACEOF
26567 #define GETNAMEINFO_TYPE_ARG2 $2
26571 cat >>confdefs.h <<_ACEOF
26572 #define GETNAMEINFO_TYPE_ARG46 $3
26576 cat >>confdefs.h <<_ACEOF
26577 #define GETNAMEINFO_TYPE_ARG7 $4
26583 case $prev_sh_opts in
26591 case "$gni_qual_type_arg1" in
26593 gni_qual_arg1=const
26594 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
26598 gni_type_arg1=$gni_qual_type_arg1
26603 cat >>confdefs.h <<_ACEOF
26604 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
26608 cat >>confdefs.h <<_ACEOF
26609 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
26613 case $prev_sh_opts in
26622 cat >>confdefs.h <<_ACEOF
26623 #define HAVE_GETNAMEINFO 1
26626 ac_cv_func_getnameinfo="yes"
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26633 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26634 if ${ac_cv_c_bigendian+:} false; then :
26635 $as_echo_n "(cached) " >&6
26637 ac_cv_c_bigendian=unknown
26638 # See if we're dealing with a universal compiler.
26639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26640 /* end confdefs.h. */
26641 #ifndef __APPLE_CC__
26642 not a universal capable compiler
26647 if ac_fn_c_try_compile "$LINENO"; then :
26649 # Check for potential -arch flags. It is not universal unless
26650 # there are at least two -arch flags with different values.
26653 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26654 if test -n "$ac_prev"; then
26656 i?86 | x86_64 | ppc | ppc64)
26657 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26660 ac_cv_c_bigendian=universal
26666 elif test "x$ac_word" = "x-arch"; then
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672 if test $ac_cv_c_bigendian = unknown; then
26673 # See if sys/param.h defines the BYTE_ORDER macro.
26674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h. */
26676 #include <sys/types.h>
26677 #include <sys/param.h>
26681 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26682 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26684 bogus endian macros
26691 if ac_fn_c_try_compile "$LINENO"; then :
26692 # It does; now see whether it defined to BIG_ENDIAN or not.
26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26695 #include <sys/types.h>
26696 #include <sys/param.h>
26700 #if BYTE_ORDER != BIG_ENDIAN
26708 if ac_fn_c_try_compile "$LINENO"; then :
26709 ac_cv_c_bigendian=yes
26711 ac_cv_c_bigendian=no
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 if test $ac_cv_c_bigendian = unknown; then
26718 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26720 /* end confdefs.h. */
26721 #include <limits.h>
26725 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26726 bogus endian macros
26733 if ac_fn_c_try_compile "$LINENO"; then :
26734 # It does; now see whether it defined to _BIG_ENDIAN or not.
26735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26736 /* end confdefs.h. */
26737 #include <limits.h>
26741 #ifndef _BIG_ENDIAN
26749 if ac_fn_c_try_compile "$LINENO"; then :
26750 ac_cv_c_bigendian=yes
26752 ac_cv_c_bigendian=no
26754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26758 if test $ac_cv_c_bigendian = unknown; then
26759 # Compile a test program.
26760 if test "$cross_compiling" = yes; then :
26761 # Try to guess by grepping values from an object file.
26762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h. */
26764 short int ascii_mm[] =
26765 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26766 short int ascii_ii[] =
26767 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26768 int use_ascii (int i) {
26769 return ascii_mm[i] + ascii_ii[i];
26771 short int ebcdic_ii[] =
26772 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26773 short int ebcdic_mm[] =
26774 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26775 int use_ebcdic (int i) {
26776 return ebcdic_mm[i] + ebcdic_ii[i];
26782 return use_ascii (foo) == use_ebcdic (foo);
26787 if ac_fn_c_try_compile "$LINENO"; then :
26788 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26789 ac_cv_c_bigendian=yes
26791 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26792 if test "$ac_cv_c_bigendian" = unknown; then
26793 ac_cv_c_bigendian=no
26795 # finding both strings is unlikely to happen, but who knows?
26796 ac_cv_c_bigendian=unknown
26800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26803 /* end confdefs.h. */
26804 $ac_includes_default
26808 /* Are we little or big endian? From Harbison&Steele. */
26812 char c[sizeof (long int)];
26815 return u.c[sizeof (long int) - 1] == 1;
26821 if ac_fn_c_try_run "$LINENO"; then :
26822 ac_cv_c_bigendian=no
26824 ac_cv_c_bigendian=yes
26826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26827 conftest.$ac_objext conftest.beam conftest.$ac_ext
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26833 $as_echo "$ac_cv_c_bigendian" >&6; }
26834 case $ac_cv_c_bigendian in #(
26837 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
26843 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
26848 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
26854 # Check whether --with-random was given.
26855 if test "${with_random+set}" = set; then :
26856 withval=$with_random; RANDOM_FILE="$withval"
26859 if test "$cross_compiling" = "no"; then
26860 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26862 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
26863 if eval \${$as_ac_File+:} false; then :
26864 $as_echo_n "(cached) " >&6
26866 test "$cross_compiling" = yes &&
26867 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26868 if test -r ""/dev/urandom""; then
26869 eval "$as_ac_File=yes"
26871 eval "$as_ac_File=no"
26874 eval ac_res=\$$as_ac_File
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26876 $as_echo "$ac_res" >&6; }
26877 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
26878 RANDOM_FILE="/dev/urandom"
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
26883 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
26890 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26893 cat >>confdefs.h <<_ACEOF
26894 #define RANDOM_FILE "$RANDOM_FILE"
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
26901 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
26902 OPT_NONBLOCKING="default"
26903 # Check whether --enable-nonblocking was given.
26904 if test "${enable_nonblocking+set}" = set; then :
26905 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
26908 case "$OPT_NONBLOCKING" in
26910 want_nonblocking="no"
26913 want_nonblocking="yes"
26916 want_nonblocking="yes"
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
26920 $as_echo "$want_nonblocking" >&6; }
26924 tst_method="unknown"
26925 if test "$want_nonblocking" = "yes"; then
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
26927 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
26928 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
26929 tst_method="fcntl O_NONBLOCK"
26930 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
26931 tst_method="ioctl FIONBIO"
26932 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
26933 tst_method="ioctlsocket FIONBIO"
26934 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
26935 tst_method="IoctlSocket FIONBIO"
26936 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
26937 tst_method="setsockopt SO_NONBLOCK"
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
26940 $as_echo "$tst_method" >&6; }
26941 if test "$tst_method" = "unknown"; then
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
26943 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
26946 if test "$tst_method" = "unknown"; then
26948 cat >>confdefs.h <<_ACEOF
26949 #define USE_BLOCKING_SOCKETS 1
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
26953 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
26959 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
26960 CFLAG_CARES_SYMBOL_HIDING=""
26961 doing_symbol_hiding="no"
26962 if test x"$ac_cv_native_windows" != "xyes" &&
26963 test "$want_symbol_hiding" = "yes" &&
26964 test "$supports_symbol_hiding" = "yes"; then
26965 doing_symbol_hiding="yes"
26966 CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
26968 cat >>confdefs.h <<_ACEOF
26969 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26973 $as_echo "yes" >&6; }
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26976 $as_echo "no" >&6; }
26978 if test x$doing_symbol_hiding = xyes; then
26979 DOING_CARES_SYMBOL_HIDING_TRUE=
26980 DOING_CARES_SYMBOL_HIDING_FALSE='#'
26982 DOING_CARES_SYMBOL_HIDING_TRUE='#'
26983 DOING_CARES_SYMBOL_HIDING_FALSE=
26989 CARES_PRIVATE_LIBS="$LIBS"
26992 CARES_CFLAG_EXTRAS=""
26993 if test X"$want_werror" = Xyes; then
26994 CARES_CFLAG_EXTRAS="-Werror"
27005 squeeze CARES_PRIVATE_LIBS
27010 for xc_word in $LIBS; do
27016 xc_bad_var_libs=yes
27020 if test $xc_bad_var_libs = yes; then
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
27022 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
27024 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
27028 xc_bad_var_ldflags=no
27029 for xc_word in $LDFLAGS; do
27032 xc_bad_var_ldflags=yes
27035 xc_bad_var_ldflags=yes
27038 xc_bad_var_ldflags=yes
27041 xc_bad_var_ldflags=yes
27045 if test $xc_bad_var_ldflags = yes; then
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
27047 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
27048 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
27049 for xc_word in $LDFLAGS; do
27052 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
27053 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
27057 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
27061 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
27065 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
27072 xc_bad_var_cppflags=no
27073 for xc_word in $CPPFLAGS; do
27076 xc_bad_var_cppflags=yes
27078 -L* | --library-path=*)
27079 xc_bad_var_cppflags=yes
27082 xc_bad_var_cppflags=yes
27086 if test $xc_bad_var_cppflags = yes; then
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
27088 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
27089 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
27090 for xc_word in $CPPFLAGS; do
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
27094 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
27096 -L* | --library-path=*)
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
27098 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
27102 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
27109 xc_bad_var_cflags=no
27110 for xc_word in $CFLAGS; do
27113 xc_bad_var_cflags=yes
27116 xc_bad_var_cflags=yes
27119 xc_bad_var_cflags=yes
27122 xc_bad_var_cflags=yes
27124 -L* | --library-path=*)
27125 xc_bad_var_cflags=yes
27128 xc_bad_var_cflags=yes
27132 if test $xc_bad_var_cflags = yes; then
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
27134 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
27135 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
27136 for xc_word in $CFLAGS; do
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
27140 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
27144 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
27148 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
27152 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
27154 -L* | --library-path=*)
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
27156 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
27160 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
27166 if test $xc_bad_var_libs = yes ||
27167 test $xc_bad_var_cflags = yes ||
27168 test $xc_bad_var_ldflags = yes ||
27169 test $xc_bad_var_cppflags = yes; then
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
27171 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
27175 ac_config_files="$ac_config_files Makefile libcares.pc"
27177 cat >confcache <<\_ACEOF
27178 # This file is a shell script that caches the results of configure
27179 # tests run on this system so they can be shared between configure
27180 # scripts and configure runs, see configure's option --config-cache.
27181 # It is not useful on other systems. If it contains results you don't
27182 # want to keep, you may remove or edit it.
27184 # config.status only pays attention to the cache file if you give it
27185 # the --recheck option to rerun configure.
27187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27189 # following values.
27193 # The following way of writing the cache mishandles newlines in values,
27194 # but we know of no workaround that is simple, portable, and efficient.
27195 # So, we kill variables containing newlines.
27196 # Ultrix sh set writes to stderr and can't be redirected directly,
27197 # and sets the high bit in the cache file unless we assign to the vars.
27199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27200 eval ac_val=\$$ac_var
27204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27208 _ | IFS | as_nl) ;; #(
27209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27210 *) { eval $ac_var=; unset $ac_var;} ;;
27216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27217 *${as_nl}ac_space=\ *)
27218 # `set' does not quote correctly, so add quotes: double-quote
27219 # substitution turns \\\\ into \\, and sed turns \\ into \.
27222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27225 # `set' quotes correctly as required by POSIX, so do not add quotes.
27226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27240 if test -w "$cache_file"; then
27241 if test "x$cache_file" != "x/dev/null"; then
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27243 $as_echo "$as_me: updating cache $cache_file" >&6;}
27244 if test ! -f "$cache_file" || test -h "$cache_file"; then
27245 cat confcache >"$cache_file"
27247 case $cache_file in #(
27249 mv -f confcache "$cache_file"$$ &&
27250 mv -f "$cache_file"$$ "$cache_file" ;; #(
27252 mv -f confcache "$cache_file" ;;
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27264 # Let make expand exec_prefix.
27265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27267 DEFS=-DHAVE_CONFIG_H
27272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27273 # 1. Remove the extension, and $U if already installed.
27274 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27275 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27276 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27277 # will be set to the directory where LIBOBJS objects are built.
27278 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27279 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27281 LIBOBJS=$ac_libobjs
27283 LTLIBOBJS=$ac_ltlibobjs
27286 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27287 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27290 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27291 as_fn_error $? "conditional \"AMDEP\" was never defined.
27292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27295 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27298 if test -n "$EXEEXT"; then
27300 am__EXEEXT_FALSE='#'
27302 am__EXEEXT_TRUE='#'
27306 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
27307 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
27308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27310 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
27311 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
27312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27314 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
27315 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
27316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27318 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
27319 as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
27320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27322 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
27323 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
27324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27326 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
27327 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
27328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27331 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
27332 as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
27333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27336 : "${CONFIG_STATUS=./config.status}"
27338 ac_clean_files_save=$ac_clean_files
27339 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27341 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27343 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27345 # Generated by $as_me.
27346 # Run this file to recreate the current configuration.
27347 # Compiler output produced by configure, useful for debugging
27348 # configure, is in config.log if it exists.
27351 ac_cs_recheck=false
27354 SHELL=\${CONFIG_SHELL-$SHELL}
27357 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27358 ## -------------------- ##
27359 ## M4sh Initialization. ##
27360 ## -------------------- ##
27362 # Be more Bourne compatible
27363 DUALCASE=1; export DUALCASE # for MKS sh
27364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27367 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27368 # is contrary to our usage. Disable this feature.
27369 alias -g '${1+"$@"}'='"$@"'
27370 setopt NO_GLOB_SUBST
27372 case `(set -o) 2>/dev/null` in #(
27384 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27385 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27388 # Prefer a ksh shell builtin over an external printf program on Solaris,
27389 # but without wasting forks for bash or zsh.
27390 if test -z "$BASH_VERSION$ZSH_VERSION" \
27391 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27392 as_echo='print -r --'
27393 as_echo_n='print -rn --'
27394 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27395 as_echo='printf %s\n'
27396 as_echo_n='printf %s'
27398 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27399 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27400 as_echo_n='/usr/ucb/echo -n'
27402 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27403 as_echo_n_body='eval
27407 expr "X$arg" : "X\\(.*\\)$as_nl";
27408 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27410 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27412 export as_echo_n_body
27413 as_echo_n='sh -c $as_echo_n_body as_echo'
27415 export as_echo_body
27416 as_echo='sh -c $as_echo_body as_echo'
27422 # We need space, tab and new line, in precisely that order. Quoting is
27423 # there to prevent editors from complaining about space-tab.
27424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27425 # splitting by setting IFS to empty value.)
27428 # Find who we are. Look in the path if we contain no directory separator.
27431 *[\\/]* ) as_myself=$0 ;;
27432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27433 for as_dir in $PATH
27436 test -z "$as_dir" && as_dir=.
27437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27443 # We did not find ourselves, most probably we were run as `sh COMMAND'
27444 # in which case we are not to be found in the path.
27445 if test "x$as_myself" = x; then
27448 if test ! -f "$as_myself"; then
27449 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27453 # Unset variables that we do not need and which cause bugs (e.g. in
27454 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27455 # suppresses any "Segmentation fault" message there. '((' could
27456 # trigger a bug in pdksh 5.2.14.
27457 for as_var in BASH_ENV ENV MAIL MAILPATH
27458 do eval test x\${$as_var+set} = xset \
27459 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27475 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27476 # ----------------------------------------
27477 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27478 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27479 # script with STATUS, using 1 if that was 0.
27482 as_status=$1; test $as_status -eq 0 && as_status=1
27484 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27485 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27487 $as_echo "$as_me: error: $2" >&2
27488 as_fn_exit $as_status
27492 # as_fn_set_status STATUS
27493 # -----------------------
27494 # Set $? to STATUS, without forking.
27495 as_fn_set_status ()
27498 } # as_fn_set_status
27500 # as_fn_exit STATUS
27501 # -----------------
27502 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27506 as_fn_set_status $1
27512 # Portably unset VAR.
27515 { eval $1=; unset $1;}
27517 as_unset=as_fn_unset
27518 # as_fn_append VAR VALUE
27519 # ----------------------
27520 # Append the text in VALUE to the end of the definition contained in VAR. Take
27521 # advantage of any shell optimizations that allow amortized linear growth over
27522 # repeated appends, instead of the typical quadratic growth present in naive
27524 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27525 eval 'as_fn_append ()
27536 # as_fn_arith ARG...
27537 # ------------------
27538 # Perform arithmetic evaluation on the ARGs, and store the result in the
27539 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27540 # must be portable across $(()) and expr.
27541 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27542 eval 'as_fn_arith ()
27549 as_val=`expr "$@" || test $? -eq 1`
27554 if expr a : '\(a\)' >/dev/null 2>&1 &&
27555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27562 as_basename=basename
27567 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27573 as_me=`$as_basename -- "$0" ||
27574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27575 X"$0" : 'X\(//\)$' \| \
27576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27578 sed '/^.*\/\([^/][^/]*\)\/*$/{
27592 # Avoid depending upon Character Ranges.
27593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27596 as_cr_digits='0123456789'
27597 as_cr_alnum=$as_cr_Letters$as_cr_digits
27599 ECHO_C= ECHO_N= ECHO_T=
27600 case `echo -n x` in #(((((
27602 case `echo 'xy\c'` in
27603 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27605 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27612 rm -f conf$$ conf$$.exe conf$$.file
27613 if test -d conf$$.dir; then
27614 rm -f conf$$.dir/conf$$.file
27617 mkdir conf$$.dir 2>/dev/null
27619 if (echo >conf$$.file) 2>/dev/null; then
27620 if ln -s conf$$.file conf$$ 2>/dev/null; then
27622 # ... but there are two gotchas:
27623 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27624 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27625 # In both cases, we have to default to `cp -pR'.
27626 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27628 elif ln conf$$.file conf$$ 2>/dev/null; then
27636 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27637 rmdir conf$$.dir 2>/dev/null
27642 # Create "$as_dir" as a directory, including parents if necessary.
27647 -*) as_dir=./$as_dir;;
27649 test -d "$as_dir" || eval $as_mkdir_p || {
27653 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27654 *) as_qdir=$as_dir;;
27656 as_dirs="'$as_qdir' $as_dirs"
27657 as_dir=`$as_dirname -- "$as_dir" ||
27658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27659 X"$as_dir" : 'X\(//\)[^/]' \| \
27660 X"$as_dir" : 'X\(//\)$' \| \
27661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27662 $as_echo X"$as_dir" |
27663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27667 /^X\(\/\/\)[^/].*/{
27680 test -d "$as_dir" && break
27682 test -z "$as_dirs" || eval "mkdir $as_dirs"
27683 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27687 if mkdir -p . 2>/dev/null; then
27688 as_mkdir_p='mkdir -p "$as_dir"'
27690 test -d ./-p && rmdir ./-p
27695 # as_fn_executable_p FILE
27696 # -----------------------
27697 # Test if FILE is an executable regular file.
27698 as_fn_executable_p ()
27700 test -f "$1" && test -x "$1"
27701 } # as_fn_executable_p
27702 as_test_x='test -x'
27703 as_executable_p=as_fn_executable_p
27705 # Sed expression to map a string onto a valid CPP name.
27706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27708 # Sed expression to map a string onto a valid variable name.
27709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27713 ## ----------------------------------- ##
27714 ## Main body of $CONFIG_STATUS script. ##
27715 ## ----------------------------------- ##
27717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27720 # Save the log message, to keep $0 and so on meaningful, and to
27721 # report actual input values of CONFIG_FILES etc. instead of their
27722 # values after options handling.
27724 This file was extended by c-ares $as_me 1.10.0, which was
27725 generated by GNU Autoconf 2.69. Invocation command line was
27727 CONFIG_FILES = $CONFIG_FILES
27728 CONFIG_HEADERS = $CONFIG_HEADERS
27729 CONFIG_LINKS = $CONFIG_LINKS
27730 CONFIG_COMMANDS = $CONFIG_COMMANDS
27733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27738 case $ac_config_files in *"
27739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27742 case $ac_config_headers in *"
27743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27748 # Files that config.status was made for.
27749 config_files="$ac_config_files"
27750 config_headers="$ac_config_headers"
27751 config_commands="$ac_config_commands"
27755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27757 \`$as_me' instantiates files and other configuration actions
27758 from templates according to the current configuration. Unless the files
27759 and actions are specified as TAGs, all are instantiated by default.
27761 Usage: $0 [OPTION]... [TAG]...
27763 -h, --help print this help, then exit
27764 -V, --version print version number and configuration settings, then exit
27765 --config print configuration, then exit
27766 -q, --quiet, --silent
27767 do not print progress messages
27768 -d, --debug don't remove temporary files
27769 --recheck update $as_me by reconfiguring in the same conditions
27770 --file=FILE[:TEMPLATE]
27771 instantiate the configuration file FILE
27772 --header=FILE[:TEMPLATE]
27773 instantiate the configuration header FILE
27775 Configuration files:
27778 Configuration headers:
27781 Configuration commands:
27784 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
27787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27788 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27790 c-ares config.status 1.10.0
27791 configured by $0, generated by GNU Autoconf 2.69,
27792 with options \\"\$ac_cs_config\\"
27794 Copyright (C) 2012 Free Software Foundation, Inc.
27795 This config.status script is free software; the Free Software Foundation
27796 gives unlimited permission to copy, distribute and modify it."
27803 test -n "\$AWK" || AWK=awk
27806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27807 # The default lists apply if the user does not specify any file.
27813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27830 # Handling of the options.
27831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27834 $as_echo "$ac_cs_version"; exit ;;
27835 --config | --confi | --conf | --con | --co | --c )
27836 $as_echo "$ac_cs_config"; exit ;;
27837 --debug | --debu | --deb | --de | --d | -d )
27839 --file | --fil | --fi | --f )
27842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27843 '') as_fn_error $? "missing file argument" ;;
27845 as_fn_append CONFIG_FILES " '$ac_optarg'"
27846 ac_need_defaults=false;;
27847 --header | --heade | --head | --hea )
27850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27852 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27853 ac_need_defaults=false;;
27855 # Conflict between --help and --header
27856 as_fn_error $? "ambiguous option: \`$1'
27857 Try \`$0 --help' for more information.";;
27858 --help | --hel | -h )
27859 $as_echo "$ac_cs_usage"; exit ;;
27860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27864 # This is an error.
27865 -*) as_fn_error $? "unrecognized option: \`$1'
27866 Try \`$0 --help' for more information." ;;
27868 *) as_fn_append ac_config_targets " $1"
27869 ac_need_defaults=false ;;
27875 ac_configure_extra_args=
27877 if $ac_cs_silent; then
27879 ac_configure_extra_args="$ac_configure_extra_args --silent"
27883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27884 if \$ac_cs_recheck; then
27885 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27888 CONFIG_SHELL='$SHELL'
27889 export CONFIG_SHELL
27894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27899 ## Running $as_me. ##
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27912 # The HP-UX ksh and POSIX shell print the target directory to stdout
27913 # if CDPATH is set.
27914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27916 sed_quote_subst='$sed_quote_subst'
27917 double_quote_subst='$double_quote_subst'
27918 delay_variable_subst='$delay_variable_subst'
27919 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27920 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27921 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27922 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27923 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27924 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27925 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27926 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27927 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27928 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27929 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27930 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27931 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27932 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27933 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27934 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27935 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27936 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27937 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27938 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27939 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27940 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27941 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27942 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27943 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27944 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27945 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27946 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27947 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27948 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27949 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27950 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27951 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27952 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27953 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27954 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27955 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27956 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27957 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27958 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27959 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27960 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27961 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27962 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27963 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27964 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27965 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27966 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27967 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27968 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27969 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27970 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27971 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27972 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27973 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27974 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27975 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27976 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"`'
27977 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27978 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27979 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27980 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27981 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27982 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27983 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27984 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27985 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27986 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27987 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27988 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27989 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27990 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27991 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27992 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27993 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27994 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27995 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27996 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27997 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27998 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27999 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28000 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28001 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28002 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28003 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28004 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28005 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28006 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28007 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28008 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28009 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28010 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28011 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28012 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28013 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28014 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28015 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28016 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28017 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28018 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28019 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28020 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28021 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28022 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28023 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28024 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28025 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28026 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28027 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28028 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28029 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28030 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28031 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28032 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28033 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28034 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28035 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28036 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28037 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28038 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28039 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28040 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28041 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28042 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28043 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28044 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28045 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28046 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28047 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28048 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28049 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28052 LTCFLAGS='$LTCFLAGS'
28053 compiler='$compiler_DEFAULT'
28055 # A function that is used when there is no print builtin or printf.
28056 func_fallback_echo ()
28058 eval 'cat <<_LTECHO_EOF
28063 # Quote evaled strings.
28080 deplibs_check_method \
28084 sharedlib_from_linklib_cmd \
28087 archiver_list_spec \
28093 lt_cv_sys_global_symbol_pipe \
28094 lt_cv_sys_global_symbol_to_cdecl \
28095 lt_cv_sys_global_symbol_to_c_name_address \
28096 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28097 nm_file_list_spec \
28098 lt_prog_compiler_no_builtin_flag \
28099 lt_prog_compiler_pic \
28100 lt_prog_compiler_wl \
28101 lt_prog_compiler_static \
28102 lt_cv_prog_compiler_c_o \
28111 export_dynamic_flag_spec \
28112 whole_archive_flag_spec \
28113 compiler_needs_object \
28115 allow_undefined_flag \
28116 no_undefined_flag \
28117 hardcode_libdir_flag_spec \
28118 hardcode_libdir_separator \
28122 variables_saved_for_relink \
28124 library_names_spec \
28126 install_override_mode \
28130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28131 *[\\\\\\\`\\"\\\$]*)
28132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28140 # Double-quote double-evaled strings.
28141 for var in reload_cmds \
28142 old_postinstall_cmds \
28143 old_postuninstall_cmds \
28145 extract_expsyms_cmds \
28146 old_archive_from_new_cmds \
28147 old_archive_from_expsyms_cmds \
28149 archive_expsym_cmds \
28151 module_expsym_cmds \
28152 export_symbols_cmds \
28156 postuninstall_cmds \
28158 sys_lib_search_path_spec \
28159 sys_lib_dlsearch_path_spec; do
28160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28161 *[\\\\\\\`\\"\\\$]*)
28162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28170 ac_aux_dir='$ac_aux_dir'
28171 xsi_shell='$xsi_shell'
28172 lt_shell_append='$lt_shell_append'
28174 # See if we are running on zsh, and set the options which allow our
28175 # commands through without removal of \ escapes INIT.
28176 if test -n "\${ZSH_VERSION+set}" ; then
28177 setopt NO_GLOB_SUBST
28183 TIMESTAMP='$TIMESTAMP'
28192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28194 # Handling of arguments.
28195 for ac_config_target in $ac_config_targets
28197 case $ac_config_target in
28198 "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
28199 "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
28200 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28201 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28203 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
28205 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28210 # If the user did not use the arguments to specify the items to instantiate,
28211 # then the envvar interface is used. Set only those that are not.
28212 # We use the long form for the default assignment because of an extremely
28213 # bizarre bug on SunOS 4.1.3.
28214 if $ac_need_defaults; then
28215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28217 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28220 # Have a temporary directory for convenience. Make it in the build tree
28221 # simply because there is no reason against having it here, and in addition,
28222 # creating and moving files from /tmp can sometimes cause problems.
28223 # Hook for its removal unless debugging.
28224 # Note that there is a small window in which the directory will not be cleaned:
28225 # after its creation but before its name has been assigned to `$tmp'.
28229 trap 'exit_status=$?
28230 : "${ac_tmp:=$tmp}"
28231 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28233 trap 'as_fn_exit 1' 1 2 13 15
28235 # Create a (secure) tmp directory for tmp files.
28238 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28242 tmp=./conf$$-$RANDOM
28243 (umask 077 && mkdir "$tmp")
28244 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28247 # Set up the scripts for CONFIG_FILES section.
28248 # No need to generate them if there are no CONFIG_FILES.
28249 # This happens for instance with `./config.status config.h'.
28250 if test -n "$CONFIG_FILES"; then
28253 ac_cr=`echo X | tr X '\015'`
28254 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28255 # But we know of no other shell where ac_cr would be empty at this
28256 # point, so we can use a bashism as a fallback.
28257 if test "x$ac_cr" = x; then
28258 eval ac_cr=\$\'\\r\'
28260 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28261 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28264 ac_cs_awk_cr=$ac_cr
28267 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28272 echo "cat >conf$$subs.awk <<_ACEOF" &&
28273 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28275 } >conf$$subs.sh ||
28276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28277 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28279 for ac_last_try in false false false false false :; do
28280 . ./conf$$subs.sh ||
28281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28283 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28284 if test $ac_delim_n = $ac_delim_num; then
28286 elif $ac_last_try; then
28287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28292 rm -f conf$$subs.sh
28294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28295 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28299 s/^/S["/; s/!.*/"]=/
28309 s/\(.\{148\}\)..*/\1/
28311 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28316 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28323 s/\(.\{148\}\)..*/\1/
28325 s/["\\]/\\&/g; s/^/"/; s/$/"/
28329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28334 ' <conf$$subs.awk | sed '
28339 ' >>$CONFIG_STATUS || ac_write_fail=1
28340 rm -f conf$$subs.awk
28341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28343 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28344 for (key in S) S_is_set[key] = 1
28350 nfields = split(line, field, "@")
28352 len = length(field[1])
28353 for (i = 2; i < nfields; i++) {
28355 keylen = length(key)
28356 if (S_is_set[key]) {
28358 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28359 len += length(value) + length(field[++i])
28370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28371 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28372 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28375 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28376 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28379 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28380 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28381 # trailing colons and then remove the whole line if VPATH becomes empty
28382 # (actually we leave an empty line to preserve line numbers).
28383 if test "x$srcdir" = x.; then
28384 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28403 fi # test -n "$CONFIG_FILES"
28405 # Set up the scripts for CONFIG_HEADERS section.
28406 # No need to generate them if there are no CONFIG_HEADERS.
28407 # This happens for instance with `./config.status Makefile'.
28408 if test -n "$CONFIG_HEADERS"; then
28409 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28413 # Transform confdefs.h into an awk script `defines.awk', embedded as
28414 # here-document in config.status, that substitutes the proper values into
28415 # config.h.in to produce config.h.
28417 # Create a delimiter string that does not exist in confdefs.h, to ease
28418 # handling of long lines.
28420 for ac_last_try in false false :; do
28421 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28422 if test -z "$ac_tt"; then
28424 elif $ac_last_try; then
28425 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28431 # For the awk script, D is an array of macro values keyed by name,
28432 # likewise P contains macro parameters if any. Preserve backslash
28433 # newline sequences.
28435 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28437 s/.\{148\}/&'"$ac_delim"'/g
28440 s/^[ ]*#[ ]*define[ ][ ]*/ /
28447 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28449 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28453 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28454 D["\1"]=" \3\\\\\\n"\\/p
28456 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28461 s/.\{148\}/&'"$ac_delim"'/g
28466 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28469 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28471 ' <confdefs.h | sed '
28472 s/'"$ac_delim"'/"\\\
28473 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28476 for (key in D) D_is_set[key] = 1
28479 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28481 split(line, arg, " ")
28482 if (arg[1] == "#") {
28486 defundef = substr(arg[1], 2)
28489 split(mac1, mac2, "(") #)
28491 prefix = substr(line, 1, index(line, defundef) - 1)
28492 if (D_is_set[macro]) {
28493 # Preserve the white space surrounding the "#".
28494 print prefix "define", macro P[macro] D[macro]
28497 # Replace #undef with comments. This is necessary, for example,
28498 # in the case of _POSIX_SOURCE, which is predefined and required
28499 # on some systems where configure will not decide to define it.
28500 if (defundef == "undef") {
28501 print "/*", prefix defundef, macro, "*/"
28509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28510 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28511 fi # test -n "$CONFIG_HEADERS"
28514 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28519 :[FHLC]) ac_mode=$ac_tag; continue;;
28521 case $ac_mode$ac_tag in
28523 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28524 :[FH]-) ac_tag=-:-;;
28525 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28542 -) ac_f="$ac_tmp/stdin";;
28543 *) # Look for the file first in the build tree, then in the source tree
28544 # (if the path is not absolute). The absolute path cannot be DOS-style,
28545 # because $ac_f cannot contain `:'.
28549 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28551 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28553 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28554 as_fn_append ac_file_inputs " '$ac_f'"
28557 # Let's still pretend it is `configure' which instantiates (i.e., don't
28558 # use $as_me), people would be surprised to read:
28559 # /* config.h. Generated by config.status. */
28560 configure_input='Generated from '`
28561 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28563 if test x"$ac_file" != x-; then
28564 configure_input="$ac_file. $configure_input"
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28566 $as_echo "$as_me: creating $ac_file" >&6;}
28568 # Neutralize special characters interpreted by sed in replacement strings.
28569 case $configure_input in #(
28570 *\&* | *\|* | *\\* )
28571 ac_sed_conf_input=`$as_echo "$configure_input" |
28572 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28573 *) ac_sed_conf_input=$configure_input;;
28577 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28583 ac_dir=`$as_dirname -- "$ac_file" ||
28584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28585 X"$ac_file" : 'X\(//\)[^/]' \| \
28586 X"$ac_file" : 'X\(//\)$' \| \
28587 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28588 $as_echo X"$ac_file" |
28589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28593 /^X\(\/\/\)[^/].*/{
28606 as_dir="$ac_dir"; as_fn_mkdir_p
28610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28613 # A ".." for each directory in $ac_dir_suffix.
28614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28615 case $ac_top_builddir_sub in
28616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28620 ac_abs_top_builddir=$ac_pwd
28621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28622 # for backward compatibility:
28623 ac_top_builddir=$ac_top_build_prefix
28626 .) # We are building in place.
28628 ac_top_srcdir=$ac_top_builddir_sub
28629 ac_abs_top_srcdir=$ac_pwd ;;
28630 [\\/]* | ?:[\\/]* ) # Absolute name.
28631 ac_srcdir=$srcdir$ac_dir_suffix;
28632 ac_top_srcdir=$srcdir
28633 ac_abs_top_srcdir=$srcdir ;;
28634 *) # Relative name.
28635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28636 ac_top_srcdir=$ac_top_build_prefix$srcdir
28637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28649 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28650 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28652 ac_MKDIR_P=$MKDIR_P
28654 [\\/$]* | ?:[\\/]* ) ;;
28655 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28660 # If the template does not know about datarootdir, expand it.
28661 # FIXME: This hack should be removed a few years after 2.60.
28662 ac_datarootdir_hack=; ac_datarootdir_seen=
28673 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28674 *datarootdir*) ac_datarootdir_seen=yes;;
28675 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28677 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28680 ac_datarootdir_hack='
28681 s&@datadir@&$datadir&g
28682 s&@docdir@&$docdir&g
28683 s&@infodir@&$infodir&g
28684 s&@localedir@&$localedir&g
28685 s&@mandir@&$mandir&g
28686 s&\\\${datarootdir}&$datarootdir&g' ;;
28690 # Neutralize VPATH when `$srcdir' = `.'.
28691 # Shell code in configure.ac might set extrasub.
28692 # FIXME: do we really want to maintain this feature?
28693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28694 ac_sed_extra="$ac_vpsub
28697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28700 s|@configure_input@|$ac_sed_conf_input|;t t
28701 s&@top_builddir@&$ac_top_builddir_sub&;t t
28702 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28703 s&@srcdir@&$ac_srcdir&;t t
28704 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28705 s&@top_srcdir@&$ac_top_srcdir&;t t
28706 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28707 s&@builddir@&$ac_builddir&;t t
28708 s&@abs_builddir@&$ac_abs_builddir&;t t
28709 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28710 s&@INSTALL@&$ac_INSTALL&;t t
28711 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28712 $ac_datarootdir_hack
28714 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28715 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28718 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28719 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28720 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28722 which seems to be undefined. Please make sure it is defined" >&5
28723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28724 which seems to be undefined. Please make sure it is defined" >&2;}
28726 rm -f "$ac_tmp/stdin"
28728 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28729 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28737 if test x"$ac_file" != x-; then
28739 $as_echo "/* $configure_input */" \
28740 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28741 } >"$ac_tmp/config.h" \
28742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28743 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28745 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28748 mv "$ac_tmp/config.h" "$ac_file" \
28749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28752 $as_echo "/* $configure_input */" \
28753 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28754 || as_fn_error $? "could not create -" "$LINENO" 5
28756 # Compute "$ac_file"'s index in $config_headers.
28759 for _am_header in $config_headers :; do
28760 case $_am_header in
28761 $_am_arg | $_am_arg:* )
28764 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28767 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28768 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28769 X"$_am_arg" : 'X\(//\)[^/]' \| \
28770 X"$_am_arg" : 'X\(//\)$' \| \
28771 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28772 $as_echo X"$_am_arg" |
28773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28777 /^X\(\/\/\)[^/].*/{
28789 s/.*/./; q'`/stamp-h$_am_stamp_count
28792 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28793 $as_echo "$as_me: executing $ac_file commands" >&6;}
28798 case $ac_file$ac_mode in
28799 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28800 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28801 # are listed without --file. Let's play safe and only enable the eval
28802 # if we detect the quoting.
28803 case $CONFIG_FILES in
28804 *\'*) eval set x "$CONFIG_FILES" ;;
28805 *) set x $CONFIG_FILES ;;
28810 # Strip MF so we end up with the name of the file.
28811 mf=`echo "$mf" | sed -e 's/:.*$//'`
28812 # Check whether this is an Automake generated Makefile or not.
28813 # We used to match only the files named `Makefile.in', but
28814 # some people rename them; so instead we look at the file content.
28815 # Grep'ing the first line is not enough: some people post-process
28816 # each Makefile.in and add a new line on top of each file to say so.
28817 # Grep'ing the whole file is not good either: AIX grep has a line
28818 # limit of 2048, but all sed's we know have understand at least 4000.
28819 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28820 dirpart=`$as_dirname -- "$mf" ||
28821 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28822 X"$mf" : 'X\(//\)[^/]' \| \
28823 X"$mf" : 'X\(//\)$' \| \
28824 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28830 /^X\(\/\/\)[^/].*/{
28846 # Extract the definition of DEPDIR, am__include, and am__quote
28847 # from the Makefile without running `make'.
28848 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28849 test -z "$DEPDIR" && continue
28850 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28851 test -z "am__include" && continue
28852 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28853 # When using ansi2knr, U may be empty or an underscore; expand it
28854 U=`sed -n 's/^U = //p' < "$mf"`
28855 # Find all dependency output files, they are included files with
28856 # $(DEPDIR) in their names. We invoke sed twice because it is the
28857 # simplest approach to changing $(DEPDIR) to its actual value in the
28859 for file in `sed -n "
28860 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28861 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28862 # Make sure the directory exists.
28863 test -f "$dirpart/$file" && continue
28864 fdir=`$as_dirname -- "$file" ||
28865 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28866 X"$file" : 'X\(//\)[^/]' \| \
28867 X"$file" : 'X\(//\)$' \| \
28868 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28869 $as_echo X"$file" |
28870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28874 /^X\(\/\/\)[^/].*/{
28887 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28888 # echo "creating $dirpart/$file"
28889 echo '# dummy' > "$dirpart/$file"
28896 # See if we are running on zsh, and set the options which allow our
28897 # commands through without removal of \ escapes.
28898 if test -n "${ZSH_VERSION+set}" ; then
28899 setopt NO_GLOB_SUBST
28902 cfgfile="${ofile}T"
28903 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28906 cat <<_LT_EOF >> "$cfgfile"
28909 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28910 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28912 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28914 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28915 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28917 # Written by Gordon Matzigkeit, 1996
28919 # This file is part of GNU Libtool.
28921 # GNU Libtool is free software; you can redistribute it and/or
28922 # modify it under the terms of the GNU General Public License as
28923 # published by the Free Software Foundation; either version 2 of
28924 # the License, or (at your option) any later version.
28926 # As a special exception to the GNU General Public License,
28927 # if you distribute this file as part of a program or library that
28928 # is built using GNU Libtool, you may include this file under the
28929 # same distribution terms that you use for the rest of that program.
28931 # GNU Libtool is distributed in the hope that it will be useful,
28932 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28933 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28934 # GNU General Public License for more details.
28936 # You should have received a copy of the GNU General Public License
28937 # along with GNU Libtool; see the file COPYING. If not, a copy
28938 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28939 # obtained by writing to the Free Software Foundation, Inc.,
28940 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28943 # The names of the tagged configurations supported by this script.
28946 # ### BEGIN LIBTOOL CONFIG
28948 # Which release of libtool.m4 was used?
28949 macro_version=$macro_version
28950 macro_revision=$macro_revision
28952 # Assembler program.
28955 # DLL creation program.
28956 DLLTOOL=$lt_DLLTOOL
28958 # Object dumper program.
28959 OBJDUMP=$lt_OBJDUMP
28961 # Whether or not to build shared libraries.
28962 build_libtool_libs=$enable_shared
28964 # Whether or not to build static libraries.
28965 build_old_libs=$enable_static
28967 # What type of objects to build.
28970 # Whether or not to optimize for fast installation.
28971 fast_install=$enable_fast_install
28973 # Shell to use when invoking shell scripts.
28976 # An echo program that protects backslashes.
28979 # The PATH separator for the build system.
28980 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28983 host_alias=$host_alias
28987 # The build system.
28988 build_alias=$build_alias
28992 # A sed program that does not truncate output.
28995 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28996 Xsed="\$SED -e 1s/^X//"
28998 # A grep program that handles long lines.
29004 # A literal string matcher.
29007 # A BSD- or MS-compatible name lister.
29010 # Whether we need soft or hard links.
29013 # What is the maximum length of a command?
29014 max_cmd_len=$max_cmd_len
29016 # Object file suffix (normally "o").
29019 # Executable file suffix (normally "").
29022 # whether the shell understands "unset".
29025 # turn spaces into newlines.
29028 # turn newlines into spaces.
29031 # convert \$build file names to \$host format.
29032 to_host_file_cmd=$lt_cv_to_host_file_cmd
29034 # convert \$build files to toolchain format.
29035 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29037 # Method to check whether dependent libraries are shared objects.
29038 deplibs_check_method=$lt_deplibs_check_method
29040 # Command to use when deplibs_check_method = "file_magic".
29041 file_magic_cmd=$lt_file_magic_cmd
29043 # How to find potential files when deplibs_check_method = "file_magic".
29044 file_magic_glob=$lt_file_magic_glob
29046 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29047 want_nocaseglob=$lt_want_nocaseglob
29049 # Command to associate shared and link libraries.
29050 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29055 # Flags to create an archive.
29056 AR_FLAGS=$lt_AR_FLAGS
29058 # How to feed a file listing to the archiver.
29059 archiver_list_spec=$lt_archiver_list_spec
29061 # A symbol stripping program.
29064 # Commands used to install an old-style archive.
29066 old_postinstall_cmds=$lt_old_postinstall_cmds
29067 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29069 # Whether to use a lock for old archive extraction.
29070 lock_old_archive_extraction=$lock_old_archive_extraction
29075 # LTCC compiler flags.
29076 LTCFLAGS=$lt_CFLAGS
29078 # Take the output of nm and produce a listing of raw symbols and C names.
29079 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29081 # Transform the output of nm in a proper C declaration.
29082 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29084 # Transform the output of nm in a C name address pair.
29085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29087 # Transform the output of nm in a C name address pair when lib prefix is needed.
29088 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29090 # Specify filename containing input files for \$NM.
29091 nm_file_list_spec=$lt_nm_file_list_spec
29093 # The root where to search for dependent libraries,and in which our libraries should be installed.
29094 lt_sysroot=$lt_sysroot
29096 # The name of the directory that contains temporary libtool files.
29099 # Used to examine libraries when file_magic_cmd begins with "file".
29100 MAGIC_CMD=$MAGIC_CMD
29102 # Must we lock files when doing compilation?
29103 need_locks=$lt_need_locks
29106 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29108 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29109 DSYMUTIL=$lt_DSYMUTIL
29111 # Tool to change global to local symbols on Mac OS X.
29114 # Tool to manipulate fat objects and archives on Mac OS X.
29117 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29120 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29121 OTOOL64=$lt_OTOOL64
29123 # Old archive suffix (normally "a").
29126 # Shared library suffix (normally ".so").
29127 shrext_cmds=$lt_shrext_cmds
29129 # The commands to extract the exported symbol list from a shared archive.
29130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29132 # Variables whose values should be saved in libtool wrapper scripts and
29133 # restored at link time.
29134 variables_saved_for_relink=$lt_variables_saved_for_relink
29136 # Do we need the "lib" prefix for modules?
29137 need_lib_prefix=$need_lib_prefix
29139 # Do we need a version for libraries?
29140 need_version=$need_version
29142 # Library versioning type.
29143 version_type=$version_type
29145 # Shared library runtime path variable.
29146 runpath_var=$runpath_var
29148 # Shared library path variable.
29149 shlibpath_var=$shlibpath_var
29151 # Is shlibpath searched before the hard-coded library search path?
29152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29154 # Format of library name prefix.
29155 libname_spec=$lt_libname_spec
29157 # List of archive names. First name is the real one, the rest are links.
29158 # The last name is the one that the linker finds with -lNAME
29159 library_names_spec=$lt_library_names_spec
29161 # The coded name of the library, if different from the real name.
29162 soname_spec=$lt_soname_spec
29164 # Permission mode override for installation of shared libraries.
29165 install_override_mode=$lt_install_override_mode
29167 # Command to use after installation of a shared archive.
29168 postinstall_cmds=$lt_postinstall_cmds
29170 # Command to use after uninstallation of a shared archive.
29171 postuninstall_cmds=$lt_postuninstall_cmds
29173 # Commands used to finish a libtool library installation in a directory.
29174 finish_cmds=$lt_finish_cmds
29176 # As "finish_cmds", except a single script fragment to be evaled but
29178 finish_eval=$lt_finish_eval
29180 # Whether we should hardcode library paths into libraries.
29181 hardcode_into_libs=$hardcode_into_libs
29183 # Compile-time system search path for libraries.
29184 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29186 # Run-time system search path for libraries.
29187 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29189 # Whether dlopen is supported.
29190 dlopen_support=$enable_dlopen
29192 # Whether dlopen of programs is supported.
29193 dlopen_self=$enable_dlopen_self
29195 # Whether dlopen of statically linked programs is supported.
29196 dlopen_self_static=$enable_dlopen_self_static
29198 # Commands to strip libraries.
29199 old_striplib=$lt_old_striplib
29200 striplib=$lt_striplib
29203 # The linker used to build libraries.
29206 # How to create reloadable object files.
29207 reload_flag=$lt_reload_flag
29208 reload_cmds=$lt_reload_cmds
29210 # Commands used to build an old-style archive.
29211 old_archive_cmds=$lt_old_archive_cmds
29213 # A language specific compiler.
29216 # Is the compiler the GNU compiler?
29219 # Compiler flag to turn off builtin functions.
29220 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29222 # Additional compiler flags for building library objects.
29223 pic_flag=$lt_lt_prog_compiler_pic
29225 # How to pass a linker flag through the compiler.
29226 wl=$lt_lt_prog_compiler_wl
29228 # Compiler flag to prevent dynamic linking.
29229 link_static_flag=$lt_lt_prog_compiler_static
29231 # Does compiler simultaneously support -c and -o options?
29232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29234 # Whether or not to add -lc for building shared libraries.
29235 build_libtool_need_lc=$archive_cmds_need_lc
29237 # Whether or not to disallow shared libs when runtime libs are static.
29238 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29240 # Compiler flag to allow reflexive dlopens.
29241 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29243 # Compiler flag to generate shared objects directly from archives.
29244 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29246 # Whether the compiler copes with passing no objects directly.
29247 compiler_needs_object=$lt_compiler_needs_object
29249 # Create an old-style archive from a shared archive.
29250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29252 # Create a temporary old-style archive to link instead of a shared archive.
29253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29255 # Commands used to build a shared archive.
29256 archive_cmds=$lt_archive_cmds
29257 archive_expsym_cmds=$lt_archive_expsym_cmds
29259 # Commands used to build a loadable module if different from building
29260 # a shared archive.
29261 module_cmds=$lt_module_cmds
29262 module_expsym_cmds=$lt_module_expsym_cmds
29264 # Whether we are building with GNU ld or not.
29265 with_gnu_ld=$lt_with_gnu_ld
29267 # Flag that allows shared libraries with undefined symbols to be built.
29268 allow_undefined_flag=$lt_allow_undefined_flag
29270 # Flag that enforces no undefined symbols.
29271 no_undefined_flag=$lt_no_undefined_flag
29273 # Flag to hardcode \$libdir into a binary during linking.
29274 # This must work even if \$libdir does not exist
29275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29277 # Whether we need a single "-rpath" flag with a separated argument.
29278 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29280 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29281 # DIR into the resulting binary.
29282 hardcode_direct=$hardcode_direct
29284 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29285 # DIR into the resulting binary and the resulting library dependency is
29286 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29287 # library is relocated.
29288 hardcode_direct_absolute=$hardcode_direct_absolute
29290 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29291 # into the resulting binary.
29292 hardcode_minus_L=$hardcode_minus_L
29294 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29295 # into the resulting binary.
29296 hardcode_shlibpath_var=$hardcode_shlibpath_var
29298 # Set to "yes" if building a shared library automatically hardcodes DIR
29299 # into the library and all subsequent libraries and executables linked
29301 hardcode_automatic=$hardcode_automatic
29303 # Set to yes if linker adds runtime paths of dependent libraries
29304 # to runtime path list.
29305 inherit_rpath=$inherit_rpath
29307 # Whether libtool must link a program against all its dependency libraries.
29308 link_all_deplibs=$link_all_deplibs
29310 # Set to "yes" if exported symbols are required.
29311 always_export_symbols=$always_export_symbols
29313 # The commands to list exported symbols.
29314 export_symbols_cmds=$lt_export_symbols_cmds
29316 # Symbols that should not be listed in the preloaded symbols.
29317 exclude_expsyms=$lt_exclude_expsyms
29319 # Symbols that must always be exported.
29320 include_expsyms=$lt_include_expsyms
29322 # Commands necessary for linking programs (against libraries) with templates.
29323 prelink_cmds=$lt_prelink_cmds
29325 # Commands necessary for finishing linking programs.
29326 postlink_cmds=$lt_postlink_cmds
29328 # Specify filename containing input files.
29329 file_list_spec=$lt_file_list_spec
29331 # How to hardcode a shared library path into an executable.
29332 hardcode_action=$hardcode_action
29334 # ### END LIBTOOL CONFIG
29340 cat <<\_LT_EOF >> "$cfgfile"
29341 # AIX sometimes has problems with the GCC collect2 program. For some
29342 # reason, if we set the COLLECT_NAMES environment variable, the problems
29343 # vanish in a puff of smoke.
29344 if test "X${COLLECT_NAMES+set}" != Xset; then
29346 export COLLECT_NAMES
29353 ltmain="$ac_aux_dir/ltmain.sh"
29356 # We use sed instead of cat because bash on DJGPP gets confused if
29357 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29358 # text mode, it properly converts lines to CR/LF. This bash problem
29359 # is reportedly fixed, but why not run on old versions too?
29360 sed '$q' "$ltmain" >> "$cfgfile" \
29361 || (rm -f "$cfgfile"; exit 1)
29363 if test x"$xsi_shell" = xyes; then
29364 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29368 \ */*) func_dirname_result="${1%/*}${2}" ;;\
29369 \ * ) func_dirname_result="${3}" ;;\
29371 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29372 && mv -f "$cfgfile.tmp" "$cfgfile" \
29373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29374 test 0 -eq $? || _lt_function_replace_fail=:
29377 sed -e '/^func_basename ()$/,/^} # func_basename /c\
29380 \ func_basename_result="${1##*/}"\
29381 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29382 && mv -f "$cfgfile.tmp" "$cfgfile" \
29383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29384 test 0 -eq $? || _lt_function_replace_fail=:
29387 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29388 func_dirname_and_basename ()\
29391 \ */*) func_dirname_result="${1%/*}${2}" ;;\
29392 \ * ) func_dirname_result="${3}" ;;\
29394 \ func_basename_result="${1##*/}"\
29395 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29396 && mv -f "$cfgfile.tmp" "$cfgfile" \
29397 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29398 test 0 -eq $? || _lt_function_replace_fail=:
29401 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
29404 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
29405 \ # positional parameters, so assign one to ordinary parameter first.\
29406 \ func_stripname_result=${3}\
29407 \ func_stripname_result=${func_stripname_result#"${1}"}\
29408 \ func_stripname_result=${func_stripname_result%"${2}"}\
29409 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
29410 && mv -f "$cfgfile.tmp" "$cfgfile" \
29411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29412 test 0 -eq $? || _lt_function_replace_fail=:
29415 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
29416 func_split_long_opt ()\
29418 \ func_split_long_opt_name=${1%%=*}\
29419 \ func_split_long_opt_arg=${1#*=}\
29420 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
29421 && mv -f "$cfgfile.tmp" "$cfgfile" \
29422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29423 test 0 -eq $? || _lt_function_replace_fail=:
29426 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
29427 func_split_short_opt ()\
29429 \ func_split_short_opt_arg=${1#??}\
29430 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
29431 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
29432 && mv -f "$cfgfile.tmp" "$cfgfile" \
29433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29434 test 0 -eq $? || _lt_function_replace_fail=:
29437 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
29441 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
29442 \ *) func_lo2o_result=${1} ;;\
29444 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
29445 && mv -f "$cfgfile.tmp" "$cfgfile" \
29446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29447 test 0 -eq $? || _lt_function_replace_fail=:
29450 sed -e '/^func_xform ()$/,/^} # func_xform /c\
29453 func_xform_result=${1%.*}.lo\
29454 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
29455 && mv -f "$cfgfile.tmp" "$cfgfile" \
29456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29457 test 0 -eq $? || _lt_function_replace_fail=:
29460 sed -e '/^func_arith ()$/,/^} # func_arith /c\
29463 func_arith_result=$(( $* ))\
29464 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
29465 && mv -f "$cfgfile.tmp" "$cfgfile" \
29466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29467 test 0 -eq $? || _lt_function_replace_fail=:
29470 sed -e '/^func_len ()$/,/^} # func_len /c\
29473 func_len_result=${#1}\
29474 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
29475 && mv -f "$cfgfile.tmp" "$cfgfile" \
29476 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29477 test 0 -eq $? || _lt_function_replace_fail=:
29481 if test x"$lt_shell_append" = xyes; then
29482 sed -e '/^func_append ()$/,/^} # func_append /c\
29485 eval "${1}+=\\${2}"\
29486 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29487 && mv -f "$cfgfile.tmp" "$cfgfile" \
29488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29489 test 0 -eq $? || _lt_function_replace_fail=:
29492 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29493 func_append_quoted ()\
29495 \ func_quote_for_eval "${2}"\
29496 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29497 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29498 && mv -f "$cfgfile.tmp" "$cfgfile" \
29499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29500 test 0 -eq $? || _lt_function_replace_fail=:
29503 # Save a `func_append' function call where possible by direct use of '+='
29504 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29505 && mv -f "$cfgfile.tmp" "$cfgfile" \
29506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29507 test 0 -eq $? || _lt_function_replace_fail=:
29509 # Save a `func_append' function call even when '+=' is not available
29510 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
29511 && mv -f "$cfgfile.tmp" "$cfgfile" \
29512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29513 test 0 -eq $? || _lt_function_replace_fail=:
29516 if test x"$_lt_function_replace_fail" = x":"; then
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
29518 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
29522 mv -f "$cfgfile" "$ofile" ||
29523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29534 ac_clean_files=$ac_clean_files_save
29536 test $ac_write_fail = 0 ||
29537 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29540 # configure is writing to config.log, and then calls config.status.
29541 # config.status does its own redirection, appending to config.log.
29542 # Unfortunately, on DOS this fails, as config.log is still kept open
29543 # by configure, so config.status won't be able to write to it; its
29544 # output is simply discarded. So we exec the FD to /dev/null,
29545 # effectively closing config.log, so it can be properly (re)opened and
29546 # appended to by config.status. When coming back to configure, we
29547 # need to make the FD available again.
29548 if test "$no_create" != yes; then
29550 ac_config_status_args=
29551 test "$silent" = yes &&
29552 ac_config_status_args="$ac_config_status_args --quiet"
29554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29557 # would make configure fail if this is the last instruction.
29558 $ac_cs_success || as_fn_exit 1
29560 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29562 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}