2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for c-ares 1.11.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.11.0'
828 PACKAGE_STRING='c-ares 1.11.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 enable_option_checking=no
870 ac_subst_vars='am__EXEEXT_FALSE
877 CFLAG_CARES_SYMBOL_HIDING
878 DOING_CARES_SYMBOL_HIDING_FALSE
879 DOING_CARES_SYMBOL_HIDING_TRUE
881 DOING_NATIVE_WINDOWS_FALSE
882 DOING_NATIVE_WINDOWS_TRUE
885 CPPFLAG_CARES_STATICLIB
886 USE_CPPFLAG_CARES_STATICLIB_FALSE
887 USE_CPPFLAG_CARES_STATICLIB_TRUE
888 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
889 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
890 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
891 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
892 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
893 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
931 INSTALL_STRIP_PROGRAM
963 CODE_COVERAGE_LDFLAGS
968 CODE_COVERAGE_ENABLED
969 CODE_COVERAGE_ENABLED_FALSE
970 CODE_COVERAGE_ENABLED_TRUE
980 MAINTAINER_MODE_FALSE
1010 program_transform_name
1023 enable_option_checking
1024 enable_maintainer_mode
1031 enable_symbol_hiding
1032 enable_expose_statics
1034 enable_code_coverage
1035 enable_dependency_tracking
1049 ac_precious_vars='build_alias
1058 LT_SYS_LIBRARY_PATH'
1059 ac_subdirs_all='test'
1061 # Initialize some variables set by options.
1063 ac_init_version=false
1064 ac_unrecognized_opts=
1065 ac_unrecognized_sep=
1066 # The variables have the same names as the options, with
1067 # dashes changed to underlines.
1068 cache_file=/dev/null
1075 program_transform_name=s,x,x,
1083 # Installation directory options.
1084 # These are left unexpanded so users can "make install exec_prefix=/foo"
1085 # and all the variables that are supposed to be based on exec_prefix
1086 # by default will actually change.
1087 # Use braces instead of parens because sh, perl, etc. also accept them.
1088 # (The list follows the same order as the GNU Coding Standards.)
1089 bindir='${exec_prefix}/bin'
1090 sbindir='${exec_prefix}/sbin'
1091 libexecdir='${exec_prefix}/libexec'
1092 datarootdir='${prefix}/share'
1093 datadir='${datarootdir}'
1094 sysconfdir='${prefix}/etc'
1095 sharedstatedir='${prefix}/com'
1096 localstatedir='${prefix}/var'
1097 runstatedir='${localstatedir}/run'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1101 infodir='${datarootdir}/info'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1114 # If the previous option needs an argument, assign it.
1115 if test -n "$ac_prev"; then
1116 eval $ac_prev=\$ac_option
1122 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127 # Accept the important Cygnus configure options, so we can diagnose typos.
1129 case $ac_dashdash$ac_option in
1133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1136 bindir=$ac_optarg ;;
1138 -build | --build | --buil | --bui | --bu)
1139 ac_prev=build_alias ;;
1140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1141 build_alias=$ac_optarg ;;
1143 -cache-file | --cache-file | --cache-fil | --cache-fi \
1144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1145 ac_prev=cache_file ;;
1146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1148 cache_file=$ac_optarg ;;
1150 --config-cache | -C)
1151 cache_file=config.cache ;;
1153 -datadir | --datadir | --datadi | --datad)
1155 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1156 datadir=$ac_optarg ;;
1158 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1159 | --dataroo | --dataro | --datar)
1160 ac_prev=datarootdir ;;
1161 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1162 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1163 datarootdir=$ac_optarg ;;
1165 -disable-* | --disable-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid feature name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1174 "enable_$ac_useropt"
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1179 eval enable_$ac_useropt=no ;;
1181 -docdir | --docdir | --docdi | --doc | --do)
1183 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1184 docdir=$ac_optarg ;;
1186 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1188 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1189 dvidir=$ac_optarg ;;
1191 -enable-* | --enable-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid feature name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "enable_$ac_useropt"
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval enable_$ac_useropt=\$ac_optarg ;;
1207 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1208 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1209 | --exec | --exe | --ex)
1210 ac_prev=exec_prefix ;;
1211 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1212 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1213 | --exec=* | --exe=* | --ex=*)
1214 exec_prefix=$ac_optarg ;;
1216 -gas | --gas | --ga | --g)
1217 # Obsolete; use --with-gas.
1220 -help | --help | --hel | --he | -h)
1221 ac_init_help=long ;;
1222 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1223 ac_init_help=recursive ;;
1224 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1225 ac_init_help=short ;;
1227 -host | --host | --hos | --ho)
1228 ac_prev=host_alias ;;
1229 -host=* | --host=* | --hos=* | --ho=*)
1230 host_alias=$ac_optarg ;;
1232 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236 htmldir=$ac_optarg ;;
1238 -includedir | --includedir | --includedi | --included | --include \
1239 | --includ | --inclu | --incl | --inc)
1240 ac_prev=includedir ;;
1241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1242 | --includ=* | --inclu=* | --incl=* | --inc=*)
1243 includedir=$ac_optarg ;;
1245 -infodir | --infodir | --infodi | --infod | --info | --inf)
1247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1248 infodir=$ac_optarg ;;
1250 -libdir | --libdir | --libdi | --libd)
1252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1253 libdir=$ac_optarg ;;
1255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1256 | --libexe | --libex | --libe)
1257 ac_prev=libexecdir ;;
1258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1259 | --libexe=* | --libex=* | --libe=*)
1260 libexecdir=$ac_optarg ;;
1262 -localedir | --localedir | --localedi | --localed | --locale)
1263 ac_prev=localedir ;;
1264 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1265 localedir=$ac_optarg ;;
1267 -localstatedir | --localstatedir | --localstatedi | --localstated \
1268 | --localstate | --localstat | --localsta | --localst | --locals)
1269 ac_prev=localstatedir ;;
1270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1271 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1272 localstatedir=$ac_optarg ;;
1274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1277 mandir=$ac_optarg ;;
1279 -nfp | --nfp | --nf)
1280 # Obsolete; use --without-fp.
1283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1284 | --no-cr | --no-c | -n)
1287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1293 | --oldin | --oldi | --old | --ol | --o)
1294 ac_prev=oldincludedir ;;
1295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1298 oldincludedir=$ac_optarg ;;
1300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1303 prefix=$ac_optarg ;;
1305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1306 | --program-pre | --program-pr | --program-p)
1307 ac_prev=program_prefix ;;
1308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1310 program_prefix=$ac_optarg ;;
1312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1313 | --program-suf | --program-su | --program-s)
1314 ac_prev=program_suffix ;;
1315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1317 program_suffix=$ac_optarg ;;
1319 -program-transform-name | --program-transform-name \
1320 | --program-transform-nam | --program-transform-na \
1321 | --program-transform-n | --program-transform- \
1322 | --program-transform | --program-transfor \
1323 | --program-transfo | --program-transf \
1324 | --program-trans | --program-tran \
1325 | --progr-tra | --program-tr | --program-t)
1326 ac_prev=program_transform_name ;;
1327 -program-transform-name=* | --program-transform-name=* \
1328 | --program-transform-nam=* | --program-transform-na=* \
1329 | --program-transform-n=* | --program-transform-=* \
1330 | --program-transform=* | --program-transfor=* \
1331 | --program-transfo=* | --program-transf=* \
1332 | --program-trans=* | --program-tran=* \
1333 | --progr-tra=* | --program-tr=* | --program-t=*)
1334 program_transform_name=$ac_optarg ;;
1336 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1339 pdfdir=$ac_optarg ;;
1341 -psdir | --psdir | --psdi | --psd | --ps)
1343 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347 | -silent | --silent | --silen | --sile | --sil)
1350 -runstatedir | --runstatedir | --runstatedi | --runstated \
1351 | --runstate | --runstat | --runsta | --runst | --runs \
1352 | --run | --ru | --r)
1353 ac_prev=runstatedir ;;
1354 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1355 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1356 | --run=* | --ru=* | --r=*)
1357 runstatedir=$ac_optarg ;;
1359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1363 sbindir=$ac_optarg ;;
1365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1367 | --sharedst | --shareds | --shared | --share | --shar \
1369 ac_prev=sharedstatedir ;;
1370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1374 sharedstatedir=$ac_optarg ;;
1376 -site | --site | --sit)
1378 -site=* | --site=* | --sit=*)
1381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1384 srcdir=$ac_optarg ;;
1386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1387 | --syscon | --sysco | --sysc | --sys | --sy)
1388 ac_prev=sysconfdir ;;
1389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1391 sysconfdir=$ac_optarg ;;
1393 -target | --target | --targe | --targ | --tar | --ta | --t)
1394 ac_prev=target_alias ;;
1395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1396 target_alias=$ac_optarg ;;
1398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1401 -version | --version | --versio | --versi | --vers | -V)
1402 ac_init_version=: ;;
1405 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1418 eval with_$ac_useropt=\$ac_optarg ;;
1420 -without-* | --without-*)
1421 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1422 # Reject names that are not valid shell variable names.
1423 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424 as_fn_error $? "invalid package name: $ac_useropt"
1425 ac_useropt_orig=$ac_useropt
1426 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427 case $ac_user_opts in
1431 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1432 ac_unrecognized_sep=', ';;
1434 eval with_$ac_useropt=no ;;
1437 # Obsolete; use --with-x.
1440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441 | --x-incl | --x-inc | --x-in | --x-i)
1442 ac_prev=x_includes ;;
1443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445 x_includes=$ac_optarg ;;
1447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449 ac_prev=x_libraries ;;
1450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452 x_libraries=$ac_optarg ;;
1454 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1455 Try \`$0 --help' for more information"
1459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1460 # Reject names that are not valid shell variable names.
1461 case $ac_envvar in #(
1462 '' | [0-9]* | *[!_$as_cr_alnum]* )
1463 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1465 eval $ac_envvar=\$ac_optarg
1466 export $ac_envvar ;;
1469 # FIXME: should be removed in autoconf 3.0.
1470 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1479 if test -n "$ac_prev"; then
1480 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481 as_fn_error $? "missing argument to $ac_option"
1484 if test -n "$ac_unrecognized_opts"; then
1485 case $enable_option_checking in
1487 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1488 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1492 # Check all directory arguments for consistency.
1493 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1494 datadir sysconfdir sharedstatedir localstatedir includedir \
1495 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1496 libdir localedir mandir runstatedir
1498 eval ac_val=\$$ac_var
1499 # Remove trailing slashes.
1502 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1503 eval $ac_var=\$ac_val;;
1505 # Be sure to have absolute directory names.
1507 [\\/$]* | ?:[\\/]* ) continue;;
1508 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1510 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1513 # There might be people who depend on the old broken behavior: `$host'
1514 # used to hold the argument of --host etc.
1515 # FIXME: To remove some day.
1518 target=$target_alias
1520 # FIXME: To remove some day.
1521 if test "x$host_alias" != x; then
1522 if test "x$build_alias" = x; then
1523 cross_compiling=maybe
1524 elif test "x$build_alias" != "x$host_alias"; then
1530 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1532 test "$silent" = yes && exec 6>/dev/null
1535 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1536 ac_ls_di=`ls -di .` &&
1537 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1538 as_fn_error $? "working directory cannot be determined"
1539 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1540 as_fn_error $? "pwd does not report name of working directory"
1543 # Find the source files, if location was not specified.
1544 if test -z "$srcdir"; then
1545 ac_srcdir_defaulted=yes
1546 # Try the directory containing this script, then the parent directory.
1547 ac_confdir=`$as_dirname -- "$as_myself" ||
1548 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1549 X"$as_myself" : 'X\(//\)[^/]' \| \
1550 X"$as_myself" : 'X\(//\)$' \| \
1551 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1552 $as_echo X"$as_myself" |
1553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1571 if test ! -r "$srcdir/$ac_unique_file"; then
1575 ac_srcdir_defaulted=no
1577 if test ! -r "$srcdir/$ac_unique_file"; then
1578 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1579 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1581 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1583 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1585 # When building in place, set srcdir=.
1586 if test "$ac_abs_confdir" = "$ac_pwd"; then
1589 # Remove unnecessary trailing slashes from srcdir.
1590 # Double slashes in file names in object file debugging info
1591 # mess up M-x gdb in Emacs.
1593 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1595 for ac_var in $ac_precious_vars; do
1596 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1597 eval ac_env_${ac_var}_value=\$${ac_var}
1598 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1599 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1603 # Report the --help message.
1605 if test "$ac_init_help" = "long"; then
1606 # Omit some internal or obsolete options to make the list less imposing.
1607 # This message is too long to be a string in the A/UX 3.1 sh.
1609 \`configure' configures c-ares 1.11.0 to adapt to many kinds of systems.
1611 Usage: $0 [OPTION]... [VAR=VALUE]...
1613 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1614 VAR=VALUE. See below for descriptions of some of the useful variables.
1616 Defaults for the options are specified in brackets.
1619 -h, --help display this help and exit
1620 --help=short display options specific to this package
1621 --help=recursive display the short help of all the included packages
1622 -V, --version display version information and exit
1623 -q, --quiet, --silent do not print \`checking ...' messages
1624 --cache-file=FILE cache test results in FILE [disabled]
1625 -C, --config-cache alias for \`--cache-file=config.cache'
1626 -n, --no-create do not create output files
1627 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1629 Installation directories:
1630 --prefix=PREFIX install architecture-independent files in PREFIX
1631 [$ac_default_prefix]
1632 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1635 By default, \`make install' will install all the files in
1636 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1637 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1638 for instance \`--prefix=\$HOME'.
1640 For better control, use the options below.
1642 Fine tuning of the installation directories:
1643 --bindir=DIR user executables [EPREFIX/bin]
1644 --sbindir=DIR system admin executables [EPREFIX/sbin]
1645 --libexecdir=DIR program executables [EPREFIX/libexec]
1646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1649 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1650 --libdir=DIR object code libraries [EPREFIX/lib]
1651 --includedir=DIR C header files [PREFIX/include]
1652 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1653 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1654 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1655 --infodir=DIR info documentation [DATAROOTDIR/info]
1656 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1657 --mandir=DIR man documentation [DATAROOTDIR/man]
1658 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares]
1659 --htmldir=DIR html documentation [DOCDIR]
1660 --dvidir=DIR dvi documentation [DOCDIR]
1661 --pdfdir=DIR pdf documentation [DOCDIR]
1662 --psdir=DIR ps documentation [DOCDIR]
1668 --program-prefix=PREFIX prepend PREFIX to installed program names
1669 --program-suffix=SUFFIX append SUFFIX to installed program names
1670 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1673 --build=BUILD configure for building on BUILD [guessed]
1674 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1678 if test -n "$ac_init_help"; then
1679 case $ac_init_help in
1680 short | recursive ) echo "Configuration of c-ares 1.11.0:";;
1685 --disable-option-checking ignore unrecognized --enable/--with options
1686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1688 --enable-maintainer-mode
1689 enable make rules and dependencies not useful (and
1690 sometimes confusing) to the casual installer
1691 --enable-silent-rules less verbose build output (undo: "make V=1")
1692 --disable-silent-rules verbose build output (undo: "make V=0")
1693 --enable-debug Enable debug build options
1694 --disable-debug Disable debug build options
1695 --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1696 --disable-optimize Disable compiler optimizations
1697 --enable-warnings Enable strict compiler warnings
1698 --disable-warnings Disable strict compiler warnings
1699 --enable-werror Enable compiler warnings as errors
1700 --disable-werror Disable compiler warnings as errors
1701 --enable-curldebug Enable curl debug memory tracking
1702 --disable-curldebug Disable curl debug memory tracking
1703 --enable-symbol-hiding Enable hiding of library internal symbols
1704 --disable-symbol-hiding Disable hiding of library internal symbols
1705 --enable-expose-statics Enable exposure of internal static functions for
1707 --disable-expose-statics
1708 Disable exposure of internal static functions for
1710 --enable-code-coverage Whether to enable code coverage support
1711 --enable-dependency-tracking
1712 do not reject slow dependency extractors
1713 --disable-dependency-tracking
1714 speeds up one-time build
1715 --disable-largefile omit support for large files
1716 --enable-shared[=PKGS] build shared libraries [default=yes]
1717 --enable-static[=PKGS] build static libraries [default=yes]
1718 --enable-fast-install[=PKGS]
1719 optimize for fast installation [default=yes]
1720 --disable-libtool-lock avoid locking (might break parallel builds)
1721 --enable-libgcc use libgcc when linking
1722 --enable-nonblocking Enable non-blocking communications
1723 --disable-nonblocking Disable non-blocking communications
1726 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1727 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1728 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1729 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1731 --with-aix-soname=aix|svr4|both
1732 shared library versioning (aka "SONAME") variant to
1733 provide on AIX, [default=aix].
1734 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1735 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1736 compiler's sysroot if not specified).
1737 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1749 User-defined run-time library search path.
1751 Use these variables to override the choices made by `configure' or to help
1752 it to find libraries and programs with nonstandard names/locations.
1754 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1759 if test "$ac_init_help" = "recursive"; then
1760 # If there are subdirs, report their specific --help.
1761 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1762 test -d "$ac_dir" ||
1763 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1771 # A ".." for each directory in $ac_dir_suffix.
1772 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1773 case $ac_top_builddir_sub in
1774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1778 ac_abs_top_builddir=$ac_pwd
1779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1780 # for backward compatibility:
1781 ac_top_builddir=$ac_top_build_prefix
1784 .) # We are building in place.
1786 ac_top_srcdir=$ac_top_builddir_sub
1787 ac_abs_top_srcdir=$ac_pwd ;;
1788 [\\/]* | ?:[\\/]* ) # Absolute name.
1789 ac_srcdir=$srcdir$ac_dir_suffix;
1790 ac_top_srcdir=$srcdir
1791 ac_abs_top_srcdir=$srcdir ;;
1793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1794 ac_top_srcdir=$ac_top_build_prefix$srcdir
1795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1799 cd "$ac_dir" || { ac_status=$?; continue; }
1800 # Check for guested configure.
1801 if test -f "$ac_srcdir/configure.gnu"; then
1803 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1804 elif test -f "$ac_srcdir/configure"; then
1806 $SHELL "$ac_srcdir/configure" --help=recursive
1808 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1810 cd "$ac_pwd" || { ac_status=$?; break; }
1814 test -n "$ac_init_help" && exit $ac_status
1815 if $ac_init_version; then
1817 c-ares configure 1.11.0
1818 generated by GNU Autoconf 2.69
1820 Copyright (C) 2012 Free Software Foundation, Inc.
1821 This configure script is free software; the Free Software Foundation
1822 gives unlimited permission to copy, distribute and modify it.
1827 ## ------------------------ ##
1828 ## Autoconf initialization. ##
1829 ## ------------------------ ##
1831 # ac_fn_c_try_compile LINENO
1832 # --------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_c_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1953 # -------------------------------------------------------
1954 # Tests whether HEADER exists and can be compiled using the include files in
1955 # INCLUDES, setting the cache variable VAR accordingly.
1956 ac_fn_c_check_header_compile ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 } # ac_fn_c_check_header_compile
1983 # ac_fn_c_try_run LINENO
1984 # ----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986 # that executables *can* be run.
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { { ac_try="$ac_link"
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001 { { case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_try") 2>&5
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; }; }; then :
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_retval=$ac_status
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2025 # ac_fn_c_check_func LINENO FUNC VAR
2026 # ----------------------------------
2027 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2028 ac_fn_c_check_func ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2039 #define $2 innocuous_$2
2041 # include <limits.h>
2043 # include <assert.h>
2050 #if defined __stub_$2 || defined __stub___$2
2061 if ac_fn_c_try_link "$LINENO"; then :
2066 rm -f core conftest.err conftest.$ac_objext \
2067 conftest$ac_exeext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_func
2076 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2079 # the include files in INCLUDES and setting the cache variable VAR
2081 ac_fn_c_check_header_mongrel ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 if eval \${$3+:} false; then :
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2094 # Is the header compilable?
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2096 $as_echo_n "checking $2 usability... " >&6; }
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_header_compiler=yes
2105 ac_header_compiler=no
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2109 $as_echo "$ac_header_compiler" >&6; }
2111 # Is the header present?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2113 $as_echo_n "checking $2 presence... " >&6; }
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 if ac_fn_c_try_cpp "$LINENO"; then :
2119 ac_header_preproc=yes
2121 ac_header_preproc=no
2123 rm -f conftest.err conftest.i conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2125 $as_echo "$ac_header_preproc" >&6; }
2127 # So? What about this header?
2128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2131 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2133 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2137 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2139 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2141 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2143 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146 ( $as_echo "## ------------------------------------------------------------------------------- ##
2147 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2148 ## ------------------------------------------------------------------------------- ##"
2149 ) | sed "s/^/$as_me: WARNING: /" >&2
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2153 $as_echo_n "checking for $2... " >&6; }
2154 if eval \${$3+:} false; then :
2155 $as_echo_n "(cached) " >&6
2157 eval "$3=\$ac_header_compiler"
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } # ac_fn_c_check_header_mongrel
2167 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2168 # -------------------------------------------
2169 # Tests whether TYPE exists after having included INCLUDES, setting cache
2170 # variable VAR accordingly.
2171 ac_fn_c_check_type ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2203 if ac_fn_c_try_compile "$LINENO"; then :
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_c_check_type
2219 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2220 # --------------------------------------------
2221 # Tries to find the compile-time value of EXPR in a program that includes
2222 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2224 ac_fn_c_compute_int ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if test "$cross_compiling" = yes; then
2228 # Depending upon the size, compute the lo and hi bounds.
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2234 static int test_array [1 - 2 * !(($2) >= 0)];
2236 return test_array [0];
2242 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2252 return test_array [0];
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 ac_hi=$ac_mid; break
2261 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2262 if test $ac_lo -le $ac_mid; then
2266 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2276 static int test_array [1 - 2 * !(($2) < 0)];
2278 return test_array [0];
2284 if ac_fn_c_try_compile "$LINENO"; then :
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2292 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2294 return test_array [0];
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 ac_lo=$ac_mid; break
2303 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2304 if test $ac_mid -le $ac_hi; then
2308 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 # Binary search between lo and hi bounds.
2319 while test "x$ac_lo" != "x$ac_hi"; do
2320 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2328 return test_array [0];
2334 if ac_fn_c_try_compile "$LINENO"; then :
2337 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2349 static long int longval () { return $2; }
2350 static unsigned long int ulongval () { return $2; }
2356 FILE *f = fopen ("conftest.val", "w");
2361 long int i = longval ();
2364 fprintf (f, "%ld", i);
2368 unsigned long int i = ulongval ();
2371 fprintf (f, "%lu", i);
2373 /* Do not output a trailing newline, as this causes \r\n confusion
2374 on some platforms. */
2375 return ferror (f) || fclose (f) != 0;
2381 if ac_fn_c_try_run "$LINENO"; then :
2382 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2387 conftest.$ac_objext conftest.beam conftest.$ac_ext
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 as_fn_set_status $ac_retval
2394 } # ac_fn_c_compute_int
2396 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2397 # ----------------------------------------------------
2398 # Tries to find if the field MEMBER exists in type AGGR, after including
2399 # INCLUDES, setting cache variable VAR accordingly.
2400 ac_fn_c_check_member ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2404 $as_echo_n "checking for $2.$3... " >&6; }
2405 if eval \${$4+:} false; then :
2406 $as_echo_n "(cached) " >&6
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2420 if ac_fn_c_try_compile "$LINENO"; then :
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2429 if (sizeof ac_aggr.$3)
2435 if ac_fn_c_try_compile "$LINENO"; then :
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 $as_echo "$ac_res" >&6; }
2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2449 } # ac_fn_c_check_member
2450 cat >config.log <<_ACEOF
2451 This file contains any messages produced by compilers while
2452 running configure, to aid debugging if configure makes a mistake.
2454 It was created by c-ares $as_me 1.11.0, which was
2455 generated by GNU Autoconf 2.69. Invocation command line was
2467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 $as_echo "PATH: $as_dir"
2507 # Keep a trace of the command line.
2508 # Strip out --no-create and --no-recursion so they do not pile up.
2509 # Strip out --silent because we don't want to record it for future runs.
2510 # Also quote any args containing shell meta-characters.
2511 # Make two passes to allow for proper duplicate-argument suppression.
2515 ac_must_keep_next=false
2521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2523 | -silent | --silent | --silen | --sile | --sil)
2526 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2529 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2531 as_fn_append ac_configure_args1 " '$ac_arg'"
2532 if test $ac_must_keep_next = true; then
2533 ac_must_keep_next=false # Got value, back to normal.
2536 *=* | --config-cache | -C | -disable-* | --disable-* \
2537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2539 | -with-* | --with-* | -without-* | --without-* | --x)
2540 case "$ac_configure_args0 " in
2541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2544 -* ) ac_must_keep_next=true ;;
2547 as_fn_append ac_configure_args " '$ac_arg'"
2552 { ac_configure_args0=; unset ac_configure_args0;}
2553 { ac_configure_args1=; unset ac_configure_args1;}
2555 # When interrupted or exit'd, cleanup temporary files, and complete
2556 # config.log. We remove comments because anyway the quotes in there
2557 # would cause problems or look ugly.
2558 # WARNING: Use '\'' to represent an apostrophe within the trap.
2559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2560 trap 'exit_status=$?
2561 # Save into config.log some information that might help in debugging.
2565 $as_echo "## ---------------- ##
2566 ## Cache variables. ##
2567 ## ---------------- ##"
2569 # The following way of writing the cache mishandles newlines in values,
2571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2572 eval ac_val=\$$ac_var
2576 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2580 _ | IFS | as_nl) ;; #(
2581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2582 *) { eval $ac_var=; unset $ac_var;} ;;
2587 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2588 *${as_nl}ac_space=\ *)
2590 "s/'\''/'\''\\\\'\'''\''/g;
2591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2601 $as_echo "## ----------------- ##
2602 ## Output variables. ##
2603 ## ----------------- ##"
2605 for ac_var in $ac_subst_vars
2607 eval ac_val=\$$ac_var
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611 $as_echo "$ac_var='\''$ac_val'\''"
2615 if test -n "$ac_subst_files"; then
2616 $as_echo "## ------------------- ##
2617 ## File substitutions. ##
2618 ## ------------------- ##"
2620 for ac_var in $ac_subst_files
2622 eval ac_val=\$$ac_var
2624 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2626 $as_echo "$ac_var='\''$ac_val'\''"
2631 if test -s confdefs.h; then
2632 $as_echo "## ----------- ##
2639 test "$ac_signal" != 0 &&
2640 $as_echo "$as_me: caught signal $ac_signal"
2641 $as_echo "$as_me: exit $exit_status"
2643 rm -f core *.core core.conftest.* &&
2644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2647 for ac_signal in 1 2 13 15; do
2648 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2653 rm -f -r conftest* confdefs.h
2655 $as_echo "/* confdefs.h */" > confdefs.h
2657 # Predefined preprocessor variables.
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_NAME "$PACKAGE_NAME"
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_STRING "$PACKAGE_STRING"
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_URL "$PACKAGE_URL"
2684 # Let the site file select an alternate cache file if it wants to.
2685 # Prefer an explicitly selected file to automatically selected ones.
2688 if test -n "$CONFIG_SITE"; then
2689 # We do not want a PATH search for config.site.
2690 case $CONFIG_SITE in #((
2691 -*) ac_site_file1=./$CONFIG_SITE;;
2692 */*) ac_site_file1=$CONFIG_SITE;;
2693 *) ac_site_file1=./$CONFIG_SITE;;
2695 elif test "x$prefix" != xNONE; then
2696 ac_site_file1=$prefix/share/config.site
2697 ac_site_file2=$prefix/etc/config.site
2699 ac_site_file1=$ac_default_prefix/share/config.site
2700 ac_site_file2=$ac_default_prefix/etc/config.site
2702 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2704 test "x$ac_site_file" = xNONE && continue
2705 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2707 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2708 sed 's/^/| /' "$ac_site_file" >&5
2710 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 as_fn_error $? "failed to load site script $ac_site_file
2713 See \`config.log' for more details" "$LINENO" 5; }
2717 if test -r "$cache_file"; then
2718 # Some versions of bash will fail to source /dev/null (special files
2719 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2720 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2722 $as_echo "$as_me: loading cache $cache_file" >&6;}
2724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2725 *) . "./$cache_file";;
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2730 $as_echo "$as_me: creating cache $cache_file" >&6;}
2734 # Check that the precious variables saved in the cache have kept the same
2736 ac_cache_corrupted=false
2737 for ac_var in $ac_precious_vars; do
2738 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2739 eval ac_new_set=\$ac_env_${ac_var}_set
2740 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2741 eval ac_new_val=\$ac_env_${ac_var}_value
2742 case $ac_old_set,$ac_new_set in
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2745 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2746 ac_cache_corrupted=: ;;
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2749 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2750 ac_cache_corrupted=: ;;
2753 if test "x$ac_old_val" != "x$ac_new_val"; then
2754 # differences in whitespace do not lead to failure.
2755 ac_old_val_w=`echo x $ac_old_val`
2756 ac_new_val_w=`echo x $ac_new_val`
2757 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2759 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2760 ac_cache_corrupted=:
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2763 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2764 eval $ac_var=\$ac_old_val
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2767 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2769 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2772 # Pass precious variables to config.status.
2773 if test "$ac_new_set" = set; then
2775 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2776 *) ac_arg=$ac_var=$ac_new_val ;;
2778 case " $ac_configure_args " in
2779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2780 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2784 if $ac_cache_corrupted; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2788 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2789 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2791 ## -------------------- ##
2792 ## Main body of script. ##
2793 ## -------------------- ##
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 # using cares-override.m4
2811 ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2816 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2817 # Check whether --enable-maintainer-mode was given.
2818 if test "${enable_maintainer_mode+set}" = set; then :
2819 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2821 USE_MAINTAINER_MODE=no
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2825 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2826 if test $USE_MAINTAINER_MODE = yes; then
2827 MAINTAINER_MODE_TRUE=
2828 MAINTAINER_MODE_FALSE='#'
2830 MAINTAINER_MODE_TRUE='#'
2831 MAINTAINER_MODE_FALSE=
2834 MAINT=$MAINTAINER_MODE_TRUE
2837 # Check whether --enable-silent-rules was given.
2838 if test "${enable_silent_rules+set}" = set; then :
2839 enableval=$enable_silent_rules;
2842 case $enable_silent_rules in # (((
2843 yes) AM_DEFAULT_VERBOSITY=0;;
2844 no) AM_DEFAULT_VERBOSITY=1;;
2845 *) AM_DEFAULT_VERBOSITY=0;;
2847 am_make=${MAKE-make}
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2849 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2850 if ${am_cv_make_support_nested_variables+:} false; then :
2851 $as_echo_n "(cached) " >&6
2853 if $as_echo 'TRUE=$(BAR$(V))
2859 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2860 am_cv_make_support_nested_variables=yes
2862 am_cv_make_support_nested_variables=no
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2866 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2867 if test $am_cv_make_support_nested_variables = yes; then
2869 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2871 AM_V=$AM_DEFAULT_VERBOSITY
2872 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2879 $as_echo_n "checking whether to enable debug build options... " >&6; }
2880 OPT_DEBUG_BUILD="default"
2881 # Check whether --enable-debug was given.
2882 if test "${enable_debug+set}" = set; then :
2883 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2886 case "$OPT_DEBUG_BUILD" in
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2898 $as_echo "$want_debug" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2902 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2903 OPT_COMPILER_OPTIMIZE="default"
2904 # Check whether --enable-optimize was given.
2905 if test "${enable_optimize+set}" = set; then :
2906 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2909 case "$OPT_COMPILER_OPTIMIZE" in
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2916 if test "$want_debug" = "yes"; then
2917 want_optimize="assume_no"
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2919 $as_echo "not specified (assuming no)" >&6; }
2921 want_optimize="assume_yes"
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2923 $as_echo "not specified (assuming yes)" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2929 $as_echo "yes" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2935 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2936 OPT_COMPILER_WARNINGS="default"
2937 # Check whether --enable-warnings was given.
2938 if test "${enable_warnings+set}" = set; then :
2939 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2942 case "$OPT_COMPILER_WARNINGS" in
2947 want_warnings="$want_debug"
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2954 $as_echo "$want_warnings" >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2958 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2959 OPT_COMPILER_WERROR="default"
2960 # Check whether --enable-werror was given.
2961 if test "${enable_werror+set}" = set; then :
2962 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2965 case "$OPT_COMPILER_WERROR" in
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2977 $as_echo "$want_werror" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2981 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2982 OPT_CURLDEBUG_BUILD="default"
2983 # Check whether --enable-curldebug was given.
2984 if test "${enable_curldebug+set}" = set; then :
2985 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2988 case "$OPT_CURLDEBUG_BUILD" in
2996 want_curldebug="yes"
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
3000 $as_echo "$want_curldebug" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3004 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3005 OPT_SYMBOL_HIDING="default"
3006 # Check whether --enable-symbol-hiding was given.
3007 if test "${enable_symbol_hiding+set}" = set; then :
3008 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3011 case "$OPT_SYMBOL_HIDING" in
3013 want_symbol_hiding="no"
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3018 want_symbol_hiding="yes"
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3020 $as_echo "yes" >&6; }
3023 want_symbol_hiding="yes"
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025 $as_echo "yes" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
3031 $as_echo_n "checking whether to expose internal static functions for testing... " >&6; }
3032 OPT_EXPOSE_STATICS="default"
3033 # Check whether --enable-expose-statics was given.
3034 if test "${enable_expose_statics+set}" = set; then :
3035 enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
3038 case "$OPT_EXPOSE_STATICS" in
3040 want_expose_statics="no"
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3045 want_expose_statics="no"
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3050 want_expose_statics="yes"
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3055 if test "$want_expose_statics" = "yes"; then
3057 cat >>confdefs.h <<_ACEOF
3058 #define CARES_EXPOSE_STATICS 1
3065 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3068 if test -z "$xc_configure_preamble_result"; then
3069 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3073 # Check that 'PATH_SEPARATOR' has already been set.
3076 if test -z "$xc_PATH_SEPARATOR"; then
3077 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3079 if test -z "$PATH_SEPARATOR"; then
3080 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3083 $as_echo_n "checking for path separator... " >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3085 $as_echo "$PATH_SEPARATOR" >&6; }
3086 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3088 $as_echo_n "checking for initial path separator... " >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3090 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3091 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3095 # Extract the first word of "sed", so it can be a program name with args.
3096 set dummy sed; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_path_SED+:} false; then :
3100 $as_echo_n "(cached) " >&6
3104 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3109 for as_dir in $as_dummy
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3128 if test -n "$SED"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3130 $as_echo "$SED" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3137 if test -z "$SED" || test "$SED" = "not_found"; then
3138 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3142 # Extract the first word of "grep", so it can be a program name with args.
3143 set dummy grep; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_path_GREP+:} false; then :
3147 $as_echo_n "(cached) " >&6
3151 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3156 for as_dir in $as_dummy
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3174 GREP=$ac_cv_path_GREP
3175 if test -n "$GREP"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3177 $as_echo "$GREP" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3184 if test -z "$GREP" || test "$GREP" = "not_found"; then
3185 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3189 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3191 $as_echo_n "checking for egrep... " >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3194 $as_echo "$EGREP" >&6; }
3196 # Extract the first word of "egrep", so it can be a program name with args.
3197 set dummy egrep; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_path_EGREP+:} false; then :
3201 $as_echo_n "(cached) " >&6
3205 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3210 for as_dir in $as_dummy
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3228 EGREP=$ac_cv_path_EGREP
3229 if test -n "$EGREP"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3231 $as_echo "$EGREP" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3239 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3240 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}ar; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_path_AR+:} false; then :
3250 $as_echo_n "(cached) " >&6
3254 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3259 for as_dir in $as_dummy
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 if test -n "$AR"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3279 $as_echo "$AR" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3287 if test -z "$ac_cv_path_AR"; then
3289 # Extract the first word of "ar", so it can be a program name with args.
3290 set dummy ar; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_path_ac_pt_AR+:} false; then :
3294 $as_echo_n "(cached) " >&6
3298 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3303 for as_dir in $as_dummy
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 ac_pt_AR=$ac_cv_path_ac_pt_AR
3321 if test -n "$ac_pt_AR"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3323 $as_echo "$ac_pt_AR" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3329 if test "x$ac_pt_AR" = x; then
3332 case $cross_compiling:$ac_tool_warned in
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3344 if test -z "$AR" || test "$AR" = "not_found"; then
3345 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3350 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3351 if ${ac_cv_path_SED+:} false; then :
3352 $as_echo_n "(cached) " >&6
3354 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3355 for ac_i in 1 2 3 4 5 6 7; do
3356 ac_script="$ac_script$as_nl$ac_script"
3358 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3359 { ac_script=; unset ac_script;}
3360 if test -z "$SED"; then
3361 ac_path_SED_found=false
3362 # Loop through the user's path and test for each of PROGNAME-LIST
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in sed gsed; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3371 as_fn_executable_p "$ac_path_SED" || continue
3372 # Check for GNU ac_path_SED and select it if it is found.
3373 # Check for GNU $ac_path_SED
3374 case `"$ac_path_SED" --version 2>&1` in
3376 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3379 $as_echo_n 0123456789 >"conftest.in"
3382 cat "conftest.in" "conftest.in" >"conftest.tmp"
3383 mv "conftest.tmp" "conftest.in"
3384 cp "conftest.in" "conftest.nl"
3385 $as_echo '' >> "conftest.nl"
3386 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388 as_fn_arith $ac_count + 1 && ac_count=$as_val
3389 if test $ac_count -gt ${ac_path_SED_max-0}; then
3390 # Best one so far, save it but keep looking for a better one
3391 ac_cv_path_SED="$ac_path_SED"
3392 ac_path_SED_max=$ac_count
3394 # 10*(2^10) chars as input seems more than enough
3395 test $ac_count -gt 10 && break
3397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3400 $ac_path_SED_found && break 3
3405 if test -z "$ac_cv_path_SED"; then
3406 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3414 $as_echo "$ac_cv_path_SED" >&6; }
3415 SED="$ac_cv_path_SED"
3421 # allow to override gcov location
3423 # Check whether --with-gcov was given.
3424 if test "${with_gcov+set}" = set; then :
3425 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3427 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3432 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3433 # Check whether --enable-code-coverage was given.
3434 if test "${enable_code_coverage+set}" = set; then :
3435 enableval=$enable_code_coverage;
3437 enable_code_coverage=no
3441 if test x$enable_code_coverage = xyes; then
3442 CODE_COVERAGE_ENABLED_TRUE=
3443 CODE_COVERAGE_ENABLED_FALSE='#'
3445 CODE_COVERAGE_ENABLED_TRUE='#'
3446 CODE_COVERAGE_ENABLED_FALSE=
3449 CODE_COVERAGE_ENABLED=$enable_code_coverage
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3452 $as_echo "$enable_code_coverage" >&6; }
3454 if test "$enable_code_coverage" = "yes" ; then :
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_GCOV+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$GCOV"; then
3466 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 GCOV=$ac_cv_prog_GCOV
3486 if test -n "$GCOV"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3488 $as_echo "$GCOV" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_GCOV"; then
3498 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3499 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$ac_ct_GCOV"; then
3506 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3526 if test -n "$ac_ct_GCOV"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3528 $as_echo "$ac_ct_GCOV" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_GCOV" = x; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3546 GCOV="$ac_cv_prog_GCOV"
3549 if test "X$GCOV" = "X:"; then :
3550 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3554 if test "$GCC" = "no" ; then :
3556 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3560 # List of supported lcov versions.
3561 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
3563 # Extract the first word of "lcov", so it can be a program name with args.
3564 set dummy lcov; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_LCOV+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 if test -n "$LCOV"; then
3571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_prog_LCOV="lcov"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 LCOV=$ac_cv_prog_LCOV
3591 if test -n "$LCOV"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3593 $as_echo "$LCOV" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 # Extract the first word of "genhtml", so it can be a program name with args.
3601 set dummy genhtml; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if ${ac_cv_prog_GENHTML+:} false; then :
3605 $as_echo_n "(cached) " >&6
3607 if test -n "$GENHTML"; then
3608 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_GENHTML="genhtml"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 GENHTML=$ac_cv_prog_GENHTML
3628 if test -n "$GENHTML"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3630 $as_echo "$GENHTML" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3638 if test "$LCOV" ; then :
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
3641 $as_echo_n "checking for lcov version... " >&6; }
3642 if ${ax_cv_lcov_version+:} false; then :
3643 $as_echo_n "(cached) " >&6
3646 ax_cv_lcov_version=invalid
3647 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
3648 for lcov_check_version in $lcov_version_list; do
3649 if test "$lcov_version" = "$lcov_check_version"; then
3650 ax_cv_lcov_version="$lcov_check_version (ok)"
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
3656 $as_echo "$ax_cv_lcov_version" >&6; }
3660 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
3661 as_fn_error $? "$lcov_msg" "$LINENO" 5
3665 case $ax_cv_lcov_version in
3667 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
3668 as_fn_error $? "$lcov_msg" "$LINENO" 5
3673 if test -z "$GENHTML" ; then :
3675 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3679 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3680 CODE_COVERAGE_LDFLAGS="-lgcov"
3685 CODE_COVERAGE_RULES='
3689 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3690 # (Default: $(top_builddir))
3691 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3692 # by lcov for code coverage. (Default:
3693 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3694 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3695 # reports to be created. (Default:
3696 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3697 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3698 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
3699 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3700 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
3701 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3702 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3703 # instance. (Default: empty)
3704 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3706 # The generated report will be titled using the $(PACKAGE_NAME) and
3707 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
3708 # use the git-version-gen script, available online.
3710 # Optional variables
3711 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3712 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3713 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3714 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3715 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3716 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3717 CODE_COVERAGE_GENHTML_OPTIONS ?=
3718 CODE_COVERAGE_IGNORE_PATTERN ?=
3720 code_coverage_quiet = $(code_coverage_quiet_$(V))
3721 code_coverage_quiet_ =
3722 code_coverage_quiet_0 = --quiet
3724 # Use recursive makes in order to ignore errors during check
3725 check-code-coverage:
3726 -$(MAKE) $(AM_MAKEFLAGS) -k check
3727 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3729 # Capture code coverage data
3730 code-coverage-capture: code-coverage-capture-hook
3731 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
3732 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
3733 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3734 LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
3735 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3737 # Hook rule executed before code-coverage-capture, overridable by the user
3738 code-coverage-capture-hook:
3740 clean: code-coverage-clean
3741 code-coverage-clean:
3742 -$(LCOV) --directory $(top_builddir) -z
3743 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3744 -find . -name "*.gcda" -o -name "*.gcov" -delete
3747 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3749 DISTCHECK_CONFIGURE_FLAGS ?=
3750 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3752 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3761 if test -f ${srcdir}/ares_build.h; then
3762 rm -f ${srcdir}/ares_build.h
3767 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3768 if test -f "$ac_dir/install-sh"; then
3770 ac_install_sh="$ac_aux_dir/install-sh -c"
3772 elif test -f "$ac_dir/install.sh"; then
3774 ac_install_sh="$ac_aux_dir/install.sh -c"
3776 elif test -f "$ac_dir/shtool"; then
3778 ac_install_sh="$ac_aux_dir/shtool install -c"
3782 if test -z "$ac_aux_dir"; then
3783 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3786 # These three variables are undocumented and unsupported,
3787 # and are intended to be withdrawn in a future Autoconf release.
3788 # They can cause serious problems if a builder's source tree is in a directory
3789 # whose full name contains unusual characters.
3790 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3791 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3792 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3795 # Make sure we can run config.sub.
3796 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3797 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3800 $as_echo_n "checking build system type... " >&6; }
3801 if ${ac_cv_build+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 ac_build_alias=$build_alias
3805 test "x$ac_build_alias" = x &&
3806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3807 test "x$ac_build_alias" = x &&
3808 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3814 $as_echo "$ac_cv_build" >&6; }
3815 case $ac_cv_build in
3817 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3820 ac_save_IFS=$IFS; IFS='-'
3826 # Remember, the first character of IFS is used to create $*,
3827 # except with old shells:
3830 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3834 $as_echo_n "checking host system type... " >&6; }
3835 if ${ac_cv_host+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test "x$host_alias" = x; then
3839 ac_cv_host=$ac_cv_build
3841 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3847 $as_echo "$ac_cv_host" >&6; }
3850 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3853 ac_save_IFS=$IFS; IFS='-'
3859 # Remember, the first character of IFS is used to create $*,
3860 # except with old shells:
3863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867 cat >>confdefs.h <<_ACEOF
3868 #define OS "${host}"
3873 xc_prog_cc_prev_IFS=$IFS
3874 xc_prog_cc_prev_LIBS=$LIBS
3875 xc_prog_cc_prev_CFLAGS=$CFLAGS
3876 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3877 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3882 for xc_word in $LIBS; do
3892 if test $xc_bad_var_libs = yes; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3894 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3896 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3900 xc_bad_var_ldflags=no
3901 for xc_word in $LDFLAGS; do
3904 xc_bad_var_ldflags=yes
3907 xc_bad_var_ldflags=yes
3910 xc_bad_var_ldflags=yes
3913 xc_bad_var_ldflags=yes
3917 if test $xc_bad_var_ldflags = yes; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3919 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3920 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3921 for xc_word in $LDFLAGS; do
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3925 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3929 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3933 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3937 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3944 xc_bad_var_cppflags=no
3945 for xc_word in $CPPFLAGS; do
3948 xc_bad_var_cppflags=yes
3950 -L* | --library-path=*)
3951 xc_bad_var_cppflags=yes
3954 xc_bad_var_cppflags=yes
3958 if test $xc_bad_var_cppflags = yes; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3960 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3961 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3962 for xc_word in $CPPFLAGS; do
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3966 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3968 -L* | --library-path=*)
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3970 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3974 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3981 xc_bad_var_cflags=no
3982 for xc_word in $CFLAGS; do
3985 xc_bad_var_cflags=yes
3988 xc_bad_var_cflags=yes
3991 xc_bad_var_cflags=yes
3994 xc_bad_var_cflags=yes
3996 -L* | --library-path=*)
3997 xc_bad_var_cflags=yes
4000 xc_bad_var_cflags=yes
4004 if test $xc_bad_var_cflags = yes; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4006 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
4007 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
4008 for xc_word in $CFLAGS; do
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4012 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4016 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4020 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4024 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4026 -L* | --library-path=*)
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4028 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4032 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4038 if test $xc_bad_var_libs = yes ||
4039 test $xc_bad_var_cflags = yes ||
4040 test $xc_bad_var_ldflags = yes ||
4041 test $xc_bad_var_cppflags = yes; then
4042 as_fn_error $? "Can not continue. Fix errors mentioned immediately above this line." "$LINENO" 5
4045 # Find a good install program. We prefer a C program (faster),
4046 # so one script is as good as another. But avoid the broken or
4047 # incompatible versions:
4048 # SysV /etc/install, /usr/sbin/install
4049 # SunOS /usr/etc/install
4050 # IRIX /sbin/install
4052 # AmigaOS /C/install, which installs bootblocks on floppy discs
4053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4056 # OS/2's system install, which has a completely different semantic
4057 # ./install, which can be erroneously created by make from ./install.sh.
4058 # Reject install programs that cannot install multiple files.
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4060 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4061 if test -z "$INSTALL"; then
4062 if ${ac_cv_path_install+:} false; then :
4063 $as_echo_n "(cached) " >&6
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 # Account for people who put trailing slashes in PATH elements.
4071 case $as_dir/ in #((
4072 ./ | .// | /[cC]/* | \
4073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4074 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4077 # OSF1 and SCO ODT 3.0 have their own names for install.
4078 # Don't use installbsd from OSF since it installs stuff as root
4080 for ac_prog in ginstall scoinst install; do
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4083 if test $ac_prog = install &&
4084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4085 # AIX install. It has an incompatible calling convention.
4087 elif test $ac_prog = install &&
4088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4089 # program-specific install script used by HP pwplus--don't use.
4092 rm -rf conftest.one conftest.two conftest.dir
4093 echo one > conftest.one
4094 echo two > conftest.two
4096 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4097 test -s conftest.one && test -s conftest.two &&
4098 test -s conftest.dir/conftest.one &&
4099 test -s conftest.dir/conftest.two
4101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4114 rm -rf conftest.one conftest.two conftest.dir
4117 if test "${ac_cv_path_install+set}" = set; then
4118 INSTALL=$ac_cv_path_install
4120 # As a last resort, use the slow shell script. Don't cache a
4121 # value for INSTALL within a source directory, because that will
4122 # break other packages using the cache if that directory is
4123 # removed, or if the value is a relative name.
4124 INSTALL=$ac_install_sh
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4128 $as_echo "$INSTALL" >&6; }
4130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4131 # It thinks the first close brace ends the variable substitution.
4132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4138 # Expand $ac_aux_dir to an absolute path.
4139 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146 if test -n "$ac_tool_prefix"; then
4147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_CC+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -n "$CC"; then
4155 ac_cv_prog_CC="$CC" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 if test -n "$CC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 $as_echo "$CC" >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4185 if test -z "$ac_cv_prog_CC"; then
4187 # Extract the first word of "gcc", so it can be a program name with args.
4188 set dummy gcc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 if test -n "$ac_ct_CC"; then
4195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_ac_ct_CC="gcc"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4215 if test -n "$ac_ct_CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4217 $as_echo "$ac_ct_CC" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4223 if test "x$ac_ct_CC" = x; then
4226 case $cross_compiling:$ac_tool_warned in
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4238 if test -z "$CC"; then
4239 if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}cc; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_prog_CC+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 if test -n "$CC"; then
4248 ac_cv_prog_CC="$CC" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_CC="${ac_tool_prefix}cc"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 if test -n "$CC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4270 $as_echo "$CC" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4279 if test -z "$CC"; then
4280 # Extract the first word of "cc", so it can be a program name with args.
4281 set dummy cc; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_prog_CC+:} false; then :
4285 $as_echo_n "(cached) " >&6
4287 if test -n "$CC"; then
4288 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4299 ac_prog_rejected=yes
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 if test $ac_prog_rejected = yes; then
4311 # We found a bogon in the path, so make sure we never use it.
4312 set dummy $ac_cv_prog_CC
4314 if test $# != 0; then
4315 # We chose a different compiler from the bogus one.
4316 # However, it has the same basename, so the bogon will be chosen
4317 # first if we set CC to just the basename; use the full file name.
4319 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4325 if test -n "$CC"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4327 $as_echo "$CC" >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4335 if test -z "$CC"; then
4336 if test -n "$ac_tool_prefix"; then
4337 for ac_prog in cl.exe
4339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_CC+:} false; then :
4344 $as_echo_n "(cached) " >&6
4346 if test -n "$CC"; then
4347 ac_cv_prog_CC="$CC" # Let the user override the test.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 if test -n "$CC"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369 $as_echo "$CC" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4376 test -n "$CC" && break
4379 if test -z "$CC"; then
4381 for ac_prog in cl.exe
4383 # Extract the first word of "$ac_prog", so it can be a program name with args.
4384 set dummy $ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4388 $as_echo_n "(cached) " >&6
4390 if test -n "$ac_ct_CC"; then
4391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_ac_ct_CC="$ac_prog"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4411 if test -n "$ac_ct_CC"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4413 $as_echo "$ac_ct_CC" >&6; }
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4420 test -n "$ac_ct_CC" && break
4423 if test "x$ac_ct_CC" = x; then
4426 case $cross_compiling:$ac_tool_warned in
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4430 ac_tool_warned=yes ;;
4439 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error $? "no acceptable C compiler found in \$PATH
4442 See \`config.log' for more details" "$LINENO" 5; }
4444 # Provide some information about the compiler.
4445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4448 for ac_option in --version -v -V -qversion; do
4449 { { ac_try="$ac_compiler $ac_option >&5"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4458 if test -s conftest.err; then
4460 ... rest of stderr output deleted ...
4461 10q' conftest.err >conftest.er1
4462 cat conftest.er1 >&5
4464 rm -f conftest.er1 conftest.err
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4479 ac_clean_files_save=$ac_clean_files
4480 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4481 # Try to create an executable without -o first, disregard a.out.
4482 # It will help us diagnose broken compilers, and finding out an intuition
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4485 $as_echo_n "checking whether the C compiler works... " >&6; }
4486 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4488 # The possible output files:
4489 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4492 for ac_file in $ac_files
4495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4496 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4501 if { { ac_try="$ac_link_default"
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_link_default") 2>&5
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }; then :
4512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4515 # so that the user can short-circuit this test for compilers unknown to
4517 for ac_file in $ac_files ''
4519 test -f "$ac_file" || continue
4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4524 # We found the default executable, but exeext='' is most
4528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532 # We set ac_cv_exeext here because the later test for it is not
4533 # safe: cross compilers may not add the suffix if given an `-o'
4534 # argument, so we may need to know it at that point already.
4535 # Even if this section looks crufty: it has the advantage of
4542 test "$ac_cv_exeext" = no && ac_cv_exeext=
4547 if test -z "$ac_file"; then :
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 $as_echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error 77 "C compiler cannot create executables
4556 See \`config.log' for more details" "$LINENO" 5; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559 $as_echo "yes" >&6; }
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4562 $as_echo_n "checking for C compiler default output file name... " >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4564 $as_echo "$ac_file" >&6; }
4565 ac_exeext=$ac_cv_exeext
4567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4568 ac_clean_files=$ac_clean_files_save
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4570 $as_echo_n "checking for suffix of executables... " >&6; }
4571 if { { ac_try="$ac_link"
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_link") 2>&5
4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581 test $ac_status = 0; }; then :
4582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4584 # work properly (i.e., refer to `conftest.exe'), while it won't with
4586 for ac_file in conftest.exe conftest conftest.*; do
4587 test -f "$ac_file" || continue
4589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4598 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4599 See \`config.log' for more details" "$LINENO" 5; }
4601 rm -f conftest conftest$ac_cv_exeext
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4603 $as_echo "$ac_cv_exeext" >&6; }
4605 rm -f conftest.$ac_ext
4606 EXEEXT=$ac_cv_exeext
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4613 FILE *f = fopen ("conftest.out", "w");
4614 return ferror (f) || fclose (f) != 0;
4620 ac_clean_files="$ac_clean_files conftest.out"
4621 # Check that the compiler produces executables we can run. If not, either
4622 # the compiler is broken, or we cross compile.
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4624 $as_echo_n "checking whether we are cross compiling... " >&6; }
4625 if test "$cross_compiling" != yes; then
4626 { { ac_try="$ac_link"
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_link") 2>&5
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }
4637 if { ac_try='./conftest$ac_cv_exeext'
4638 { { case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_try") 2>&5
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; }; then
4650 if test "$cross_compiling" = maybe; then
4653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4655 as_fn_error $? "cannot run C compiled programs.
4656 If you meant to cross compile, use \`--host'.
4657 See \`config.log' for more details" "$LINENO" 5; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4662 $as_echo "$cross_compiling" >&6; }
4664 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4665 ac_clean_files=$ac_clean_files_save
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4667 $as_echo_n "checking for suffix of object files... " >&6; }
4668 if ${ac_cv_objext+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4681 rm -f conftest.o conftest.obj
4682 if { { ac_try="$ac_compile"
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689 (eval "$ac_compile") 2>&5
4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }; then :
4693 for ac_file in conftest.o conftest.obj conftest.*; do
4694 test -f "$ac_file" || continue;
4696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4702 $as_echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4707 as_fn_error $? "cannot compute suffix of object files: cannot compile
4708 See \`config.log' for more details" "$LINENO" 5; }
4710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4713 $as_echo "$ac_cv_objext" >&6; }
4714 OBJEXT=$ac_cv_objext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4718 if ${ac_cv_c_compiler_gnu+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4734 if ac_fn_c_try_compile "$LINENO"; then :
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4744 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4745 if test $ac_compiler_gnu = yes; then
4750 ac_test_CFLAGS=${CFLAGS+set}
4751 ac_save_CFLAGS=$CFLAGS
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4753 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4754 if ${ac_cv_prog_cc_g+:} false; then :
4755 $as_echo_n "(cached) " >&6
4757 ac_save_c_werror_flag=$ac_c_werror_flag
4758 ac_c_werror_flag=yes
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4771 if ac_fn_c_try_compile "$LINENO"; then :
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4785 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4800 if ac_fn_c_try_compile "$LINENO"; then :
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4811 $as_echo "$ac_cv_prog_cc_g" >&6; }
4812 if test "$ac_test_CFLAGS" = set; then
4813 CFLAGS=$ac_save_CFLAGS
4814 elif test $ac_cv_prog_cc_g = yes; then
4815 if test "$GCC" = yes; then
4821 if test "$GCC" = yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4829 if ${ac_cv_prog_cc_c89+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 ac_cv_prog_cc_c89=no
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4853 s = g (p, va_arg (v,int));
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std. */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 ac_cv_prog_cc_c89=$ac_arg
4892 rm -f core conftest.err conftest.$ac_objext
4893 test "x$ac_cv_prog_cc_c89" != "xno" && break
4895 rm -f conftest.$ac_ext
4900 case "x$ac_cv_prog_cc_c89" in
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4929 if ${am_cv_prog_cc_c_o+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4942 # Make sure it works both with $CC and with simple cc.
4943 # Following AC_PROG_CC_C_O, we do the test twice because some
4944 # compilers refuse to overwrite an existing .o file with -o,
4945 # though they will create one.
4946 am_cv_prog_cc_c_o=yes
4948 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4949 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } \
4953 && test -f conftest2.$ac_objext; then
4956 am_cv_prog_cc_c_o=no
4960 rm -f core conftest*
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4964 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4965 if test "$am_cv_prog_cc_c_o" != yes; then
4966 # Losing compiler, so override with the script.
4967 # FIXME: It is wrong to rewrite CC.
4968 # But if we don't then we get into trouble of one sort or another.
4969 # A longer-term fix would be to have automake use am__CC in this case,
4970 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4971 CC="$am_aux_dir/compile $CC"
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4987 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4988 # On Suns, sometimes $CPP names a directory.
4989 if test -n "$CPP" && test -d "$CPP"; then
4992 if test -z "$CPP"; then
4993 if ${ac_cv_prog_CPP+:} false; then :
4994 $as_echo_n "(cached) " >&6
4996 # Double quotes because CPP needs to be expanded
4997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5000 for ac_c_preproc_warn_flag in '' yes
5002 # Use a header file that comes with gcc, so configuring glibc
5003 # with a fresh cross-compiler works.
5004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5005 # <limits.h> exists even on freestanding compilers.
5006 # On the NeXT, cc -E runs the code through the compiler's parser,
5007 # not just through cpp. "Syntax error" is here to catch this case.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5011 # include <limits.h>
5013 # include <assert.h>
5017 if ac_fn_c_try_cpp "$LINENO"; then :
5020 # Broken: fails on valid input.
5023 rm -f conftest.err conftest.i conftest.$ac_ext
5025 # OK, works on sane cases. Now check whether nonexistent headers
5026 # can be detected and how.
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5029 #include <ac_nonexistent.h>
5031 if ac_fn_c_try_cpp "$LINENO"; then :
5032 # Broken: success on invalid input.
5035 # Passes both tests.
5039 rm -f conftest.err conftest.i conftest.$ac_ext
5042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5043 rm -f conftest.i conftest.err conftest.$ac_ext
5044 if $ac_preproc_ok; then :
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5057 $as_echo "$CPP" >&6; }
5059 for ac_c_preproc_warn_flag in '' yes
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5070 # include <limits.h>
5072 # include <assert.h>
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5079 # Broken: fails on valid input.
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091 # Broken: success on invalid input.
5094 # Passes both tests.
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5108 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details" "$LINENO" 5; }
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 IFS=$xc_prog_cc_prev_IFS
5120 LIBS=$xc_prog_cc_prev_LIBS
5121 CFLAGS=$xc_prog_cc_prev_CFLAGS
5122 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5123 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5130 am__api_version='1.15'
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5133 $as_echo_n "checking whether build environment is sane... " >&6; }
5134 # Reject unsafe characters in $srcdir or the absolute working directory
5135 # name. Accept space and tab only in the latter.
5139 *[\\\"\#\$\&\'\`$am_lf]*)
5140 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5143 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5144 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5147 # Do 'set' in a subshell so we don't clobber the current shell's
5148 # arguments. Must try -L first in case configure is actually a
5149 # symlink; some systems play weird games with the mod time of symlinks
5150 # (eg FreeBSD returns the mod time of the symlink's containing
5154 for am_try in 1 2; do
5155 echo "timestamp, slept: $am_has_slept" > conftest.file
5156 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5157 if test "$*" = "X"; then
5159 set X `ls -t "$srcdir/configure" conftest.file`
5161 if test "$*" != "X $srcdir/configure conftest.file" \
5162 && test "$*" != "X conftest.file $srcdir/configure"; then
5164 # If neither matched, then we have a broken ls. This can happen
5165 # if, for instance, CONFIG_SHELL is bash and it inherits a
5166 # broken ls alias from the environment. This has actually
5167 # happened. Such a system could not be considered "sane".
5168 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5169 alias in your environment" "$LINENO" 5
5171 if test "$2" = conftest.file || test $am_try -eq 2; then
5178 test "$2" = conftest.file
5184 as_fn_error $? "newly created file is older than distributed files!
5185 Check your system clock" "$LINENO" 5
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5189 # If we didn't sleep, we still need to ensure time stamps of config.status and
5190 # generated files are strictly newer.
5192 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5199 test "$program_prefix" != NONE &&
5200 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5201 # Use a double $ so make ignores it.
5202 test "$program_suffix" != NONE &&
5203 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5204 # Double any \ or $.
5205 # By default was `s,x,x', remove it if useless.
5206 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5207 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5209 if test x"${MISSING+set}" != xset; then
5212 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5214 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5217 # Use eval to expand $SHELL
5218 if eval "$MISSING --is-lightweight"; then
5219 am_missing_run="$MISSING "
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5223 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5226 if test x"${install_sh+set}" != xset; then
5229 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5231 install_sh="\${SHELL} $am_aux_dir/install-sh"
5235 # Installed binaries are usually stripped using 'strip' when the user
5236 # run "make install-strip". However 'strip' might not be the right
5237 # tool to use in cross-compilation environments, therefore Automake
5238 # will honor the 'STRIP' environment variable to overrule this program.
5239 if test "$cross_compiling" != no; then
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}strip; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_STRIP+:} false; then :
5246 $as_echo_n "(cached) " >&6
5248 if test -n "$STRIP"; then
5249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 STRIP=$ac_cv_prog_STRIP
5269 if test -n "$STRIP"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5271 $as_echo "$STRIP" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$ac_cv_prog_STRIP"; then
5281 # Extract the first word of "strip", so it can be a program name with args.
5282 set dummy strip; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5286 $as_echo_n "(cached) " >&6
5288 if test -n "$ac_ct_STRIP"; then
5289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 ac_cv_prog_ac_ct_STRIP="strip"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5309 if test -n "$ac_ct_STRIP"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5311 $as_echo "$ac_ct_STRIP" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5317 if test "x$ac_ct_STRIP" = x; then
5320 case $cross_compiling:$ac_tool_warned in
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5329 STRIP="$ac_cv_prog_STRIP"
5333 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5336 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5337 if test -z "$MKDIR_P"; then
5338 if ${ac_cv_path_mkdir+:} false; then :
5339 $as_echo_n "(cached) " >&6
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5345 test -z "$as_dir" && as_dir=.
5346 for ac_prog in mkdir gmkdir; do
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5349 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5350 'mkdir (GNU coreutils) '* | \
5351 'mkdir (coreutils) '* | \
5352 'mkdir (fileutils) '4.1*)
5353 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5363 test -d ./--version && rmdir ./--version
5364 if test "${ac_cv_path_mkdir+set}" = set; then
5365 MKDIR_P="$ac_cv_path_mkdir -p"
5367 # As a last resort, use the slow shell script. Don't cache a
5368 # value for MKDIR_P within a source directory, because that will
5369 # break other packages using the cache if that directory is
5370 # removed, or if the value is a relative name.
5371 MKDIR_P="$ac_install_sh -d"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5375 $as_echo "$MKDIR_P" >&6; }
5377 for ac_prog in gawk mawk nawk awk
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_AWK+:} false; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$AWK"; then
5387 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_AWK="$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 if test -n "$AWK"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5409 $as_echo "$AWK" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 test -n "$AWK" && break
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5420 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5422 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5423 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 cat >conftest.make <<\_ACEOF
5429 @echo '@@@%%%=$(MAKE)=@@@%%%'
5431 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5432 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5434 eval ac_cv_prog_make_${ac_make}_set=yes;;
5436 eval ac_cv_prog_make_${ac_make}_set=no;;
5440 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 $as_echo "yes" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 SET_MAKE="MAKE=${MAKE-make}"
5450 rm -rf .tst 2>/dev/null
5451 mkdir .tst 2>/dev/null
5452 if test -d .tst; then
5457 rmdir .tst 2>/dev/null
5459 DEPDIR="${am__leading_dot}deps"
5461 ac_config_commands="$ac_config_commands depfiles"
5464 am_make=${MAKE-make}
5465 cat > confinc << 'END'
5467 @echo this is the am__doit target
5470 # If we don't find an include directive, just comment out the code.
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5472 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5476 # First try GNU make style include.
5477 echo "include confinc" > confmf
5478 # Ignore all kinds of additional output from 'make'.
5479 case `$am_make -s -f confmf 2> /dev/null` in #(
5480 *the\ am__doit\ target*)
5486 # Now try BSD make style include.
5487 if test "$am__include" = "#"; then
5488 echo '.include "confinc"' > confmf
5489 case `$am_make -s -f confmf 2> /dev/null` in #(
5490 *the\ am__doit\ target*)
5491 am__include=.include
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5500 $as_echo "$_am_result" >&6; }
5501 rm -f confinc confmf
5503 # Check whether --enable-dependency-tracking was given.
5504 if test "${enable_dependency_tracking+set}" = set; then :
5505 enableval=$enable_dependency_tracking;
5508 if test "x$enable_dependency_tracking" != xno; then
5509 am_depcomp="$ac_aux_dir/depcomp"
5513 if test "x$enable_dependency_tracking" != xno; then
5522 ## --------------------------------------- ##
5523 ## Start of automake initialization code ##
5524 ## --------------------------------------- ##
5526 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5527 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5528 # is not polluted with repeated "-I."
5529 am__isrc=' -I$(srcdir)'
5530 # test to see if srcdir already configured
5531 if test -f $srcdir/config.status; then
5532 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5536 # test whether we have cygpath
5537 if test -z "$CYGPATH_W"; then
5538 if (cygpath --version) >/dev/null 2>/dev/null; then
5539 CYGPATH_W='cygpath -w'
5546 # Define the identity of the package.
5551 cat >>confdefs.h <<_ACEOF
5552 #define PACKAGE "$PACKAGE"
5556 cat >>confdefs.h <<_ACEOF
5557 #define VERSION "$VERSION"
5560 # Some tools Automake needs.
5562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5576 # For better backward compatibility. To be removed once Automake 1.9.x
5577 # dies out for good. For more background, see:
5578 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5579 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5580 mkdir_p='$(MKDIR_P)'
5582 # We need awk for the "check" target (and possibly the TAP driver). The
5583 # system "awk" is bad on some platforms.
5584 # Always define AMTAR for backward compatibility. Yes, it's still used
5585 # in the wild :-( We should find a proper way to deprecate it ...
5589 # We'll loop over all known methods to create a tar archive until one works.
5590 _am_tools='gnutar pax cpio none'
5592 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5598 depcc="$CC" am_compiler_list=
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5601 $as_echo_n "checking dependency style of $depcc... " >&6; }
5602 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5606 # We make a subdir and do the tests there. Otherwise we can end up
5607 # making bogus files that we don't know about and never remove. For
5608 # instance it was reported that on HP-UX the gcc test will end up
5609 # making a dummy file named 'D' -- because '-MD' means "put the output
5613 # Copy depcomp to subdir because otherwise we won't find it if we're
5614 # using a relative directory.
5615 cp "$am_depcomp" conftest.dir
5617 # We will build objects and dependencies in a subdirectory because
5618 # it helps to detect inapplicable dependency modes. For instance
5619 # both Tru64's cc and ICC support -MD to output dependencies as a
5620 # side effect of compilation, but ICC will put the dependencies in
5621 # the current directory while Tru64 will put them in the object
5625 am_cv_CC_dependencies_compiler_type=none
5626 if test "$am_compiler_list" = ""; then
5627 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5630 case " $depcc " in #(
5631 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5634 for depmode in $am_compiler_list; do
5635 # Setup a source with many dependencies, because some compilers
5636 # like to wrap large dependency lists on column 80 (with \), and
5637 # we should not choose a depcomp mode which is confused by this.
5639 # We need to recreate these files for each test, as the compiler may
5640 # overwrite some of them when testing with obscure command lines.
5641 # This happens at least with the AIX C compiler.
5643 for i in 1 2 3 4 5 6; do
5644 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5645 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5646 # Solaris 10 /bin/sh.
5647 echo '/* dummy */' > sub/conftst$i.h
5649 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5651 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5652 # mode. It turns out that the SunPro C++ compiler does not properly
5653 # handle '-M -o', and we need to detect this. Also, some Intel
5654 # versions had trouble with output in subdirs.
5655 am__obj=sub/conftest.${OBJEXT-o}
5656 am__minus_obj="-o $am__obj"
5659 # This depmode causes a compiler race in universal mode.
5660 test "$am__universal" = false || continue
5663 # After this tag, mechanisms are not by side-effect, so they'll
5664 # only be used when explicitly requested.
5665 if test "x$enable_dependency_tracking" = xyes; then
5671 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5672 # This compiler won't grok '-c -o', but also, the minuso test has
5673 # not run yet. These depmodes are late enough in the game, and
5674 # so weak that their functioning should not be impacted.
5675 am__obj=conftest.${OBJEXT-o}
5680 if depmode=$depmode \
5681 source=sub/conftest.c object=$am__obj \
5682 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5683 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5684 >/dev/null 2>conftest.err &&
5685 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5687 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5689 # icc doesn't choke on unknown options, it will just issue warnings
5690 # or remarks (even with -Werror). So we grep stderr for any message
5691 # that says an option was ignored or not supported.
5692 # When given -MP, icc 7.0 and 7.1 complain thusly:
5693 # icc: Command line warning: ignoring option '-M'; no argument required
5694 # The diagnosis changed in icc 8.0:
5695 # icc: Command line remark: option '-MP' not supported
5696 if (grep 'ignoring option' conftest.err ||
5697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5698 am_cv_CC_dependencies_compiler_type=$depmode
5707 am_cv_CC_dependencies_compiler_type=none
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5712 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5716 test "x$enable_dependency_tracking" != xno \
5717 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5719 am__fastdepCC_FALSE='#'
5721 am__fastdepCC_TRUE='#'
5722 am__fastdepCC_FALSE=
5727 # POSIX will say in a future version that running "rm -f" with no argument
5728 # is OK; and we want to be able to make that assumption in our Makefile
5729 # recipes. So use an aggressive probe to check that the usage we want is
5730 # actually supported "in the wild" to an acceptable degree.
5731 # See automake bug#10828.
5732 # To make any issue more visible, cause the running configure to be aborted
5733 # by default if the 'rm' program in use doesn't match our expectations; the
5734 # user can still override this though.
5735 if rm -f && rm -fr && rm -rf; then : OK; else
5739 Your 'rm' program seems unable to run without file operands specified
5740 on the command line, even when the '-f' option is present. This is contrary
5741 to the behaviour of most rm programs out there, and not conforming with
5742 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5744 Please tell bug-automake@gnu.org about your system, including the value
5745 of your $PATH and any error possibly output before this message. This
5746 can help us improve future automake versions.
5749 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5750 echo 'Configuration will proceed anyway, since you have set the' >&2
5751 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5755 Aborting the configuration process, to ensure you take notice of the issue.
5757 You can download and install GNU coreutils to get an 'rm' implementation
5758 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5760 If you want to complete the configuration process using your problematic
5761 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5762 to "yes", and re-run configure.
5765 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5769 ## ------------------------------------- ##
5770 ## End of automake initialization code ##
5771 ## ------------------------------------- ##
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5778 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5779 if ${ac_cv_path_GREP+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 if test -z "$GREP"; then
5783 ac_path_GREP_found=false
5784 # Loop through the user's path and test for each of PROGNAME-LIST
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5789 test -z "$as_dir" && as_dir=.
5790 for ac_prog in grep ggrep; do
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5793 as_fn_executable_p "$ac_path_GREP" || continue
5794 # Check for GNU ac_path_GREP and select it if it is found.
5795 # Check for GNU $ac_path_GREP
5796 case `"$ac_path_GREP" --version 2>&1` in
5798 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5801 $as_echo_n 0123456789 >"conftest.in"
5804 cat "conftest.in" "conftest.in" >"conftest.tmp"
5805 mv "conftest.tmp" "conftest.in"
5806 cp "conftest.in" "conftest.nl"
5807 $as_echo 'GREP' >> "conftest.nl"
5808 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810 as_fn_arith $ac_count + 1 && ac_count=$as_val
5811 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5812 # Best one so far, save it but keep looking for a better one
5813 ac_cv_path_GREP="$ac_path_GREP"
5814 ac_path_GREP_max=$ac_count
5816 # 10*(2^10) chars as input seems more than enough
5817 test $ac_count -gt 10 && break
5819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5822 $ac_path_GREP_found && break 3
5827 if test -z "$ac_cv_path_GREP"; then
5828 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5831 ac_cv_path_GREP=$GREP
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5836 $as_echo "$ac_cv_path_GREP" >&6; }
5837 GREP="$ac_cv_path_GREP"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5841 $as_echo_n "checking for egrep... " >&6; }
5842 if ${ac_cv_path_EGREP+:} false; then :
5843 $as_echo_n "(cached) " >&6
5845 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5846 then ac_cv_path_EGREP="$GREP -E"
5848 if test -z "$EGREP"; then
5849 ac_path_EGREP_found=false
5850 # Loop through the user's path and test for each of PROGNAME-LIST
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5855 test -z "$as_dir" && as_dir=.
5856 for ac_prog in egrep; do
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5859 as_fn_executable_p "$ac_path_EGREP" || continue
5860 # Check for GNU ac_path_EGREP and select it if it is found.
5861 # Check for GNU $ac_path_EGREP
5862 case `"$ac_path_EGREP" --version 2>&1` in
5864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5867 $as_echo_n 0123456789 >"conftest.in"
5870 cat "conftest.in" "conftest.in" >"conftest.tmp"
5871 mv "conftest.tmp" "conftest.in"
5872 cp "conftest.in" "conftest.nl"
5873 $as_echo 'EGREP' >> "conftest.nl"
5874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5876 as_fn_arith $ac_count + 1 && ac_count=$as_val
5877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5878 # Best one so far, save it but keep looking for a better one
5879 ac_cv_path_EGREP="$ac_path_EGREP"
5880 ac_path_EGREP_max=$ac_count
5882 # 10*(2^10) chars as input seems more than enough
5883 test $ac_count -gt 10 && break
5885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5888 $ac_path_EGREP_found && break 3
5893 if test -z "$ac_cv_path_EGREP"; then
5894 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5897 ac_cv_path_EGREP=$EGREP
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5903 $as_echo "$ac_cv_path_EGREP" >&6; }
5904 EGREP="$ac_cv_path_EGREP"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
5910 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5923 $as_echo "yes" >&6; }
5924 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
5940 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5952 force compilation error
5960 if ac_fn_c_try_compile "$LINENO"; then :
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5963 $as_echo "yes" >&6; }
5964 tmp_thread_safe_initially_defined="yes"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 tmp_thread_safe_initially_defined="no"
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 if test "$tmp_thread_safe_initially_defined" = "no"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
5977 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
5980 aix[123].* | aix4.[012].*)
5981 tmp_need_thread_safe="no"
5984 tmp_need_thread_safe="yes"
5987 tmp_need_thread_safe="no"
5991 if test "$tmp_need_thread_safe" = "yes"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5993 $as_echo "yes" >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6001 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6002 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6003 test "$tmp_need_thread_safe" = "yes"; then
6006 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6008 cat >>confdefs.h <<_EOF
6009 #ifndef _THREAD_SAFE
6010 # define _THREAD_SAFE
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6015 $as_echo "yes" >&6; }
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6025 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6037 force compilation error
6045 if ac_fn_c_try_compile "$LINENO"; then :
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6048 $as_echo "yes" >&6; }
6049 tmp_reentrant_initially_defined="yes"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6055 tmp_reentrant_initially_defined="no"
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 if test "$tmp_reentrant_initially_defined" = "no"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6062 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6066 tmp_need_reentrant="yes"
6069 tmp_need_reentrant="no"
6073 if test "$tmp_need_reentrant" = "no"; then
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6092 if ac_fn_c_try_compile "$LINENO"; then :
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 if test "$tmp_errno" = "yes"; then
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6115 force compilation error
6123 if ac_fn_c_try_compile "$LINENO"; then :
6125 tmp_errno="errno_macro_defined"
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6142 force compilation error
6150 if ac_fn_c_try_compile "$LINENO"; then :
6152 tmp_errno="errno_macro_needs_reentrant"
6153 tmp_need_reentrant="yes"
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 if test "$tmp_need_reentrant" = "no"; then
6165 if test "$tmp_need_reentrant" = "no"; then
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6171 #define gmtime_r innocuous_gmtime_r
6173 # include <limits.h>
6175 # include <assert.h>
6182 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6194 if ac_fn_c_try_link "$LINENO"; then :
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 if test "$tmp_gmtime_r" = "yes"; then
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6209 #include <sys/types.h>
6213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6214 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6216 tmp_gmtime_r="proto_declared"
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6224 #include <sys/types.h>
6228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6229 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6231 tmp_gmtime_r="proto_needs_reentrant"
6232 tmp_need_reentrant="yes"
6244 if test "$tmp_need_reentrant" = "no"; then
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6250 #define localtime_r innocuous_localtime_r
6252 # include <limits.h>
6254 # include <assert.h>
6260 char localtime_r ();
6261 #if defined __stub_localtime_r || defined __stub___localtime_r
6267 return localtime_r ();
6273 if ac_fn_c_try_link "$LINENO"; then :
6275 tmp_localtime_r="yes"
6279 tmp_localtime_r="no"
6282 rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284 if test "$tmp_localtime_r" = "yes"; then
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6288 #include <sys/types.h>
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 $EGREP "localtime_r" >/dev/null 2>&1; then :
6295 tmp_localtime_r="proto_declared"
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6303 #include <sys/types.h>
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308 $EGREP "localtime_r" >/dev/null 2>&1; then :
6310 tmp_localtime_r="proto_needs_reentrant"
6311 tmp_need_reentrant="yes"
6323 if test "$tmp_need_reentrant" = "no"; then
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6329 #define strerror_r innocuous_strerror_r
6331 # include <limits.h>
6333 # include <assert.h>
6340 #if defined __stub_strerror_r || defined __stub___strerror_r
6346 return strerror_r ();
6352 if ac_fn_c_try_link "$LINENO"; then :
6354 tmp_strerror_r="yes"
6361 rm -f core conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363 if test "$tmp_strerror_r" = "yes"; then
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6367 #include <sys/types.h>
6371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6372 $EGREP "strerror_r" >/dev/null 2>&1; then :
6374 tmp_strerror_r="proto_declared"
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6382 #include <sys/types.h>
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "strerror_r" >/dev/null 2>&1; then :
6389 tmp_strerror_r="proto_needs_reentrant"
6390 tmp_need_reentrant="yes"
6402 if test "$tmp_need_reentrant" = "no"; then
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6408 #define strtok_r innocuous_strtok_r
6410 # include <limits.h>
6412 # include <assert.h>
6419 #if defined __stub_strtok_r || defined __stub___strtok_r
6431 if ac_fn_c_try_link "$LINENO"; then :
6440 rm -f core conftest.err conftest.$ac_objext \
6441 conftest$ac_exeext conftest.$ac_ext
6442 if test "$tmp_strtok_r" = "yes"; then
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6446 #include <sys/types.h>
6450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6451 $EGREP "strtok_r" >/dev/null 2>&1; then :
6453 tmp_strtok_r="proto_declared"
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6461 #include <sys/types.h>
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "strtok_r" >/dev/null 2>&1; then :
6468 tmp_strtok_r="proto_needs_reentrant"
6469 tmp_need_reentrant="yes"
6481 if test "$tmp_need_reentrant" = "no"; then
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6487 #define inet_ntoa_r innocuous_inet_ntoa_r
6489 # include <limits.h>
6491 # include <assert.h>
6497 char inet_ntoa_r ();
6498 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6504 return inet_ntoa_r ();
6510 if ac_fn_c_try_link "$LINENO"; then :
6512 tmp_inet_ntoa_r="yes"
6516 tmp_inet_ntoa_r="no"
6519 rm -f core conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521 if test "$tmp_inet_ntoa_r" = "yes"; then
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6525 #include <sys/types.h>
6526 #include <sys/socket.h>
6527 #include <netinet/in.h>
6528 #include <arpa/inet.h>
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6534 tmp_inet_ntoa_r="proto_declared"
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6542 #include <sys/types.h>
6543 #include <sys/socket.h>
6544 #include <netinet/in.h>
6545 #include <arpa/inet.h>
6548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6549 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6551 tmp_inet_ntoa_r="proto_needs_reentrant"
6552 tmp_need_reentrant="yes"
6564 if test "$tmp_need_reentrant" = "no"; then
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6570 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6572 # include <limits.h>
6574 # include <assert.h>
6576 #undef gethostbyaddr_r
6580 char gethostbyaddr_r ();
6581 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6587 return gethostbyaddr_r ();
6593 if ac_fn_c_try_link "$LINENO"; then :
6595 tmp_gethostbyaddr_r="yes"
6599 tmp_gethostbyaddr_r="no"
6602 rm -f core conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6604 if test "$tmp_gethostbyaddr_r" = "yes"; then
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6608 #include <sys/types.h>
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6615 tmp_gethostbyaddr_r="proto_declared"
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6623 #include <sys/types.h>
6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6630 tmp_gethostbyaddr_r="proto_needs_reentrant"
6631 tmp_need_reentrant="yes"
6643 if test "$tmp_need_reentrant" = "no"; then
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6649 #define gethostbyname_r innocuous_gethostbyname_r
6651 # include <limits.h>
6653 # include <assert.h>
6655 #undef gethostbyname_r
6659 char gethostbyname_r ();
6660 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6666 return gethostbyname_r ();
6672 if ac_fn_c_try_link "$LINENO"; then :
6674 tmp_gethostbyname_r="yes"
6678 tmp_gethostbyname_r="no"
6681 rm -f core conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6683 if test "$tmp_gethostbyname_r" = "yes"; then
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6687 #include <sys/types.h>
6691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6692 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6694 tmp_gethostbyname_r="proto_declared"
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6702 #include <sys/types.h>
6706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6707 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6709 tmp_gethostbyname_r="proto_needs_reentrant"
6710 tmp_need_reentrant="yes"
6722 if test "$tmp_need_reentrant" = "no"; then
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6728 #define getprotobyname_r innocuous_getprotobyname_r
6730 # include <limits.h>
6732 # include <assert.h>
6734 #undef getprotobyname_r
6738 char getprotobyname_r ();
6739 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6745 return getprotobyname_r ();
6751 if ac_fn_c_try_link "$LINENO"; then :
6753 tmp_getprotobyname_r="yes"
6757 tmp_getprotobyname_r="no"
6760 rm -f core conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 if test "$tmp_getprotobyname_r" = "yes"; then
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6766 #include <sys/types.h>
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6773 tmp_getprotobyname_r="proto_declared"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6781 #include <sys/types.h>
6785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6786 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6788 tmp_getprotobyname_r="proto_needs_reentrant"
6789 tmp_need_reentrant="yes"
6801 if test "$tmp_need_reentrant" = "no"; then
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6807 #define getservbyport_r innocuous_getservbyport_r
6809 # include <limits.h>
6811 # include <assert.h>
6813 #undef getservbyport_r
6817 char getservbyport_r ();
6818 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6824 return getservbyport_r ();
6830 if ac_fn_c_try_link "$LINENO"; then :
6832 tmp_getservbyport_r="yes"
6836 tmp_getservbyport_r="no"
6839 rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841 if test "$tmp_getservbyport_r" = "yes"; then
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6845 #include <sys/types.h>
6849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6852 tmp_getservbyport_r="proto_declared"
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6860 #include <sys/types.h>
6864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6867 tmp_getservbyport_r="proto_needs_reentrant"
6868 tmp_need_reentrant="yes"
6882 if test "$tmp_need_reentrant" = "yes"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
6892 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
6893 if test "$tmp_reentrant_initially_defined" = "yes" ||
6894 test "$tmp_need_reentrant" = "yes"; then
6897 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
6899 cat >>confdefs.h <<_EOF
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 # Check whether --enable-largefile was given.
6915 if test "${enable_largefile+set}" = set; then :
6916 enableval=$enable_largefile;
6919 if test "$enable_largefile" != no; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6922 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6923 if ${ac_cv_sys_largefile_CC+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 ac_cv_sys_largefile_CC=no
6927 if test "$GCC" != yes; then
6930 # IRIX 6.2 and later do not support large files by default,
6931 # so use the C compiler's -n32 option if that helps.
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 #include <sys/types.h>
6935 /* Check that off_t can represent 2**63 - 1 correctly.
6936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6937 since some C++ compilers masquerading as C compilers
6938 incorrectly reject 9223372036854775807. */
6939 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6941 && LARGE_OFF_T % 2147483647 == 1)
6950 if ac_fn_c_try_compile "$LINENO"; then :
6953 rm -f core conftest.err conftest.$ac_objext
6955 if ac_fn_c_try_compile "$LINENO"; then :
6956 ac_cv_sys_largefile_CC=' -n32'; break
6958 rm -f core conftest.err conftest.$ac_objext
6962 rm -f conftest.$ac_ext
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6966 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6967 if test "$ac_cv_sys_largefile_CC" != no; then
6968 CC=$CC$ac_cv_sys_largefile_CC
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6972 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6973 if ${ac_cv_sys_file_offset_bits+:} false; then :
6974 $as_echo_n "(cached) " >&6
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979 #include <sys/types.h>
6980 /* Check that off_t can represent 2**63 - 1 correctly.
6981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6982 since some C++ compilers masquerading as C compilers
6983 incorrectly reject 9223372036854775807. */
6984 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6986 && LARGE_OFF_T % 2147483647 == 1)
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996 ac_cv_sys_file_offset_bits=no; break
6998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001 #define _FILE_OFFSET_BITS 64
7002 #include <sys/types.h>
7003 /* Check that off_t can represent 2**63 - 1 correctly.
7004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7005 since some C++ compilers masquerading as C compilers
7006 incorrectly reject 9223372036854775807. */
7007 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7009 && LARGE_OFF_T % 2147483647 == 1)
7018 if ac_fn_c_try_compile "$LINENO"; then :
7019 ac_cv_sys_file_offset_bits=64; break
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 ac_cv_sys_file_offset_bits=unknown
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7027 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7028 case $ac_cv_sys_file_offset_bits in #(
7031 cat >>confdefs.h <<_ACEOF
7032 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7037 if test $ac_cv_sys_file_offset_bits = unknown; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7039 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7040 if ${ac_cv_sys_large_files+:} false; then :
7041 $as_echo_n "(cached) " >&6
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 /* Check that off_t can represent 2**63 - 1 correctly.
7048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7049 since some C++ compilers masquerading as C compilers
7050 incorrectly reject 9223372036854775807. */
7051 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7053 && LARGE_OFF_T % 2147483647 == 1)
7062 if ac_fn_c_try_compile "$LINENO"; then :
7063 ac_cv_sys_large_files=no; break
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #define _LARGE_FILES 1
7069 #include <sys/types.h>
7070 /* Check that off_t can represent 2**63 - 1 correctly.
7071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7072 since some C++ compilers masquerading as C compilers
7073 incorrectly reject 9223372036854775807. */
7074 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7076 && LARGE_OFF_T % 2147483647 == 1)
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 ac_cv_sys_large_files=1; break
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 ac_cv_sys_large_files=unknown
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7094 $as_echo "$ac_cv_sys_large_files" >&6; }
7095 case $ac_cv_sys_large_files in #(
7098 cat >>confdefs.h <<_ACEOF
7099 #define _LARGE_FILES $ac_cv_sys_large_files
7113 $as_echo "#define ETC_INET 1" >>confdefs.h
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7121 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7126 macro_version='2.4.6'
7127 macro_revision='2.4.6'
7141 ltmain=$ac_aux_dir/ltmain.sh
7143 # Backslashify metacharacters that are still active within
7144 # double-quoted strings.
7145 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7147 # Same as above, but do not quote variable references.
7148 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7150 # Sed substitution to delay expansion of an escaped shell variable in a
7151 # double_quote_subst'ed string.
7152 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7154 # Sed substitution to delay expansion of an escaped single quote.
7155 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7157 # Sed substitution to avoid accidental globbing in evaled expressions
7158 no_glob_subst='s/\*/\\\*/g'
7160 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7161 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7162 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7165 $as_echo_n "checking how to print strings... " >&6; }
7166 # Test print first, because it will be a builtin if present.
7167 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7168 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7170 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7173 # Use this function as a fallback that always works.
7174 func_fallback_echo ()
7176 eval 'cat <<_LTECHO_EOF
7180 ECHO='func_fallback_echo'
7183 # func_echo_all arg...
7184 # Invoke $ECHO with all args, space-separated.
7191 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7192 $as_echo "printf" >&6; } ;;
7193 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7194 $as_echo "print -r" >&6; } ;;
7195 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7196 $as_echo "cat" >&6; } ;;
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7213 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7214 if ${ac_cv_path_SED+:} false; then :
7215 $as_echo_n "(cached) " >&6
7217 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7218 for ac_i in 1 2 3 4 5 6 7; do
7219 ac_script="$ac_script$as_nl$ac_script"
7221 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7222 { ac_script=; unset ac_script;}
7223 if test -z "$SED"; then
7224 ac_path_SED_found=false
7225 # Loop through the user's path and test for each of PROGNAME-LIST
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_prog in sed gsed; do
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7234 as_fn_executable_p "$ac_path_SED" || continue
7235 # Check for GNU ac_path_SED and select it if it is found.
7236 # Check for GNU $ac_path_SED
7237 case `"$ac_path_SED" --version 2>&1` in
7239 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7242 $as_echo_n 0123456789 >"conftest.in"
7245 cat "conftest.in" "conftest.in" >"conftest.tmp"
7246 mv "conftest.tmp" "conftest.in"
7247 cp "conftest.in" "conftest.nl"
7248 $as_echo '' >> "conftest.nl"
7249 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7251 as_fn_arith $ac_count + 1 && ac_count=$as_val
7252 if test $ac_count -gt ${ac_path_SED_max-0}; then
7253 # Best one so far, save it but keep looking for a better one
7254 ac_cv_path_SED="$ac_path_SED"
7255 ac_path_SED_max=$ac_count
7257 # 10*(2^10) chars as input seems more than enough
7258 test $ac_count -gt 10 && break
7260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7263 $ac_path_SED_found && break 3
7268 if test -z "$ac_cv_path_SED"; then
7269 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7277 $as_echo "$ac_cv_path_SED" >&6; }
7278 SED="$ac_cv_path_SED"
7281 test -z "$SED" && SED=sed
7282 Xsed="$SED -e 1s/^X//"
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7295 $as_echo_n "checking for fgrep... " >&6; }
7296 if ${ac_cv_path_FGREP+:} false; then :
7297 $as_echo_n "(cached) " >&6
7299 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7300 then ac_cv_path_FGREP="$GREP -F"
7302 if test -z "$FGREP"; then
7303 ac_path_FGREP_found=false
7304 # Loop through the user's path and test for each of PROGNAME-LIST
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7309 test -z "$as_dir" && as_dir=.
7310 for ac_prog in fgrep; do
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7313 as_fn_executable_p "$ac_path_FGREP" || continue
7314 # Check for GNU ac_path_FGREP and select it if it is found.
7315 # Check for GNU $ac_path_FGREP
7316 case `"$ac_path_FGREP" --version 2>&1` in
7318 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7321 $as_echo_n 0123456789 >"conftest.in"
7324 cat "conftest.in" "conftest.in" >"conftest.tmp"
7325 mv "conftest.tmp" "conftest.in"
7326 cp "conftest.in" "conftest.nl"
7327 $as_echo 'FGREP' >> "conftest.nl"
7328 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7330 as_fn_arith $ac_count + 1 && ac_count=$as_val
7331 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7332 # Best one so far, save it but keep looking for a better one
7333 ac_cv_path_FGREP="$ac_path_FGREP"
7334 ac_path_FGREP_max=$ac_count
7336 # 10*(2^10) chars as input seems more than enough
7337 test $ac_count -gt 10 && break
7339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7342 $ac_path_FGREP_found && break 3
7347 if test -z "$ac_cv_path_FGREP"; then
7348 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7351 ac_cv_path_FGREP=$FGREP
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7357 $as_echo "$ac_cv_path_FGREP" >&6; }
7358 FGREP="$ac_cv_path_FGREP"
7361 test -z "$GREP" && GREP=grep
7381 # Check whether --with-gnu-ld was given.
7382 if test "${with_gnu_ld+set}" = set; then :
7383 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7389 if test yes = "$GCC"; then
7390 # Check if gcc -print-prog-name=ld gives a path.
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7392 $as_echo_n "checking for ld used by $CC... " >&6; }
7395 # gcc leaves a trailing carriage return, which upsets mingw
7396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7401 # Accept absolute paths.
7403 re_direlt='/[^/][^/]*/\.\./'
7404 # Canonicalize the pathname of ld
7405 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7406 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7407 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7409 test -z "$LD" && LD=$ac_prog
7412 # If it fails, then pretend we aren't using GCC.
7416 # If it is relative, then search for the first ld in PATH.
7420 elif test yes = "$with_gnu_ld"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7422 $as_echo_n "checking for GNU ld... " >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7425 $as_echo_n "checking for non-GNU ld... " >&6; }
7427 if ${lt_cv_path_LD+:} false; then :
7428 $as_echo_n "(cached) " >&6
7430 if test -z "$LD"; then
7431 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7432 for ac_dir in $PATH; do
7434 test -z "$ac_dir" && ac_dir=.
7435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7436 lt_cv_path_LD=$ac_dir/$ac_prog
7437 # Check to see if the program is GNU ld. I'd rather use --version,
7438 # but apparently some variants of GNU ld only accept -v.
7439 # Break only if it was the GNU/non-GNU ld that we prefer.
7440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7441 *GNU* | *'with BFD'*)
7442 test no != "$with_gnu_ld" && break
7445 test yes != "$with_gnu_ld" && break
7452 lt_cv_path_LD=$LD # Let the user override the test with a path.
7457 if test -n "$LD"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7459 $as_echo "$LD" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7464 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7467 if ${lt_cv_prog_gnu_ld+:} false; then :
7468 $as_echo_n "(cached) " >&6
7470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7471 case `$LD -v 2>&1 </dev/null` in
7472 *GNU* | *'with BFD'*)
7473 lt_cv_prog_gnu_ld=yes
7476 lt_cv_prog_gnu_ld=no
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7482 with_gnu_ld=$lt_cv_prog_gnu_ld
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7493 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7494 if ${lt_cv_path_NM+:} false; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$NM"; then
7498 # Let the user override the test.
7501 lt_nm_to_check=${ac_tool_prefix}nm
7502 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7503 lt_nm_to_check="$lt_nm_to_check nm"
7505 for lt_tmp_nm in $lt_nm_to_check; do
7506 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7507 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7509 test -z "$ac_dir" && ac_dir=.
7510 tmp_nm=$ac_dir/$lt_tmp_nm
7511 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7512 # Check to see if the nm accepts a BSD-compat flag.
7513 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7514 # nm: unknown option "B" ignored
7515 # Tru64's nm complains that /dev/null is an invalid object file
7516 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7518 mingw*) lt_bad_file=conftest.nm/nofile ;;
7519 *) lt_bad_file=/dev/null ;;
7521 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7522 *$lt_bad_file* | *'Invalid file or object type'*)
7523 lt_cv_path_NM="$tmp_nm -B"
7527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7529 lt_cv_path_NM="$tmp_nm -p"
7533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7534 continue # so that we can try to find one that supports BSD flags
7543 : ${lt_cv_path_NM=no}
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7547 $as_echo "$lt_cv_path_NM" >&6; }
7548 if test no != "$lt_cv_path_NM"; then
7551 # Didn't find any BSD compatible name lister, look for dumpbin.
7552 if test -n "$DUMPBIN"; then :
7553 # Let the user override the test.
7555 if test -n "$ac_tool_prefix"; then
7556 for ac_prog in dumpbin "link -dump"
7558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_DUMPBIN+:} false; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$DUMPBIN"; then
7566 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 DUMPBIN=$ac_cv_prog_DUMPBIN
7586 if test -n "$DUMPBIN"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7588 $as_echo "$DUMPBIN" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7595 test -n "$DUMPBIN" && break
7598 if test -z "$DUMPBIN"; then
7599 ac_ct_DUMPBIN=$DUMPBIN
7600 for ac_prog in dumpbin "link -dump"
7602 # Extract the first word of "$ac_prog", so it can be a program name with args.
7603 set dummy $ac_prog; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7607 $as_echo_n "(cached) " >&6
7609 if test -n "$ac_ct_DUMPBIN"; then
7610 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7630 if test -n "$ac_ct_DUMPBIN"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7632 $as_echo "$ac_ct_DUMPBIN" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7639 test -n "$ac_ct_DUMPBIN" && break
7642 if test "x$ac_ct_DUMPBIN" = x; then
7645 case $cross_compiling:$ac_tool_warned in
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649 ac_tool_warned=yes ;;
7651 DUMPBIN=$ac_ct_DUMPBIN
7655 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7657 DUMPBIN="$DUMPBIN -symbols -headers"
7665 if test : != "$DUMPBIN"; then
7669 test -z "$NM" && NM=nm
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7677 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7678 if ${lt_cv_nm_interface+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 lt_cv_nm_interface="BSD nm"
7682 echo "int some_variable = 0;" > conftest.$ac_ext
7683 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7684 (eval "$ac_compile" 2>conftest.err)
7685 cat conftest.err >&5
7686 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7687 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7688 cat conftest.err >&5
7689 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7690 cat conftest.out >&5
7691 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7692 lt_cv_nm_interface="MS dumpbin"
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7697 $as_echo "$lt_cv_nm_interface" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7700 $as_echo_n "checking whether ln -s works... " >&6; }
7702 if test "$LN_S" = "ln -s"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 $as_echo "yes" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7707 $as_echo "no, using $LN_S" >&6; }
7710 # find the maximum length of command line arguments
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7712 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7713 if ${lt_cv_sys_max_cmd_len+:} false; then :
7714 $as_echo_n "(cached) " >&6
7721 # On DJGPP, this test can blow up pretty badly due to problems in libc
7722 # (any single argument exceeding 2000 bytes causes a buffer overrun
7723 # during glob expansion). Even if it were fixed, the result of this
7724 # check would be larger than it should be.
7725 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7729 # Under GNU Hurd, this test is not required because there is
7730 # no limit to the length of command line arguments.
7731 # Libtool will interpret -1 as no limit whatsoever
7732 lt_cv_sys_max_cmd_len=-1;
7735 cygwin* | mingw* | cegcc*)
7736 # On Win9x/ME, this test blows up -- it succeeds, but takes
7737 # about 5 minutes as the teststring grows exponentially.
7738 # Worse, since 9x/ME are not pre-emptively multitasking,
7739 # you end up with a "frozen" computer, even though with patience
7740 # the test eventually succeeds (with a max line length of 256k).
7741 # Instead, let's just punt: use the minimum linelength reported by
7742 # all of the supported platforms: 8192 (on NT/2K/XP).
7743 lt_cv_sys_max_cmd_len=8192;
7747 # On MiNT this can take a long time and run out of memory.
7748 lt_cv_sys_max_cmd_len=8192;
7752 # On AmigaOS with pdksh, this test takes hours, literally.
7753 # So we just punt and use a minimum line length of 8192.
7754 lt_cv_sys_max_cmd_len=8192;
7757 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7758 # This has been around since 386BSD, at least. Likely further.
7759 if test -x /sbin/sysctl; then
7760 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7761 elif test -x /usr/sbin/sysctl; then
7762 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7764 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7766 # And add a safety zone
7767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7772 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7773 lt_cv_sys_max_cmd_len=196608
7777 # The test takes a long time on OS/2.
7778 lt_cv_sys_max_cmd_len=8192
7782 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7783 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7784 # nice to cause kernel panics so lets avoid the loop below.
7785 # First set a reasonable default.
7786 lt_cv_sys_max_cmd_len=16384
7788 if test -x /sbin/sysconfig; then
7789 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7790 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7795 lt_cv_sys_max_cmd_len=102400
7797 sysv5* | sco5v6* | sysv4.2uw2*)
7798 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7799 if test -n "$kargmax"; then
7800 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7802 lt_cv_sys_max_cmd_len=32768
7806 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7807 if test -n "$lt_cv_sys_max_cmd_len" && \
7808 test undefined != "$lt_cv_sys_max_cmd_len"; then
7809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7812 # Make teststring a little bigger before we do anything with it.
7813 # a 1K string should be a reasonable start.
7814 for i in 1 2 3 4 5 6 7 8; do
7815 teststring=$teststring$teststring
7817 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7818 # If test is not a shell built-in, we'll probably end up computing a
7819 # maximum length that is only half of the actual maximum length, but
7821 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7822 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7823 test 17 != "$i" # 1/2 MB should be enough
7826 teststring=$teststring$teststring
7828 # Only check the string length outside the loop.
7829 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7831 # Add a significant safety factor because C++ compilers can tack on
7832 # massive amounts of additional arguments before passing them to the
7833 # linker. It appears as though 1/2 is a usable value.
7834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7841 if test -n "$lt_cv_sys_max_cmd_len"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7843 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7846 $as_echo "none" >&6; }
7848 max_cmd_len=$lt_cv_sys_max_cmd_len
7859 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7869 # test EBCDIC or ASCII
7870 case `echo X|tr X '\101'` in
7871 A) # ASCII based system
7872 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7873 lt_SP2NL='tr \040 \012'
7874 lt_NL2SP='tr \015\012 \040\040'
7876 *) # EBCDIC based system
7877 lt_SP2NL='tr \100 \n'
7878 lt_NL2SP='tr \r\n \100\100'
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7891 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7892 if ${lt_cv_to_host_file_cmd+:} false; then :
7893 $as_echo_n "(cached) " >&6
7898 *-*-mingw* ) # actually msys
7899 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7902 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7904 * ) # otherwise, assume *nix
7905 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7911 *-*-mingw* ) # actually msys
7912 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7915 lt_cv_to_host_file_cmd=func_convert_file_noop
7917 * ) # otherwise, assume *nix
7918 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7922 * ) # unhandled hosts (and "normal" native builds)
7923 lt_cv_to_host_file_cmd=func_convert_file_noop
7929 to_host_file_cmd=$lt_cv_to_host_file_cmd
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7931 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7938 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7939 if ${lt_cv_to_tool_file_cmd+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 #assume ordinary cross tools, or native build.
7943 lt_cv_to_tool_file_cmd=func_convert_file_noop
7947 *-*-mingw* ) # actually msys
7948 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7956 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7958 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7965 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7966 if ${lt_cv_ld_reload_flag+:} false; then :
7967 $as_echo_n "(cached) " >&6
7969 lt_cv_ld_reload_flag='-r'
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7972 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7973 reload_flag=$lt_cv_ld_reload_flag
7974 case $reload_flag in
7976 *) reload_flag=" $reload_flag" ;;
7978 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7980 cygwin* | mingw* | pw32* | cegcc*)
7981 if test yes != "$GCC"; then
7986 if test yes = "$GCC"; then
7987 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7989 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8002 if test -n "$ac_tool_prefix"; then
8003 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8004 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if ${ac_cv_prog_OBJDUMP+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 if test -n "$OBJDUMP"; then
8011 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 OBJDUMP=$ac_cv_prog_OBJDUMP
8031 if test -n "$OBJDUMP"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8033 $as_echo "$OBJDUMP" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8041 if test -z "$ac_cv_prog_OBJDUMP"; then
8042 ac_ct_OBJDUMP=$OBJDUMP
8043 # Extract the first word of "objdump", so it can be a program name with args.
8044 set dummy objdump; ac_word=$2
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046 $as_echo_n "checking for $ac_word... " >&6; }
8047 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8048 $as_echo_n "(cached) " >&6
8050 if test -n "$ac_ct_OBJDUMP"; then
8051 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8071 if test -n "$ac_ct_OBJDUMP"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8073 $as_echo "$ac_ct_OBJDUMP" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8079 if test "x$ac_ct_OBJDUMP" = x; then
8082 case $cross_compiling:$ac_tool_warned in
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8086 ac_tool_warned=yes ;;
8088 OBJDUMP=$ac_ct_OBJDUMP
8091 OBJDUMP="$ac_cv_prog_OBJDUMP"
8094 test -z "$OBJDUMP" && OBJDUMP=objdump
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8102 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8103 if ${lt_cv_deplibs_check_method+:} false; then :
8104 $as_echo_n "(cached) " >&6
8106 lt_cv_file_magic_cmd='$MAGIC_CMD'
8107 lt_cv_file_magic_test_file=
8108 lt_cv_deplibs_check_method='unknown'
8109 # Need to set the preceding variable on all platforms that support
8110 # interlibrary dependencies.
8111 # 'none' -- dependencies not supported.
8112 # 'unknown' -- same as none, but documents that we really don't know.
8113 # 'pass_all' -- all dependencies passed with no checks.
8114 # 'test_compile' -- check by making test program.
8115 # 'file_magic [[regex]]' -- check by looking for files in library path
8116 # that responds to the $file_magic_cmd with a given extended regex.
8117 # If you have 'file' or equivalent on your system and you're not sure
8118 # whether 'pass_all' will *always* work, you probably want this one.
8122 lt_cv_deplibs_check_method=pass_all
8126 lt_cv_deplibs_check_method=pass_all
8130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8131 lt_cv_file_magic_cmd='/usr/bin/file -L'
8132 lt_cv_file_magic_test_file=/shlib/libc.so
8136 # func_win32_libid is a shell function defined in ltmain.sh
8137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8138 lt_cv_file_magic_cmd='func_win32_libid'
8142 # Base MSYS/MinGW do not provide the 'file' command needed by
8143 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8144 # unless we find 'file', for example because we are cross-compiling.
8145 if ( file / ) >/dev/null 2>&1; then
8146 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8147 lt_cv_file_magic_cmd='func_win32_libid'
8149 # Keep this pattern in sync with the one in func_win32_libid.
8150 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8151 lt_cv_file_magic_cmd='$OBJDUMP -f'
8156 # use the weaker test based on 'objdump'. See mingw*.
8157 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8158 lt_cv_file_magic_cmd='$OBJDUMP -f'
8161 darwin* | rhapsody*)
8162 lt_cv_deplibs_check_method=pass_all
8165 freebsd* | dragonfly*)
8166 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8169 # Not sure whether the presence of OpenBSD here was a mistake.
8170 # Let's accept both of them until this is cleared up.
8171 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8172 lt_cv_file_magic_cmd=/usr/bin/file
8173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8177 lt_cv_deplibs_check_method=pass_all
8182 lt_cv_deplibs_check_method=pass_all
8185 hpux10.20* | hpux11*)
8186 lt_cv_file_magic_cmd=/usr/bin/file
8189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8190 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8193 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]'
8194 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8198 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8204 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8208 irix5* | irix6* | nonstopux*)
8210 *-32|*"-32 ") libmagic=32-bit;;
8211 *-n32|*"-n32 ") libmagic=N32;;
8212 *-64|*"-64 ") libmagic=64-bit;;
8213 *) libmagic=never-match;;
8215 lt_cv_deplibs_check_method=pass_all
8218 # This must be glibc/ELF.
8219 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8220 lt_cv_deplibs_check_method=pass_all
8223 netbsd* | netbsdelf*-gnu)
8224 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8233 lt_cv_file_magic_cmd=/usr/bin/file
8234 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8238 lt_cv_deplibs_check_method=pass_all
8242 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8249 osf3* | osf4* | osf5*)
8250 lt_cv_deplibs_check_method=pass_all
8254 lt_cv_deplibs_check_method=pass_all
8258 lt_cv_deplibs_check_method=pass_all
8261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8262 lt_cv_deplibs_check_method=pass_all
8266 case $host_vendor in
8268 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]'
8269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8272 lt_cv_deplibs_check_method=pass_all
8275 lt_cv_file_magic_cmd='/bin/file'
8276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8279 lt_cv_file_magic_cmd='/bin/file'
8280 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8281 lt_cv_file_magic_test_file=/lib/libc.so
8284 lt_cv_deplibs_check_method=pass_all
8287 lt_cv_deplibs_check_method=pass_all
8293 lt_cv_deplibs_check_method=pass_all
8296 lt_cv_deplibs_check_method=pass_all
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8302 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8306 if test "$build" = "$host"; then
8309 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8312 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8318 file_magic_cmd=$lt_cv_file_magic_cmd
8319 deplibs_check_method=$lt_cv_deplibs_check_method
8320 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_DLLTOOL+:} false; then :
8349 $as_echo_n "(cached) " >&6
8351 if test -n "$DLLTOOL"; then
8352 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 DLLTOOL=$ac_cv_prog_DLLTOOL
8372 if test -n "$DLLTOOL"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8374 $as_echo "$DLLTOOL" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8382 if test -z "$ac_cv_prog_DLLTOOL"; then
8383 ac_ct_DLLTOOL=$DLLTOOL
8384 # Extract the first word of "dlltool", so it can be a program name with args.
8385 set dummy dlltool; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8389 $as_echo_n "(cached) " >&6
8391 if test -n "$ac_ct_DLLTOOL"; then
8392 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8412 if test -n "$ac_ct_DLLTOOL"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8414 $as_echo "$ac_ct_DLLTOOL" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8420 if test "x$ac_ct_DLLTOOL" = x; then
8423 case $cross_compiling:$ac_tool_warned in
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8429 DLLTOOL=$ac_ct_DLLTOOL
8432 DLLTOOL="$ac_cv_prog_DLLTOOL"
8435 test -z "$DLLTOOL" && DLLTOOL=dlltool
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8444 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8445 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8446 $as_echo_n "(cached) " >&6
8448 lt_cv_sharedlib_from_linklib_cmd='unknown'
8451 cygwin* | mingw* | pw32* | cegcc*)
8452 # two different shell functions defined in ltmain.sh;
8453 # decide which one to use based on capabilities of $DLLTOOL
8454 case `$DLLTOOL --help 2>&1` in
8455 *--identify-strict*)
8456 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8459 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8464 # fallback: assume linklib IS sharedlib
8465 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8471 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8472 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8473 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8481 if test -n "$ac_tool_prefix"; then
8484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_prog_AR+:} false; then :
8489 $as_echo_n "(cached) " >&6
8491 if test -n "$AR"; then
8492 ac_cv_prog_AR="$AR" # Let the user override the test.
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 if test -n "$AR"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8514 $as_echo "$AR" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8521 test -n "$AR" && break
8524 if test -z "$AR"; then
8528 # Extract the first word of "$ac_prog", so it can be a program name with args.
8529 set dummy $ac_prog; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8533 $as_echo_n "(cached) " >&6
8535 if test -n "$ac_ct_AR"; then
8536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_ac_ct_AR="$ac_prog"
8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8556 if test -n "$ac_ct_AR"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8558 $as_echo "$ac_ct_AR" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8565 test -n "$ac_ct_AR" && break
8568 if test "x$ac_ct_AR" = x; then
8571 case $cross_compiling:$ac_tool_warned in
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8595 $as_echo_n "checking for archiver @FILE support... " >&6; }
8596 if ${lt_cv_ar_at_file+:} false; then :
8597 $as_echo_n "(cached) " >&6
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8610 if ac_fn_c_try_compile "$LINENO"; then :
8611 echo conftest.$ac_objext > conftest.lst
8612 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8614 (eval $lt_ar_try) 2>&5
8616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8617 test $ac_status = 0; }
8618 if test 0 -eq "$ac_status"; then
8619 # Ensure the archiver fails upon bogus file names.
8620 rm -f conftest.$ac_objext libconftest.a
8621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8622 (eval $lt_ar_try) 2>&5
8624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8625 test $ac_status = 0; }
8626 if test 0 -ne "$ac_status"; then
8630 rm -f conftest.* libconftest.a
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8637 $as_echo "$lt_cv_ar_at_file" >&6; }
8639 if test no = "$lt_cv_ar_at_file"; then
8642 archiver_list_spec=$lt_cv_ar_at_file
8651 if test -n "$ac_tool_prefix"; then
8652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8653 set dummy ${ac_tool_prefix}strip; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_prog_STRIP+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 if test -n "$STRIP"; then
8660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 STRIP=$ac_cv_prog_STRIP
8680 if test -n "$STRIP"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8682 $as_echo "$STRIP" >&6; }
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8690 if test -z "$ac_cv_prog_STRIP"; then
8692 # Extract the first word of "strip", so it can be a program name with args.
8693 set dummy strip; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 if test -n "$ac_ct_STRIP"; then
8700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_ac_ct_STRIP="strip"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8720 if test -n "$ac_ct_STRIP"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8722 $as_echo "$ac_ct_STRIP" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8728 if test "x$ac_ct_STRIP" = x; then
8731 case $cross_compiling:$ac_tool_warned in
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8735 ac_tool_warned=yes ;;
8740 STRIP="$ac_cv_prog_STRIP"
8743 test -z "$STRIP" && STRIP=:
8750 if test -n "$ac_tool_prefix"; then
8751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if ${ac_cv_prog_RANLIB+:} false; then :
8756 $as_echo_n "(cached) " >&6
8758 if test -n "$RANLIB"; then
8759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 RANLIB=$ac_cv_prog_RANLIB
8779 if test -n "$RANLIB"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8781 $as_echo "$RANLIB" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8789 if test -z "$ac_cv_prog_RANLIB"; then
8790 ac_ct_RANLIB=$RANLIB
8791 # Extract the first word of "ranlib", so it can be a program name with args.
8792 set dummy ranlib; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$ac_ct_RANLIB"; then
8799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_ac_ct_RANLIB="ranlib"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8819 if test -n "$ac_ct_RANLIB"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8821 $as_echo "$ac_ct_RANLIB" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8827 if test "x$ac_ct_RANLIB" = x; then
8830 case $cross_compiling:$ac_tool_warned in
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8834 ac_tool_warned=yes ;;
8836 RANLIB=$ac_ct_RANLIB
8839 RANLIB="$ac_cv_prog_RANLIB"
8842 test -z "$RANLIB" && RANLIB=:
8849 # Determine commands to create old-style static archives.
8850 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8851 old_postinstall_cmds='chmod 644 $oldlib'
8852 old_postuninstall_cmds=
8854 if test -n "$RANLIB"; then
8857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8860 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8863 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8868 lock_old_archive_extraction=yes ;;
8870 lock_old_archive_extraction=no ;;
8911 # If no C compiler was specified, use CC.
8914 # If no C compiler flags were specified, use CFLAGS.
8915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8917 # Allow CC to be a program name with arguments.
8921 # Check for command to grab the raw symbol name followed by C symbol from nm.
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8923 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8924 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8925 $as_echo_n "(cached) " >&6
8928 # These are sane defaults that work on at least a few old systems.
8929 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8931 # Character class describing NM global symbol codes.
8932 symcode='[BCDEGRST]'
8934 # Regexp to match symbols that can be accessed directly from C.
8935 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8937 # Define system-specific variables.
8942 cygwin* | mingw* | pw32* | cegcc*)
8943 symcode='[ABCDGISTW]'
8946 if test ia64 = "$host_cpu"; then
8947 symcode='[ABCDEGRST]'
8951 symcode='[BCDEGRST]'
8954 symcode='[BCDEGQRST]'
8965 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8973 # If we're using GNU nm, then use its standard symbol codes.
8974 case `$NM -V 2>&1` in
8975 *GNU* | *'with BFD'*)
8976 symcode='[ABCDGIRSTW]' ;;
8979 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8980 # Gets list of data symbols to import.
8981 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8982 # Adjust the below global symbol transforms to fixup imported variables.
8983 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8984 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8985 lt_c_name_lib_hook="\
8986 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8987 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8989 # Disable hooks by default.
8990 lt_cv_sys_global_symbol_to_import=
8996 # Transform an extracted symbol line into a proper C declaration.
8997 # Some systems (esp. on ia64) link data and code symbols differently,
8998 # so use this general approach.
8999 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9001 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9002 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9004 # Transform an extracted symbol line into symbol name and symbol address
9005 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9007 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9008 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9010 # Transform an extracted symbol line into symbol name with lib prefix and
9012 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9013 $lt_c_name_lib_hook\
9014 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9015 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9016 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9018 # Handle CRLF in mingw tool chain
9022 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9026 # Try without a prefix underscore, then with it.
9027 for ac_symprfx in "" "_"; do
9029 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9030 symxfrm="\\1 $ac_symprfx\\2 \\2"
9032 # Write the raw and C identifiers.
9033 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9034 # Fake it for dumpbin and say T for any non-static function,
9035 # D for any global variable and I for any imported variable.
9036 # Also find C++ and __fastcall symbols from MSVC++,
9037 # which start with @ or ?.
9038 lt_cv_sys_global_symbol_pipe="$AWK '"\
9039 " {last_section=section; section=\$ 3};"\
9040 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9041 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9042 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9043 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9044 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9045 " \$ 0!~/External *\|/{next};"\
9046 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9047 " {if(hide[section]) next};"\
9048 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9049 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9050 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9051 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9052 " ' prfx=^$ac_symprfx"
9054 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9056 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9058 # Check to see that the pipe works correctly.
9062 cat > conftest.$ac_ext <<_LT_EOF
9067 void nm_test_func(void);
9068 void nm_test_func(void){}
9072 int main(){nm_test_var='a';nm_test_func();return(0);}
9075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9076 (eval $ac_compile) 2>&5
9078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9079 test $ac_status = 0; }; then
9080 # Now try to grab the symbols.
9082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9083 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9086 test $ac_status = 0; } && test -s "$nlist"; then
9087 # Try sorting and uniquifying the output.
9088 if sort "$nlist" | uniq > "$nlist"T; then
9089 mv -f "$nlist"T "$nlist"
9094 # Make sure that we snagged all the symbols we need.
9095 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9096 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9097 cat <<_LT_EOF > conftest.$ac_ext
9098 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9099 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9100 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9101 relocations are performed -- see ld's documentation on pseudo-relocs. */
9102 # define LT_DLSYM_CONST
9103 #elif defined __osf__
9104 /* This system does not cope well with relocations in const data. */
9105 # define LT_DLSYM_CONST
9107 # define LT_DLSYM_CONST const
9115 # Now generate the symbol file.
9116 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9118 cat <<_LT_EOF >> conftest.$ac_ext
9120 /* The mapping between symbol names and symbols. */
9121 LT_DLSYM_CONST struct {
9125 lt__PROGRAM__LTX_preloaded_symbols[] =
9127 { "@PROGRAM@", (void *) 0 },
9129 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9130 cat <<\_LT_EOF >> conftest.$ac_ext
9134 /* This works around a problem in FreeBSD linker */
9135 #ifdef FREEBSD_WORKAROUND
9136 static const void *lt_preloaded_setup() {
9137 return lt__PROGRAM__LTX_preloaded_symbols;
9145 # Now try linking the two files.
9146 mv -f conftest.$ac_objext conftstm.$ac_objext
9147 lt_globsym_save_LIBS=$LIBS
9148 lt_globsym_save_CFLAGS=$CFLAGS
9149 LIBS=conftstm.$ac_objext
9150 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9152 (eval $ac_link) 2>&5
9154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9155 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9158 LIBS=$lt_globsym_save_LIBS
9159 CFLAGS=$lt_globsym_save_CFLAGS
9161 echo "cannot find nm_test_func in $nlist" >&5
9164 echo "cannot find nm_test_var in $nlist" >&5
9167 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9170 echo "$progname: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 rm -rf conftest* conftst*
9175 # Do not use the global_symbol_pipe unless it works.
9176 if test yes = "$pipe_works"; then
9179 lt_cv_sys_global_symbol_pipe=
9185 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9186 lt_cv_sys_global_symbol_to_cdecl=
9188 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9190 $as_echo "failed" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9193 $as_echo "ok" >&6; }
9196 # Response file support.
9197 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9198 nm_file_list_spec='@'
9199 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9200 nm_file_list_spec='@'
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9240 $as_echo_n "checking for sysroot... " >&6; }
9242 # Check whether --with-sysroot was given.
9243 if test "${with_sysroot+set}" = set; then :
9244 withval=$with_sysroot;
9251 case $with_sysroot in #(
9253 if test yes = "$GCC"; then
9254 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9258 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9264 $as_echo "$with_sysroot" >&6; }
9265 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9270 $as_echo "${lt_sysroot:-no}" >&6; }
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9277 $as_echo_n "checking for a working dd... " >&6; }
9278 if ${ac_cv_path_lt_DD+:} false; then :
9279 $as_echo_n "(cached) " >&6
9281 printf 0123456789abcdef0123456789abcdef >conftest.i
9282 cat conftest.i conftest.i >conftest2.i
9284 if test -z "$lt_DD"; then
9285 ac_path_lt_DD_found=false
9286 # Loop through the user's path and test for each of PROGNAME-LIST
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 test -z "$as_dir" && as_dir=.
9292 for ac_prog in dd; do
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9295 as_fn_executable_p "$ac_path_lt_DD" || continue
9296 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9297 cmp -s conftest.i conftest.out \
9298 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9300 $ac_path_lt_DD_found && break 3
9305 if test -z "$ac_cv_path_lt_DD"; then
9309 ac_cv_path_lt_DD=$lt_DD
9312 rm -f conftest.i conftest2.i conftest.out
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9315 $as_echo "$ac_cv_path_lt_DD" >&6; }
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9319 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9320 if ${lt_cv_truncate_bin+:} false; then :
9321 $as_echo_n "(cached) " >&6
9323 printf 0123456789abcdef0123456789abcdef >conftest.i
9324 cat conftest.i conftest.i >conftest2.i
9326 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9327 cmp -s conftest.i conftest.out \
9328 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9330 rm -f conftest.i conftest2.i conftest.out
9331 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9334 $as_echo "$lt_cv_truncate_bin" >&6; }
9342 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9345 for cc_temp in $*""; do
9347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9353 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9356 # Check whether --enable-libtool-lock was given.
9357 if test "${enable_libtool_lock+set}" = set; then :
9358 enableval=$enable_libtool_lock;
9361 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9363 # Some flags need to be propagated to the compiler or linker for good
9367 # Find out what ABI is being produced by ac_compile, and set mode
9368 # options accordingly.
9369 echo 'int i;' > conftest.$ac_ext
9370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9371 (eval $ac_compile) 2>&5
9373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9374 test $ac_status = 0; }; then
9375 case `/usr/bin/file conftest.$ac_objext` in
9387 # Find out what ABI is being produced by ac_compile, and set linker
9388 # options accordingly.
9389 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9391 (eval $ac_compile) 2>&5
9393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9394 test $ac_status = 0; }; then
9395 if test yes = "$lt_cv_prog_gnu_ld"; then
9396 case `/usr/bin/file conftest.$ac_objext` in
9398 LD="${LD-ld} -melf32bsmip"
9401 LD="${LD-ld} -melf32bmipn32"
9404 LD="${LD-ld} -melf64bmip"
9408 case `/usr/bin/file conftest.$ac_objext` in
9425 # Find out what ABI is being produced by ac_compile, and set linker
9426 # options accordingly.
9427 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9429 (eval $ac_compile) 2>&5
9431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9432 test $ac_status = 0; }; then
9434 case `/usr/bin/file conftest.$ac_objext` in
9442 case `/usr/bin/file conftest.$ac_objext` in
9444 emul="${emul}btsmip"
9447 emul="${emul}ltsmip"
9450 case `/usr/bin/file conftest.$ac_objext` in
9455 LD="${LD-ld} -m $emul"
9460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9461 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9462 # Find out what ABI is being produced by ac_compile, and set linker
9463 # options accordingly. Note that the listed cases only cover the
9464 # situations where additional linker options are needed (such as when
9465 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9466 # vice versa); the common cases where no linker options are needed do
9467 # not appear in the list.
9468 echo 'int i;' > conftest.$ac_ext
9469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9470 (eval $ac_compile) 2>&5
9472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9473 test $ac_status = 0; }; then
9474 case `/usr/bin/file conftest.o` in
9477 x86_64-*kfreebsd*-gnu)
9478 LD="${LD-ld} -m elf_i386_fbsd"
9481 case `/usr/bin/file conftest.o` in
9483 LD="${LD-ld} -m elf32_x86_64"
9486 LD="${LD-ld} -m elf_i386"
9490 powerpc64le-*linux*)
9491 LD="${LD-ld} -m elf32lppclinux"
9494 LD="${LD-ld} -m elf32ppclinux"
9497 LD="${LD-ld} -m elf_s390"
9500 LD="${LD-ld} -m elf32_sparc"
9506 x86_64-*kfreebsd*-gnu)
9507 LD="${LD-ld} -m elf_x86_64_fbsd"
9510 LD="${LD-ld} -m elf_x86_64"
9513 LD="${LD-ld} -m elf64lppc"
9516 LD="${LD-ld} -m elf64ppc"
9518 s390*-*linux*|s390*-*tpf*)
9519 LD="${LD-ld} -m elf64_s390"
9522 LD="${LD-ld} -m elf64_sparc"
9532 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9534 CFLAGS="$CFLAGS -belf"
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9536 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9537 if ${lt_cv_cc_needs_belf+:} false; then :
9538 $as_echo_n "(cached) " >&6
9541 ac_cpp='$CPP $CPPFLAGS'
9542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9556 if ac_fn_c_try_link "$LINENO"; then :
9557 lt_cv_cc_needs_belf=yes
9559 lt_cv_cc_needs_belf=no
9561 rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9564 ac_cpp='$CPP $CPPFLAGS'
9565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9571 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9572 if test yes != "$lt_cv_cc_needs_belf"; then
9573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9578 # Find out what ABI is being produced by ac_compile, and set linker
9579 # options accordingly.
9580 echo 'int i;' > conftest.$ac_ext
9581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9582 (eval $ac_compile) 2>&5
9584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9585 test $ac_status = 0; }; then
9586 case `/usr/bin/file conftest.o` in
9588 case $lt_cv_prog_gnu_ld in
9591 i?86-*-solaris*|x86_64-*-solaris*)
9592 LD="${LD-ld} -m elf_x86_64"
9595 LD="${LD-ld} -m elf64_sparc"
9598 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9599 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9604 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9616 need_locks=$enable_libtool_lock
9618 if test -n "$ac_tool_prefix"; then
9619 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9620 set dummy ${ac_tool_prefix}mt; ac_word=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9624 $as_echo_n "(cached) " >&6
9626 if test -n "$MANIFEST_TOOL"; then
9627 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9636 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9647 if test -n "$MANIFEST_TOOL"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9649 $as_echo "$MANIFEST_TOOL" >&6; }
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9657 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9658 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9659 # Extract the first word of "mt", so it can be a program name with args.
9660 set dummy mt; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9664 $as_echo_n "(cached) " >&6
9666 if test -n "$ac_ct_MANIFEST_TOOL"; then
9667 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9687 if test -n "$ac_ct_MANIFEST_TOOL"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9689 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9695 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9698 case $cross_compiling:$ac_tool_warned in
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702 ac_tool_warned=yes ;;
9704 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9707 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9710 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9712 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9713 if ${lt_cv_path_mainfest_tool+:} false; then :
9714 $as_echo_n "(cached) " >&6
9716 lt_cv_path_mainfest_tool=no
9717 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9718 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9719 cat conftest.err >&5
9720 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9721 lt_cv_path_mainfest_tool=yes
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9726 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9727 if test yes != "$lt_cv_path_mainfest_tool"; then
9737 rhapsody* | darwin*)
9738 if test -n "$ac_tool_prefix"; then
9739 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9740 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9744 $as_echo_n "(cached) " >&6
9746 if test -n "$DSYMUTIL"; then
9747 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 test -z "$as_dir" && as_dir=.
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9756 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9767 if test -n "$DSYMUTIL"; then
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9769 $as_echo "$DSYMUTIL" >&6; }
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }
9777 if test -z "$ac_cv_prog_DSYMUTIL"; then
9778 ac_ct_DSYMUTIL=$DSYMUTIL
9779 # Extract the first word of "dsymutil", so it can be a program name with args.
9780 set dummy dsymutil; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9784 $as_echo_n "(cached) " >&6
9786 if test -n "$ac_ct_DSYMUTIL"; then
9787 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9807 if test -n "$ac_ct_DSYMUTIL"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9809 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9815 if test "x$ac_ct_DSYMUTIL" = x; then
9818 case $cross_compiling:$ac_tool_warned in
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9822 ac_tool_warned=yes ;;
9824 DSYMUTIL=$ac_ct_DSYMUTIL
9827 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9830 if test -n "$ac_tool_prefix"; then
9831 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9832 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_prog_NMEDIT+:} false; then :
9836 $as_echo_n "(cached) " >&6
9838 if test -n "$NMEDIT"; then
9839 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858 NMEDIT=$ac_cv_prog_NMEDIT
9859 if test -n "$NMEDIT"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9861 $as_echo "$NMEDIT" >&6; }
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9869 if test -z "$ac_cv_prog_NMEDIT"; then
9870 ac_ct_NMEDIT=$NMEDIT
9871 # Extract the first word of "nmedit", so it can be a program name with args.
9872 set dummy nmedit; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9876 $as_echo_n "(cached) " >&6
9878 if test -n "$ac_ct_NMEDIT"; then
9879 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9899 if test -n "$ac_ct_NMEDIT"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9901 $as_echo "$ac_ct_NMEDIT" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9907 if test "x$ac_ct_NMEDIT" = x; then
9910 case $cross_compiling:$ac_tool_warned in
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9914 ac_tool_warned=yes ;;
9916 NMEDIT=$ac_ct_NMEDIT
9919 NMEDIT="$ac_cv_prog_NMEDIT"
9922 if test -n "$ac_tool_prefix"; then
9923 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9924 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_prog_LIPO+:} false; then :
9928 $as_echo_n "(cached) " >&6
9930 if test -n "$LIPO"; then
9931 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9940 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 LIPO=$ac_cv_prog_LIPO
9951 if test -n "$LIPO"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9953 $as_echo "$LIPO" >&6; }
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9961 if test -z "$ac_cv_prog_LIPO"; then
9963 # Extract the first word of "lipo", so it can be a program name with args.
9964 set dummy lipo; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9968 $as_echo_n "(cached) " >&6
9970 if test -n "$ac_ct_LIPO"; then
9971 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980 ac_cv_prog_ac_ct_LIPO="lipo"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9991 if test -n "$ac_ct_LIPO"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9993 $as_echo "$ac_ct_LIPO" >&6; }
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9999 if test "x$ac_ct_LIPO" = x; then
10002 case $cross_compiling:$ac_tool_warned in
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10006 ac_tool_warned=yes ;;
10011 LIPO="$ac_cv_prog_LIPO"
10014 if test -n "$ac_tool_prefix"; then
10015 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10016 set dummy ${ac_tool_prefix}otool; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if ${ac_cv_prog_OTOOL+:} false; then :
10020 $as_echo_n "(cached) " >&6
10022 if test -n "$OTOOL"; then
10023 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10032 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 OTOOL=$ac_cv_prog_OTOOL
10043 if test -n "$OTOOL"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10045 $as_echo "$OTOOL" >&6; }
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10053 if test -z "$ac_cv_prog_OTOOL"; then
10055 # Extract the first word of "otool", so it can be a program name with args.
10056 set dummy otool; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10060 $as_echo_n "(cached) " >&6
10062 if test -n "$ac_ct_OTOOL"; then
10063 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10072 ac_cv_prog_ac_ct_OTOOL="otool"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10083 if test -n "$ac_ct_OTOOL"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10085 $as_echo "$ac_ct_OTOOL" >&6; }
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10091 if test "x$ac_ct_OTOOL" = x; then
10094 case $cross_compiling:$ac_tool_warned in
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10098 ac_tool_warned=yes ;;
10103 OTOOL="$ac_cv_prog_OTOOL"
10106 if test -n "$ac_tool_prefix"; then
10107 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10108 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_prog_OTOOL64+:} false; then :
10112 $as_echo_n "(cached) " >&6
10114 if test -n "$OTOOL64"; then
10115 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 OTOOL64=$ac_cv_prog_OTOOL64
10135 if test -n "$OTOOL64"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10137 $as_echo "$OTOOL64" >&6; }
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10145 if test -z "$ac_cv_prog_OTOOL64"; then
10146 ac_ct_OTOOL64=$OTOOL64
10147 # Extract the first word of "otool64", so it can be a program name with args.
10148 set dummy otool64; ac_word=$2
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150 $as_echo_n "checking for $ac_word... " >&6; }
10151 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10152 $as_echo_n "(cached) " >&6
10154 if test -n "$ac_ct_OTOOL64"; then
10155 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158 for as_dir in $PATH
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
10163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10164 ac_cv_prog_ac_ct_OTOOL64="otool64"
10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10175 if test -n "$ac_ct_OTOOL64"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10177 $as_echo "$ac_ct_OTOOL64" >&6; }
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10183 if test "x$ac_ct_OTOOL64" = x; then
10186 case $cross_compiling:$ac_tool_warned in
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10190 ac_tool_warned=yes ;;
10192 OTOOL64=$ac_ct_OTOOL64
10195 OTOOL64="$ac_cv_prog_OTOOL64"
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10225 $as_echo_n "checking for -single_module linker flag... " >&6; }
10226 if ${lt_cv_apple_cc_single_mod+:} false; then :
10227 $as_echo_n "(cached) " >&6
10229 lt_cv_apple_cc_single_mod=no
10230 if test -z "$LT_MULTI_MODULE"; then
10231 # By default we will add the -single_module flag. You can override
10232 # by either setting the environment variable LT_MULTI_MODULE
10233 # non-empty at configure time, or by adding -multi_module to the
10235 rm -rf libconftest.dylib*
10236 echo "int foo(void){return 1;}" > conftest.c
10237 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10238 -dynamiclib -Wl,-single_module conftest.c" >&5
10239 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10240 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10242 # If there is a non-empty error log, and "single_module"
10243 # appears in it, assume the flag caused a linker warning
10244 if test -s conftest.err && $GREP single_module conftest.err; then
10245 cat conftest.err >&5
10246 # Otherwise, if the output was created with a 0 exit code from
10247 # the compiler, it worked.
10248 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10249 lt_cv_apple_cc_single_mod=yes
10251 cat conftest.err >&5
10253 rm -rf libconftest.dylib*
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10258 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10261 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10262 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10263 $as_echo_n "(cached) " >&6
10265 lt_cv_ld_exported_symbols_list=no
10266 save_LDFLAGS=$LDFLAGS
10267 echo "_main" > conftest.sym
10268 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 lt_cv_ld_exported_symbols_list=yes
10282 lt_cv_ld_exported_symbols_list=no
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LDFLAGS=$save_LDFLAGS
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10290 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10293 $as_echo_n "checking for -force_load linker flag... " >&6; }
10294 if ${lt_cv_ld_force_load+:} false; then :
10295 $as_echo_n "(cached) " >&6
10297 lt_cv_ld_force_load=no
10298 cat > conftest.c << _LT_EOF
10299 int forced_loaded() { return 2;}
10301 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10302 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10303 echo "$AR cru libconftest.a conftest.o" >&5
10304 $AR cru libconftest.a conftest.o 2>&5
10305 echo "$RANLIB libconftest.a" >&5
10306 $RANLIB libconftest.a 2>&5
10307 cat > conftest.c << _LT_EOF
10308 int main() { return 0;}
10310 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10311 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10313 if test -s conftest.err && $GREP force_load conftest.err; then
10314 cat conftest.err >&5
10315 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10316 lt_cv_ld_force_load=yes
10318 cat conftest.err >&5
10320 rm -f conftest.err libconftest.a conftest conftest.c
10321 rm -rf conftest.dSYM
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10325 $as_echo "$lt_cv_ld_force_load" >&6; }
10327 rhapsody* | darwin1.[012])
10328 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10330 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10331 darwin*) # darwin 5.x on
10332 # if running on 10.5 or later, the deployment target defaults
10333 # to the OS version, if on x86, and 10.4, the deployment
10334 # target defaults to 10.4. Don't you love it?
10335 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10336 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10337 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10339 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10341 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10345 if test yes = "$lt_cv_apple_cc_single_mod"; then
10346 _lt_dar_single_mod='$single_module'
10348 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10349 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10351 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10353 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10354 _lt_dsymutil='~$DSYMUTIL $lib || :'
10361 # func_munge_path_list VARIABLE PATH
10362 # -----------------------------------
10363 # VARIABLE is name of variable containing _space_ separated list of
10364 # directories to be munged by the contents of PATH, which is string
10367 # string "DIR[ DIR]" will be prepended to VARIABLE
10369 # string "DIR[ DIR]" will be appended to VARIABLE
10370 # "DIRP[:DIRP]::[DIRA:]DIRA"
10371 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10372 # "DIRA[ DIRA]" will be appended to VARIABLE
10374 # VARIABLE will be replaced by "DIR[ DIR]"
10375 func_munge_path_list ()
10381 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10384 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10387 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10388 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10397 $as_echo_n "checking for ANSI C header files... " >&6; }
10398 if ${ac_cv_header_stdc+:} false; then :
10399 $as_echo_n "(cached) " >&6
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 #include <stdlib.h>
10404 #include <stdarg.h>
10405 #include <string.h>
10415 if ac_fn_c_try_compile "$LINENO"; then :
10416 ac_cv_header_stdc=yes
10418 ac_cv_header_stdc=no
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 if test $ac_cv_header_stdc = yes; then
10423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #include <string.h>
10429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10430 $EGREP "memchr" >/dev/null 2>&1; then :
10433 ac_cv_header_stdc=no
10439 if test $ac_cv_header_stdc = yes; then
10440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10443 #include <stdlib.h>
10446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10447 $EGREP "free" >/dev/null 2>&1; then :
10450 ac_cv_header_stdc=no
10456 if test $ac_cv_header_stdc = yes; then
10457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10458 if test "$cross_compiling" = yes; then :
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 #include <stdlib.h>
10465 #if ((' ' & 0x0FF) == 0x020)
10466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10469 # define ISLOWER(c) \
10470 (('a' <= (c) && (c) <= 'i') \
10471 || ('j' <= (c) && (c) <= 'r') \
10472 || ('s' <= (c) && (c) <= 'z'))
10473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10481 for (i = 0; i < 256; i++)
10482 if (XOR (islower (i), ISLOWER (i))
10483 || toupper (i) != TOUPPER (i))
10488 if ac_fn_c_try_run "$LINENO"; then :
10491 ac_cv_header_stdc=no
10493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10494 conftest.$ac_objext conftest.beam conftest.$ac_ext
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10500 $as_echo "$ac_cv_header_stdc" >&6; }
10501 if test $ac_cv_header_stdc = yes; then
10503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10507 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10509 inttypes.h stdint.h unistd.h
10511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10515 cat >>confdefs.h <<_ACEOF
10516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10524 for ac_header in dlfcn.h
10526 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10528 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10529 cat >>confdefs.h <<_ACEOF
10530 #define HAVE_DLFCN_H 1
10537 # ------------------------------------ #
10538 # Determine libtool default behavior #
10539 # ------------------------------------ #
10542 # Default behavior is to enable shared and static libraries on systems
10543 # where libtool knows how to build both library versions, and does not
10544 # require separate configuration and build runs for each flavor.
10547 xc_lt_want_enable_shared='yes'
10548 xc_lt_want_enable_static='yes'
10551 # User may have disabled shared or static libraries.
10553 case "x$enable_shared" in # (
10555 xc_lt_want_enable_shared='no'
10558 case "x$enable_static" in # (
10560 xc_lt_want_enable_static='no'
10563 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10564 test "x$xc_lt_want_enable_static" = 'xno'; then
10565 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10569 # Default behavior on systems that require independent configuration
10570 # and build runs for shared and static is to enable shared libraries
10571 # and disable static ones. On these systems option '--disable-shared'
10572 # must be used in order to build a proper static library.
10575 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10576 test "x$xc_lt_want_enable_static" = 'xyes'; then
10577 case $host_os in # (
10578 mingw* | pw32* | cegcc* | os2* | aix*)
10579 xc_lt_want_enable_static='no'
10585 # Make libtool aware of current shared and static library preferences
10586 # taking in account that, depending on host characteristics, libtool
10587 # may modify these option preferences later in this configure script.
10590 enable_shared=$xc_lt_want_enable_shared
10591 enable_static=$xc_lt_want_enable_static
10594 # Default behavior is to build PIC objects for shared libraries and
10595 # non-PIC objects for static libraries.
10598 xc_lt_want_with_pic='default'
10601 # User may have specified PIC preference.
10604 case "x$with_pic" in # ((
10606 xc_lt_want_with_pic='no'
10609 xc_lt_want_with_pic='yes'
10614 # Default behavior on some systems where building a shared library out
10615 # of non-PIC compiled objects will fail with following linker error
10616 # "relocation R_X86_64_32 can not be used when making a shared object"
10617 # is to build PIC objects even for static libraries. This behavior may
10618 # be overriden using 'configure --disable-shared --without-pic'.
10621 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10622 case $host_cpu in # (
10623 x86_64 | amd64 | ia64)
10624 case $host_os in # (
10626 xc_lt_want_with_pic='yes'
10634 # Make libtool aware of current PIC preference taking in account that,
10635 # depending on host characteristics, libtool may modify PIC default
10636 # behavior to fit host system idiosyncrasies later in this script.
10639 with_pic=$xc_lt_want_with_pic
10641 ## ----------------------- ##
10642 ## Start of libtool code ##
10643 ## ----------------------- ##
10649 enable_win32_dll=yes
10652 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10653 if test -n "$ac_tool_prefix"; then
10654 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10655 set dummy ${ac_tool_prefix}as; ac_word=$2
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657 $as_echo_n "checking for $ac_word... " >&6; }
10658 if ${ac_cv_prog_AS+:} false; then :
10659 $as_echo_n "(cached) " >&6
10661 if test -n "$AS"; then
10662 ac_cv_prog_AS="$AS" # Let the user override the test.
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671 ac_cv_prog_AS="${ac_tool_prefix}as"
10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 if test -n "$AS"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10684 $as_echo "$AS" >&6; }
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }
10692 if test -z "$ac_cv_prog_AS"; then
10694 # Extract the first word of "as", so it can be a program name with args.
10695 set dummy as; ac_word=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10699 $as_echo_n "(cached) " >&6
10701 if test -n "$ac_ct_AS"; then
10702 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10711 ac_cv_prog_ac_ct_AS="as"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10722 if test -n "$ac_ct_AS"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10724 $as_echo "$ac_ct_AS" >&6; }
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10730 if test "x$ac_ct_AS" = x; then
10733 case $cross_compiling:$ac_tool_warned in
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10737 ac_tool_warned=yes ;;
10742 AS="$ac_cv_prog_AS"
10745 if test -n "$ac_tool_prefix"; then
10746 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10747 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_prog_DLLTOOL+:} false; then :
10751 $as_echo_n "(cached) " >&6
10753 if test -n "$DLLTOOL"; then
10754 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 DLLTOOL=$ac_cv_prog_DLLTOOL
10774 if test -n "$DLLTOOL"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10776 $as_echo "$DLLTOOL" >&6; }
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10784 if test -z "$ac_cv_prog_DLLTOOL"; then
10785 ac_ct_DLLTOOL=$DLLTOOL
10786 # Extract the first word of "dlltool", so it can be a program name with args.
10787 set dummy dlltool; ac_word=$2
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789 $as_echo_n "checking for $ac_word... " >&6; }
10790 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10791 $as_echo_n "(cached) " >&6
10793 if test -n "$ac_ct_DLLTOOL"; then
10794 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10814 if test -n "$ac_ct_DLLTOOL"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10816 $as_echo "$ac_ct_DLLTOOL" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10822 if test "x$ac_ct_DLLTOOL" = x; then
10825 case $cross_compiling:$ac_tool_warned in
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10829 ac_tool_warned=yes ;;
10831 DLLTOOL=$ac_ct_DLLTOOL
10834 DLLTOOL="$ac_cv_prog_DLLTOOL"
10837 if test -n "$ac_tool_prefix"; then
10838 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10839 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if ${ac_cv_prog_OBJDUMP+:} false; then :
10843 $as_echo_n "(cached) " >&6
10845 if test -n "$OBJDUMP"; then
10846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849 for as_dir in $PATH
10852 test -z "$as_dir" && as_dir=.
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10855 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 OBJDUMP=$ac_cv_prog_OBJDUMP
10866 if test -n "$OBJDUMP"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10868 $as_echo "$OBJDUMP" >&6; }
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10876 if test -z "$ac_cv_prog_OBJDUMP"; then
10877 ac_ct_OBJDUMP=$OBJDUMP
10878 # Extract the first word of "objdump", so it can be a program name with args.
10879 set dummy objdump; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10883 $as_echo_n "(cached) " >&6
10885 if test -n "$ac_ct_OBJDUMP"; then
10886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10906 if test -n "$ac_ct_OBJDUMP"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10908 $as_echo "$ac_ct_OBJDUMP" >&6; }
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10914 if test "x$ac_ct_OBJDUMP" = x; then
10917 case $cross_compiling:$ac_tool_warned in
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10921 ac_tool_warned=yes ;;
10923 OBJDUMP=$ac_ct_OBJDUMP
10926 OBJDUMP="$ac_cv_prog_OBJDUMP"
10932 test -z "$AS" && AS=as
10938 test -z "$DLLTOOL" && DLLTOOL=dlltool
10944 test -z "$OBJDUMP" && OBJDUMP=objdump
10956 # Check whether --enable-shared was given.
10957 if test "${enable_shared+set}" = set; then :
10958 enableval=$enable_shared; p=${PACKAGE-default}
10960 yes) enable_shared=yes ;;
10961 no) enable_shared=no ;;
10964 # Look at the argument we got. We use all the common list separators.
10965 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10966 for pkg in $enableval; do
10968 if test "X$pkg" = "X$p"; then
10987 # Check whether --enable-static was given.
10988 if test "${enable_static+set}" = set; then :
10989 enableval=$enable_static; p=${PACKAGE-default}
10991 yes) enable_static=yes ;;
10992 no) enable_static=no ;;
10995 # Look at the argument we got. We use all the common list separators.
10996 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10997 for pkg in $enableval; do
10999 if test "X$pkg" = "X$p"; then
11019 # Check whether --with-pic was given.
11020 if test "${with_pic+set}" = set; then :
11021 withval=$with_pic; lt_p=${PACKAGE-default}
11023 yes|no) pic_mode=$withval ;;
11026 # Look at the argument we got. We use all the common list separators.
11027 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11028 for lt_pkg in $withval; do
11030 if test "X$lt_pkg" = "X$lt_p"; then
11048 # Check whether --enable-fast-install was given.
11049 if test "${enable_fast_install+set}" = set; then :
11050 enableval=$enable_fast_install; p=${PACKAGE-default}
11052 yes) enable_fast_install=yes ;;
11053 no) enable_fast_install=no ;;
11055 enable_fast_install=no
11056 # Look at the argument we got. We use all the common list separators.
11057 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11058 for pkg in $enableval; do
11060 if test "X$pkg" = "X$p"; then
11061 enable_fast_install=yes
11068 enable_fast_install=yes
11078 shared_archive_member_spec=
11079 case $host,$enable_shared in
11080 power*-*-aix[5-9]*,yes)
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11082 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11084 # Check whether --with-aix-soname was given.
11085 if test "${with_aix_soname+set}" = set; then :
11086 withval=$with_aix_soname; case $withval in
11090 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11093 lt_cv_with_aix_soname=$with_aix_soname
11095 if ${lt_cv_with_aix_soname+:} false; then :
11096 $as_echo_n "(cached) " >&6
11098 lt_cv_with_aix_soname=aix
11101 with_aix_soname=$lt_cv_with_aix_soname
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11105 $as_echo "$with_aix_soname" >&6; }
11106 if test aix != "$with_aix_soname"; then
11107 # For the AIX way of multilib, we name the shared archive member
11108 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11109 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11110 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11111 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11112 if test 64 = "${OBJECT_MODE-32}"; then
11113 shared_archive_member_spec=shr_64
11115 shared_archive_member_spec=shr
11120 with_aix_soname=aix
11133 # This can be used to rebuild libtool when needed
11134 LIBTOOL_DEPS=$ltmain
11136 # Always use our own libtool.
11137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11168 test -z "$LN_S" && LN_S="ln -s"
11183 if test -n "${ZSH_VERSION+set}"; then
11184 setopt NO_GLOB_SUBST
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11188 $as_echo_n "checking for objdir... " >&6; }
11189 if ${lt_cv_objdir+:} false; then :
11190 $as_echo_n "(cached) " >&6
11192 rm -f .libs 2>/dev/null
11193 mkdir .libs 2>/dev/null
11194 if test -d .libs; then
11197 # MS-DOS does not allow filenames that begin with a dot.
11200 rmdir .libs 2>/dev/null
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11203 $as_echo "$lt_cv_objdir" >&6; }
11204 objdir=$lt_cv_objdir
11210 cat >>confdefs.h <<_ACEOF
11211 #define LT_OBJDIR "$lt_cv_objdir/"
11219 # AIX sometimes has problems with the GCC collect2 program. For some
11220 # reason, if we set the COLLECT_NAMES environment variable, the problems
11221 # vanish in a puff of smoke.
11222 if test set != "${COLLECT_NAMES+set}"; then
11224 export COLLECT_NAMES
11229 # Global variables:
11231 can_build_shared=yes
11233 # All known linkers require a '.a' archive for static linking (except MSVC,
11234 # which needs '.lib').
11237 with_gnu_ld=$lt_cv_prog_gnu_ld
11242 # Set sane defaults for various variables
11243 test -z "$CC" && CC=cc
11244 test -z "$LTCC" && LTCC=$CC
11245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11246 test -z "$LD" && LD=ld
11247 test -z "$ac_objext" && ac_objext=o
11249 func_cc_basename $compiler
11250 cc_basename=$func_cc_basename_result
11253 # Only perform the check for file, if the check method requires it
11254 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11255 case $deplibs_check_method in
11257 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11259 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11260 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11261 $as_echo_n "(cached) " >&6
11265 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11268 lt_save_MAGIC_CMD=$MAGIC_CMD
11269 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11271 for ac_dir in $ac_dummy; do
11273 test -z "$ac_dir" && ac_dir=.
11274 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11275 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11276 if test -n "$file_magic_test_file"; then
11277 case $deplibs_check_method in
11279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11280 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11282 $EGREP "$file_magic_regex" > /dev/null; then
11287 *** Warning: the command libtool uses to detect shared libraries,
11288 *** $file_magic_cmd, produces output that libtool cannot recognize.
11289 *** The result is that libtool may fail to recognize shared libraries
11290 *** as such. This will affect the creation of libtool libraries that
11291 *** depend on shared libraries, but programs linked with such libtool
11292 *** libraries will work regardless of this problem. Nevertheless, you
11293 *** may want to report the problem to your system manager and/or to
11294 *** bug-libtool@gnu.org
11304 MAGIC_CMD=$lt_save_MAGIC_CMD
11309 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11310 if test -n "$MAGIC_CMD"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11312 $as_echo "$MAGIC_CMD" >&6; }
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11322 if test -z "$lt_cv_path_MAGIC_CMD"; then
11323 if test -n "$ac_tool_prefix"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11325 $as_echo_n "checking for file... " >&6; }
11326 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11327 $as_echo_n "(cached) " >&6
11331 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11334 lt_save_MAGIC_CMD=$MAGIC_CMD
11335 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11336 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11337 for ac_dir in $ac_dummy; do
11339 test -z "$ac_dir" && ac_dir=.
11340 if test -f "$ac_dir/file"; then
11341 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11342 if test -n "$file_magic_test_file"; then
11343 case $deplibs_check_method in
11345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11346 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11348 $EGREP "$file_magic_regex" > /dev/null; then
11353 *** Warning: the command libtool uses to detect shared libraries,
11354 *** $file_magic_cmd, produces output that libtool cannot recognize.
11355 *** The result is that libtool may fail to recognize shared libraries
11356 *** as such. This will affect the creation of libtool libraries that
11357 *** depend on shared libraries, but programs linked with such libtool
11358 *** libraries will work regardless of this problem. Nevertheless, you
11359 *** may want to report the problem to your system manager and/or to
11360 *** bug-libtool@gnu.org
11370 MAGIC_CMD=$lt_save_MAGIC_CMD
11375 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11376 if test -n "$MAGIC_CMD"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11378 $as_echo "$MAGIC_CMD" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11394 # Use C for the default configuration in the libtool script
11398 ac_cpp='$CPP $CPPFLAGS'
11399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11404 # Source file extension for C test sources.
11407 # Object file extension for compiled C test sources.
11411 # Code to be used in simple compile tests
11412 lt_simple_compile_test_code="int some_variable = 0;"
11414 # Code to be used in simple link tests
11415 lt_simple_link_test_code='int main(){return(0);}'
11423 # If no C compiler was specified, use CC.
11426 # If no C compiler flags were specified, use CFLAGS.
11427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11429 # Allow CC to be a program name with arguments.
11432 # Save the default compiler, since it gets overwritten when the other
11433 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11434 compiler_DEFAULT=$CC
11436 # save warnings/boilerplate of simple test code
11437 ac_outfile=conftest.$ac_objext
11438 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11440 _lt_compiler_boilerplate=`cat conftest.err`
11443 ac_outfile=conftest.$ac_objext
11444 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11446 _lt_linker_boilerplate=`cat conftest.err`
11451 ## There is no encapsulation within the following macros, do not change
11452 ## the running order or otherwise move them around unless you know exactly
11453 ## what you are doing...
11454 if test -n "$compiler"; then
11456 lt_prog_compiler_no_builtin_flag=
11458 if test yes = "$GCC"; then
11459 case $cc_basename in
11461 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11463 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11467 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11468 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11469 $as_echo_n "(cached) " >&6
11471 lt_cv_prog_compiler_rtti_exceptions=no
11472 ac_outfile=conftest.$ac_objext
11473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11474 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11475 # Insert the option either (1) after the last *FLAGS variable, or
11476 # (2) before a word containing "conftest.", or (3) at the end.
11477 # Note that $ac_compile itself does not contain backslashes and begins
11478 # with a dollar sign (not a hyphen), so the echo should work correctly.
11479 # The option is referenced via a variable to avoid confusing sed.
11480 lt_compile=`echo "$ac_compile" | $SED \
11481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11483 -e 's:$: $lt_compiler_flag:'`
11484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11485 (eval "$lt_compile" 2>conftest.err)
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 if (exit $ac_status) && test -s "$ac_outfile"; then
11490 # The compiler can only warn and ignore the option if not recognized
11491 # So say no if there are warnings other than the usual output.
11492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11495 lt_cv_prog_compiler_rtti_exceptions=yes
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11502 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11504 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11505 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11517 lt_prog_compiler_wl=
11518 lt_prog_compiler_pic=
11519 lt_prog_compiler_static=
11522 if test yes = "$GCC"; then
11523 lt_prog_compiler_wl='-Wl,'
11524 lt_prog_compiler_static='-static'
11528 # All AIX code is PIC.
11529 if test ia64 = "$host_cpu"; then
11530 # AIX 5 now supports IA64 processor
11531 lt_prog_compiler_static='-Bstatic'
11533 lt_prog_compiler_pic='-fPIC'
11539 # see comment about AmigaOS4 .so support
11540 lt_prog_compiler_pic='-fPIC'
11543 # FIXME: we need at least 68020 code to build shared libraries, but
11544 # adding the '-m68020' flag to GCC prevents building anything better,
11546 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11551 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11552 # PIC is the default for these OSes.
11555 mingw* | cygwin* | pw32* | os2* | cegcc*)
11556 # This hack is so that the source file can tell whether it is being
11557 # built for inclusion in a dll (and should export symbols for example).
11558 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11559 # (--disable-auto-import) libraries
11560 lt_prog_compiler_pic='-DDLL_EXPORT'
11563 lt_prog_compiler_static='$wl-static'
11568 darwin* | rhapsody*)
11569 # PIC is the default on this platform
11570 # Common symbols not allowed in MH_DYLIB files
11571 lt_prog_compiler_pic='-fno-common'
11575 # PIC is the default for Haiku.
11576 # The "-static" flag exists, but is broken.
11577 lt_prog_compiler_static=
11581 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11582 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11583 # sets the default TLS model and affects inlining.
11589 lt_prog_compiler_pic='-fPIC'
11595 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11596 # Instead, we relocate shared libraries at runtime.
11600 # Just because we use GCC doesn't mean we suddenly get shared libraries
11601 # on systems that don't support them.
11602 lt_prog_compiler_can_build_shared=no
11607 # QNX uses GNU C++, but need to define -shared option too, otherwise
11608 # it will coredump.
11609 lt_prog_compiler_pic='-fPIC -shared'
11613 if test -d /usr/nec; then
11614 lt_prog_compiler_pic=-Kconform_pic
11619 lt_prog_compiler_pic='-fPIC'
11623 case $cc_basename in
11624 nvcc*) # Cuda Compiler Driver 2.2
11625 lt_prog_compiler_wl='-Xlinker '
11626 if test -n "$lt_prog_compiler_pic"; then
11627 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11632 # PORTME Check for flag to pass linker flags through the system compiler.
11635 lt_prog_compiler_wl='-Wl,'
11636 if test ia64 = "$host_cpu"; then
11637 # AIX 5 now supports IA64 processor
11638 lt_prog_compiler_static='-Bstatic'
11640 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11644 darwin* | rhapsody*)
11645 # PIC is the default on this platform
11646 # Common symbols not allowed in MH_DYLIB files
11647 lt_prog_compiler_pic='-fno-common'
11648 case $cc_basename in
11650 # NAG Fortran compiler
11651 lt_prog_compiler_wl='-Wl,-Wl,,'
11652 lt_prog_compiler_pic='-PIC'
11653 lt_prog_compiler_static='-Bstatic'
11658 mingw* | cygwin* | pw32* | os2* | cegcc*)
11659 # This hack is so that the source file can tell whether it is being
11660 # built for inclusion in a dll (and should export symbols for example).
11661 lt_prog_compiler_pic='-DDLL_EXPORT'
11664 lt_prog_compiler_static='$wl-static'
11669 hpux9* | hpux10* | hpux11*)
11670 lt_prog_compiler_wl='-Wl,'
11671 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11672 # not for PA HP-UX.
11678 lt_prog_compiler_pic='+Z'
11681 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11682 lt_prog_compiler_static='$wl-a ${wl}archive'
11685 irix5* | irix6* | nonstopux*)
11686 lt_prog_compiler_wl='-Wl,'
11687 # PIC (with -KPIC) is the default.
11688 lt_prog_compiler_static='-non_shared'
11691 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11692 case $cc_basename in
11693 # old Intel for x86_64, which still supported -KPIC.
11695 lt_prog_compiler_wl='-Wl,'
11696 lt_prog_compiler_pic='-KPIC'
11697 lt_prog_compiler_static='-static'
11699 # icc used to be incompatible with GCC.
11700 # ICC 10 doesn't accept -KPIC any more.
11702 lt_prog_compiler_wl='-Wl,'
11703 lt_prog_compiler_pic='-fPIC'
11704 lt_prog_compiler_static='-static'
11706 # Lahey Fortran 8.1.
11708 lt_prog_compiler_wl='-Wl,'
11709 lt_prog_compiler_pic='--shared'
11710 lt_prog_compiler_static='--static'
11713 # NAG Fortran compiler
11714 lt_prog_compiler_wl='-Wl,-Wl,,'
11715 lt_prog_compiler_pic='-PIC'
11716 lt_prog_compiler_static='-Bstatic'
11719 # Fabrice Bellard et al's Tiny C Compiler
11720 lt_prog_compiler_wl='-Wl,'
11721 lt_prog_compiler_pic='-fPIC'
11722 lt_prog_compiler_static='-static'
11724 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11725 # Portland Group compilers (*not* the Pentium gcc compiler,
11726 # which looks to be a dead project)
11727 lt_prog_compiler_wl='-Wl,'
11728 lt_prog_compiler_pic='-fpic'
11729 lt_prog_compiler_static='-Bstatic'
11732 lt_prog_compiler_wl='-Wl,'
11733 # All Alpha code is PIC.
11734 lt_prog_compiler_static='-non_shared'
11736 xl* | bgxl* | bgf* | mpixl*)
11737 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11738 lt_prog_compiler_wl='-Wl,'
11739 lt_prog_compiler_pic='-qpic'
11740 lt_prog_compiler_static='-qstaticlink'
11743 case `$CC -V 2>&1 | sed 5q` in
11744 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11745 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11746 lt_prog_compiler_pic='-KPIC'
11747 lt_prog_compiler_static='-Bstatic'
11748 lt_prog_compiler_wl=''
11750 *Sun\ F* | *Sun*Fortran*)
11751 lt_prog_compiler_pic='-KPIC'
11752 lt_prog_compiler_static='-Bstatic'
11753 lt_prog_compiler_wl='-Qoption ld '
11757 lt_prog_compiler_pic='-KPIC'
11758 lt_prog_compiler_static='-Bstatic'
11759 lt_prog_compiler_wl='-Wl,'
11761 *Intel*\ [CF]*Compiler*)
11762 lt_prog_compiler_wl='-Wl,'
11763 lt_prog_compiler_pic='-fPIC'
11764 lt_prog_compiler_static='-static'
11767 lt_prog_compiler_wl='-Wl,'
11768 lt_prog_compiler_pic='-fpic'
11769 lt_prog_compiler_static='-Bstatic'
11777 lt_prog_compiler_pic='-KPIC'
11778 lt_prog_compiler_static='-Bstatic'
11782 # QNX uses GNU C++, but need to define -shared option too, otherwise
11783 # it will coredump.
11784 lt_prog_compiler_pic='-fPIC -shared'
11787 osf3* | osf4* | osf5*)
11788 lt_prog_compiler_wl='-Wl,'
11789 # All OSF/1 code is PIC.
11790 lt_prog_compiler_static='-non_shared'
11794 lt_prog_compiler_static='-non_shared'
11798 lt_prog_compiler_pic='-KPIC'
11799 lt_prog_compiler_static='-Bstatic'
11800 case $cc_basename in
11801 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11802 lt_prog_compiler_wl='-Qoption ld ';;
11804 lt_prog_compiler_wl='-Wl,';;
11809 lt_prog_compiler_wl='-Qoption ld '
11810 lt_prog_compiler_pic='-PIC'
11811 lt_prog_compiler_static='-Bstatic'
11814 sysv4 | sysv4.2uw2* | sysv4.3*)
11815 lt_prog_compiler_wl='-Wl,'
11816 lt_prog_compiler_pic='-KPIC'
11817 lt_prog_compiler_static='-Bstatic'
11821 if test -d /usr/nec; then
11822 lt_prog_compiler_pic='-Kconform_pic'
11823 lt_prog_compiler_static='-Bstatic'
11827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11828 lt_prog_compiler_wl='-Wl,'
11829 lt_prog_compiler_pic='-KPIC'
11830 lt_prog_compiler_static='-Bstatic'
11834 lt_prog_compiler_wl='-Wl,'
11835 lt_prog_compiler_can_build_shared=no
11839 lt_prog_compiler_pic='-pic'
11840 lt_prog_compiler_static='-Bstatic'
11844 lt_prog_compiler_can_build_shared=no
11850 # For platforms that do not support PIC, -DPIC is meaningless:
11852 lt_prog_compiler_pic=
11855 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11860 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11861 if ${lt_cv_prog_compiler_pic+:} false; then :
11862 $as_echo_n "(cached) " >&6
11864 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11867 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11868 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11871 # Check to make sure the PIC flag actually works.
11873 if test -n "$lt_prog_compiler_pic"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11875 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11876 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11877 $as_echo_n "(cached) " >&6
11879 lt_cv_prog_compiler_pic_works=no
11880 ac_outfile=conftest.$ac_objext
11881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11882 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11883 # Insert the option either (1) after the last *FLAGS variable, or
11884 # (2) before a word containing "conftest.", or (3) at the end.
11885 # Note that $ac_compile itself does not contain backslashes and begins
11886 # with a dollar sign (not a hyphen), so the echo should work correctly.
11887 # The option is referenced via a variable to avoid confusing sed.
11888 lt_compile=`echo "$ac_compile" | $SED \
11889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11891 -e 's:$: $lt_compiler_flag:'`
11892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11893 (eval "$lt_compile" 2>conftest.err)
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 if (exit $ac_status) && test -s "$ac_outfile"; then
11898 # The compiler can only warn and ignore the option if not recognized
11899 # So say no if there are warnings other than the usual output.
11900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11902 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11903 lt_cv_prog_compiler_pic_works=yes
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11910 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11912 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11913 case $lt_prog_compiler_pic in
11915 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11918 lt_prog_compiler_pic=
11919 lt_prog_compiler_can_build_shared=no
11935 # Check to make sure the static flag actually works.
11937 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11939 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11940 if ${lt_cv_prog_compiler_static_works+:} false; then :
11941 $as_echo_n "(cached) " >&6
11943 lt_cv_prog_compiler_static_works=no
11944 save_LDFLAGS=$LDFLAGS
11945 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11946 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11948 # The linker can only warn and ignore the option if not recognized
11949 # So say no if there are warnings
11950 if test -s conftest.err; then
11951 # Append any errors to the config.log.
11952 cat conftest.err 1>&5
11953 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11955 if diff conftest.exp conftest.er2 >/dev/null; then
11956 lt_cv_prog_compiler_static_works=yes
11959 lt_cv_prog_compiler_static_works=yes
11963 LDFLAGS=$save_LDFLAGS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11967 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11969 if test yes = "$lt_cv_prog_compiler_static_works"; then
11972 lt_prog_compiler_static=
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11983 if ${lt_cv_prog_compiler_c_o+:} false; then :
11984 $as_echo_n "(cached) " >&6
11986 lt_cv_prog_compiler_c_o=no
11987 $RM -r conftest 2>/dev/null
11991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993 lt_compiler_flag="-o out/conftest2.$ac_objext"
11994 # Insert the option either (1) after the last *FLAGS variable, or
11995 # (2) before a word containing "conftest.", or (3) at the end.
11996 # Note that $ac_compile itself does not contain backslashes and begins
11997 # with a dollar sign (not a hyphen), so the echo should work correctly.
11998 lt_compile=`echo "$ac_compile" | $SED \
11999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12001 -e 's:$: $lt_compiler_flag:'`
12002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12003 (eval "$lt_compile" 2>out/conftest.err)
12005 cat out/conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12009 # The compiler can only warn and ignore the option if not recognized
12010 # So say no if there are warnings
12011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12014 lt_cv_prog_compiler_c_o=yes
12019 # SGI C++ compiler will create directory out/ii_files/ for
12020 # template instantiation
12021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12022 $RM out/* && rmdir out
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12038 if ${lt_cv_prog_compiler_c_o+:} false; then :
12039 $as_echo_n "(cached) " >&6
12041 lt_cv_prog_compiler_c_o=no
12042 $RM -r conftest 2>/dev/null
12046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12048 lt_compiler_flag="-o out/conftest2.$ac_objext"
12049 # Insert the option either (1) after the last *FLAGS variable, or
12050 # (2) before a word containing "conftest.", or (3) at the end.
12051 # Note that $ac_compile itself does not contain backslashes and begins
12052 # with a dollar sign (not a hyphen), so the echo should work correctly.
12053 lt_compile=`echo "$ac_compile" | $SED \
12054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056 -e 's:$: $lt_compiler_flag:'`
12057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12058 (eval "$lt_compile" 2>out/conftest.err)
12060 cat out/conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12064 # The compiler can only warn and ignore the option if not recognized
12065 # So say no if there are warnings
12066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12069 lt_cv_prog_compiler_c_o=yes
12074 # SGI C++ compiler will create directory out/ii_files/ for
12075 # template instantiation
12076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12077 $RM out/* && rmdir out
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12084 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12089 hard_links=nottested
12090 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12091 # do not overwrite the value of need_locks provided by the user
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12093 $as_echo_n "checking if we can lock with hard links... " >&6; }
12096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 ln conftest.a conftest.b 2>&5 || hard_links=no
12099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12101 $as_echo "$hard_links" >&6; }
12102 if test no = "$hard_links"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12104 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12120 allow_undefined_flag=
12121 always_export_symbols=no
12123 archive_expsym_cmds=
12124 compiler_needs_object=no
12125 enable_shared_with_static_runtimes=no
12126 export_dynamic_flag_spec=
12127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12128 hardcode_automatic=no
12130 hardcode_direct_absolute=no
12131 hardcode_libdir_flag_spec=
12132 hardcode_libdir_separator=
12133 hardcode_minus_L=no
12134 hardcode_shlibpath_var=unsupported
12136 link_all_deplibs=unknown
12138 module_expsym_cmds=
12139 old_archive_from_new_cmds=
12140 old_archive_from_expsyms_cmds=
12141 thread_safe_flag_spec=
12142 whole_archive_flag_spec=
12143 # include_expsyms should be a list of space-separated symbols to be *always*
12144 # included in the symbol list
12146 # exclude_expsyms can be an extended regexp of symbols to exclude
12147 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12148 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12149 # as well as any symbol that contains 'd'.
12150 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152 # platforms (ab)use it in PIC code, but their linkers get confused if
12153 # the symbol is explicitly referenced. Since portable code cannot
12154 # rely on this symbol name, it's probably fine to never include it in
12155 # preloaded symbol tables.
12156 # Exclude shared library initialization/finalization symbols.
12157 extract_expsyms_cmds=
12160 cygwin* | mingw* | pw32* | cegcc*)
12161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12162 # When not using gcc, we currently assume that we are using
12163 # Microsoft Visual C++.
12164 if test yes != "$GCC"; then
12169 # we just hope/assume this is gcc and not c89 (= MSVC++)
12172 openbsd* | bitrig*)
12175 linux* | k*bsd*-gnu | gnu*)
12176 link_all_deplibs=no
12182 # On some targets, GNU ld is compatible enough with the native linker
12183 # that we're better off using the native interface for both.
12184 lt_use_gnu_ld_interface=no
12185 if test yes = "$with_gnu_ld"; then
12188 # The AIX port of GNU ld has always aspired to compatibility
12189 # with the native linker. However, as the warning in the GNU ld
12190 # block says, versions before 2.19.5* couldn't really create working
12191 # shared libraries, regardless of the interface used.
12192 case `$LD -v 2>&1` in
12193 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12194 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12195 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12197 lt_use_gnu_ld_interface=yes
12202 lt_use_gnu_ld_interface=yes
12207 if test yes = "$lt_use_gnu_ld_interface"; then
12208 # If archive_cmds runs LD, not CC, wlarc should be empty
12211 # Set some defaults for GNU ld with shared library support. These
12212 # are reset later if shared libraries are not supported. Putting them
12213 # here allows them to be overridden if necessary.
12214 runpath_var=LD_RUN_PATH
12215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12216 export_dynamic_flag_spec='$wl--export-dynamic'
12217 # ancient GNU ld didn't support --whole-archive et. al.
12218 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12219 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12221 whole_archive_flag_spec=
12223 supports_anon_versioning=no
12224 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12225 *GNU\ gold*) supports_anon_versioning=yes ;;
12226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12229 *\ 2.11.*) ;; # other 2.11 versions
12230 *) supports_anon_versioning=yes ;;
12233 # See if GNU ld supports shared libraries.
12236 # On AIX/PPC, the GNU linker is very broken
12237 if test ia64 != "$host_cpu"; then
12241 *** Warning: the GNU linker, at least up to release 2.19, is reported
12242 *** to be unable to reliably create shared libraries on AIX.
12243 *** Therefore, libtool is disabling shared libraries support. If you
12244 *** really care for shared libraries, you may want to install binutils
12245 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12246 *** You will then need to restart the configuration process.
12255 # see comment about AmigaOS4 .so support
12256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12257 archive_expsym_cmds=''
12260 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)'
12261 hardcode_libdir_flag_spec='-L$libdir'
12262 hardcode_minus_L=yes
12268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12269 allow_undefined_flag=unsupported
12270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12271 # support --undefined. This deserves some investigation. FIXME
12272 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12278 cygwin* | mingw* | pw32* | cegcc*)
12279 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12280 # as there is no search path for DLLs.
12281 hardcode_libdir_flag_spec='-L$libdir'
12282 export_dynamic_flag_spec='$wl--export-all-symbols'
12283 allow_undefined_flag=unsupported
12284 always_export_symbols=no
12285 enable_shared_with_static_runtimes=yes
12286 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'
12287 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12289 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12291 # If the export-symbols file already is a .def file, use it as
12292 # is; otherwise, prepend EXPORTS...
12293 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12294 cp $export_symbols $output_objdir/$soname.def;
12296 echo EXPORTS > $output_objdir/$soname.def;
12297 cat $export_symbols >> $output_objdir/$soname.def;
12299 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12307 link_all_deplibs=yes
12311 hardcode_libdir_flag_spec='-L$libdir'
12312 hardcode_minus_L=yes
12313 allow_undefined_flag=unsupported
12315 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12316 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12317 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12318 $ECHO EXPORTS >> $output_objdir/$libname.def~
12319 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12320 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12321 emximp -o $lib $output_objdir/$libname.def'
12322 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12323 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12324 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12325 $ECHO EXPORTS >> $output_objdir/$libname.def~
12326 prefix_cmds="$SED"~
12327 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12328 prefix_cmds="$prefix_cmds -e 1d";
12330 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12331 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12332 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12333 emximp -o $lib $output_objdir/$libname.def'
12334 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12335 enable_shared_with_static_runtimes=yes
12340 hardcode_shlibpath_var=no
12341 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12342 export_dynamic_flag_spec='$wl-E'
12343 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12344 # Instead, shared libraries are loaded at an image base (0x10000000 by
12345 # default) and relocated if they conflict, which is a slow very memory
12346 # consuming and fragmenting process. To avoid this, we pick a random,
12347 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12348 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12350 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'
12353 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12355 if test linux-dietlibc = "$host_os"; then
12356 case $cc_basename in
12357 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12360 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12361 && test no = "$tmp_diet"
12363 tmp_addflag=' $pic_flag'
12364 tmp_sharedflag='-shared'
12365 case $cc_basename,$host_cpu in
12366 pgcc*) # Portland Group C compiler
12367 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'
12368 tmp_addflag=' $pic_flag'
12370 pgf77* | pgf90* | pgf95* | pgfortran*)
12371 # Portland Group f77 and f90 compilers
12372 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'
12373 tmp_addflag=' $pic_flag -Mnomain' ;;
12374 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12375 tmp_addflag=' -i_dynamic' ;;
12376 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12377 tmp_addflag=' -i_dynamic -nofor_main' ;;
12378 ifc* | ifort*) # Intel Fortran compiler
12379 tmp_addflag=' -nofor_main' ;;
12380 lf95*) # Lahey Fortran 8.1
12381 whole_archive_flag_spec=
12382 tmp_sharedflag='--shared' ;;
12383 nagfor*) # NAGFOR 5.3
12384 tmp_sharedflag='-Wl,-shared' ;;
12385 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12386 tmp_sharedflag='-qmkshrobj'
12388 nvcc*) # Cuda Compiler Driver 2.2
12389 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'
12390 compiler_needs_object=yes
12393 case `$CC -V 2>&1 | sed 5q` in
12394 *Sun\ C*) # Sun C 5.9
12395 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'
12396 compiler_needs_object=yes
12397 tmp_sharedflag='-G' ;;
12398 *Sun\ F*) # Sun Fortran 8.3
12399 tmp_sharedflag='-G' ;;
12401 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12403 if test yes = "$supports_anon_versioning"; then
12404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12406 echo "local: *; };" >> $output_objdir/$libname.ver~
12407 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12410 case $cc_basename in
12412 export_dynamic_flag_spec='-rdynamic'
12414 xlf* | bgf* | bgxlf* | mpixlf*)
12415 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12416 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12418 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12419 if test yes = "$supports_anon_versioning"; then
12420 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12422 echo "local: *; };" >> $output_objdir/$libname.ver~
12423 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12432 netbsd* | netbsdelf*-gnu)
12433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12434 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12443 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12448 *** create shared libraries on Solaris systems. Therefore, libtool
12449 *** is disabling shared libraries support. We urge you to upgrade GNU
12450 *** binutils to release 2.9.1 or newer. Another option is to modify
12451 *** your PATH or compiler configuration so that the native linker is
12452 *** used, and then restart.
12455 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12457 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12464 case `$LD -v 2>&1` in
12465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12470 *** reliably create shared libraries on SCO systems. Therefore, libtool
12471 *** is disabling shared libraries support. We urge you to upgrade GNU
12472 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12473 *** your PATH or compiler configuration so that the native linker is
12474 *** used, and then restart.
12479 # For security reasons, it is highly recommended that you always
12480 # use absolute paths for naming shared libraries, and exclude the
12481 # DT_RUNPATH tag from executables and libraries. But doing so
12482 # requires that you compile everything twice, which is a pain.
12483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12484 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12495 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12497 hardcode_direct=yes
12498 hardcode_shlibpath_var=no
12502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12511 if test no = "$ld_shlibs"; then
12513 hardcode_libdir_flag_spec=
12514 export_dynamic_flag_spec=
12515 whole_archive_flag_spec=
12518 # PORTME fill in a description of your system's linker (not GNU ld)
12521 allow_undefined_flag=unsupported
12522 always_export_symbols=yes
12523 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'
12524 # Note: this linker hardcodes the directories in LIBPATH if there
12525 # are no directories specified by -L.
12526 hardcode_minus_L=yes
12527 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12528 # Neither direct hardcoding nor static linking is supported with a
12530 hardcode_direct=unsupported
12535 if test ia64 = "$host_cpu"; then
12536 # On IA64, the linker does run time linking by default, so we don't
12537 # have to do anything special.
12538 aix_use_runtimelinking=no
12539 exp_sym_flag='-Bexport'
12542 # If we're using GNU nm, then we don't want the "-C" option.
12543 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12544 # Without the "-l" option, or with the "-B" option, AIX nm treats
12545 # weak defined symbols like other global defined symbols, whereas
12546 # GNU nm marks them as "W".
12547 # While the 'weak' keyword is ignored in the Export File, we need
12548 # it in the Import File for the 'aix-soname' feature, so we have
12549 # to replace the "-B" option with "-P" for AIX nm.
12550 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12551 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12553 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12555 aix_use_runtimelinking=no
12557 # Test if we are trying to use run time linking or normal
12558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12559 # have runtime linking enabled, and use it for executables.
12560 # For shared libraries, we enable/disable runtime linking
12561 # depending on the kind of the shared library created -
12562 # when "with_aix_soname,aix_use_runtimelinking" is:
12563 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12564 # "aix,yes" lib.so shared, rtl:yes, for executables
12565 # lib.a static archive
12566 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12567 # lib.a(lib.so.V) shared, rtl:no, for executables
12568 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12569 # lib.a(lib.so.V) shared, rtl:no
12570 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12571 # lib.a static archive
12572 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12573 for ld_flag in $LDFLAGS; do
12574 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12575 aix_use_runtimelinking=yes
12579 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12580 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12581 # so we don't have lib.a shared libs to link our executables.
12582 # We have to force runtime linking in this case.
12583 aix_use_runtimelinking=yes
12584 LDFLAGS="$LDFLAGS -Wl,-brtl"
12589 exp_sym_flag='-bexport'
12590 no_entry_flag='-bnoentry'
12593 # When large executables or shared objects are built, AIX ld can
12594 # have problems creating the table of contents. If linking a library
12595 # or program results in "error TOC overflow" add -mminimal-toc to
12596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12600 hardcode_direct=yes
12601 hardcode_direct_absolute=yes
12602 hardcode_libdir_separator=':'
12603 link_all_deplibs=yes
12604 file_list_spec='$wl-f,'
12605 case $with_aix_soname,$aix_use_runtimelinking in
12606 aix,*) ;; # traditional, no import file
12607 svr4,* | *,yes) # use import file
12608 # The Import File defines what to hardcode.
12610 hardcode_direct_absolute=no
12614 if test yes = "$GCC"; then
12615 case $host_os in aix4.[012]|aix4.[012].*)
12616 # We only want to do this on AIX 4.2 and lower, the check
12617 # below for broken collect2 doesn't work under 4.3+
12618 collect2name=`$CC -print-prog-name=collect2`
12619 if test -f "$collect2name" &&
12620 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12622 # We have reworked collect2
12625 # We have old collect2
12626 hardcode_direct=unsupported
12627 # It fails to find uninstalled libraries when the uninstalled
12628 # path is not listed in the libpath. Setting hardcode_minus_L
12629 # to unsupported forces relinking
12630 hardcode_minus_L=yes
12631 hardcode_libdir_flag_spec='-L$libdir'
12632 hardcode_libdir_separator=
12636 shared_flag='-shared'
12637 if test yes = "$aix_use_runtimelinking"; then
12638 shared_flag="$shared_flag "'$wl-G'
12640 # Need to ensure runtime linking is disabled for the traditional
12641 # shared library, or the linker may eventually find shared libraries
12642 # /with/ Import File - we do not want to mix them.
12643 shared_flag_aix='-shared'
12644 shared_flag_svr4='-shared $wl-G'
12647 if test ia64 = "$host_cpu"; then
12648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12649 # chokes on -Wl,-G. The following line is correct:
12652 if test yes = "$aix_use_runtimelinking"; then
12653 shared_flag='$wl-G'
12655 shared_flag='$wl-bM:SRE'
12657 shared_flag_aix='$wl-bM:SRE'
12658 shared_flag_svr4='$wl-G'
12662 export_dynamic_flag_spec='$wl-bexpall'
12663 # It seems that -bexpall does not export symbols beginning with
12664 # underscore (_), so it is better to generate a list of symbols to export.
12665 always_export_symbols=yes
12666 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12667 # Warning - without using the other runtime loading flags (-brtl),
12668 # -berok will link without error, but may produce a broken library.
12669 allow_undefined_flag='-berok'
12670 # Determine the default libpath from the value encoded in an
12671 # empty executable.
12672 if test set = "${lt_cv_aix_libpath+set}"; then
12673 aix_libpath=$lt_cv_aix_libpath
12675 if ${lt_cv_aix_libpath_+:} false; then :
12676 $as_echo_n "(cached) " >&6
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12688 if ac_fn_c_try_link "$LINENO"; then :
12690 lt_aix_libpath_sed='
12691 /Import File Strings/,/^$/ {
12693 s/^0 *\([^ ]*\) *$/\1/
12697 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12698 # Check for a 64-bit object if we didn't find anything.
12699 if test -z "$lt_cv_aix_libpath_"; then
12700 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12703 rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705 if test -z "$lt_cv_aix_libpath_"; then
12706 lt_cv_aix_libpath_=/usr/lib:/lib
12711 aix_libpath=$lt_cv_aix_libpath_
12714 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12715 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12717 if test ia64 = "$host_cpu"; then
12718 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12719 allow_undefined_flag="-z nodefs"
12720 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"
12722 # Determine the default libpath from the value encoded in an
12723 # empty executable.
12724 if test set = "${lt_cv_aix_libpath+set}"; then
12725 aix_libpath=$lt_cv_aix_libpath
12727 if ${lt_cv_aix_libpath_+:} false; then :
12728 $as_echo_n "(cached) " >&6
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12740 if ac_fn_c_try_link "$LINENO"; then :
12742 lt_aix_libpath_sed='
12743 /Import File Strings/,/^$/ {
12745 s/^0 *\([^ ]*\) *$/\1/
12749 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12750 # Check for a 64-bit object if we didn't find anything.
12751 if test -z "$lt_cv_aix_libpath_"; then
12752 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12755 rm -f core conftest.err conftest.$ac_objext \
12756 conftest$ac_exeext conftest.$ac_ext
12757 if test -z "$lt_cv_aix_libpath_"; then
12758 lt_cv_aix_libpath_=/usr/lib:/lib
12763 aix_libpath=$lt_cv_aix_libpath_
12766 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12767 # Warning - without using the other run time loading flags,
12768 # -berok will link without error, but may produce a broken library.
12769 no_undefined_flag=' $wl-bernotok'
12770 allow_undefined_flag=' $wl-berok'
12771 if test yes = "$with_gnu_ld"; then
12772 # We only use this code for GNU lds that support --whole-archive.
12773 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12775 # Exported symbols can be pulled into shared objects from archives
12776 whole_archive_flag_spec='$convenience'
12778 archive_cmds_need_lc=yes
12779 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12780 # -brtl affects multiple linker settings, -berok does not and is overridden later
12781 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12782 if test svr4 != "$with_aix_soname"; then
12783 # This is similar to how AIX traditionally builds its shared libraries.
12784 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12786 if test aix != "$with_aix_soname"; then
12787 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12789 # used by -dlpreopen to get the symbols
12790 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12792 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12800 # see comment about AmigaOS4 .so support
12801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12802 archive_expsym_cmds=''
12805 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)'
12806 hardcode_libdir_flag_spec='-L$libdir'
12807 hardcode_minus_L=yes
12813 export_dynamic_flag_spec=-rdynamic
12816 cygwin* | mingw* | pw32* | cegcc*)
12817 # When not using gcc, we currently assume that we are using
12818 # Microsoft Visual C++.
12819 # hardcode_libdir_flag_spec is actually meaningless, as there is
12820 # no search path for DLLs.
12821 case $cc_basename in
12824 hardcode_libdir_flag_spec=' '
12825 allow_undefined_flag=unsupported
12826 always_export_symbols=yes
12828 # Tell ltmain to make .lib files, not .a files.
12830 # Tell ltmain to make .dll files, not .so files.
12832 # FIXME: Setting linknames here is a bad hack.
12833 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12834 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12835 cp "$export_symbols" "$output_objdir/$soname.def";
12836 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12838 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12840 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12842 # The linker will not automatically build a static lib if we build a DLL.
12843 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12844 enable_shared_with_static_runtimes=yes
12845 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12848 old_postinstall_cmds='chmod 644 $oldlib'
12849 postlink_cmds='lt_outputfile="@OUTPUT@"~
12850 lt_tool_outputfile="@TOOL_OUTPUT@"~
12851 case $lt_outputfile in
12854 lt_outputfile=$lt_outputfile.exe
12855 lt_tool_outputfile=$lt_tool_outputfile.exe
12858 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12859 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12860 $RM "$lt_outputfile.manifest";
12864 # Assume MSVC wrapper
12865 hardcode_libdir_flag_spec=' '
12866 allow_undefined_flag=unsupported
12867 # Tell ltmain to make .lib files, not .a files.
12869 # Tell ltmain to make .dll files, not .so files.
12871 # FIXME: Setting linknames here is a bad hack.
12872 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12873 # The linker will automatically build a .lib file if we build a DLL.
12874 old_archive_from_new_cmds='true'
12875 # FIXME: Should let the user specify the lib program.
12876 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12877 enable_shared_with_static_runtimes=yes
12882 darwin* | rhapsody*)
12885 archive_cmds_need_lc=no
12887 hardcode_automatic=yes
12888 hardcode_shlibpath_var=unsupported
12889 if test yes = "$lt_cv_ld_force_load"; then
12890 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\"`'
12893 whole_archive_flag_spec=''
12895 link_all_deplibs=yes
12896 allow_undefined_flag=$_lt_dar_allow_undefined
12897 case $cc_basename in
12898 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12899 *) _lt_dar_can_shared=$GCC ;;
12901 if test yes = "$_lt_dar_can_shared"; then
12902 output_verbose_link_cmd=func_echo_all
12903 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12904 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12905 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"
12906 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"
12915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_libdir_flag_spec='-L$libdir'
12917 hardcode_shlibpath_var=no
12920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12921 # support. Future versions do this automatically, but an explicit c++rt0.o
12922 # does not break anything, and helps significantly (at the cost of a little
12925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12926 hardcode_libdir_flag_spec='-R$libdir'
12927 hardcode_direct=yes
12928 hardcode_shlibpath_var=no
12931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12934 hardcode_direct=yes
12935 hardcode_minus_L=yes
12936 hardcode_shlibpath_var=no
12939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12940 freebsd* | dragonfly*)
12941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12942 hardcode_libdir_flag_spec='-R$libdir'
12943 hardcode_direct=yes
12944 hardcode_shlibpath_var=no
12948 if test yes = "$GCC"; then
12949 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
12951 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
12953 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12954 hardcode_libdir_separator=:
12955 hardcode_direct=yes
12957 # hardcode_minus_L: Not really in the search PATH,
12958 # but as the default location of the library.
12959 hardcode_minus_L=yes
12960 export_dynamic_flag_spec='$wl-E'
12964 if test yes,no = "$GCC,$with_gnu_ld"; then
12965 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12967 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12969 if test no = "$with_gnu_ld"; then
12970 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12971 hardcode_libdir_separator=:
12972 hardcode_direct=yes
12973 hardcode_direct_absolute=yes
12974 export_dynamic_flag_spec='$wl-E'
12975 # hardcode_minus_L: Not really in the search PATH,
12976 # but as the default location of the library.
12977 hardcode_minus_L=yes
12982 if test yes,no = "$GCC,$with_gnu_ld"; then
12985 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12988 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12991 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12997 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13000 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13004 # Older versions of the 11.00 compiler do not understand -b yet
13005 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13007 $as_echo_n "checking if $CC understands -b... " >&6; }
13008 if ${lt_cv_prog_compiler__b+:} false; then :
13009 $as_echo_n "(cached) " >&6
13011 lt_cv_prog_compiler__b=no
13012 save_LDFLAGS=$LDFLAGS
13013 LDFLAGS="$LDFLAGS -b"
13014 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13016 # The linker can only warn and ignore the option if not recognized
13017 # So say no if there are warnings
13018 if test -s conftest.err; then
13019 # Append any errors to the config.log.
13020 cat conftest.err 1>&5
13021 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13023 if diff conftest.exp conftest.er2 >/dev/null; then
13024 lt_cv_prog_compiler__b=yes
13027 lt_cv_prog_compiler__b=yes
13031 LDFLAGS=$save_LDFLAGS
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13035 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13037 if test yes = "$lt_cv_prog_compiler__b"; then
13038 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13046 if test no = "$with_gnu_ld"; then
13047 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13048 hardcode_libdir_separator=:
13053 hardcode_shlibpath_var=no
13056 hardcode_direct=yes
13057 hardcode_direct_absolute=yes
13058 export_dynamic_flag_spec='$wl-E'
13060 # hardcode_minus_L: Not really in the search PATH,
13061 # but as the default location of the library.
13062 hardcode_minus_L=yes
13068 irix5* | irix6* | nonstopux*)
13069 if test yes = "$GCC"; then
13070 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'
13071 # Try to use the -exported_symbol ld option, if it does not
13072 # work, assume that -exports_file does not work either and
13073 # implicitly export all symbols.
13074 # This should be the same for all languages, so no per-tag cache variable.
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13076 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13077 if ${lt_cv_irix_exported_symbol+:} false; then :
13078 $as_echo_n "(cached) " >&6
13080 save_LDFLAGS=$LDFLAGS
13081 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084 int foo (void) { return 0; }
13086 if ac_fn_c_try_link "$LINENO"; then :
13087 lt_cv_irix_exported_symbol=yes
13089 lt_cv_irix_exported_symbol=no
13091 rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 LDFLAGS=$save_LDFLAGS
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13096 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13097 if test yes = "$lt_cv_irix_exported_symbol"; then
13098 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'
13100 link_all_deplibs=no
13102 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'
13103 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'
13105 archive_cmds_need_lc='no'
13106 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13107 hardcode_libdir_separator=:
13109 link_all_deplibs=yes
13113 case $cc_basename in
13115 # Fabrice Bellard et al's Tiny C Compiler
13117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13122 netbsd* | netbsdelf*-gnu)
13123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13126 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13128 hardcode_libdir_flag_spec='-R$libdir'
13129 hardcode_direct=yes
13130 hardcode_shlibpath_var=no
13134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13135 hardcode_direct=yes
13136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13137 hardcode_libdir_separator=:
13138 hardcode_shlibpath_var=no
13144 openbsd* | bitrig*)
13145 if test -f /usr/libexec/ld.so; then
13146 hardcode_direct=yes
13147 hardcode_shlibpath_var=no
13148 hardcode_direct_absolute=yes
13149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13151 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13152 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13153 export_dynamic_flag_spec='$wl-E'
13155 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13156 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13164 hardcode_libdir_flag_spec='-L$libdir'
13165 hardcode_minus_L=yes
13166 allow_undefined_flag=unsupported
13168 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13169 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13170 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13171 $ECHO EXPORTS >> $output_objdir/$libname.def~
13172 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13173 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13174 emximp -o $lib $output_objdir/$libname.def'
13175 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13176 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13177 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13178 $ECHO EXPORTS >> $output_objdir/$libname.def~
13179 prefix_cmds="$SED"~
13180 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13181 prefix_cmds="$prefix_cmds -e 1d";
13183 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13184 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13185 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13186 emximp -o $lib $output_objdir/$libname.def'
13187 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13188 enable_shared_with_static_runtimes=yes
13192 if test yes = "$GCC"; then
13193 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13194 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'
13196 allow_undefined_flag=' -expect_unresolved \*'
13197 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'
13199 archive_cmds_need_lc='no'
13200 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13201 hardcode_libdir_separator=:
13204 osf4* | osf5*) # as osf3* with the addition of -msym flag
13205 if test yes = "$GCC"; then
13206 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13207 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'
13208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13210 allow_undefined_flag=' -expect_unresolved \*'
13211 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'
13212 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~
13213 $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'
13215 # Both c and cxx compiler support -rpath directly
13216 hardcode_libdir_flag_spec='-rpath $libdir'
13218 archive_cmds_need_lc='no'
13219 hardcode_libdir_separator=:
13223 no_undefined_flag=' -z defs'
13224 if test yes = "$GCC"; then
13226 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13228 $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'
13230 case `$CC -V 2>&1` in
13233 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13234 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13235 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13239 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13241 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13245 hardcode_libdir_flag_spec='-R$libdir'
13246 hardcode_shlibpath_var=no
13248 solaris2.[0-5] | solaris2.[0-5].*) ;;
13250 # The compiler driver will combine and reorder linker options,
13251 # but understands '-z linker_flag'. GCC discards it without '$wl',
13252 # but is careful enough not to reorder.
13253 # Supported since Solaris 2.6 (maybe 2.5.1?)
13254 if test yes = "$GCC"; then
13255 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13257 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13261 link_all_deplibs=yes
13265 if test sequent = "$host_vendor"; then
13266 # Use $CC to link under sequent, because it throws in some extra .o
13267 # files that make .init and .fini sections work.
13268 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13270 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13272 hardcode_libdir_flag_spec='-L$libdir'
13273 hardcode_direct=yes
13274 hardcode_minus_L=yes
13275 hardcode_shlibpath_var=no
13279 case $host_vendor in
13281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13282 hardcode_direct=yes # is this really true???
13285 ## LD is ld it makes a PLAMLIB
13286 ## CC just makes a GrossModule.
13287 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13288 reload_cmds='$CC -r -o $output$reload_objs'
13292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13293 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13296 runpath_var='LD_RUN_PATH'
13297 hardcode_shlibpath_var=no
13301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13302 hardcode_shlibpath_var=no
13303 export_dynamic_flag_spec='-Bexport'
13307 if test -d /usr/nec; then
13308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13309 hardcode_shlibpath_var=no
13310 runpath_var=LD_RUN_PATH
13311 hardcode_runpath_var=yes
13316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13317 no_undefined_flag='$wl-z,text'
13318 archive_cmds_need_lc=no
13319 hardcode_shlibpath_var=no
13320 runpath_var='LD_RUN_PATH'
13322 if test yes = "$GCC"; then
13323 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 sysv5* | sco3.2v5* | sco5v6*)
13332 # Note: We CANNOT use -z defs as we might desire, because we do not
13333 # link with -lc, and that would cause any symbols used from libc to
13334 # always be unresolved, which means just about no library would
13335 # ever link correctly. If we're not using GNU ld we use -z text
13336 # though, which does catch some bad symbols but isn't as heavy-handed
13338 no_undefined_flag='$wl-z,text'
13339 allow_undefined_flag='$wl-z,nodefs'
13340 archive_cmds_need_lc=no
13341 hardcode_shlibpath_var=no
13342 hardcode_libdir_flag_spec='$wl-R,$libdir'
13343 hardcode_libdir_separator=':'
13344 link_all_deplibs=yes
13345 export_dynamic_flag_spec='$wl-Bexport'
13346 runpath_var='LD_RUN_PATH'
13348 if test yes = "$GCC"; then
13349 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13352 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13359 hardcode_libdir_flag_spec='-L$libdir'
13360 hardcode_shlibpath_var=no
13368 if test sni = "$host_vendor"; then
13370 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13371 export_dynamic_flag_spec='$wl-Blargedynsym'
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13378 $as_echo "$ld_shlibs" >&6; }
13379 test no = "$ld_shlibs" && can_build_shared=no
13381 with_gnu_ld=$with_gnu_ld
13398 # Do we need to explicitly link libc?
13400 case "x$archive_cmds_need_lc" in
13402 # Assume -lc should be added
13403 archive_cmds_need_lc=yes
13405 if test yes,yes = "$GCC,$enable_shared"; then
13406 case $archive_cmds in
13408 # FIXME: we may have to deal with multi-command sequences.
13411 # Test whether the compiler implicitly links with -lc since on some
13412 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13413 # to ld, don't add -lc before -lgcc.
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13415 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13416 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13417 $as_echo_n "(cached) " >&6
13420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13423 (eval $ac_compile) 2>&5
13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426 test $ac_status = 0; } 2>conftest.err; then
13429 libobjs=conftest.$ac_objext
13431 wl=$lt_prog_compiler_wl
13432 pic_flag=$lt_prog_compiler_pic
13438 lt_save_allow_undefined_flag=$allow_undefined_flag
13439 allow_undefined_flag=
13440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13441 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13444 test $ac_status = 0; }
13446 lt_cv_archive_cmds_need_lc=no
13448 lt_cv_archive_cmds_need_lc=yes
13450 allow_undefined_flag=$lt_save_allow_undefined_flag
13452 cat conftest.err 1>&5
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13458 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13459 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13618 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13620 if test yes = "$GCC"; then
13622 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13623 *) lt_awk_arg='/^libraries:/' ;;
13626 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13627 *) lt_sed_strip_eq='s|=/|/|g' ;;
13629 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13630 case $lt_search_path_spec in
13632 # if the path contains ";" then we assume it to be the separator
13633 # otherwise default to the standard path separator (i.e. ":") - it is
13634 # assumed that no part of a normal pathname contains ";" but that should
13635 # okay in the real world where ";" in dirpaths is itself problematic.
13636 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13639 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13642 # Ok, now we have the path, separated by spaces, we can step through it
13643 # and add multilib dir if necessary...
13644 lt_tmp_lt_search_path_spec=
13645 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13646 # ...but if some path component already ends with the multilib dir we assume
13647 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13648 case "$lt_multi_os_dir; $lt_search_path_spec " in
13649 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13653 for lt_sys_path in $lt_search_path_spec; do
13654 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13656 elif test -n "$lt_multi_os_dir"; then
13657 test -d "$lt_sys_path" && \
13658 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13661 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13662 BEGIN {RS = " "; FS = "/|\n";} {
13665 for (lt_i = NF; lt_i > 0; lt_i--) {
13666 if ($lt_i != "" && $lt_i != ".") {
13667 if ($lt_i == "..") {
13670 if (lt_count == 0) {
13671 lt_foo = "/" $lt_i lt_foo;
13678 if (lt_foo != "") { lt_freq[lt_foo]++; }
13679 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13681 # AWK program above erroneously prepends '/' to C:/dos/paths
13684 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13685 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13687 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13689 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13691 library_names_spec=
13692 libname_spec='lib$name'
13696 postuninstall_cmds=
13700 shlibpath_overrides_runpath=unknown
13702 dynamic_linker="$host_os ld.so"
13703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13704 need_lib_prefix=unknown
13705 hardcode_into_libs=no
13707 # when you set need_version to no, make sure it does not cause -set_version
13708 # flags to be left without arguments
13709 need_version=unknown
13715 version_type=linux # correct to gnu/linux during the next big refactor
13716 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13717 shlibpath_var=LIBPATH
13719 # AIX 3 has no versioning support, so we append a major version to the name.
13720 soname_spec='$libname$release$shared_ext$major'
13724 version_type=linux # correct to gnu/linux during the next big refactor
13727 hardcode_into_libs=yes
13728 if test ia64 = "$host_cpu"; then
13729 # AIX 5 supports IA64
13730 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13731 shlibpath_var=LD_LIBRARY_PATH
13733 # With GCC up to 2.95.x, collect2 would create an import file
13734 # for dependence libraries. The import file would start with
13735 # the line '#! .'. This would cause the generated library to
13736 # depend on '.', always an invalid library. This was fixed in
13737 # development snapshots of GCC prior to 3.0.
13739 aix4 | aix4.[01] | aix4.[01].*)
13740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13742 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13745 can_build_shared=no
13749 # Using Import Files as archive members, it is possible to support
13750 # filename-based versioning of shared library archives on AIX. While
13751 # this would work for both with and without runtime linking, it will
13752 # prevent static linking of such archives. So we do filename-based
13753 # shared library versioning with .so extension only, which is used
13754 # when both runtime linking and shared linking is enabled.
13755 # Unfortunately, runtime linking may impact performance, so we do
13756 # not want this to be the default eventually. Also, we use the
13757 # versioned .so libs for executables only if there is the -brtl
13758 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13759 # To allow for filename-based versioning support, we need to create
13760 # libNAME.so.V as an archive file, containing:
13761 # *) an Import File, referring to the versioned filename of the
13762 # archive as well as the shared archive member, telling the
13763 # bitwidth (32 or 64) of that shared object, and providing the
13764 # list of exported symbols of that shared object, eventually
13765 # decorated with the 'weak' keyword
13766 # *) the shared object with the F_LOADONLY flag set, to really avoid
13767 # it being seen by the linker.
13768 # At run time we better use the real file rather than another symlink,
13769 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13771 case $with_aix_soname,$aix_use_runtimelinking in
13772 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13773 # soname into executable. Probably we can add versioning support to
13774 # collect2, so additional links can be useful in future.
13775 aix,yes) # traditional libtool
13776 dynamic_linker='AIX unversionable lib.so'
13777 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13778 # instead of lib<name>.a to let people know that these are not
13779 # typical AIX shared libraries.
13780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13782 aix,no) # traditional AIX only
13783 dynamic_linker='AIX lib.a(lib.so.V)'
13784 # We preserve .a as extension for shared libraries through AIX4.2
13785 # and later when we are not doing run time linking.
13786 library_names_spec='$libname$release.a $libname.a'
13787 soname_spec='$libname$release$shared_ext$major'
13789 svr4,*) # full svr4 only
13790 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13791 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13792 # We do not specify a path in Import Files, so LIBPATH fires.
13793 shlibpath_overrides_runpath=yes
13795 *,yes) # both, prefer svr4
13796 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13797 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13798 # unpreferred sharedlib libNAME.a needs extra handling
13799 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13800 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13801 # We do not specify a path in Import Files, so LIBPATH fires.
13802 shlibpath_overrides_runpath=yes
13804 *,no) # both, prefer aix
13805 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13806 library_names_spec='$libname$release.a $libname.a'
13807 soname_spec='$libname$release$shared_ext$major'
13808 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13809 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13810 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13813 shlibpath_var=LIBPATH
13820 # Since July 2007 AmigaOS4 officially supports .so libraries.
13821 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13825 library_names_spec='$libname.ixlibrary $libname.a'
13826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13827 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13833 library_names_spec='$libname$shared_ext'
13834 dynamic_linker="$host_os ld.so"
13835 shlibpath_var=LIBRARY_PATH
13839 version_type=linux # correct to gnu/linux during the next big refactor
13841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13842 soname_spec='$libname$release$shared_ext$major'
13843 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13844 shlibpath_var=LD_LIBRARY_PATH
13845 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13846 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13847 # the default ld.so.conf also contains /usr/contrib/lib and
13848 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13849 # libtool to hard-code these into programs
13852 cygwin* | mingw* | pw32* | cegcc*)
13853 version_type=windows
13858 case $GCC,$cc_basename in
13861 library_names_spec='$libname.dll.a'
13862 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13863 postinstall_cmds='base_file=`basename \$file`~
13864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13865 dldir=$destdir/`dirname \$dlpath`~
13866 test -d \$dldir || mkdir -p \$dldir~
13867 $install_prog $dir/$dlname \$dldir/$dlname~
13868 chmod a+x \$dldir/$dlname~
13869 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13870 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13873 dlpath=$dir/\$dldll~
13875 shlibpath_overrides_runpath=yes
13879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13880 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13882 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13885 # MinGW DLLs use traditional 'lib' prefix
13886 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13889 # pw32 DLLs use 'pw' prefix rather than 'lib'
13890 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13893 dynamic_linker='Win32 ld.exe'
13898 libname_spec='$name'
13899 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13900 library_names_spec='$libname.dll.lib'
13904 sys_lib_search_path_spec=
13907 for lt_path in $LIB
13910 # Let DOS variable expansion print the short 8.3 style file name.
13911 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13912 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13915 # Convert to MSYS style.
13916 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13919 # Convert to unix form, then to dos form, then back to unix form
13920 # but this time dos style (no spaces!) so that the unix form looks
13921 # like /cygdrive/c/PROGRA~1:/cygdr...
13922 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13923 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13924 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13927 sys_lib_search_path_spec=$LIB
13928 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13929 # It is most probably a Windows format PATH.
13930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13934 # FIXME: find the short name or the path components, as spaces are
13935 # common. (e.g. "Program Files" -> "PROGRA~1")
13939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13940 postinstall_cmds='base_file=`basename \$file`~
13941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13942 dldir=$destdir/`dirname \$dlpath`~
13943 test -d \$dldir || mkdir -p \$dldir~
13944 $install_prog $dir/$dlname \$dldir/$dlname'
13945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13946 dlpath=$dir/\$dldll~
13948 shlibpath_overrides_runpath=yes
13949 dynamic_linker='Win32 link.exe'
13953 # Assume MSVC wrapper
13954 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13955 dynamic_linker='Win32 ld.exe'
13958 # FIXME: first we should search . and the directory the executable is in
13962 darwin* | rhapsody*)
13963 dynamic_linker="$host_os dyld"
13964 version_type=darwin
13967 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13968 soname_spec='$libname$release$major$shared_ext'
13969 shlibpath_overrides_runpath=yes
13970 shlibpath_var=DYLD_LIBRARY_PATH
13971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13973 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13978 version_type=linux # correct to gnu/linux during the next big refactor
13981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13982 soname_spec='$libname$release$shared_ext$major'
13983 shlibpath_var=LD_LIBRARY_PATH
13986 freebsd* | dragonfly*)
13987 # DragonFly does not have aout. When/if they implement a new
13988 # versioning mechanism, adjust this.
13989 if test -x /usr/bin/objformat; then
13990 objformat=`/usr/bin/objformat`
13993 freebsd[23].*) objformat=aout ;;
13994 *) objformat=elf ;;
13997 version_type=freebsd-$objformat
13998 case $version_type in
14000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14001 soname_spec='$libname$release$shared_ext$major'
14006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14010 shlibpath_var=LD_LIBRARY_PATH
14013 shlibpath_overrides_runpath=yes
14015 freebsd3.[01]* | freebsdelf3.[01]*)
14016 shlibpath_overrides_runpath=yes
14017 hardcode_into_libs=yes
14019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14021 shlibpath_overrides_runpath=no
14022 hardcode_into_libs=yes
14024 *) # from 4.6 on, and DragonFly
14025 shlibpath_overrides_runpath=yes
14026 hardcode_into_libs=yes
14032 version_type=linux # correct to gnu/linux during the next big refactor
14035 dynamic_linker="$host_os runtime_loader"
14036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14037 soname_spec='$libname$release$shared_ext$major'
14038 shlibpath_var=LIBRARY_PATH
14039 shlibpath_overrides_runpath=no
14040 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14041 hardcode_into_libs=yes
14044 hpux9* | hpux10* | hpux11*)
14045 # Give a soname corresponding to the major version so that dld.sl refuses to
14046 # link against other versions.
14053 hardcode_into_libs=yes
14054 dynamic_linker="$host_os dld.so"
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14058 soname_spec='$libname$release$shared_ext$major'
14059 if test 32 = "$HPUX_IA64_MODE"; then
14060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14061 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14064 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14069 hardcode_into_libs=yes
14070 dynamic_linker="$host_os dld.sl"
14071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14074 soname_spec='$libname$release$shared_ext$major'
14075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14080 dynamic_linker="$host_os dld.sl"
14081 shlibpath_var=SHLIB_PATH
14082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14084 soname_spec='$libname$release$shared_ext$major'
14087 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14088 postinstall_cmds='chmod 555 $lib'
14089 # or fails outright, so override atomically:
14090 install_override_mode=555
14094 version_type=linux # correct to gnu/linux during the next big refactor
14097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14098 soname_spec='$libname$release$shared_ext$major'
14099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 shlibpath_overrides_runpath=no
14102 hardcode_into_libs=yes
14105 irix5* | irix6* | nonstopux*)
14107 nonstopux*) version_type=nonstopux ;;
14109 if test yes = "$lt_cv_prog_gnu_ld"; then
14110 version_type=linux # correct to gnu/linux during the next big refactor
14117 soname_spec='$libname$release$shared_ext$major'
14118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14120 irix5* | nonstopux*)
14121 libsuff= shlibsuff=
14124 case $LD in # libtool.m4 will add one of these switches to LD
14125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14126 libsuff= shlibsuff= libmagic=32-bit;;
14127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14128 libsuff=32 shlibsuff=N32 libmagic=N32;;
14129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14131 *) libsuff= shlibsuff= libmagic=never-match;;
14135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14136 shlibpath_overrides_runpath=no
14137 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14138 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14139 hardcode_into_libs=yes
14142 # No shared lib support for Linux oldld, aout, or coff.
14143 linux*oldld* | linux*aout* | linux*coff*)
14148 version_type=none # Android doesn't support versioned libraries.
14151 library_names_spec='$libname$release$shared_ext'
14152 soname_spec='$libname$release$shared_ext'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14157 # This implies no fast_install, which is unacceptable.
14158 # Some rework will be needed to allow for fast_install
14159 # before this can be enabled.
14160 hardcode_into_libs=yes
14162 dynamic_linker='Android linker'
14163 # Don't embed -rpath directories since the linker doesn't support them.
14164 hardcode_libdir_flag_spec='-L$libdir'
14167 # This must be glibc/ELF.
14168 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14169 version_type=linux # correct to gnu/linux during the next big refactor
14172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14173 soname_spec='$libname$release$shared_ext$major'
14174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 shlibpath_overrides_runpath=no
14178 # Some binutils ld are patched to set DT_RUNPATH
14179 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14180 $as_echo_n "(cached) " >&6
14182 lt_cv_shlibpath_overrides_runpath=no
14183 save_LDFLAGS=$LDFLAGS
14184 save_libdir=$libdir
14185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14197 if ac_fn_c_try_link "$LINENO"; then :
14198 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14199 lt_cv_shlibpath_overrides_runpath=yes
14202 rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LDFLAGS=$save_LDFLAGS
14205 libdir=$save_libdir
14209 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14211 # This implies no fast_install, which is unacceptable.
14212 # Some rework will be needed to allow for fast_install
14213 # before this can be enabled.
14214 hardcode_into_libs=yes
14216 # Ideally, we could use ldconfig to report *all* directores which are
14217 # searched for libraries, however this is still not possible. Aside from not
14218 # being certain /sbin/ldconfig is available, command
14219 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14220 # even though it is searched at run-time. Try to do the best guess by
14221 # appending ld.so.conf contents (and includes) to the search path.
14222 if test -f /etc/ld.so.conf; then
14223 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' ' '`
14224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14227 # We used to test for /lib/ld.so.1 and disable shared libraries on
14228 # powerpc, because MkLinux only supported shared libraries with the
14229 # GNU dynamic linker. Since this was broken with cross compilers,
14230 # most powerpc-linux boxes support dynamic linking these days and
14231 # people can always --disable-shared, the test was removed, and we
14232 # assume the GNU/Linux dynamic linker is in use.
14233 dynamic_linker='GNU/Linux ld.so'
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14241 soname_spec='${libname}${release}${shared_ext}$major'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=no
14244 hardcode_into_libs=yes
14245 dynamic_linker='NetBSD ld.elf_so'
14252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14253 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14255 dynamic_linker='NetBSD (a.out) ld.so'
14257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14258 soname_spec='$libname$release$shared_ext$major'
14259 dynamic_linker='NetBSD ld.elf_so'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 shlibpath_overrides_runpath=yes
14263 hardcode_into_libs=yes
14267 version_type=linux # correct to gnu/linux during the next big refactor
14268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14269 shlibpath_var=LD_LIBRARY_PATH
14270 shlibpath_overrides_runpath=yes
14277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14278 soname_spec='$libname$release$shared_ext$major'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 shlibpath_overrides_runpath=no
14281 hardcode_into_libs=yes
14282 dynamic_linker='ldqnx.so'
14285 openbsd* | bitrig*)
14287 sys_lib_dlsearch_path_spec=/usr/lib
14289 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes
14301 libname_spec='$name'
14302 version_type=windows
14306 # OS/2 can only load a DLL with a base name of 8 characters or less.
14307 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14308 v=$($ECHO $release$versuffix | tr -d .-);
14309 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14310 $ECHO $n$v`$shared_ext'
14311 library_names_spec='${libname}_dll.$libext'
14312 dynamic_linker='OS/2 ld.exe'
14313 shlibpath_var=BEGINLIBPATH
14314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14316 postinstall_cmds='base_file=`basename \$file`~
14317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14318 dldir=$destdir/`dirname \$dlpath`~
14319 test -d \$dldir || mkdir -p \$dldir~
14320 $install_prog $dir/$dlname \$dldir/$dlname~
14321 chmod a+x \$dldir/$dlname~
14322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14326 dlpath=$dir/\$dldll~
14330 osf3* | osf4* | osf5*)
14334 soname_spec='$libname$release$shared_ext$major'
14335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14346 version_type=linux # correct to gnu/linux during the next big refactor
14349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14350 soname_spec='$libname$release$shared_ext$major'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 shlibpath_overrides_runpath=yes
14353 hardcode_into_libs=yes
14354 # ldd complains unless libraries are executable
14355 postinstall_cmds='chmod +x $lib'
14360 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 shlibpath_overrides_runpath=yes
14364 if test yes = "$with_gnu_ld"; then
14371 version_type=linux # correct to gnu/linux during the next big refactor
14372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14373 soname_spec='$libname$release$shared_ext$major'
14374 shlibpath_var=LD_LIBRARY_PATH
14375 case $host_vendor in
14377 shlibpath_overrides_runpath=no
14379 runpath_var=LD_RUN_PATH
14387 shlibpath_overrides_runpath=no
14388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14394 if test -d /usr/nec; then
14395 version_type=linux # correct to gnu/linux during the next big refactor
14396 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14397 soname_spec='$libname$shared_ext.$major'
14398 shlibpath_var=LD_LIBRARY_PATH
14402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14407 soname_spec='$libname$release$shared_ext$major'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=yes
14410 hardcode_into_libs=yes
14411 if test yes = "$with_gnu_ld"; then
14412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14421 sys_lib_dlsearch_path_spec='/usr/lib'
14425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14426 version_type=linux # correct to gnu/linux during the next big refactor
14429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=no
14432 hardcode_into_libs=yes
14436 version_type=linux # correct to gnu/linux during the next big refactor
14437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14438 soname_spec='$libname$release$shared_ext$major'
14439 shlibpath_var=LD_LIBRARY_PATH
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14447 $as_echo "$dynamic_linker" >&6; }
14448 test no = "$dynamic_linker" && can_build_shared=no
14450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14451 if test yes = "$GCC"; then
14452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14455 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14456 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14459 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14460 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14463 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14464 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14466 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14467 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14469 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14470 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14569 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14571 if test -n "$hardcode_libdir_flag_spec" ||
14572 test -n "$runpath_var" ||
14573 test yes = "$hardcode_automatic"; then
14575 # We can hardcode non-existent directories.
14576 if test no != "$hardcode_direct" &&
14577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14578 # have to relink, otherwise we might link with an installed library
14579 # when we should be linking with a yet-to-be-installed one
14580 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14581 test no != "$hardcode_minus_L"; then
14582 # Linking always hardcodes the temporary library directory.
14583 hardcode_action=relink
14585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14586 hardcode_action=immediate
14589 # We cannot hardcode anything, or else we can only hardcode existing
14591 hardcode_action=unsupported
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14594 $as_echo "$hardcode_action" >&6; }
14596 if test relink = "$hardcode_action" ||
14597 test yes = "$inherit_rpath"; then
14598 # Fast installation is not supported
14599 enable_fast_install=no
14600 elif test yes = "$shlibpath_overrides_runpath" ||
14601 test no = "$enable_shared"; then
14602 # Fast installation is not necessary
14603 enable_fast_install=needless
14611 if test yes != "$enable_dlopen"; then
14612 enable_dlopen=unknown
14613 enable_dlopen_self=unknown
14614 enable_dlopen_self_static=unknown
14621 lt_cv_dlopen=load_add_on
14623 lt_cv_dlopen_self=yes
14626 mingw* | pw32* | cegcc*)
14627 lt_cv_dlopen=LoadLibrary
14632 lt_cv_dlopen=dlopen
14637 # if libdl is installed we need to link against it
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14639 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14640 if ${ac_cv_lib_dl_dlopen+:} false; then :
14641 $as_echo_n "(cached) " >&6
14643 ac_check_lib_save_LIBS=$LIBS
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14660 if ac_fn_c_try_link "$LINENO"; then :
14661 ac_cv_lib_dl_dlopen=yes
14663 ac_cv_lib_dl_dlopen=no
14665 rm -f core conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
14667 LIBS=$ac_check_lib_save_LIBS
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14672 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14677 lt_cv_dlopen_self=yes
14684 # Don't try to run any link tests for TPF. We know it's impossible
14685 # because TPF is a cross-compiler, and we know how we open DSOs.
14686 lt_cv_dlopen=dlopen
14688 lt_cv_dlopen_self=no
14692 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14693 if test "x$ac_cv_func_shl_load" = xyes; then :
14694 lt_cv_dlopen=shl_load
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14698 if ${ac_cv_lib_dld_shl_load+:} false; then :
14699 $as_echo_n "(cached) " >&6
14701 ac_check_lib_save_LIBS=$LIBS
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14713 return shl_load ();
14718 if ac_fn_c_try_link "$LINENO"; then :
14719 ac_cv_lib_dld_shl_load=yes
14721 ac_cv_lib_dld_shl_load=no
14723 rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14728 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14729 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14730 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14732 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14733 if test "x$ac_cv_func_dlopen" = xyes; then :
14734 lt_cv_dlopen=dlopen
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14738 if ${ac_cv_lib_dl_dlopen+:} false; then :
14739 $as_echo_n "(cached) " >&6
14741 ac_check_lib_save_LIBS=$LIBS
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14758 if ac_fn_c_try_link "$LINENO"; then :
14759 ac_cv_lib_dl_dlopen=yes
14761 ac_cv_lib_dl_dlopen=no
14763 rm -f core conftest.err conftest.$ac_objext \
14764 conftest$ac_exeext conftest.$ac_ext
14765 LIBS=$ac_check_lib_save_LIBS
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14769 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14770 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14773 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14774 if ${ac_cv_lib_svld_dlopen+:} false; then :
14775 $as_echo_n "(cached) " >&6
14777 ac_check_lib_save_LIBS=$LIBS
14778 LIBS="-lsvld $LIBS"
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14794 if ac_fn_c_try_link "$LINENO"; then :
14795 ac_cv_lib_svld_dlopen=yes
14797 ac_cv_lib_svld_dlopen=no
14799 rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801 LIBS=$ac_check_lib_save_LIBS
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14804 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14805 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14806 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14809 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14810 if ${ac_cv_lib_dld_dld_link+:} false; then :
14811 $as_echo_n "(cached) " >&6
14813 ac_check_lib_save_LIBS=$LIBS
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14825 return dld_link ();
14830 if ac_fn_c_try_link "$LINENO"; then :
14831 ac_cv_lib_dld_dld_link=yes
14833 ac_cv_lib_dld_dld_link=no
14835 rm -f core conftest.err conftest.$ac_objext \
14836 conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14840 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14841 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14842 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14863 if test no = "$lt_cv_dlopen"; then
14869 case $lt_cv_dlopen in
14871 save_CPPFLAGS=$CPPFLAGS
14872 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14874 save_LDFLAGS=$LDFLAGS
14875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14878 LIBS="$lt_cv_dlopen_libs $LIBS"
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14881 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14882 if ${lt_cv_dlopen_self+:} false; then :
14883 $as_echo_n "(cached) " >&6
14885 if test yes = "$cross_compiling"; then :
14886 lt_cv_dlopen_self=cross
14888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14889 lt_status=$lt_dlunknown
14890 cat > conftest.$ac_ext <<_LT_EOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14901 # define LT_DLGLOBAL RTLD_GLOBAL
14904 # define LT_DLGLOBAL DL_GLOBAL
14906 # define LT_DLGLOBAL 0
14910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14911 find out it does not work in some platform. */
14912 #ifndef LT_DLLAZY_OR_NOW
14914 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14917 # define LT_DLLAZY_OR_NOW DL_LAZY
14920 # define LT_DLLAZY_OR_NOW RTLD_NOW
14923 # define LT_DLLAZY_OR_NOW DL_NOW
14925 # define LT_DLLAZY_OR_NOW 0
14932 /* When -fvisibility=hidden is used, assume the code has been annotated
14933 correspondingly for the symbols needed. */
14934 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14935 int fnord () __attribute__((visibility("default")));
14938 int fnord () { return 42; }
14941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14942 int status = $lt_dlunknown;
14946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14949 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14950 else puts (dlerror ());
14952 /* dlclose (self); */
14960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14961 (eval $ac_link) 2>&5
14963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14964 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14965 (./conftest; exit; ) >&5 2>/dev/null
14967 case x$lt_status in
14968 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14969 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14970 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14973 # compilation failed
14974 lt_cv_dlopen_self=no
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14982 $as_echo "$lt_cv_dlopen_self" >&6; }
14984 if test yes = "$lt_cv_dlopen_self"; then
14985 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14987 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14988 if ${lt_cv_dlopen_self_static+:} false; then :
14989 $as_echo_n "(cached) " >&6
14991 if test yes = "$cross_compiling"; then :
14992 lt_cv_dlopen_self_static=cross
14994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14995 lt_status=$lt_dlunknown
14996 cat > conftest.$ac_ext <<_LT_EOF
14997 #line $LINENO "configure"
14998 #include "confdefs.h"
15007 # define LT_DLGLOBAL RTLD_GLOBAL
15010 # define LT_DLGLOBAL DL_GLOBAL
15012 # define LT_DLGLOBAL 0
15016 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15017 find out it does not work in some platform. */
15018 #ifndef LT_DLLAZY_OR_NOW
15020 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15023 # define LT_DLLAZY_OR_NOW DL_LAZY
15026 # define LT_DLLAZY_OR_NOW RTLD_NOW
15029 # define LT_DLLAZY_OR_NOW DL_NOW
15031 # define LT_DLLAZY_OR_NOW 0
15038 /* When -fvisibility=hidden is used, assume the code has been annotated
15039 correspondingly for the symbols needed. */
15040 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15041 int fnord () __attribute__((visibility("default")));
15044 int fnord () { return 42; }
15047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15048 int status = $lt_dlunknown;
15052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15055 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15056 else puts (dlerror ());
15058 /* dlclose (self); */
15066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15067 (eval $ac_link) 2>&5
15069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15071 (./conftest; exit; ) >&5 2>/dev/null
15073 case x$lt_status in
15074 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15075 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15076 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15079 # compilation failed
15080 lt_cv_dlopen_self_static=no
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15088 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15091 CPPFLAGS=$save_CPPFLAGS
15092 LDFLAGS=$save_LDFLAGS
15097 case $lt_cv_dlopen_self in
15098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15099 *) enable_dlopen_self=unknown ;;
15102 case $lt_cv_dlopen_self_static in
15103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15104 *) enable_dlopen_self_static=unknown ;;
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15127 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15128 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15129 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15130 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15132 $as_echo "yes" >&6; }
15134 # FIXME - insert some real tests, host_os isn't really good enough
15137 if test -n "$STRIP"; then
15138 striplib="$STRIP -x"
15139 old_striplib="$STRIP -S"
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15141 $as_echo "yes" >&6; }
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 $as_echo "no" >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15165 # Report what library types will actually be built
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15167 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15169 $as_echo "$can_build_shared" >&6; }
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15172 $as_echo_n "checking whether to build shared libraries... " >&6; }
15173 test no = "$can_build_shared" && enable_shared=no
15175 # On AIX, shared libraries and static libraries use the same namespace, and
15176 # are all built from PIC.
15179 test yes = "$enable_shared" && enable_static=no
15180 if test -n "$RANLIB"; then
15181 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15182 postinstall_cmds='$RANLIB $lib'
15187 if test ia64 != "$host_cpu"; then
15188 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15189 yes,aix,yes) ;; # shared object as lib.so file only
15190 yes,svr4,*) ;; # shared object as lib.so archive member only
15191 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15197 $as_echo "$enable_shared" >&6; }
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15200 $as_echo_n "checking whether to build static libraries... " >&6; }
15201 # Make sure either enable_shared or enable_static is yes.
15202 test yes = "$enable_shared" || enable_static=yes
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15204 $as_echo "$enable_static" >&6; }
15211 ac_cpp='$CPP $CPPFLAGS'
15212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15232 ac_config_commands="$ac_config_commands libtool"
15237 # Only expand once:
15240 ## --------------------- ##
15241 ## End of libtool code ##
15242 ## --------------------- ##
15245 # Verify if finally libtool shared libraries will be built
15248 case "x$enable_shared" in # ((
15250 xc_lt_build_shared=$enable_shared
15253 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15258 # Verify if finally libtool static libraries will be built
15261 case "x$enable_static" in # ((
15263 xc_lt_build_static=$enable_static
15266 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15271 # Verify if libtool shared libraries should be linked using flag -version-info
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15275 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15276 xc_lt_shlib_use_version_info='yes'
15277 if test "x$version_type" = 'xnone'; then
15278 xc_lt_shlib_use_version_info='no'
15280 case $host_os in # (
15282 xc_lt_shlib_use_version_info='yes'
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15286 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15289 # Verify if libtool shared libraries should be linked using flag -no-undefined
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15293 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15294 xc_lt_shlib_use_no_undefined='no'
15295 if test "x$allow_undefined" = 'xno'; then
15296 xc_lt_shlib_use_no_undefined='yes'
15297 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15298 xc_lt_shlib_use_no_undefined='yes'
15300 case $host_os in # (
15301 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15302 xc_lt_shlib_use_no_undefined='yes'
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15306 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15309 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15313 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15314 xc_lt_shlib_use_mimpure_text='no'
15315 case $host_os in # (
15317 if test "x$GCC" = 'xyes'; then
15318 xc_lt_shlib_use_mimpure_text='yes'
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15323 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15326 # Find out wether libtool libraries would be built wit PIC
15329 case "x$pic_mode" in # ((((
15331 xc_lt_build_shared_with_pic='yes'
15332 xc_lt_build_static_with_pic='no'
15335 xc_lt_build_shared_with_pic='yes'
15336 xc_lt_build_static_with_pic='yes'
15339 xc_lt_build_shared_with_pic='no'
15340 xc_lt_build_static_with_pic='no'
15343 xc_lt_build_shared_with_pic='unknown'
15344 xc_lt_build_static_with_pic='unknown'
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15346 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15350 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15352 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15354 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15356 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15359 # Verify if libtool shared libraries will be built while static not built
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15363 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15364 if test "$xc_lt_build_shared" = 'yes' &&
15365 test "$xc_lt_build_static" = 'no'; then
15366 xc_lt_build_shared_only='yes'
15368 xc_lt_build_shared_only='no'
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15371 $as_echo "$xc_lt_build_shared_only" >&6; }
15374 # Verify if libtool static libraries will be built while shared not built
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15378 $as_echo_n "checking whether to build static libraries only... " >&6; }
15379 if test "$xc_lt_build_static" = 'yes' &&
15380 test "$xc_lt_build_shared" = 'no'; then
15381 xc_lt_build_static_only='yes'
15383 xc_lt_build_static_only='no'
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15386 $as_echo "$xc_lt_build_static_only" >&6; }
15392 # Automake conditionals based on libtool related checks
15395 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15396 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
15397 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15399 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15400 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
15403 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15404 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15405 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15407 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15408 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15411 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15412 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15413 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15415 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15416 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15421 # Due to libtool and automake machinery limitations of not allowing
15422 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15423 # inclusion of these in shared or static libraries, we are forced to
15424 # build using separate configure runs for shared and static libraries
15425 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15426 # to compile objects for each kind of library. Notice that relying on
15427 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15428 # user might for example choose to build static libraries with PIC.
15432 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15433 # targeting a static library and not building its shared counterpart.
15436 if test "x$xc_lt_build_static_only" = 'xyes'; then
15437 USE_CPPFLAG_CARES_STATICLIB_TRUE=
15438 USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
15440 USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
15441 USE_CPPFLAG_CARES_STATICLIB_FALSE=
15446 # Make staticlib CPPFLAG variable and its definition visible in output
15447 # files unconditionally, providing an empty definition unless strictly
15448 # targeting a static library and not building its shared counterpart.
15451 CPPFLAG_CARES_STATICLIB=
15452 if test "x$xc_lt_build_static_only" = 'xyes'; then
15453 CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
15460 compiler_id="unknown"
15463 flags_dbg_all="unknown"
15464 flags_dbg_yes="unknown"
15465 flags_dbg_off="unknown"
15466 flags_opt_all="unknown"
15467 flags_opt_yes="unknown"
15468 flags_opt_off="unknown"
15470 flags_prefer_cppflags="no"
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15474 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15476 if test -z "$SED"; then
15477 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15479 if test -z "$GREP"; then
15480 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15489 CURL_DEF_TOKEN __DECC
15494 if ac_fn_c_try_cpp "$LINENO"; then :
15496 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15497 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15498 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15499 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15500 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15505 rm -f conftest.err conftest.i conftest.$ac_ext
15506 if test -z "$tmp_exp"; then
15507 curl_cv_have_def___DECC=no
15510 curl_cv_have_def___DECC=yes
15511 curl_cv_def___DECC=$tmp_exp
15516 if test -z "$SED"; then
15517 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15519 if test -z "$GREP"; then
15520 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15529 CURL_DEF_TOKEN __DECC_VER
15534 if ac_fn_c_try_cpp "$LINENO"; then :
15536 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15537 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15538 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15539 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15540 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15545 rm -f conftest.err conftest.i conftest.$ac_ext
15546 if test -z "$tmp_exp"; then
15547 curl_cv_have_def___DECC_VER=no
15550 curl_cv_have_def___DECC_VER=yes
15551 curl_cv_def___DECC_VER=$tmp_exp
15555 if test "$curl_cv_have_def___DECC" = "yes" &&
15556 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15558 $as_echo "yes" >&6; }
15559 compiler_id="DEC_C"
15560 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15561 flags_dbg_yes="-g2"
15562 flags_dbg_off="-g0"
15563 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15564 flags_opt_yes="-O1"
15565 flags_opt_off="-O0"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568 $as_echo "no" >&6; }
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15573 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15575 if test -z "$SED"; then
15576 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15578 if test -z "$GREP"; then
15579 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15588 CURL_DEF_TOKEN __HP_cc
15593 if ac_fn_c_try_cpp "$LINENO"; then :
15595 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15596 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15597 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15598 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15599 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15604 rm -f conftest.err conftest.i conftest.$ac_ext
15605 if test -z "$tmp_exp"; then
15606 curl_cv_have_def___HP_cc=no
15609 curl_cv_have_def___HP_cc=yes
15610 curl_cv_def___HP_cc=$tmp_exp
15614 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15616 $as_echo "yes" >&6; }
15617 compiler_id="HP_UX_C"
15618 flags_dbg_all="-g -s"
15621 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15622 flags_opt_yes="+O2"
15623 flags_opt_off="+O0"
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15631 $as_echo_n "checking if compiler is IBM C... " >&6; }
15633 if test -z "$SED"; then
15634 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15636 if test -z "$GREP"; then
15637 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15646 CURL_DEF_TOKEN __IBMC__
15651 if ac_fn_c_try_cpp "$LINENO"; then :
15653 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15654 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15655 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15656 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15657 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15662 rm -f conftest.err conftest.i conftest.$ac_ext
15663 if test -z "$tmp_exp"; then
15664 curl_cv_have_def___IBMC__=no
15667 curl_cv_have_def___IBMC__=yes
15668 curl_cv_def___IBMC__=$tmp_exp
15672 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15674 $as_echo "yes" >&6; }
15675 compiler_id="IBM_C"
15676 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15679 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15680 flags_opt_all="$flags_opt_all -qnooptimize"
15681 flags_opt_all="$flags_opt_all -qoptimize=0"
15682 flags_opt_all="$flags_opt_all -qoptimize=1"
15683 flags_opt_all="$flags_opt_all -qoptimize=2"
15684 flags_opt_all="$flags_opt_all -qoptimize=3"
15685 flags_opt_all="$flags_opt_all -qoptimize=4"
15686 flags_opt_all="$flags_opt_all -qoptimize=5"
15687 flags_opt_yes="-O2"
15688 flags_opt_off="-qnooptimize"
15689 flags_prefer_cppflags="yes"
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15697 $as_echo_n "checking if compiler is Intel C... " >&6; }
15699 if test -z "$SED"; then
15700 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15702 if test -z "$GREP"; then
15703 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15711 #ifdef __INTEL_COMPILER
15712 CURL_DEF_TOKEN __INTEL_COMPILER
15717 if ac_fn_c_try_cpp "$LINENO"; then :
15719 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15720 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15721 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15722 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15723 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15728 rm -f conftest.err conftest.i conftest.$ac_ext
15729 if test -z "$tmp_exp"; then
15730 curl_cv_have_def___INTEL_COMPILER=no
15733 curl_cv_have_def___INTEL_COMPILER=yes
15734 curl_cv_def___INTEL_COMPILER=$tmp_exp
15738 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15740 $as_echo "yes" >&6; }
15741 compiler_num="$curl_cv_def___INTEL_COMPILER"
15743 if test -z "$SED"; then
15744 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15746 if test -z "$GREP"; then
15747 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15756 CURL_DEF_TOKEN __unix__
15761 if ac_fn_c_try_cpp "$LINENO"; then :
15763 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15764 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15765 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15766 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15767 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15772 rm -f conftest.err conftest.i conftest.$ac_ext
15773 if test -z "$tmp_exp"; then
15774 curl_cv_have_def___unix__=no
15777 curl_cv_have_def___unix__=yes
15778 curl_cv_def___unix__=$tmp_exp
15782 if test "$curl_cv_have_def___unix__" = "yes"; then
15783 compiler_id="INTEL_UNIX_C"
15784 flags_dbg_all="-g -g0"
15786 flags_dbg_off="-g0"
15787 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15788 flags_opt_yes="-O2"
15789 flags_opt_off="-O0"
15791 compiler_id="INTEL_WINDOWS_C"
15792 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15793 flags_dbg_all="$flags_dbg_all /debug"
15794 flags_dbg_all="$flags_dbg_all /debug:none"
15795 flags_dbg_all="$flags_dbg_all /debug:minimal"
15796 flags_dbg_all="$flags_dbg_all /debug:partial"
15797 flags_dbg_all="$flags_dbg_all /debug:full"
15798 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15799 flags_dbg_all="$flags_dbg_all /debug:extended"
15800 flags_dbg_yes="/Zi /Oy-"
15801 flags_dbg_off="/debug:none /Oy-"
15802 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15803 flags_opt_yes="/O2"
15804 flags_opt_off="/Od"
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15808 $as_echo "no" >&6; }
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15813 $as_echo_n "checking if compiler is clang... " >&6; }
15815 if test -z "$SED"; then
15816 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15818 if test -z "$GREP"; then
15819 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15828 CURL_DEF_TOKEN __clang__
15833 if ac_fn_c_try_cpp "$LINENO"; then :
15835 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15836 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15837 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15838 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15839 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
15844 rm -f conftest.err conftest.i conftest.$ac_ext
15845 if test -z "$tmp_exp"; then
15846 curl_cv_have_def___clang__=no
15849 curl_cv_have_def___clang__=yes
15850 curl_cv_def___clang__=$tmp_exp
15854 if test "$curl_cv_have_def___clang__" = "yes"; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15856 $as_echo "yes" >&6; }
15857 compiler_id="CLANG"
15858 clangver=`$CC -dumpversion`
15859 clangvhi=`echo $clangver | cut -d . -f1`
15860 clangvlo=`echo $clangver | cut -d . -f2`
15861 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
15862 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15863 flags_dbg_all="$flags_dbg_all -ggdb"
15864 flags_dbg_all="$flags_dbg_all -gstabs"
15865 flags_dbg_all="$flags_dbg_all -gstabs+"
15866 flags_dbg_all="$flags_dbg_all -gcoff"
15867 flags_dbg_all="$flags_dbg_all -gxcoff"
15868 flags_dbg_all="$flags_dbg_all -gdwarf-2"
15869 flags_dbg_all="$flags_dbg_all -gvms"
15871 flags_dbg_off="-g0"
15872 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
15873 flags_opt_yes="-Os"
15874 flags_opt_off="-O0"
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
15882 $as_echo_n "checking if compiler is GNU C... " >&6; }
15884 if test -z "$SED"; then
15885 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15887 if test -z "$GREP"; then
15888 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h. */
15897 CURL_DEF_TOKEN __GNUC__
15902 if ac_fn_c_try_cpp "$LINENO"; then :
15904 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15905 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15906 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15907 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15908 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15913 rm -f conftest.err conftest.i conftest.$ac_ext
15914 if test -z "$tmp_exp"; then
15915 curl_cv_have_def___GNUC__=no
15918 curl_cv_have_def___GNUC__=yes
15919 curl_cv_def___GNUC__=$tmp_exp
15923 if test "$curl_cv_have_def___GNUC__" = "yes" &&
15924 test "$compiler_id" = "unknown"; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15926 $as_echo "yes" >&6; }
15927 compiler_id="GNU_C"
15928 gccver=`$CC -dumpversion`
15929 gccvhi=`echo $gccver | cut -d . -f1`
15930 gccvlo=`echo $gccver | cut -d . -f2`
15931 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
15932 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15933 flags_dbg_all="$flags_dbg_all -ggdb"
15934 flags_dbg_all="$flags_dbg_all -gstabs"
15935 flags_dbg_all="$flags_dbg_all -gstabs+"
15936 flags_dbg_all="$flags_dbg_all -gcoff"
15937 flags_dbg_all="$flags_dbg_all -gxcoff"
15938 flags_dbg_all="$flags_dbg_all -gdwarf-2"
15939 flags_dbg_all="$flags_dbg_all -gvms"
15941 flags_dbg_off="-g0"
15942 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15943 flags_opt_yes="-O2"
15944 flags_opt_off="-O0"
15946 if test -z "$SED"; then
15947 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15949 if test -z "$GREP"; then
15950 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15959 CURL_DEF_TOKEN _WIN32
15964 if ac_fn_c_try_cpp "$LINENO"; then :
15966 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15967 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15968 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15969 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15970 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
15975 rm -f conftest.err conftest.i conftest.$ac_ext
15976 if test -z "$tmp_exp"; then
15977 curl_cv_have_def__WIN32=no
15980 curl_cv_have_def__WIN32=yes
15981 curl_cv_def__WIN32=$tmp_exp
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 $as_echo "no" >&6; }
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
15992 $as_echo_n "checking if compiler is LCC... " >&6; }
15994 if test -z "$SED"; then
15995 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15997 if test -z "$GREP"; then
15998 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003 /* end confdefs.h. */
16007 CURL_DEF_TOKEN __LCC__
16012 if ac_fn_c_try_cpp "$LINENO"; then :
16014 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16015 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16016 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16017 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16018 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16023 rm -f conftest.err conftest.i conftest.$ac_ext
16024 if test -z "$tmp_exp"; then
16025 curl_cv_have_def___LCC__=no
16028 curl_cv_have_def___LCC__=yes
16029 curl_cv_def___LCC__=$tmp_exp
16033 if test "$curl_cv_have_def___LCC__" = "yes"; then
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035 $as_echo "yes" >&6; }
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16050 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16052 if test -z "$SED"; then
16053 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16055 if test -z "$GREP"; then
16056 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16065 CURL_DEF_TOKEN __GNUC__
16070 if ac_fn_c_try_cpp "$LINENO"; then :
16072 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16073 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16074 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16075 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16076 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16081 rm -f conftest.err conftest.i conftest.$ac_ext
16082 if test -z "$tmp_exp"; then
16083 curl_cv_have_def___GNUC__=no
16086 curl_cv_have_def___GNUC__=yes
16087 curl_cv_def___GNUC__=$tmp_exp
16092 if test -z "$SED"; then
16093 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16095 if test -z "$GREP"; then
16096 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16104 #ifdef _COMPILER_VERSION
16105 CURL_DEF_TOKEN _COMPILER_VERSION
16110 if ac_fn_c_try_cpp "$LINENO"; then :
16112 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16113 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16114 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16115 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16116 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16121 rm -f conftest.err conftest.i conftest.$ac_ext
16122 if test -z "$tmp_exp"; then
16123 curl_cv_have_def__COMPILER_VERSION=no
16126 curl_cv_have_def__COMPILER_VERSION=yes
16127 curl_cv_def__COMPILER_VERSION=$tmp_exp
16132 if test -z "$SED"; then
16133 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16135 if test -z "$GREP"; then
16136 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16144 #ifdef _SGI_COMPILER_VERSION
16145 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16150 if ac_fn_c_try_cpp "$LINENO"; then :
16152 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16153 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16154 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16155 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16156 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16161 rm -f conftest.err conftest.i conftest.$ac_ext
16162 if test -z "$tmp_exp"; then
16163 curl_cv_have_def__SGI_COMPILER_VERSION=no
16166 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16167 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16171 if test "$curl_cv_have_def___GNUC__" = "no" &&
16172 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16173 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16175 $as_echo "yes" >&6; }
16176 compiler_id="SGI_MIPSPRO_C"
16177 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16179 flags_dbg_off="-g0"
16180 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16181 flags_opt_yes="-O2"
16182 flags_opt_off="-O0"
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16185 $as_echo "no" >&6; }
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16190 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16192 if test -z "$SED"; then
16193 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16195 if test -z "$GREP"; then
16196 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16205 CURL_DEF_TOKEN __GNUC__
16210 if ac_fn_c_try_cpp "$LINENO"; then :
16212 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16213 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16214 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16215 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16216 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16221 rm -f conftest.err conftest.i conftest.$ac_ext
16222 if test -z "$tmp_exp"; then
16223 curl_cv_have_def___GNUC__=no
16226 curl_cv_have_def___GNUC__=yes
16227 curl_cv_def___GNUC__=$tmp_exp
16232 if test -z "$SED"; then
16233 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16235 if test -z "$GREP"; then
16236 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16245 CURL_DEF_TOKEN __sgi
16250 if ac_fn_c_try_cpp "$LINENO"; then :
16252 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16253 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16254 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16255 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16256 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16261 rm -f conftest.err conftest.i conftest.$ac_ext
16262 if test -z "$tmp_exp"; then
16263 curl_cv_have_def___sgi=no
16266 curl_cv_have_def___sgi=yes
16267 curl_cv_def___sgi=$tmp_exp
16271 if test "$curl_cv_have_def___GNUC__" = "no" &&
16272 test "$curl_cv_have_def___sgi" = "yes" &&
16273 test "$compiler_id" = "unknown"; then
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16275 $as_echo "yes" >&6; }
16276 compiler_id="SGI_MIPS_C"
16277 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16279 flags_dbg_off="-g0"
16280 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16281 flags_opt_yes="-O2"
16282 flags_opt_off="-O0"
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285 $as_echo "no" >&6; }
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16290 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16292 if test -z "$SED"; then
16293 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16295 if test -z "$GREP"; then
16296 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16305 CURL_DEF_TOKEN __SUNPRO_C
16310 if ac_fn_c_try_cpp "$LINENO"; then :
16312 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16313 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16314 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16315 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16316 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16321 rm -f conftest.err conftest.i conftest.$ac_ext
16322 if test -z "$tmp_exp"; then
16323 curl_cv_have_def___SUNPRO_C=no
16326 curl_cv_have_def___SUNPRO_C=yes
16327 curl_cv_def___SUNPRO_C=$tmp_exp
16331 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333 $as_echo "yes" >&6; }
16334 compiler_id="SUNPRO_C"
16335 flags_dbg_all="-g -s"
16338 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16339 flags_opt_yes="-xO2"
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16348 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16350 if test -z "$SED"; then
16351 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16353 if test -z "$GREP"; then
16354 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16363 CURL_DEF_TOKEN __TINYC__
16368 if ac_fn_c_try_cpp "$LINENO"; then :
16370 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16371 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16372 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16373 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16374 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16379 rm -f conftest.err conftest.i conftest.$ac_ext
16380 if test -z "$tmp_exp"; then
16381 curl_cv_have_def___TINYC__=no
16384 curl_cv_have_def___TINYC__=yes
16385 curl_cv_def___TINYC__=$tmp_exp
16389 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391 $as_echo "yes" >&6; }
16392 compiler_id="TINY_C"
16393 flags_dbg_all="-g -b"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 $as_echo "no" >&6; }
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16406 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16408 if test -z "$SED"; then
16409 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16411 if test -z "$GREP"; then
16412 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16421 CURL_DEF_TOKEN __WATCOMC__
16426 if ac_fn_c_try_cpp "$LINENO"; then :
16428 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16429 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16430 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16431 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16432 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16437 rm -f conftest.err conftest.i conftest.$ac_ext
16438 if test -z "$tmp_exp"; then
16439 curl_cv_have_def___WATCOMC__=no
16442 curl_cv_have_def___WATCOMC__=yes
16443 curl_cv_def___WATCOMC__=$tmp_exp
16447 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16449 $as_echo "yes" >&6; }
16451 if test -z "$SED"; then
16452 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16454 if test -z "$GREP"; then
16455 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16464 CURL_DEF_TOKEN __UNIX__
16469 if ac_fn_c_try_cpp "$LINENO"; then :
16471 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16472 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16473 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16474 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16475 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16480 rm -f conftest.err conftest.i conftest.$ac_ext
16481 if test -z "$tmp_exp"; then
16482 curl_cv_have_def___UNIX__=no
16485 curl_cv_have_def___UNIX__=yes
16486 curl_cv_def___UNIX__=$tmp_exp
16490 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16491 compiler_id="WATCOM_UNIX_C"
16492 flags_dbg_all="-g1 -g1+ -g2 -g3"
16493 flags_dbg_yes="-g2"
16495 flags_opt_all="-O0 -O1 -O2 -O3"
16496 flags_opt_yes="-O2"
16497 flags_opt_off="-O0"
16499 compiler_id="WATCOM_WINDOWS_C"
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16513 if test "$compiler_id" = "unknown"; then
16516 *** Warning: This configure script does not have information about the
16517 *** compiler you are using, relative to the flags required to enable or
16518 *** disable generation of debug info, optimization options or warnings.
16520 *** Whatever settings are present in CFLAGS will be used for this run.
16522 *** If you wish to help the c-ares project to better support your compiler
16523 *** you can report this and the required info on the c-ares development
16524 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
16532 eval _sqz_input=\$$1
16533 for _sqz_token in $_sqz_input; do
16534 if test -z "$_sqz_result"; then
16535 _sqz_result="$_sqz_token"
16537 _sqz_result="$_sqz_result $_sqz_token"
16540 eval $1=\$_sqz_result
16546 if test "$compiler_id" != "unknown"; then
16548 if test "$compiler_id" = "GNU_C" ||
16549 test "$compiler_id" = "CLANG"; then
16551 if test "$compiler_id" = "GNU_C" ||
16552 test "$compiler_id" = "CLANG"; then
16553 tmp_has_include="no"
16554 tmp_chg_FLAGS="$CFLAGS"
16555 for word1 in $tmp_chg_FLAGS; do
16558 tmp_has_include="yes"
16562 if test "$tmp_has_include" = "yes"; then
16563 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16564 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16565 CFLAGS="$tmp_chg_FLAGS"
16568 tmp_has_include="no"
16569 tmp_chg_FLAGS="$CPPFLAGS"
16570 for word1 in $tmp_chg_FLAGS; do
16573 tmp_has_include="yes"
16577 if test "$tmp_has_include" = "yes"; then
16578 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16579 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16580 CPPFLAGS="$tmp_chg_FLAGS"
16587 tmp_save_CPPFLAGS="$CPPFLAGS"
16588 tmp_save_CFLAGS="$CFLAGS"
16592 case "$compiler_id" in
16596 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16601 tmp_CFLAGS="$tmp_CFLAGS -std1"
16602 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16603 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16604 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16609 tmp_CFLAGS="$tmp_CFLAGS"
16614 tmp_CFLAGS="$tmp_CFLAGS -z"
16615 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16620 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16621 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16622 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16627 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16628 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
16629 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
16634 tmp_CFLAGS="$tmp_CFLAGS"
16639 tmp_CFLAGS="$tmp_CFLAGS -n"
16644 tmp_CFLAGS="$tmp_CFLAGS"
16649 tmp_CFLAGS="$tmp_CFLAGS"
16654 tmp_CFLAGS="$tmp_CFLAGS"
16659 tmp_CFLAGS="$tmp_CFLAGS"
16664 tmp_CFLAGS="$tmp_CFLAGS"
16669 tmp_CFLAGS="$tmp_CFLAGS"
16674 squeeze tmp_CPPFLAGS
16677 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16679 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16680 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16681 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16685 tmp_compiler_works="unknown"
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16702 if ac_fn_c_try_compile "$LINENO"; then :
16704 tmp_compiler_works="yes"
16708 tmp_compiler_works="no"
16710 sed 's/^/cc-fail: /' conftest.err >&6
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 if test "$tmp_compiler_works" = "yes"; then
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16732 if ac_fn_c_try_link "$LINENO"; then :
16734 tmp_compiler_works="yes"
16738 tmp_compiler_works="no"
16740 sed 's/^/link-fail: /' conftest.err >&6
16744 rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16747 if test "x$cross_compiling" != "xyes" &&
16748 test "$tmp_compiler_works" = "yes"; then
16749 if test "$cross_compiling" = yes; then :
16750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16752 as_fn_error $? "cannot run test program while cross compiling
16753 See \`config.log' for more details" "$LINENO" 5; }
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16760 # include <stdlib.h>
16774 if ac_fn_c_try_run "$LINENO"; then :
16776 tmp_compiler_works="yes"
16780 tmp_compiler_works="no"
16782 echo "run-fail: test program exited with status $ac_status" >&6
16786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16787 conftest.$ac_objext conftest.beam conftest.$ac_ext
16791 if test "$tmp_compiler_works" = "yes"; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16794 $as_echo "yes" >&6; }
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16796 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801 $as_echo "no" >&6; }
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16803 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16804 CPPFLAGS="$tmp_save_CPPFLAGS"
16805 CFLAGS="$tmp_save_CFLAGS"
16815 if test "$compiler_id" != "unknown"; then
16817 tmp_save_CFLAGS="$CFLAGS"
16818 tmp_save_CPPFLAGS="$CPPFLAGS"
16821 tmp_CFLAGS="$CFLAGS"
16822 tmp_CPPFLAGS="$CPPFLAGS"
16825 for word1 in $tmp_CFLAGS; do
16826 ac_var_strip_word="no"
16827 for word2 in $flags_dbg_all; do
16828 if test "$word1" = "$word2"; then
16829 ac_var_strip_word="yes"
16832 if test "$ac_var_strip_word" = "no"; then
16833 ac_var_stripped="$ac_var_stripped $word1"
16836 tmp_CFLAGS="$ac_var_stripped"
16841 for word1 in $tmp_CPPFLAGS; do
16842 ac_var_strip_word="no"
16843 for word2 in $flags_dbg_all; do
16844 if test "$word1" = "$word2"; then
16845 ac_var_strip_word="yes"
16848 if test "$ac_var_strip_word" = "no"; then
16849 ac_var_stripped="$ac_var_stripped $word1"
16852 tmp_CPPFLAGS="$ac_var_stripped"
16853 squeeze tmp_CPPFLAGS
16856 if test "$want_debug" = "yes"; then
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
16858 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
16859 tmp_options="$flags_dbg_yes"
16861 if test "$want_debug" = "no"; then
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
16863 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
16864 tmp_options="$flags_dbg_off"
16867 if test "$flags_prefer_cppflags" = "yes"; then
16868 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
16869 CFLAGS="$tmp_CFLAGS"
16871 CPPFLAGS="$tmp_CPPFLAGS"
16872 CFLAGS="$tmp_CFLAGS $tmp_options"
16877 tmp_compiler_works="unknown"
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16894 if ac_fn_c_try_compile "$LINENO"; then :
16896 tmp_compiler_works="yes"
16900 tmp_compiler_works="no"
16902 sed 's/^/cc-fail: /' conftest.err >&6
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 if test "$tmp_compiler_works" = "yes"; then
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16924 if ac_fn_c_try_link "$LINENO"; then :
16926 tmp_compiler_works="yes"
16930 tmp_compiler_works="no"
16932 sed 's/^/link-fail: /' conftest.err >&6
16936 rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16939 if test "x$cross_compiling" != "xyes" &&
16940 test "$tmp_compiler_works" = "yes"; then
16941 if test "$cross_compiling" = yes; then :
16942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16944 as_fn_error $? "cannot run test program while cross compiling
16945 See \`config.log' for more details" "$LINENO" 5; }
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16952 # include <stdlib.h>
16966 if ac_fn_c_try_run "$LINENO"; then :
16968 tmp_compiler_works="yes"
16972 tmp_compiler_works="no"
16974 echo "run-fail: test program exited with status $ac_status" >&6
16978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16979 conftest.$ac_objext conftest.beam conftest.$ac_ext
16983 if test "$tmp_compiler_works" = "yes"; then
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16986 $as_echo "yes" >&6; }
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
16988 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993 $as_echo "no" >&6; }
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
16995 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
16996 CPPFLAGS="$tmp_save_CPPFLAGS"
16997 CFLAGS="$tmp_save_CFLAGS"
17006 if test "$compiler_id" != "unknown"; then
17008 tmp_save_CFLAGS="$CFLAGS"
17009 tmp_save_CPPFLAGS="$CPPFLAGS"
17012 tmp_CFLAGS="$CFLAGS"
17013 tmp_CPPFLAGS="$CPPFLAGS"
17014 honor_optimize_option="yes"
17017 if test "$want_optimize" = "assume_no" ||
17018 test "$want_optimize" = "assume_yes"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17020 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17023 ac_var_match_word="no"
17024 for word1 in $tmp_CFLAGS; do
17025 for word2 in $flags_opt_all; do
17026 if test "$word1" = "$word2"; then
17027 ac_var_match_word="yes"
17032 if test "$ac_var_match_word" = "yes"; then
17034 honor_optimize_option="no"
17041 ac_var_match_word="no"
17042 for word1 in $tmp_CPPFLAGS; do
17043 for word2 in $flags_opt_all; do
17044 if test "$word1" = "$word2"; then
17045 ac_var_match_word="yes"
17050 if test "$ac_var_match_word" = "yes"; then
17052 honor_optimize_option="no"
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17058 $as_echo "$honor_optimize_option" >&6; }
17059 if test "$honor_optimize_option" = "yes"; then
17060 if test "$want_optimize" = "assume_yes"; then
17061 want_optimize="yes"
17063 if test "$want_optimize" = "assume_no"; then
17069 if test "$honor_optimize_option" = "yes"; then
17072 for word1 in $tmp_CFLAGS; do
17073 ac_var_strip_word="no"
17074 for word2 in $flags_opt_all; do
17075 if test "$word1" = "$word2"; then
17076 ac_var_strip_word="yes"
17079 if test "$ac_var_strip_word" = "no"; then
17080 ac_var_stripped="$ac_var_stripped $word1"
17083 tmp_CFLAGS="$ac_var_stripped"
17088 for word1 in $tmp_CPPFLAGS; do
17089 ac_var_strip_word="no"
17090 for word2 in $flags_opt_all; do
17091 if test "$word1" = "$word2"; then
17092 ac_var_strip_word="yes"
17095 if test "$ac_var_strip_word" = "no"; then
17096 ac_var_stripped="$ac_var_stripped $word1"
17099 tmp_CPPFLAGS="$ac_var_stripped"
17100 squeeze tmp_CPPFLAGS
17102 if test "$want_optimize" = "yes"; then
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17104 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17105 tmp_options="$flags_opt_yes"
17107 if test "$want_optimize" = "no"; then
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17109 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17110 tmp_options="$flags_opt_off"
17112 if test "$flags_prefer_cppflags" = "yes"; then
17113 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17114 CFLAGS="$tmp_CFLAGS"
17116 CPPFLAGS="$tmp_CPPFLAGS"
17117 CFLAGS="$tmp_CFLAGS $tmp_options"
17122 tmp_compiler_works="unknown"
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17139 if ac_fn_c_try_compile "$LINENO"; then :
17141 tmp_compiler_works="yes"
17145 tmp_compiler_works="no"
17147 sed 's/^/cc-fail: /' conftest.err >&6
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 if test "$tmp_compiler_works" = "yes"; then
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17169 if ac_fn_c_try_link "$LINENO"; then :
17171 tmp_compiler_works="yes"
17175 tmp_compiler_works="no"
17177 sed 's/^/link-fail: /' conftest.err >&6
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17184 if test "x$cross_compiling" != "xyes" &&
17185 test "$tmp_compiler_works" = "yes"; then
17186 if test "$cross_compiling" = yes; then :
17187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17189 as_fn_error $? "cannot run test program while cross compiling
17190 See \`config.log' for more details" "$LINENO" 5; }
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17197 # include <stdlib.h>
17211 if ac_fn_c_try_run "$LINENO"; then :
17213 tmp_compiler_works="yes"
17217 tmp_compiler_works="no"
17219 echo "run-fail: test program exited with status $ac_status" >&6
17223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17224 conftest.$ac_objext conftest.beam conftest.$ac_ext
17228 if test "$tmp_compiler_works" = "yes"; then
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17231 $as_echo "yes" >&6; }
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17233 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238 $as_echo "no" >&6; }
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17240 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17241 CPPFLAGS="$tmp_save_CPPFLAGS"
17242 CFLAGS="$tmp_save_CFLAGS"
17252 if test "$compiler_id" != "unknown"; then
17254 tmp_save_CPPFLAGS="$CPPFLAGS"
17255 tmp_save_CFLAGS="$CFLAGS"
17259 case "$compiler_id" in
17263 if test "$want_warnings" = "yes"; then
17264 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17265 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17266 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17267 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17268 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17269 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17270 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17271 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17272 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17273 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17274 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17275 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17276 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17277 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17278 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17279 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17280 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17282 if test "$compiler_num" -ge "101"; then
17283 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17290 if test "$want_warnings" = "yes"; then
17291 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17297 if test "$want_warnings" = "yes"; then
17299 if test "x$cross_compiling" != "xyes" ||
17300 test "$compiler_num" -ge "300"; then
17301 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17304 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17306 if test "$compiler_num" -ge "104"; then
17307 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17308 if test "x$cross_compiling" != "xyes" ||
17309 test "$compiler_num" -ge "300"; then
17310 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17314 if test "$compiler_num" -ge "207"; then
17315 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17316 if test "x$cross_compiling" != "xyes" ||
17317 test "$compiler_num" -ge "300"; then
17318 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17319 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17323 if test "$compiler_num" -ge "295"; then
17324 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17327 if test "$compiler_num" -ge "296"; then
17328 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17329 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17330 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17333 if test "$compiler_num" -ge "297"; then
17334 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17337 if test "$compiler_num" -ge "300"; then
17338 tmp_CFLAGS="$tmp_CFLAGS"
17341 if test "$compiler_num" -ge "303"; then
17342 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17345 if test "$compiler_num" -ge "304"; then
17346 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17349 if test "$compiler_num" -ge "400"; then
17350 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17353 if test "$compiler_num" -ge "402"; then
17354 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17357 if test "$compiler_num" -ge "403"; then
17358 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17359 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17360 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17361 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17364 if test "$compiler_num" -ge "405"; then
17365 if test "$curl_cv_have_def__WIN32" = "yes"; then
17366 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17372 if test "$compiler_num" -ge "300"; then
17373 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17375 if test "x$cross_compiling" = "xyes"; then
17376 if test "$compiler_num" -ge "104"; then
17377 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17379 if test "$compiler_num" -ge "207"; then
17380 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17381 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17389 if test "$want_warnings" = "yes"; then
17390 tmp_CFLAGS="$tmp_CFLAGS +w1"
17396 tmp_CFLAGS="$tmp_CFLAGS"
17401 if test "$want_warnings" = "yes"; then
17402 if test "$compiler_num" -gt "600"; then
17403 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17404 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17405 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17406 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17407 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17408 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17409 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17410 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17411 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17412 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17413 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17416 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17417 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17418 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17419 if test "$compiler_num" -ge "1000"; then
17420 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17426 tmp_CFLAGS="$tmp_CFLAGS"
17431 if test "$want_warnings" = "yes"; then
17432 tmp_CFLAGS="$tmp_CFLAGS"
17438 if test "$want_warnings" = "yes"; then
17439 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17445 if test "$want_warnings" = "yes"; then
17446 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17447 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17453 if test "$want_warnings" = "yes"; then
17454 tmp_CFLAGS="$tmp_CFLAGS -v"
17460 if test "$want_warnings" = "yes"; then
17461 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17462 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17463 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17469 if test "$want_warnings" = "yes"; then
17470 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17476 tmp_CFLAGS="$tmp_CFLAGS"
17481 squeeze tmp_CPPFLAGS
17484 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17486 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17487 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17488 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17492 tmp_compiler_works="unknown"
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17509 if ac_fn_c_try_compile "$LINENO"; then :
17511 tmp_compiler_works="yes"
17515 tmp_compiler_works="no"
17517 sed 's/^/cc-fail: /' conftest.err >&6
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522 if test "$tmp_compiler_works" = "yes"; then
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17539 if ac_fn_c_try_link "$LINENO"; then :
17541 tmp_compiler_works="yes"
17545 tmp_compiler_works="no"
17547 sed 's/^/link-fail: /' conftest.err >&6
17551 rm -f core conftest.err conftest.$ac_objext \
17552 conftest$ac_exeext conftest.$ac_ext
17554 if test "x$cross_compiling" != "xyes" &&
17555 test "$tmp_compiler_works" = "yes"; then
17556 if test "$cross_compiling" = yes; then :
17557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17559 as_fn_error $? "cannot run test program while cross compiling
17560 See \`config.log' for more details" "$LINENO" 5; }
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17567 # include <stdlib.h>
17581 if ac_fn_c_try_run "$LINENO"; then :
17583 tmp_compiler_works="yes"
17587 tmp_compiler_works="no"
17589 echo "run-fail: test program exited with status $ac_status" >&6
17593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17594 conftest.$ac_objext conftest.beam conftest.$ac_ext
17598 if test "$tmp_compiler_works" = "yes"; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601 $as_echo "yes" >&6; }
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17603 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17608 $as_echo "no" >&6; }
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17610 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17611 CPPFLAGS="$tmp_save_CPPFLAGS"
17612 CFLAGS="$tmp_save_CFLAGS"
17621 if test "$compiler_id" = "INTEL_UNIX_C"; then
17623 if test "$compiler_num" -ge "1000"; then
17624 CFLAGS="$CFLAGS -shared-intel"
17625 elif test "$compiler_num" -ge "900"; then
17626 CFLAGS="$CFLAGS -i-dynamic"
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17633 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17642 force compilation error
17649 if ac_fn_c_try_compile "$LINENO"; then :
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17652 $as_echo "no" >&6; }
17653 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17658 $as_echo "yes" >&6; }
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17665 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17670 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17682 if ac_fn_c_try_compile "$LINENO"; then :
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17685 $as_echo "no" >&6; }
17686 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17691 $as_echo "yes" >&6; }
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17698 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17703 # include <stdlib.h>
17717 int j = rand(i[0]);
17726 if ac_fn_c_try_compile "$LINENO"; then :
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729 $as_echo "no" >&6; }
17730 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17735 $as_echo "yes" >&6; }
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17742 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17743 supports_symbol_hiding="no"
17744 symbol_hiding_CFLAGS=""
17745 symbol_hiding_EXTERN=""
17748 case "$compiler_id" in
17750 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17751 tmp_CFLAGS="-fvisibility=hidden"
17752 supports_symbol_hiding="yes"
17755 if test "$compiler_num" -ge "304"; then
17756 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17757 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17758 tmp_CFLAGS="-fvisibility=hidden"
17759 supports_symbol_hiding="yes"
17764 if test "$compiler_num" -ge "900"; then
17765 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17766 tmp_save_CFLAGS="$CFLAGS"
17767 CFLAGS="$CFLAGS -fvisibility=hidden"
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17772 # include <stdio.h>
17777 printf("icc fvisibility bug test");
17784 if ac_fn_c_try_link "$LINENO"; then :
17786 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17787 tmp_CFLAGS="-fvisibility=hidden"
17788 supports_symbol_hiding="yes"
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 CFLAGS="$tmp_save_CFLAGS"
17798 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17799 tmp_EXTERN="__global"
17800 tmp_CFLAGS="-xldscope=hidden"
17801 supports_symbol_hiding="yes"
17805 if test "$supports_symbol_hiding" = "yes"; then
17806 tmp_save_CFLAGS="$CFLAGS"
17807 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17813 $tmp_EXTERN char *dummy(char *buff);
17814 char *dummy(char *buff)
17826 char *r = dummy(&b[0]);
17835 if ac_fn_c_try_compile "$LINENO"; then :
17837 supports_symbol_hiding="yes"
17838 if test -f conftest.err; then
17839 grep 'visibility' conftest.err >/dev/null
17840 if test "$?" -eq "0"; then
17841 supports_symbol_hiding="no"
17847 supports_symbol_hiding="no"
17849 sed 's/^/cc-src: /' conftest.$ac_ext >&6
17850 sed 's/^/cc-err: /' conftest.err >&6
17854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855 CFLAGS="$tmp_save_CFLAGS"
17857 if test "$supports_symbol_hiding" = "yes"; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17859 $as_echo "yes" >&6; }
17860 symbol_hiding_CFLAGS="$tmp_CFLAGS"
17861 symbol_hiding_EXTERN="$tmp_EXTERN"
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17864 $as_echo "no" >&6; }
17869 cares_builddir=`pwd`
17870 supports_curldebug="unknown"
17871 if test "$want_curldebug" = "yes"; then
17872 if test "x$enable_shared" != "xno" &&
17873 test "x$enable_shared" != "xyes"; then
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
17875 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
17876 supports_curldebug="no"
17878 if test "x$enable_static" != "xno" &&
17879 test "x$enable_static" != "xyes"; then
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
17881 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
17882 supports_curldebug="no"
17884 if test "$supports_curldebug" != "no"; then
17885 if test "$enable_shared" = "yes" &&
17886 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17887 supports_curldebug="no"
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
17889 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
17891 if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
17893 $as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
17894 supports_curldebug="no"
17895 elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
17897 $as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
17898 supports_curldebug="no"
17899 elif test ! -f "$cares_builddir/../libcurl.pc" ||
17900 test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
17902 $as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
17903 supports_curldebug="no"
17904 elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
17906 $as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
17907 supports_curldebug="no"
17908 elif test ! -f "$cares_builddir/../config.status"; then
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
17910 $as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
17911 supports_curldebug="no"
17913 if test "$supports_curldebug" != "no"; then
17914 grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
17915 if test "$?" -ne "0"; then
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
17917 $as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
17918 supports_curldebug="no"
17921 if test "$supports_curldebug" != "no"; then
17922 grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
17923 if test "$?" -ne "0"; then
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
17925 $as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
17926 supports_curldebug="no"
17932 if test "$want_curldebug" = "yes"; then
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
17934 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
17935 test "$supports_curldebug" = "no" || supports_curldebug="yes"
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
17937 $as_echo "$supports_curldebug" >&6; }
17938 if test "$supports_curldebug" = "no"; then
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
17940 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
17941 want_curldebug="no"
17945 if test "$want_curldebug" = "yes"; then
17947 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
17949 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
17953 if test "$want_debug" = "yes"; then
17954 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
17958 if test x$want_curldebug = xyes; then
17960 CURLDEBUG_FALSE='#'
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
17971 $as_echo_n "checking for windows.h... " >&6; }
17972 if ${ac_cv_header_windows_h+:} false; then :
17973 $as_echo_n "(cached) " >&6
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17981 #ifndef WIN32_LEAN_AND_MEAN
17982 #define WIN32_LEAN_AND_MEAN
17984 #include <windows.h>
17989 #if defined(__CYGWIN__) || defined(__CEGCC__)
17990 HAVE_WINDOWS_H shall not be defined.
17992 int dummy=2*WINVER;
18000 if ac_fn_c_try_compile "$LINENO"; then :
18002 ac_cv_header_windows_h="yes"
18006 ac_cv_header_windows_h="no"
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18013 $as_echo "$ac_cv_header_windows_h" >&6; }
18014 case "$ac_cv_header_windows_h" in
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_WINDOWS_H 1
18022 cat >>confdefs.h <<_ACEOF
18023 #define WIN32_LEAN_AND_MEAN 1
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18031 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18032 if ${ac_cv_native_windows+:} false; then :
18033 $as_echo_n "(cached) " >&6
18036 if test "$ac_cv_header_windows_h" = "no"; then
18037 ac_cv_native_windows="no"
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18047 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18048 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18051 Not a native Windows build target.
18059 if ac_fn_c_try_compile "$LINENO"; then :
18061 ac_cv_native_windows="yes"
18065 ac_cv_native_windows="no"
18068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18073 $as_echo "$ac_cv_native_windows" >&6; }
18074 if test "x$ac_cv_native_windows" = xyes; then
18075 DOING_NATIVE_WINDOWS_TRUE=
18076 DOING_NATIVE_WINDOWS_FALSE='#'
18078 DOING_NATIVE_WINDOWS_TRUE='#'
18079 DOING_NATIVE_WINDOWS_FALSE=
18083 case X-"$ac_cv_native_windows" in
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18087 $as_echo_n "checking for winsock.h... " >&6; }
18088 if ${ac_cv_header_winsock_h+:} false; then :
18089 $as_echo_n "(cached) " >&6
18092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h. */
18097 #ifndef WIN32_LEAN_AND_MEAN
18098 #define WIN32_LEAN_AND_MEAN
18100 #include <windows.h>
18101 #include <winsock.h>
18106 #if defined(__CYGWIN__) || defined(__CEGCC__)
18107 HAVE_WINSOCK_H shall not be defined.
18109 int dummy=WSACleanup();
18117 if ac_fn_c_try_compile "$LINENO"; then :
18119 ac_cv_header_winsock_h="yes"
18123 ac_cv_header_winsock_h="no"
18126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18130 $as_echo "$ac_cv_header_winsock_h" >&6; }
18131 case "$ac_cv_header_winsock_h" in
18134 cat >>confdefs.h <<_ACEOF
18135 #define HAVE_WINSOCK_H 1
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18143 $as_echo_n "checking for winsock2.h... " >&6; }
18144 if ${ac_cv_header_winsock2_h+:} false; then :
18145 $as_echo_n "(cached) " >&6
18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18153 #ifndef WIN32_LEAN_AND_MEAN
18154 #define WIN32_LEAN_AND_MEAN
18156 #include <windows.h>
18157 #include <winsock2.h>
18162 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18163 HAVE_WINSOCK2_H shall not be defined.
18165 int dummy=2*IPPROTO_ESP;
18173 if ac_fn_c_try_compile "$LINENO"; then :
18175 ac_cv_header_winsock2_h="yes"
18179 ac_cv_header_winsock2_h="no"
18182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18186 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18187 case "$ac_cv_header_winsock2_h" in
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_WINSOCK2_H 1
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18199 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18200 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18201 $as_echo_n "(cached) " >&6
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18209 #ifndef WIN32_LEAN_AND_MEAN
18210 #define WIN32_LEAN_AND_MEAN
18212 #include <windows.h>
18213 #include <winsock2.h>
18214 #include <ws2tcpip.h>
18219 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18220 HAVE_WS2TCPIP_H shall not be defined.
18222 int dummy=2*IP_PKTINFO;
18230 if ac_fn_c_try_compile "$LINENO"; then :
18232 ac_cv_header_ws2tcpip_h="yes"
18236 ac_cv_header_ws2tcpip_h="no"
18239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18243 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18244 case "$ac_cv_header_ws2tcpip_h" in
18247 cat >>confdefs.h <<_ACEOF
18248 #define HAVE_WS2TCPIP_H 1
18256 ac_cv_header_winsock_h="no"
18257 ac_cv_header_winsock2_h="no"
18258 ac_cv_header_ws2tcpip_h="no"
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
18265 $as_echo_n "checking if X/Open network library is required... " >&6; }
18266 tst_lib_xnet_required="no"
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h. */
18273 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
18275 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
18278 force compilation error
18284 if ac_fn_c_try_compile "$LINENO"; then :
18286 tst_lib_xnet_required="yes"
18287 LIBS="$LIBS -lxnet"
18290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
18292 $as_echo "$tst_lib_xnet_required" >&6; }
18295 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18296 if test "x$ac_cv_func_gethostbyname" = xyes; then :
18297 HAVE_GETHOSTBYNAME="1"
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18301 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18302 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18303 $as_echo_n "(cached) " >&6
18305 ac_check_lib_save_LIBS=$LIBS
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18314 char gethostbyname ();
18317 return gethostbyname ();
18322 if ac_fn_c_try_link "$LINENO"; then :
18323 ac_cv_lib_nsl_gethostbyname=yes
18325 ac_cv_lib_nsl_gethostbyname=no
18327 rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18329 LIBS=$ac_check_lib_save_LIBS
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18332 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18333 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18334 HAVE_GETHOSTBYNAME="1"
18343 if test "$HAVE_GETHOSTBYNAME" != "1"
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
18346 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
18347 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
18348 $as_echo_n "(cached) " >&6
18350 ac_check_lib_save_LIBS=$LIBS
18351 LIBS="-lsocket $LIBS"
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18359 char gethostbyname ();
18362 return gethostbyname ();
18367 if ac_fn_c_try_link "$LINENO"; then :
18368 ac_cv_lib_socket_gethostbyname=yes
18370 ac_cv_lib_socket_gethostbyname=no
18372 rm -f core conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
18374 LIBS=$ac_check_lib_save_LIBS
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
18377 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
18378 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
18379 HAVE_GETHOSTBYNAME="1"
18380 LIBS="$LIBS -lsocket"
18386 if test "$HAVE_GETHOSTBYNAME" != "1"
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
18389 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
18390 my_ac_save_LIBS=$LIBS
18391 LIBS="-lnsl -lsocket $LIBS"
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18407 if ac_fn_c_try_link "$LINENO"; then :
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18410 $as_echo "yes" >&6; }
18411 HAVE_GETHOSTBYNAME="1"
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18417 LIBS=$my_ac_save_LIBS
18420 rm -f core conftest.err conftest.$ac_objext \
18421 conftest$ac_exeext conftest.$ac_ext
18424 if test "$HAVE_GETHOSTBYNAME" != "1"
18426 if test "$ac_cv_header_windows_h" = "yes"; then
18427 if test "$ac_cv_header_winsock_h" = "yes"; then
18430 winsock_LIB="-lwinsock"
18433 winsock_LIB="-lwsock32"
18437 if test "$ac_cv_header_winsock2_h" = "yes"; then
18438 winsock_LIB="-lws2_32"
18440 if test ! -z "$winsock_LIB"; then
18441 my_ac_save_LIBS=$LIBS
18442 LIBS="$winsock_LIB $LIBS"
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
18444 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18449 #ifdef HAVE_WINDOWS_H
18450 #ifndef WIN32_LEAN_AND_MEAN
18451 #define WIN32_LEAN_AND_MEAN
18453 #include <windows.h>
18454 #ifdef HAVE_WINSOCK2_H
18455 #include <winsock2.h>
18457 #ifdef HAVE_WINSOCK_H
18458 #include <winsock.h>
18466 gethostbyname("www.dummysite.com");
18473 if ac_fn_c_try_link "$LINENO"; then :
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18476 $as_echo "yes" >&6; }
18477 HAVE_GETHOSTBYNAME="1"
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18482 $as_echo "no" >&6; }
18484 LIBS=$my_ac_save_LIBS
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18493 if test "$HAVE_GETHOSTBYNAME" != "1"
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
18496 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18501 /* Older Minix versions may need <net/gen/netdb.h> here instead */
18507 gethostbyname("www.dummysite.com");
18514 if ac_fn_c_try_link "$LINENO"; then :
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18517 $as_echo "yes" >&6; }
18518 HAVE_GETHOSTBYNAME="1"
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523 $as_echo "no" >&6; }
18526 rm -f core conftest.err conftest.$ac_objext \
18527 conftest$ac_exeext conftest.$ac_ext
18530 if test "$HAVE_GETHOSTBYNAME" != "1"
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
18533 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18544 gethostbyname("www.dummysite.com");
18551 if ac_fn_c_try_link "$LINENO"; then :
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 $as_echo "yes" >&6; }
18555 HAVE_GETHOSTBYNAME="1"
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560 $as_echo "no" >&6; }
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18567 if test "$HAVE_GETHOSTBYNAME" != "1"
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
18570 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
18571 if ${ac_cv_lib_net_gethostbyname+:} false; then :
18572 $as_echo_n "(cached) " >&6
18574 ac_check_lib_save_LIBS=$LIBS
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18583 char gethostbyname ();
18586 return gethostbyname ();
18591 if ac_fn_c_try_link "$LINENO"; then :
18592 ac_cv_lib_net_gethostbyname=yes
18594 ac_cv_lib_net_gethostbyname=no
18596 rm -f core conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18598 LIBS=$ac_check_lib_save_LIBS
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
18601 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
18602 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
18603 HAVE_GETHOSTBYNAME="1"
18611 if test "$HAVE_GETHOSTBYNAME" != "1"; then
18612 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
18615 if test "x$host_vendor" = "xapple"; then :
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iPhone target" >&5
18618 $as_echo_n "checking for iPhone target... " >&6; }
18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h. */
18623 #include "TargetConditionals.h"
18628 #if TARGET_OS_IPHONE == 0
18629 #error Not an iPhone target
18638 if ac_fn_c_try_compile "$LINENO"; then :
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18641 $as_echo "yes" >&6; }
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
18643 $as_echo_n "checking for library containing res_servicename... " >&6; }
18644 if ${ac_cv_search_res_servicename+:} false; then :
18645 $as_echo_n "(cached) " >&6
18647 ac_func_search_save_LIBS=$LIBS
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18655 char res_servicename ();
18658 return res_servicename ();
18663 for ac_lib in '' resolv; do
18664 if test -z "$ac_lib"; then
18665 ac_res="none required"
18668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18670 if ac_fn_c_try_link "$LINENO"; then :
18671 ac_cv_search_res_servicename=$ac_res
18673 rm -f core conftest.err conftest.$ac_objext \
18675 if ${ac_cv_search_res_servicename+:} false; then :
18679 if ${ac_cv_search_res_servicename+:} false; then :
18682 ac_cv_search_res_servicename=no
18684 rm conftest.$ac_ext
18685 LIBS=$ac_func_search_save_LIBS
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
18688 $as_echo "$ac_cv_search_res_servicename" >&6; }
18689 ac_res=$ac_cv_search_res_servicename
18690 if test "$ac_res" != no; then :
18691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18694 $as_echo "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
18699 as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18714 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18715 if test "x$ac_cv_func_strcasecmp" = xyes; then :
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
18719 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
18720 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
18721 $as_echo_n "(cached) " >&6
18723 ac_check_lib_save_LIBS=$LIBS
18724 LIBS="-lresolve $LIBS"
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h. */
18732 char strcasecmp ();
18735 return strcasecmp ();
18740 if ac_fn_c_try_link "$LINENO"; then :
18741 ac_cv_lib_resolve_strcasecmp=yes
18743 ac_cv_lib_resolve_strcasecmp=no
18745 rm -f core conftest.err conftest.$ac_objext \
18746 conftest$ac_exeext conftest.$ac_ext
18747 LIBS=$ac_check_lib_save_LIBS
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
18750 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
18751 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
18752 cat >>confdefs.h <<_ACEOF
18753 #define HAVE_LIBRESOLVE 1
18756 LIBS="-lresolve $LIBS"
18763 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
18765 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
18766 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
18767 $as_echo_n "(cached) " >&6
18769 ac_check_lib_save_LIBS=$LIBS
18770 LIBS="-lresolve -lnsl $LIBS"
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18778 char strcasecmp ();
18781 return strcasecmp ();
18786 if ac_fn_c_try_link "$LINENO"; then :
18787 ac_cv_lib_resolve_strcasecmp=yes
18789 ac_cv_lib_resolve_strcasecmp=no
18791 rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
18796 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
18797 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
18798 LIBS="-lresolve $LIBS"
18802 ac_cv_func_strcasecmp="no"
18805 cares_includes_winsock2="\
18806 /* includes start */
18807 #ifdef HAVE_WINDOWS_H
18808 # ifndef WIN32_LEAN_AND_MEAN
18809 # define WIN32_LEAN_AND_MEAN
18811 # include <windows.h>
18812 # ifdef HAVE_WINSOCK2_H
18813 # include <winsock2.h>
18815 # ifdef HAVE_WINSOCK_H
18816 # include <winsock.h>
18820 /* includes end */"
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18823 $as_echo_n "checking for windows.h... " >&6; }
18824 if ${ac_cv_header_windows_h+:} false; then :
18825 $as_echo_n "(cached) " >&6
18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18833 #ifndef WIN32_LEAN_AND_MEAN
18834 #define WIN32_LEAN_AND_MEAN
18836 #include <windows.h>
18841 #if defined(__CYGWIN__) || defined(__CEGCC__)
18842 HAVE_WINDOWS_H shall not be defined.
18844 int dummy=2*WINVER;
18852 if ac_fn_c_try_compile "$LINENO"; then :
18854 ac_cv_header_windows_h="yes"
18858 ac_cv_header_windows_h="no"
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18865 $as_echo "$ac_cv_header_windows_h" >&6; }
18866 case "$ac_cv_header_windows_h" in
18869 cat >>confdefs.h <<_ACEOF
18870 #define HAVE_WINDOWS_H 1
18874 cat >>confdefs.h <<_ACEOF
18875 #define WIN32_LEAN_AND_MEAN 1
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18883 $as_echo_n "checking for winsock.h... " >&6; }
18884 if ${ac_cv_header_winsock_h+:} false; then :
18885 $as_echo_n "(cached) " >&6
18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889 /* end confdefs.h. */
18893 #ifndef WIN32_LEAN_AND_MEAN
18894 #define WIN32_LEAN_AND_MEAN
18896 #include <windows.h>
18897 #include <winsock.h>
18902 #if defined(__CYGWIN__) || defined(__CEGCC__)
18903 HAVE_WINSOCK_H shall not be defined.
18905 int dummy=WSACleanup();
18913 if ac_fn_c_try_compile "$LINENO"; then :
18915 ac_cv_header_winsock_h="yes"
18919 ac_cv_header_winsock_h="no"
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18926 $as_echo "$ac_cv_header_winsock_h" >&6; }
18927 case "$ac_cv_header_winsock_h" in
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_WINSOCK_H 1
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18939 $as_echo_n "checking for winsock2.h... " >&6; }
18940 if ${ac_cv_header_winsock2_h+:} false; then :
18941 $as_echo_n "(cached) " >&6
18944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18945 /* end confdefs.h. */
18949 #ifndef WIN32_LEAN_AND_MEAN
18950 #define WIN32_LEAN_AND_MEAN
18952 #include <windows.h>
18953 #include <winsock2.h>
18958 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18959 HAVE_WINSOCK2_H shall not be defined.
18961 int dummy=2*IPPROTO_ESP;
18969 if ac_fn_c_try_compile "$LINENO"; then :
18971 ac_cv_header_winsock2_h="yes"
18975 ac_cv_header_winsock2_h="no"
18978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18982 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18983 case "$ac_cv_header_winsock2_h" in
18986 cat >>confdefs.h <<_ACEOF
18987 #define HAVE_WINSOCK2_H 1
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
18996 $as_echo_n "checking for connect in libraries... " >&6; }
18997 tst_connect_save_LIBS="$LIBS"
18998 tst_connect_need_LIBS="unknown"
18999 for tst_lib in '' '-lsocket' ; do
19000 if test "$tst_connect_need_LIBS" = "unknown"; then
19001 LIBS="$tst_lib $tst_connect_save_LIBS"
19002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19006 $cares_includes_winsock2
19007 #ifndef HAVE_WINDOWS_H
19008 int connect(int, void*, int);
19014 if(0 != connect(0, 0, 0))
19022 if ac_fn_c_try_link "$LINENO"; then :
19024 tst_connect_need_LIBS="$tst_lib"
19027 rm -f core conftest.err conftest.$ac_objext \
19028 conftest$ac_exeext conftest.$ac_ext
19031 LIBS="$tst_connect_save_LIBS"
19033 case X-"$tst_connect_need_LIBS" in
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19036 $as_echo "cannot find connect" >&6; }
19037 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19041 $as_echo "yes" >&6; }
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19045 $as_echo "$tst_connect_need_LIBS" >&6; }
19046 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19052 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19053 if ${ac_cv_header_time+:} false; then :
19054 $as_echo_n "(cached) " >&6
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19058 #include <sys/types.h>
19059 #include <sys/time.h>
19064 if ((struct tm *) 0)
19070 if ac_fn_c_try_compile "$LINENO"; then :
19071 ac_cv_header_time=yes
19073 ac_cv_header_time=no
19075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19078 $as_echo "$ac_cv_header_time" >&6; }
19079 if test $ac_cv_header_time = yes; then
19081 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19086 for ac_header in sys/types.h sys/time.h time.h
19088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19091 cat >>confdefs.h <<_ACEOF
19092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19100 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h. */
19105 #ifdef HAVE_SYS_TYPES_H
19106 #include <sys/types.h>
19108 #ifdef HAVE_SYS_TIME_H
19109 #include <sys/time.h>
19110 #ifdef TIME_WITH_SYS_TIME
19122 struct timespec ts;
19123 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19130 if ac_fn_c_try_compile "$LINENO"; then :
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19133 $as_echo "yes" >&6; }
19134 ac_cv_func_clock_gettime="yes"
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 $as_echo "no" >&6; }
19140 ac_cv_func_clock_gettime="no"
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19147 if test "$ac_cv_func_clock_gettime" = "yes"; then
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
19150 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
19152 curl_cv_save_LIBS="$LIBS"
19153 curl_cv_gclk_LIBS="unknown"
19155 for x_xlibs in '' '-lrt' '-lposix4' ; do
19156 if test "$curl_cv_gclk_LIBS" = "unknown"; then
19157 if test -z "$x_xlibs"; then
19158 LIBS="$curl_cv_save_LIBS"
19160 LIBS="$x_xlibs $curl_cv_save_LIBS"
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19166 #ifdef HAVE_SYS_TYPES_H
19167 #include <sys/types.h>
19169 #ifdef HAVE_SYS_TIME_H
19170 #include <sys/time.h>
19171 #ifdef TIME_WITH_SYS_TIME
19183 struct timespec ts;
19184 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19191 if ac_fn_c_try_link "$LINENO"; then :
19193 curl_cv_gclk_LIBS="$x_xlibs"
19196 rm -f core conftest.err conftest.$ac_objext \
19197 conftest$ac_exeext conftest.$ac_ext
19201 LIBS="$curl_cv_save_LIBS"
19203 case X-"$curl_cv_gclk_LIBS" in
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
19206 $as_echo "cannot find clock_gettime" >&6; }
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
19208 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
19209 ac_cv_func_clock_gettime="no"
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
19213 $as_echo "no additional lib required" >&6; }
19214 ac_cv_func_clock_gettime="yes"
19217 if test -z "$curl_cv_save_LIBS"; then
19218 LIBS="$curl_cv_gclk_LIBS"
19220 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
19223 $as_echo "$curl_cv_gclk_LIBS" >&6; }
19224 ac_cv_func_clock_gettime="yes"
19228 if test "x$cross_compiling" != "xyes" &&
19229 test "$ac_cv_func_clock_gettime" = "yes"; then
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
19231 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
19232 if test "$cross_compiling" = yes; then :
19233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19235 as_fn_error $? "cannot run test program while cross compiling
19236 See \`config.log' for more details" "$LINENO" 5; }
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19242 #ifdef HAVE_STDLIB_H
19243 #include <stdlib.h>
19245 #ifdef HAVE_SYS_TYPES_H
19246 #include <sys/types.h>
19248 #ifdef HAVE_SYS_TIME_H
19249 #include <sys/time.h>
19250 #ifdef TIME_WITH_SYS_TIME
19262 struct timespec ts;
19263 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
19273 if ac_fn_c_try_run "$LINENO"; then :
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19276 $as_echo "yes" >&6; }
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
19283 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
19284 ac_cv_func_clock_gettime="no"
19285 LIBS="$curl_cv_save_LIBS"
19288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19289 conftest.$ac_objext conftest.beam conftest.$ac_ext
19294 case "$ac_cv_func_clock_gettime" in
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19309 $as_echo_n "checking whether to use libgcc... " >&6; }
19310 # Check whether --enable-libgcc was given.
19311 if test "${enable_libgcc+set}" = set; then :
19312 enableval=$enable_libgcc; case "$enableval" in
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19316 $as_echo "yes" >&6; }
19318 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324 $as_echo "no" >&6; }
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19334 $as_echo_n "checking for ANSI C header files... " >&6; }
19335 if ${ac_cv_header_stdc+:} false; then :
19336 $as_echo_n "(cached) " >&6
19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h. */
19340 #include <stdlib.h>
19341 #include <stdarg.h>
19342 #include <string.h>
19352 if ac_fn_c_try_compile "$LINENO"; then :
19353 ac_cv_header_stdc=yes
19355 ac_cv_header_stdc=no
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359 if test $ac_cv_header_stdc = yes; then
19360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362 /* end confdefs.h. */
19363 #include <string.h>
19366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19367 $EGREP "memchr" >/dev/null 2>&1; then :
19370 ac_cv_header_stdc=no
19376 if test $ac_cv_header_stdc = yes; then
19377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19380 #include <stdlib.h>
19383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19384 $EGREP "free" >/dev/null 2>&1; then :
19387 ac_cv_header_stdc=no
19393 if test $ac_cv_header_stdc = yes; then
19394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19395 if test "$cross_compiling" = yes; then :
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19401 #include <stdlib.h>
19402 #if ((' ' & 0x0FF) == 0x020)
19403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19406 # define ISLOWER(c) \
19407 (('a' <= (c) && (c) <= 'i') \
19408 || ('j' <= (c) && (c) <= 'r') \
19409 || ('s' <= (c) && (c) <= 'z'))
19410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19418 for (i = 0; i < 256; i++)
19419 if (XOR (islower (i), ISLOWER (i))
19420 || toupper (i) != TOUPPER (i))
19425 if ac_fn_c_try_run "$LINENO"; then :
19428 ac_cv_header_stdc=no
19430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19431 conftest.$ac_objext conftest.beam conftest.$ac_ext
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19437 $as_echo "$ac_cv_header_stdc" >&6; }
19438 if test $ac_cv_header_stdc = yes; then
19440 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
19447 $as_echo_n "checking for malloc.h... " >&6; }
19448 if ${ac_cv_header_malloc_h+:} false; then :
19449 $as_echo_n "(cached) " >&6
19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453 /* end confdefs.h. */
19456 #include <malloc.h>
19461 void *p = malloc(10);
19462 void *q = calloc(10,10);
19471 if ac_fn_c_try_compile "$LINENO"; then :
19473 ac_cv_header_malloc_h="yes"
19477 ac_cv_header_malloc_h="no"
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
19484 $as_echo "$ac_cv_header_malloc_h" >&6; }
19485 if test "$ac_cv_header_malloc_h" = "yes"; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_MALLOC_H 1
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19496 #include <stdlib.h>
19501 void *p = malloc(10);
19502 void *q = calloc(10,10);
19511 if ac_fn_c_try_compile "$LINENO"; then :
19513 curl_cv_need_header_malloc_h="no"
19517 curl_cv_need_header_malloc_h="yes"
19520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19522 case "$curl_cv_need_header_malloc_h" in
19525 cat >>confdefs.h <<_ACEOF
19526 #define NEED_MALLOC_H 1
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
19535 $as_echo_n "checking for memory.h... " >&6; }
19536 if ${ac_cv_header_memory_h+:} false; then :
19537 $as_echo_n "(cached) " >&6
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19544 #include <memory.h>
19549 void *p = malloc(10);
19550 void *q = calloc(10,10);
19559 if ac_fn_c_try_compile "$LINENO"; then :
19561 ac_cv_header_memory_h="yes"
19565 ac_cv_header_memory_h="no"
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
19572 $as_echo "$ac_cv_header_memory_h" >&6; }
19573 if test "$ac_cv_header_memory_h" = "yes"; then
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_MEMORY_H 1
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19584 #include <stdlib.h>
19589 void *p = malloc(10);
19590 void *q = calloc(10,10);
19599 if ac_fn_c_try_compile "$LINENO"; then :
19601 curl_cv_need_header_memory_h="no"
19605 curl_cv_need_header_memory_h="yes"
19608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610 case "$curl_cv_need_header_memory_h" in
19613 cat >>confdefs.h <<_ACEOF
19614 #define NEED_MEMORY_H 1
19622 for ac_header in sys/types.h \
19641 arpa/nameser_compat.h \
19644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19646 #ifdef HAVE_SYS_TYPES_H
19647 #include <sys/types.h>
19649 #ifdef HAVE_SYS_TIME_H
19650 #include <sys/time.h>
19652 #ifdef HAVE_ARPA_NAMESER_H
19653 #include <arpa/nameser.h>
19656 #ifdef HAVE_SYS_SOCKET_H
19657 #include <sys/socket.h>
19659 #ifdef HAVE_NETINET_IN_H
19660 #include <netinet/in.h>
19665 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19666 cat >>confdefs.h <<_ACEOF
19667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19676 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19677 if ${ac_cv_c_const+:} false; then :
19678 $as_echo_n "(cached) " >&6
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19686 #ifndef __cplusplus
19687 /* Ultrix mips cc rejects this sort of thing. */
19688 typedef int charset[2];
19689 const charset cs = { 0, 0 };
19690 /* SunOS 4.1.1 cc rejects this. */
19691 char const *const *pcpcc;
19693 /* NEC SVR4.0.2 mips cc rejects this. */
19694 struct point {int x, y;};
19695 static struct point const zero = {0,0};
19696 /* AIX XL C 1.02.0.0 rejects this.
19697 It does not let you subtract one const X* pointer from another in
19698 an arm of an if-expression whose if-part is not a constant
19700 const char *g = "string";
19701 pcpcc = &g + (g ? g-g : 0);
19702 /* HPUX 7.0 cc rejects these. */
19704 ppc = (char**) pcpcc;
19705 pcpcc = (char const *const *) ppc;
19706 { /* SCO 3.2v4 cc rejects this sort of thing. */
19709 char const *s = 0 ? (char *) 0 : (char const *) 0;
19714 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19715 int x[] = {25, 17};
19716 const int *foo = &x[0];
19719 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19720 typedef const int *iptr;
19724 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19725 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19726 struct s { int j; const int *ap[3]; } bx;
19727 struct s *b = &bx; b->j = 5;
19729 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19730 const int foo = 10;
19731 if (!foo) return 0;
19733 return !cs[0] && !zero.x;
19740 if ac_fn_c_try_compile "$LINENO"; then :
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19748 $as_echo "$ac_cv_c_const" >&6; }
19749 if test $ac_cv_c_const = no; then
19751 $as_echo "#define const /**/" >>confdefs.h
19755 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19756 if test "x$ac_cv_type_size_t" = xyes; then :
19760 cat >>confdefs.h <<_ACEOF
19761 #define size_t unsigned int
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19767 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19768 if ${ac_cv_header_time+:} false; then :
19769 $as_echo_n "(cached) " >&6
19771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772 /* end confdefs.h. */
19773 #include <sys/types.h>
19774 #include <sys/time.h>
19779 if ((struct tm *) 0)
19785 if ac_fn_c_try_compile "$LINENO"; then :
19786 ac_cv_header_time=yes
19788 ac_cv_header_time=no
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19793 $as_echo "$ac_cv_header_time" >&6; }
19794 if test $ac_cv_header_time = yes; then
19796 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19801 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
19803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19806 cat >>confdefs.h <<_ACEOF
19807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19815 $as_echo_n "checking for struct timeval... " >&6; }
19816 if ${ac_cv_struct_timeval+:} false; then :
19817 $as_echo_n "(cached) " >&6
19820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h. */
19825 #ifdef HAVE_WINDOWS_H
19826 #ifndef WIN32_LEAN_AND_MEAN
19827 #define WIN32_LEAN_AND_MEAN
19829 #include <windows.h>
19830 #ifdef HAVE_WINSOCK2_H
19831 #include <winsock2.h>
19833 #ifdef HAVE_WINSOCK_H
19834 #include <winsock.h>
19838 #ifdef HAVE_SYS_TYPES_H
19839 #include <sys/types.h>
19841 #ifdef HAVE_SYS_TIME_H
19842 #include <sys/time.h>
19843 #ifdef TIME_WITH_SYS_TIME
19851 #ifdef HAVE_SYS_SOCKET_H
19852 #include <sys/socket.h>
19867 if ac_fn_c_try_compile "$LINENO"; then :
19869 ac_cv_struct_timeval="yes"
19873 ac_cv_struct_timeval="no"
19876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
19880 $as_echo "$ac_cv_struct_timeval" >&6; }
19881 case "$ac_cv_struct_timeval" in
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_STRUCT_TIMEVAL 1
19892 # The cast to long int works around a bug in the HP C Compiler
19893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19895 # This bug is HP SR number 8606223364.
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
19897 $as_echo_n "checking size of size_t... " >&6; }
19898 if ${ac_cv_sizeof_size_t+:} false; then :
19899 $as_echo_n "(cached) " >&6
19901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
19904 if test "$ac_cv_type_size_t" = yes; then
19905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19907 as_fn_error 77 "cannot compute sizeof (size_t)
19908 See \`config.log' for more details" "$LINENO" 5; }
19910 ac_cv_sizeof_size_t=0
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
19916 $as_echo "$ac_cv_sizeof_size_t" >&6; }
19920 cat >>confdefs.h <<_ACEOF
19921 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19925 # The cast to long int works around a bug in the HP C Compiler
19926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19928 # This bug is HP SR number 8606223364.
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19930 $as_echo_n "checking size of long... " >&6; }
19931 if ${ac_cv_sizeof_long+:} false; then :
19932 $as_echo_n "(cached) " >&6
19934 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
19937 if test "$ac_cv_type_long" = yes; then
19938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19940 as_fn_error 77 "cannot compute sizeof (long)
19941 See \`config.log' for more details" "$LINENO" 5; }
19943 ac_cv_sizeof_long=0
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19949 $as_echo "$ac_cv_sizeof_long" >&6; }
19953 cat >>confdefs.h <<_ACEOF
19954 #define SIZEOF_LONG $ac_cv_sizeof_long
19958 # The cast to long int works around a bug in the HP C Compiler
19959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19961 # This bug is HP SR number 8606223364.
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19963 $as_echo_n "checking size of int... " >&6; }
19964 if ${ac_cv_sizeof_int+:} false; then :
19965 $as_echo_n "(cached) " >&6
19967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
19970 if test "$ac_cv_type_int" = yes; then
19971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19973 as_fn_error 77 "cannot compute sizeof (int)
19974 See \`config.log' for more details" "$LINENO" 5; }
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19982 $as_echo "$ac_cv_sizeof_int" >&6; }
19986 cat >>confdefs.h <<_ACEOF
19987 #define SIZEOF_INT $ac_cv_sizeof_int
19991 # The cast to long int works around a bug in the HP C Compiler
19992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19994 # This bug is HP SR number 8606223364.
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19996 $as_echo_n "checking size of short... " >&6; }
19997 if ${ac_cv_sizeof_short+:} false; then :
19998 $as_echo_n "(cached) " >&6
20000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
20003 if test "$ac_cv_type_short" = yes; then
20004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20006 as_fn_error 77 "cannot compute sizeof (short)
20007 See \`config.log' for more details" "$LINENO" 5; }
20009 ac_cv_sizeof_short=0
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20015 $as_echo "$ac_cv_sizeof_short" >&6; }
20019 cat >>confdefs.h <<_ACEOF
20020 #define SIZEOF_SHORT $ac_cv_sizeof_short
20024 # The cast to long int works around a bug in the HP C Compiler
20025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20027 # This bug is HP SR number 8606223364.
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
20029 $as_echo_n "checking size of time_t... " >&6; }
20030 if ${ac_cv_sizeof_time_t+:} false; then :
20031 $as_echo_n "(cached) " >&6
20033 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
20036 if test "$ac_cv_type_time_t" = yes; then
20037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20039 as_fn_error 77 "cannot compute sizeof (time_t)
20040 See \`config.log' for more details" "$LINENO" 5; }
20042 ac_cv_sizeof_time_t=0
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
20048 $as_echo "$ac_cv_sizeof_time_t" >&6; }
20052 cat >>confdefs.h <<_ACEOF
20053 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
20058 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
20059 if test "x$ac_cv_type_long_long" = xyes; then :
20061 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
20068 if test "xyes" = "x$longlong"; then
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
20070 $as_echo_n "checking if numberLL works... " >&6; }
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20079 long long val = 1000LL;
20086 if ac_fn_c_try_compile "$LINENO"; then :
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20089 $as_echo "yes" >&6; }
20091 $as_echo "#define HAVE_LL 1" >>confdefs.h
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20097 $as_echo "no" >&6; }
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20104 # check for ssize_t
20105 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20106 if test "x$ac_cv_type_ssize_t" = xyes; then :
20110 $as_echo "#define ssize_t int" >>confdefs.h
20115 # check for bool type
20116 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
20117 #ifdef HAVE_SYS_TYPES_H
20118 #include <sys/types.h>
20120 #ifdef HAVE_STDBOOL_H
20121 #include <stdbool.h>
20125 if test "x$ac_cv_type_bool" = xyes; then :
20128 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
20135 cares_includes_ws2tcpip="\
20136 /* includes start */
20137 #ifdef HAVE_WINDOWS_H
20138 # ifndef WIN32_LEAN_AND_MEAN
20139 # define WIN32_LEAN_AND_MEAN
20141 # include <windows.h>
20142 # ifdef HAVE_WINSOCK2_H
20143 # include <winsock2.h>
20144 # ifdef HAVE_WS2TCPIP_H
20145 # include <ws2tcpip.h>
20149 /* includes end */"
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20152 $as_echo_n "checking for windows.h... " >&6; }
20153 if ${ac_cv_header_windows_h+:} false; then :
20154 $as_echo_n "(cached) " >&6
20157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h. */
20162 #ifndef WIN32_LEAN_AND_MEAN
20163 #define WIN32_LEAN_AND_MEAN
20165 #include <windows.h>
20170 #if defined(__CYGWIN__) || defined(__CEGCC__)
20171 HAVE_WINDOWS_H shall not be defined.
20173 int dummy=2*WINVER;
20181 if ac_fn_c_try_compile "$LINENO"; then :
20183 ac_cv_header_windows_h="yes"
20187 ac_cv_header_windows_h="no"
20190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
20194 $as_echo "$ac_cv_header_windows_h" >&6; }
20195 case "$ac_cv_header_windows_h" in
20198 cat >>confdefs.h <<_ACEOF
20199 #define HAVE_WINDOWS_H 1
20203 cat >>confdefs.h <<_ACEOF
20204 #define WIN32_LEAN_AND_MEAN 1
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20212 $as_echo_n "checking for winsock2.h... " >&6; }
20213 if ${ac_cv_header_winsock2_h+:} false; then :
20214 $as_echo_n "(cached) " >&6
20217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h. */
20222 #ifndef WIN32_LEAN_AND_MEAN
20223 #define WIN32_LEAN_AND_MEAN
20225 #include <windows.h>
20226 #include <winsock2.h>
20231 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20232 HAVE_WINSOCK2_H shall not be defined.
20234 int dummy=2*IPPROTO_ESP;
20242 if ac_fn_c_try_compile "$LINENO"; then :
20244 ac_cv_header_winsock2_h="yes"
20248 ac_cv_header_winsock2_h="no"
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
20255 $as_echo "$ac_cv_header_winsock2_h" >&6; }
20256 case "$ac_cv_header_winsock2_h" in
20259 cat >>confdefs.h <<_ACEOF
20260 #define HAVE_WINSOCK2_H 1
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
20268 $as_echo_n "checking for ws2tcpip.h... " >&6; }
20269 if ${ac_cv_header_ws2tcpip_h+:} false; then :
20270 $as_echo_n "(cached) " >&6
20273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20274 /* end confdefs.h. */
20278 #ifndef WIN32_LEAN_AND_MEAN
20279 #define WIN32_LEAN_AND_MEAN
20281 #include <windows.h>
20282 #include <winsock2.h>
20283 #include <ws2tcpip.h>
20288 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20289 HAVE_WS2TCPIP_H shall not be defined.
20291 int dummy=2*IP_PKTINFO;
20299 if ac_fn_c_try_compile "$LINENO"; then :
20301 ac_cv_header_ws2tcpip_h="yes"
20305 ac_cv_header_ws2tcpip_h="no"
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
20312 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
20313 case "$ac_cv_header_ws2tcpip_h" in
20316 cat >>confdefs.h <<_ACEOF
20317 #define HAVE_WS2TCPIP_H 1
20325 cares_includes_sys_socket="\
20326 /* includes start */
20327 #ifdef HAVE_SYS_TYPES_H
20328 # include <sys/types.h>
20330 #ifdef HAVE_SYS_SOCKET_H
20331 # include <sys/socket.h>
20333 /* includes end */"
20334 for ac_header in sys/types.h sys/socket.h
20336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20337 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
20339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20340 cat >>confdefs.h <<_ACEOF
20341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20350 cares_preprocess_callconv="\
20351 /* preprocess start */
20352 #ifdef HAVE_WINDOWS_H
20353 # define FUNCALLCONV __stdcall
20355 # define FUNCALLCONV
20357 /* preprocess end */"
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
20362 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
20363 cares_typeof_ares_socklen_t="unknown"
20364 for arg1 in int SOCKET; do
20365 for arg2 in 'struct sockaddr' void; do
20366 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
20367 if test "$cares_typeof_ares_socklen_t" = "unknown"; then
20368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20372 $cares_includes_ws2tcpip
20373 $cares_includes_sys_socket
20374 $cares_preprocess_callconv
20375 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
20381 if(0 != getpeername(0, 0, lenptr))
20389 if ac_fn_c_try_compile "$LINENO"; then :
20391 cares_typeof_ares_socklen_t="$t"
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 for t in socklen_t int; do
20400 if test "$cares_typeof_ares_socklen_t" = "void"; then
20401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402 /* end confdefs.h. */
20405 $cares_includes_sys_socket
20406 typedef $t ares_socklen_t;
20411 ares_socklen_t dummy;
20418 if ac_fn_c_try_compile "$LINENO"; then :
20420 cares_typeof_ares_socklen_t="$t"
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
20427 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
20428 if test "$cares_typeof_ares_socklen_t" = "void" ||
20429 test "$cares_typeof_ares_socklen_t" = "unknown"; then
20430 as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
20434 $as_echo_n "checking size of ares_socklen_t... " >&6; }
20435 cares_sizeof_ares_socklen_t="unknown"
20436 cares_pull_headers_socklen_t="unknown"
20437 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
20438 tst_pull_header_checks='none ws2tcpip'
20439 tst_size_checks='4'
20441 tst_pull_header_checks='none systypes syssocket'
20442 tst_size_checks='4 8 2'
20444 for tst_size in $tst_size_checks; do
20445 for tst_pull_headers in $tst_pull_header_checks; do
20446 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
20447 case $tst_pull_headers in
20449 tmp_includes="$cares_includes_ws2tcpip"
20452 tmp_includes="$cares_includes_sys_types"
20455 tmp_includes="$cares_includes_sys_socket"
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h. */
20466 typedef $cares_typeof_ares_socklen_t ares_socklen_t;
20467 typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
20472 ares_socklen_t dummy;
20479 if ac_fn_c_try_compile "$LINENO"; then :
20481 cares_sizeof_ares_socklen_t="$tst_size"
20482 cares_pull_headers_socklen_t="$tst_pull_headers"
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
20490 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
20491 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
20492 as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
20495 case $cares_pull_headers_socklen_t in
20498 cat >>confdefs.h <<_EOF
20499 #define CARES_PULL_WS2TCPIP_H 1
20505 cat >>confdefs.h <<_EOF
20506 #define CARES_PULL_SYS_TYPES_H 1
20512 cat >>confdefs.h <<_EOF
20513 #define CARES_PULL_SYS_TYPES_H 1
20517 cat >>confdefs.h <<_EOF
20518 #define CARES_PULL_SYS_SOCKET_H 1
20524 cat >>confdefs.h <<_EOF
20525 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
20529 cat >>confdefs.h <<_EOF
20530 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
20536 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
20538 #ifdef HAVE_WINDOWS_H
20539 #ifndef WIN32_LEAN_AND_MEAN
20540 #define WIN32_LEAN_AND_MEAN
20542 #include <windows.h>
20543 #ifdef HAVE_WINSOCK2_H
20544 #include <winsock2.h>
20546 #ifdef HAVE_WINSOCK_H
20547 #include <winsock.h>
20551 #ifdef HAVE_SYS_TYPES_H
20552 #include <sys/types.h>
20554 #ifdef HAVE_SYS_SOCKET_H
20555 #include <sys/socket.h>
20557 #ifdef HAVE_NETINET_IN_H
20558 #include <netinet/in.h>
20560 #ifdef HAVE_ARPA_INET_H
20561 #include <arpa/inet.h>
20566 if test "x$ac_cv_type_in_addr_t" = xyes; then :
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
20571 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
20572 if ${curl_cv_in_addr_t_equiv+:} false; then :
20573 $as_echo_n "(cached) " >&6
20576 curl_cv_in_addr_t_equiv="unknown"
20577 for t in "unsigned long" int size_t unsigned long; do
20578 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
20579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h. */
20584 #ifdef HAVE_WINDOWS_H
20585 #ifndef WIN32_LEAN_AND_MEAN
20586 #define WIN32_LEAN_AND_MEAN
20588 #include <windows.h>
20589 #ifdef HAVE_WINSOCK2_H
20590 #include <winsock2.h>
20592 #ifdef HAVE_WINSOCK_H
20593 #include <winsock.h>
20597 #ifdef HAVE_SYS_TYPES_H
20598 #include <sys/types.h>
20600 #ifdef HAVE_SYS_SOCKET_H
20601 #include <sys/socket.h>
20603 #ifdef HAVE_NETINET_IN_H
20604 #include <netinet/in.h>
20606 #ifdef HAVE_ARPA_INET_H
20607 #include <arpa/inet.h>
20614 $t data = inet_addr ("1.2.3.4");
20621 if ac_fn_c_try_link "$LINENO"; then :
20623 curl_cv_in_addr_t_equiv="$t"
20626 rm -f core conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
20633 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
20634 case "$curl_cv_in_addr_t_equiv" in
20636 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
20640 cat >>confdefs.h <<_ACEOF
20641 #define in_addr_t $curl_cv_in_addr_t_equiv
20652 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
20654 #ifdef HAVE_WINDOWS_H
20655 #ifndef WIN32_LEAN_AND_MEAN
20656 #define WIN32_LEAN_AND_MEAN
20658 #include <windows.h>
20659 #ifdef HAVE_WINSOCK2_H
20660 #include <winsock2.h>
20663 #ifdef HAVE_SYS_TYPES_H
20664 #include <sys/types.h>
20666 #ifdef HAVE_SYS_SOCKET_H
20667 #include <sys/socket.h>
20669 #ifdef HAVE_NETINET_IN_H
20670 #include <netinet/in.h>
20672 #ifdef HAVE_ARPA_INET_H
20673 #include <arpa/inet.h>
20678 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
20680 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
20687 for ac_header in signal.h
20689 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
20690 if test "x$ac_cv_header_signal_h" = xyes; then :
20691 cat >>confdefs.h <<_ACEOF
20692 #define HAVE_SIGNAL_H 1
20699 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
20700 #ifdef HAVE_SIGNAL_H
20701 #include <signal.h>
20705 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
20708 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
20713 case "$ac_cv_type_sig_atomic_t" in
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
20717 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20722 #ifdef HAVE_SIGNAL_H
20723 #include <signal.h>
20729 static volatile sig_atomic_t dummy = 0;
20736 if ac_fn_c_try_link "$LINENO"; then :
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20739 $as_echo "no" >&6; }
20740 ac_cv_sig_atomic_t_volatile="no"
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20745 $as_echo "yes" >&6; }
20746 ac_cv_sig_atomic_t_volatile="yes"
20749 rm -f core conftest.err conftest.$ac_objext \
20750 conftest$ac_exeext conftest.$ac_ext
20752 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
20754 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20762 $as_echo_n "checking return type of signal handlers... " >&6; }
20763 if ${ac_cv_type_signal+:} false; then :
20764 $as_echo_n "(cached) " >&6
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768 #include <sys/types.h>
20769 #include <signal.h>
20773 return *(signal (0, 0)) (0) == 1;
20778 if ac_fn_c_try_compile "$LINENO"; then :
20779 ac_cv_type_signal=int
20781 ac_cv_type_signal=void
20783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20786 $as_echo "$ac_cv_type_signal" >&6; }
20788 cat >>confdefs.h <<_ACEOF
20789 #define RETSIGTYPE $ac_cv_type_signal
20795 for ac_header in sys/types.h sys/socket.h
20797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20798 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20800 cat >>confdefs.h <<_ACEOF
20801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
20810 $as_echo_n "checking for recv... " >&6; }
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20816 #ifdef HAVE_WINDOWS_H
20817 #ifndef WIN32_LEAN_AND_MEAN
20818 #define WIN32_LEAN_AND_MEAN
20820 #include <windows.h>
20821 #ifdef HAVE_WINSOCK2_H
20822 #include <winsock2.h>
20824 #ifdef HAVE_WINSOCK_H
20825 #include <winsock.h>
20829 #ifdef HAVE_SYS_TYPES_H
20830 #include <sys/types.h>
20832 #ifdef HAVE_SYS_SOCKET_H
20833 #include <sys/socket.h>
20847 if ac_fn_c_try_link "$LINENO"; then :
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20850 $as_echo "yes" >&6; }
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20856 $as_echo "no" >&6; }
20860 rm -f core conftest.err conftest.$ac_objext \
20861 conftest$ac_exeext conftest.$ac_ext
20863 if test "$curl_cv_recv" = "yes"; then
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
20865 $as_echo_n "checking types of args and return type for recv... " >&6; }
20866 if ${curl_cv_func_recv_args+:} false; then :
20867 $as_echo_n "(cached) " >&6
20870 curl_cv_func_recv_args="unknown"
20871 for recv_retv in 'int' 'ssize_t'; do
20872 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
20873 for recv_arg2 in 'char *' 'void *'; do
20874 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
20875 for recv_arg4 in 'int' 'unsigned int'; do
20876 if test "$curl_cv_func_recv_args" = "unknown"; then
20877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20878 /* end confdefs.h. */
20882 #ifdef HAVE_WINDOWS_H
20883 #ifndef WIN32_LEAN_AND_MEAN
20884 #define WIN32_LEAN_AND_MEAN
20886 #include <windows.h>
20887 #ifdef HAVE_WINSOCK2_H
20888 #include <winsock2.h>
20890 #ifdef HAVE_WINSOCK_H
20891 #include <winsock.h>
20894 #define RECVCALLCONV PASCAL
20896 #ifdef HAVE_SYS_TYPES_H
20897 #include <sys/types.h>
20899 #ifdef HAVE_SYS_SOCKET_H
20900 #include <sys/socket.h>
20902 #define RECVCALLCONV
20904 extern $recv_retv RECVCALLCONV
20905 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
20913 $recv_arg4 flags=0;
20914 $recv_retv res = recv(s, buf, len, flags);
20921 if ac_fn_c_try_compile "$LINENO"; then :
20923 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
20926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
20936 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
20937 if test "$curl_cv_func_recv_args" = "unknown"; then
20938 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
20940 recv_prev_IFS=$IFS; IFS=','
20941 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
20946 cat >>confdefs.h <<_ACEOF
20947 #define RECV_TYPE_ARG1 $1
20951 cat >>confdefs.h <<_ACEOF
20952 #define RECV_TYPE_ARG2 $2
20956 cat >>confdefs.h <<_ACEOF
20957 #define RECV_TYPE_ARG3 $3
20961 cat >>confdefs.h <<_ACEOF
20962 #define RECV_TYPE_ARG4 $4
20966 cat >>confdefs.h <<_ACEOF
20967 #define RECV_TYPE_RETV $5
20972 cat >>confdefs.h <<_ACEOF
20973 #define HAVE_RECV 1
20976 ac_cv_func_recv="yes"
20979 as_fn_error $? "Unable to link function recv" "$LINENO" 5
20983 for ac_header in sys/types.h sys/socket.h
20985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20988 cat >>confdefs.h <<_ACEOF
20989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
20998 $as_echo_n "checking for recvfrom... " >&6; }
20999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21000 /* end confdefs.h. */
21004 #ifdef HAVE_WINDOWS_H
21005 #ifndef WIN32_LEAN_AND_MEAN
21006 #define WIN32_LEAN_AND_MEAN
21008 #include <windows.h>
21009 #ifdef HAVE_WINSOCK2_H
21010 #include <winsock2.h>
21012 #ifdef HAVE_WINSOCK_H
21013 #include <winsock.h>
21017 #ifdef HAVE_SYS_TYPES_H
21018 #include <sys/types.h>
21020 #ifdef HAVE_SYS_SOCKET_H
21021 #include <sys/socket.h>
21028 recvfrom(0, 0, 0, 0, 0, 0);
21035 if ac_fn_c_try_link "$LINENO"; then :
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21038 $as_echo "yes" >&6; }
21039 curl_cv_recvfrom="yes"
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044 $as_echo "no" >&6; }
21045 curl_cv_recvfrom="no"
21048 rm -f core conftest.err conftest.$ac_objext \
21049 conftest$ac_exeext conftest.$ac_ext
21051 if test "$curl_cv_recvfrom" = "yes"; then
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
21053 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
21054 if ${curl_cv_func_recvfrom_args+:} false; then :
21055 $as_echo_n "(cached) " >&6
21058 curl_cv_func_recvfrom_args="unknown"
21059 for recvfrom_retv in 'int' 'ssize_t'; do
21060 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
21061 for recvfrom_arg2 in 'char *' 'void *'; do
21062 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
21063 for recvfrom_arg4 in 'int' 'unsigned int'; do
21064 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
21065 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
21066 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
21067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21068 /* end confdefs.h. */
21072 #ifdef HAVE_WINDOWS_H
21073 #ifndef WIN32_LEAN_AND_MEAN
21074 #define WIN32_LEAN_AND_MEAN
21076 #include <windows.h>
21077 #ifdef HAVE_WINSOCK2_H
21078 #include <winsock2.h>
21080 #ifdef HAVE_WINSOCK_H
21081 #include <winsock.h>
21084 #define RECVFROMCALLCONV PASCAL
21086 #ifdef HAVE_SYS_TYPES_H
21087 #include <sys/types.h>
21089 #ifdef HAVE_SYS_SOCKET_H
21090 #include <sys/socket.h>
21092 #define RECVFROMCALLCONV
21094 extern $recvfrom_retv RECVFROMCALLCONV
21095 recvfrom($recvfrom_arg1, $recvfrom_arg2,
21096 $recvfrom_arg3, $recvfrom_arg4,
21097 $recvfrom_arg5, $recvfrom_arg6);
21102 $recvfrom_arg1 s=0;
21103 $recvfrom_arg2 buf=0;
21104 $recvfrom_arg3 len=0;
21105 $recvfrom_arg4 flags=0;
21106 $recvfrom_arg5 addr=0;
21107 $recvfrom_arg6 addrlen=0;
21108 $recvfrom_retv res=0;
21109 res = recvfrom(s, buf, len, flags, addr, addrlen);
21116 if ac_fn_c_try_compile "$LINENO"; then :
21118 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
21133 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
21134 # Nearly last minute change for this release starts here
21136 cat >>confdefs.h <<_ACEOF
21137 #define HAVE_RECVFROM 1
21140 ac_cv_func_recvfrom="yes"
21141 # Nearly last minute change for this release ends here
21142 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
21144 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
21146 recvfrom_prev_IFS=$IFS; IFS=','
21147 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
21148 IFS=$recvfrom_prev_IFS
21151 recvfrom_ptrt_arg2=$2
21152 recvfrom_qual_ptrt_arg5=$5
21153 recvfrom_ptrt_arg6=$6
21156 cat >>confdefs.h <<_ACEOF
21157 #define RECVFROM_TYPE_ARG1 $1
21161 cat >>confdefs.h <<_ACEOF
21162 #define RECVFROM_TYPE_ARG3 $3
21166 cat >>confdefs.h <<_ACEOF
21167 #define RECVFROM_TYPE_ARG4 $4
21171 cat >>confdefs.h <<_ACEOF
21172 #define RECVFROM_TYPE_RETV $7
21178 case $prev_sh_opts in
21186 case "$recvfrom_qual_ptrt_arg5" in
21188 recvfrom_qual_arg5=const
21189 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
21192 recvfrom_qual_arg5=
21193 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
21197 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
21198 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
21199 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
21202 cat >>confdefs.h <<_ACEOF
21203 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
21207 cat >>confdefs.h <<_ACEOF
21208 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
21212 cat >>confdefs.h <<_ACEOF
21213 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
21217 cat >>confdefs.h <<_ACEOF
21218 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
21222 if test "$recvfrom_type_arg2" = "void"; then
21224 cat >>confdefs.h <<_ACEOF
21225 #define RECVFROM_TYPE_ARG2_IS_VOID 1
21229 if test "$recvfrom_type_arg5" = "void"; then
21231 cat >>confdefs.h <<_ACEOF
21232 #define RECVFROM_TYPE_ARG5_IS_VOID 1
21236 if test "$recvfrom_type_arg6" = "void"; then
21238 cat >>confdefs.h <<_ACEOF
21239 #define RECVFROM_TYPE_ARG6_IS_VOID 1
21244 case $prev_sh_opts in
21253 cat >>confdefs.h <<_ACEOF
21254 #define HAVE_RECVFROM 1
21257 ac_cv_func_recvfrom="yes"
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
21261 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
21263 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
21267 for ac_header in sys/types.h sys/socket.h
21269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21272 cat >>confdefs.h <<_ACEOF
21273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
21282 $as_echo_n "checking for send... " >&6; }
21283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284 /* end confdefs.h. */
21288 #ifdef HAVE_WINDOWS_H
21289 #ifndef WIN32_LEAN_AND_MEAN
21290 #define WIN32_LEAN_AND_MEAN
21292 #include <windows.h>
21293 #ifdef HAVE_WINSOCK2_H
21294 #include <winsock2.h>
21296 #ifdef HAVE_WINSOCK_H
21297 #include <winsock.h>
21301 #ifdef HAVE_SYS_TYPES_H
21302 #include <sys/types.h>
21304 #ifdef HAVE_SYS_SOCKET_H
21305 #include <sys/socket.h>
21319 if ac_fn_c_try_link "$LINENO"; then :
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21322 $as_echo "yes" >&6; }
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21328 $as_echo "no" >&6; }
21332 rm -f core conftest.err conftest.$ac_objext \
21333 conftest$ac_exeext conftest.$ac_ext
21335 if test "$curl_cv_send" = "yes"; then
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
21337 $as_echo_n "checking types of args and return type for send... " >&6; }
21338 if ${curl_cv_func_send_args+:} false; then :
21339 $as_echo_n "(cached) " >&6
21342 curl_cv_func_send_args="unknown"
21343 for send_retv in 'int' 'ssize_t'; do
21344 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
21345 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
21346 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
21347 for send_arg4 in 'int' 'unsigned int'; do
21348 if test "$curl_cv_func_send_args" = "unknown"; then
21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350 /* end confdefs.h. */
21354 #ifdef HAVE_WINDOWS_H
21355 #ifndef WIN32_LEAN_AND_MEAN
21356 #define WIN32_LEAN_AND_MEAN
21358 #include <windows.h>
21359 #ifdef HAVE_WINSOCK2_H
21360 #include <winsock2.h>
21362 #ifdef HAVE_WINSOCK_H
21363 #include <winsock.h>
21366 #define SENDCALLCONV PASCAL
21368 #ifdef HAVE_SYS_TYPES_H
21369 #include <sys/types.h>
21371 #ifdef HAVE_SYS_SOCKET_H
21372 #include <sys/socket.h>
21374 #define SENDCALLCONV
21376 extern $send_retv SENDCALLCONV
21377 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
21384 $send_arg4 flags=0;
21385 $send_retv res = send(s, 0, len, flags);
21392 if ac_fn_c_try_compile "$LINENO"; then :
21394 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
21407 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
21408 if test "$curl_cv_func_send_args" = "unknown"; then
21409 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
21411 send_prev_IFS=$IFS; IFS=','
21412 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
21416 send_qual_type_arg2=$2
21419 cat >>confdefs.h <<_ACEOF
21420 #define SEND_TYPE_ARG1 $1
21424 cat >>confdefs.h <<_ACEOF
21425 #define SEND_TYPE_ARG3 $3
21429 cat >>confdefs.h <<_ACEOF
21430 #define SEND_TYPE_ARG4 $4
21434 cat >>confdefs.h <<_ACEOF
21435 #define SEND_TYPE_RETV $5
21441 case $prev_sh_opts in
21449 case "$send_qual_type_arg2" in
21451 send_qual_arg2=const
21452 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
21456 send_type_arg2=$send_qual_type_arg2
21461 cat >>confdefs.h <<_ACEOF
21462 #define SEND_QUAL_ARG2 $send_qual_arg2
21466 cat >>confdefs.h <<_ACEOF
21467 #define SEND_TYPE_ARG2 $send_type_arg2
21471 case $prev_sh_opts in
21480 cat >>confdefs.h <<_ACEOF
21481 #define HAVE_SEND 1
21484 ac_cv_func_send="yes"
21487 as_fn_error $? "Unable to link function send" "$LINENO" 5
21491 for ac_header in sys/types.h sys/socket.h
21493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21496 cat >>confdefs.h <<_ACEOF
21497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21505 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21506 if ${ac_cv_msg_nosignal+:} false; then :
21507 $as_echo_n "(cached) " >&6
21510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h. */
21515 #ifdef HAVE_WINDOWS_H
21516 #ifndef WIN32_LEAN_AND_MEAN
21517 #define WIN32_LEAN_AND_MEAN
21519 #include <windows.h>
21520 #ifdef HAVE_WINSOCK2_H
21521 #include <winsock2.h>
21523 #ifdef HAVE_WINSOCK_H
21524 #include <winsock.h>
21528 #ifdef HAVE_SYS_TYPES_H
21529 #include <sys/types.h>
21531 #ifdef HAVE_SYS_SOCKET_H
21532 #include <sys/socket.h>
21539 int flag=MSG_NOSIGNAL;
21546 if ac_fn_c_try_compile "$LINENO"; then :
21548 ac_cv_msg_nosignal="yes"
21552 ac_cv_msg_nosignal="no"
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
21559 $as_echo "$ac_cv_msg_nosignal" >&6; }
21560 case "$ac_cv_msg_nosignal" in
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_MSG_NOSIGNAL 1
21572 cares_includes_socket="\
21573 /* includes start */
21574 #ifdef HAVE_SYS_TYPES_H
21575 # include <sys/types.h>
21577 #ifdef HAVE_SOCKET_H
21578 # include <socket.h>
21580 /* includes end */"
21581 for ac_header in sys/types.h socket.h
21583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21584 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
21586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21587 cat >>confdefs.h <<_ACEOF
21588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21598 tst_links_closesocket="unknown"
21599 tst_proto_closesocket="unknown"
21600 tst_compi_closesocket="unknown"
21601 tst_allow_closesocket="unknown"
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
21604 $as_echo_n "checking if closesocket can be linked... " >&6; }
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h. */
21609 $cares_includes_winsock2
21610 $cares_includes_socket
21615 if(0 != closesocket(0))
21623 if ac_fn_c_try_link "$LINENO"; then :
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21626 $as_echo "yes" >&6; }
21627 tst_links_closesocket="yes"
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21632 $as_echo "no" >&6; }
21633 tst_links_closesocket="no"
21636 rm -f core conftest.err conftest.$ac_objext \
21637 conftest$ac_exeext conftest.$ac_ext
21639 if test "$tst_links_closesocket" = "yes"; then
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
21641 $as_echo_n "checking if closesocket is prototyped... " >&6; }
21642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21643 /* end confdefs.h. */
21645 $cares_includes_winsock2
21646 $cares_includes_socket
21649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21650 $EGREP "closesocket" >/dev/null 2>&1; then :
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21653 $as_echo "yes" >&6; }
21654 tst_proto_closesocket="yes"
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21659 $as_echo "no" >&6; }
21660 tst_proto_closesocket="no"
21667 if test "$tst_proto_closesocket" = "yes"; then
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
21669 $as_echo_n "checking if closesocket is compilable... " >&6; }
21670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21671 /* end confdefs.h. */
21674 $cares_includes_winsock2
21675 $cares_includes_socket
21680 if(0 != closesocket(0))
21688 if ac_fn_c_try_compile "$LINENO"; then :
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21691 $as_echo "yes" >&6; }
21692 tst_compi_closesocket="yes"
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21698 tst_compi_closesocket="no"
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704 if test "$tst_compi_closesocket" = "yes"; then
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
21706 $as_echo_n "checking if closesocket usage allowed... " >&6; }
21707 if test "x$cares_disallow_closesocket" != "xyes"; then
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21709 $as_echo "yes" >&6; }
21710 tst_allow_closesocket="yes"
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713 $as_echo "no" >&6; }
21714 tst_allow_closesocket="no"
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
21719 $as_echo_n "checking if closesocket might be used... " >&6; }
21720 if test "$tst_links_closesocket" = "yes" &&
21721 test "$tst_proto_closesocket" = "yes" &&
21722 test "$tst_compi_closesocket" = "yes" &&
21723 test "$tst_allow_closesocket" = "yes"; then
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21725 $as_echo "yes" >&6; }
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_CLOSESOCKET 1
21731 ac_cv_func_closesocket="yes"
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21735 ac_cv_func_closesocket="no"
21740 tst_links_closesocket_camel="unknown"
21741 tst_proto_closesocket_camel="unknown"
21742 tst_compi_closesocket_camel="unknown"
21743 tst_allow_closesocket_camel="unknown"
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
21746 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
21747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21748 /* end confdefs.h. */
21751 $cares_includes_sys_socket
21756 if(0 != CloseSocket(0))
21764 if ac_fn_c_try_link "$LINENO"; then :
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21767 $as_echo "yes" >&6; }
21768 tst_links_closesocket_camel="yes"
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21773 $as_echo "no" >&6; }
21774 tst_links_closesocket_camel="no"
21777 rm -f core conftest.err conftest.$ac_objext \
21778 conftest$ac_exeext conftest.$ac_ext
21780 if test "$tst_links_closesocket_camel" = "yes"; then
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
21782 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21786 $cares_includes_sys_socket
21789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21790 $EGREP "CloseSocket" >/dev/null 2>&1; then :
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21793 $as_echo "yes" >&6; }
21794 tst_proto_closesocket_camel="yes"
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21799 $as_echo "no" >&6; }
21800 tst_proto_closesocket_camel="no"
21807 if test "$tst_proto_closesocket_camel" = "yes"; then
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
21809 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
21810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h. */
21814 $cares_includes_sys_socket
21819 if(0 != CloseSocket(0))
21827 if ac_fn_c_try_compile "$LINENO"; then :
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830 $as_echo "yes" >&6; }
21831 tst_compi_closesocket_camel="yes"
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21837 tst_compi_closesocket_camel="no"
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21843 if test "$tst_compi_closesocket_camel" = "yes"; then
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
21845 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
21846 if test "x$cares_disallow_closesocket_camel" != "xyes"; then
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21848 $as_echo "yes" >&6; }
21849 tst_allow_closesocket_camel="yes"
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21852 $as_echo "no" >&6; }
21853 tst_allow_closesocket_camel="no"
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
21858 $as_echo_n "checking if CloseSocket might be used... " >&6; }
21859 if test "$tst_links_closesocket_camel" = "yes" &&
21860 test "$tst_proto_closesocket_camel" = "yes" &&
21861 test "$tst_compi_closesocket_camel" = "yes" &&
21862 test "$tst_allow_closesocket_camel" = "yes"; then
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21864 $as_echo "yes" >&6; }
21866 cat >>confdefs.h <<_ACEOF
21867 #define HAVE_CLOSESOCKET_CAMEL 1
21870 ac_cv_func_closesocket_camel="yes"
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21873 $as_echo "no" >&6; }
21874 ac_cv_func_closesocket_camel="no"
21879 tst_links_connect="unknown"
21880 tst_proto_connect="unknown"
21881 tst_compi_connect="unknown"
21882 tst_allow_connect="unknown"
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
21885 $as_echo_n "checking if connect can be linked... " >&6; }
21886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21887 /* end confdefs.h. */
21890 $cares_includes_winsock2
21891 $cares_includes_sys_socket
21892 $cares_includes_socket
21897 if(0 != connect(0, 0, 0))
21905 if ac_fn_c_try_link "$LINENO"; then :
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21908 $as_echo "yes" >&6; }
21909 tst_links_connect="yes"
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21914 $as_echo "no" >&6; }
21915 tst_links_connect="no"
21918 rm -f core conftest.err conftest.$ac_objext \
21919 conftest$ac_exeext conftest.$ac_ext
21921 if test "$tst_links_connect" = "yes"; then
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
21923 $as_echo_n "checking if connect is prototyped... " >&6; }
21924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h. */
21927 $cares_includes_winsock2
21928 $cares_includes_sys_socket
21929 $cares_includes_socket
21932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21933 $EGREP "connect" >/dev/null 2>&1; then :
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21936 $as_echo "yes" >&6; }
21937 tst_proto_connect="yes"
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21942 $as_echo "no" >&6; }
21943 tst_proto_connect="no"
21950 if test "$tst_proto_connect" = "yes"; then
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
21952 $as_echo_n "checking if connect is compilable... " >&6; }
21953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h. */
21957 $cares_includes_winsock2
21958 $cares_includes_sys_socket
21959 $cares_includes_socket
21964 if(0 != connect(0, 0, 0))
21972 if ac_fn_c_try_compile "$LINENO"; then :
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21975 $as_echo "yes" >&6; }
21976 tst_compi_connect="yes"
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21981 $as_echo "no" >&6; }
21982 tst_compi_connect="no"
21985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21988 if test "$tst_compi_connect" = "yes"; then
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
21990 $as_echo_n "checking if connect usage allowed... " >&6; }
21991 if test "x$cares_disallow_connect" != "xyes"; then
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21993 $as_echo "yes" >&6; }
21994 tst_allow_connect="yes"
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21997 $as_echo "no" >&6; }
21998 tst_allow_connect="no"
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
22003 $as_echo_n "checking if connect might be used... " >&6; }
22004 if test "$tst_links_connect" = "yes" &&
22005 test "$tst_proto_connect" = "yes" &&
22006 test "$tst_compi_connect" = "yes" &&
22007 test "$tst_allow_connect" = "yes"; then
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22009 $as_echo "yes" >&6; }
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_CONNECT 1
22015 ac_cv_func_connect="yes"
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22019 ac_cv_func_connect="no"
22023 cares_includes_fcntl="\
22024 /* includes start */
22025 #ifdef HAVE_SYS_TYPES_H
22026 # include <sys/types.h>
22028 #ifdef HAVE_UNISTD_H
22029 # include <unistd.h>
22031 #ifdef HAVE_FCNTL_H
22032 # include <fcntl.h>
22034 /* includes end */"
22035 for ac_header in sys/types.h unistd.h fcntl.h
22037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
22040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22041 cat >>confdefs.h <<_ACEOF
22042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22052 tst_links_fcntl="unknown"
22053 tst_proto_fcntl="unknown"
22054 tst_compi_fcntl="unknown"
22055 tst_allow_fcntl="unknown"
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
22058 $as_echo_n "checking if fcntl can be linked... " >&6; }
22059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060 /* end confdefs.h. */
22063 #define fcntl innocuous_fcntl
22065 # include <limits.h>
22067 # include <assert.h>
22074 #if defined __stub_fcntl || defined __stub___fcntl
22086 if ac_fn_c_try_link "$LINENO"; then :
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22089 $as_echo "yes" >&6; }
22090 tst_links_fcntl="yes"
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22095 $as_echo "no" >&6; }
22096 tst_links_fcntl="no"
22099 rm -f core conftest.err conftest.$ac_objext \
22100 conftest$ac_exeext conftest.$ac_ext
22102 if test "$tst_links_fcntl" = "yes"; then
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
22104 $as_echo_n "checking if fcntl is prototyped... " >&6; }
22105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h. */
22108 $cares_includes_fcntl
22111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22112 $EGREP "fcntl" >/dev/null 2>&1; then :
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22115 $as_echo "yes" >&6; }
22116 tst_proto_fcntl="yes"
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22121 $as_echo "no" >&6; }
22122 tst_proto_fcntl="no"
22129 if test "$tst_proto_fcntl" = "yes"; then
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
22131 $as_echo_n "checking if fcntl is compilable... " >&6; }
22132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22133 /* end confdefs.h. */
22136 $cares_includes_fcntl
22141 if(0 != fcntl(0, 0, 0))
22149 if ac_fn_c_try_compile "$LINENO"; then :
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22152 $as_echo "yes" >&6; }
22153 tst_compi_fcntl="yes"
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22158 $as_echo "no" >&6; }
22159 tst_compi_fcntl="no"
22162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 if test "$tst_compi_fcntl" = "yes"; then
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
22167 $as_echo_n "checking if fcntl usage allowed... " >&6; }
22168 if test "x$cares_disallow_fcntl" != "xyes"; then
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22170 $as_echo "yes" >&6; }
22171 tst_allow_fcntl="yes"
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22174 $as_echo "no" >&6; }
22175 tst_allow_fcntl="no"
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
22180 $as_echo_n "checking if fcntl might be used... " >&6; }
22181 if test "$tst_links_fcntl" = "yes" &&
22182 test "$tst_proto_fcntl" = "yes" &&
22183 test "$tst_compi_fcntl" = "yes" &&
22184 test "$tst_allow_fcntl" = "yes"; then
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22186 $as_echo "yes" >&6; }
22188 cat >>confdefs.h <<_ACEOF
22189 #define HAVE_FCNTL 1
22192 ac_cv_func_fcntl="yes"
22195 tst_compi_fcntl_o_nonblock="unknown"
22196 tst_allow_fcntl_o_nonblock="unknown"
22199 sunos4* | aix3* | beos*)
22200 cares_disallow_fcntl_o_nonblock="yes"
22204 if test "$ac_cv_func_fcntl" = "yes"; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
22206 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h. */
22211 $cares_includes_fcntl
22217 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
22225 if ac_fn_c_try_compile "$LINENO"; then :
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22228 $as_echo "yes" >&6; }
22229 tst_compi_fcntl_o_nonblock="yes"
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22234 $as_echo "no" >&6; }
22235 tst_compi_fcntl_o_nonblock="no"
22238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
22243 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
22244 if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22246 $as_echo "yes" >&6; }
22247 tst_allow_fcntl_o_nonblock="yes"
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22250 $as_echo "no" >&6; }
22251 tst_allow_fcntl_o_nonblock="no"
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
22256 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
22257 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
22258 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22260 $as_echo "yes" >&6; }
22262 cat >>confdefs.h <<_ACEOF
22263 #define HAVE_FCNTL_O_NONBLOCK 1
22266 ac_cv_func_fcntl_o_nonblock="yes"
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269 $as_echo "no" >&6; }
22270 ac_cv_func_fcntl_o_nonblock="no"
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275 $as_echo "no" >&6; }
22276 ac_cv_func_fcntl="no"
22280 cares_includes_netdb="\
22281 /* includes start */
22282 #ifdef HAVE_SYS_TYPES_H
22283 # include <sys/types.h>
22285 #ifdef HAVE_NETDB_H
22286 # include <netdb.h>
22288 /* includes end */"
22289 for ac_header in sys/types.h netdb.h
22291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22292 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
22294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22295 cat >>confdefs.h <<_ACEOF
22296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22306 tst_links_freeaddrinfo="unknown"
22307 tst_proto_freeaddrinfo="unknown"
22308 tst_compi_freeaddrinfo="unknown"
22309 tst_allow_freeaddrinfo="unknown"
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
22312 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
22313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22314 /* end confdefs.h. */
22317 $cares_includes_ws2tcpip
22318 $cares_includes_sys_socket
22319 $cares_includes_netdb
22331 if ac_fn_c_try_link "$LINENO"; then :
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22334 $as_echo "yes" >&6; }
22335 tst_links_freeaddrinfo="yes"
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22340 $as_echo "no" >&6; }
22341 tst_links_freeaddrinfo="no"
22344 rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22347 if test "$tst_links_freeaddrinfo" = "yes"; then
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
22349 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
22350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22351 /* end confdefs.h. */
22353 $cares_includes_ws2tcpip
22354 $cares_includes_sys_socket
22355 $cares_includes_netdb
22358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22359 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22362 $as_echo "yes" >&6; }
22363 tst_proto_freeaddrinfo="yes"
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22368 $as_echo "no" >&6; }
22369 tst_proto_freeaddrinfo="no"
22376 if test "$tst_proto_freeaddrinfo" = "yes"; then
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
22378 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
22379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22383 $cares_includes_ws2tcpip
22384 $cares_includes_sys_socket
22385 $cares_includes_netdb
22397 if ac_fn_c_try_compile "$LINENO"; then :
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22400 $as_echo "yes" >&6; }
22401 tst_compi_freeaddrinfo="yes"
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22406 $as_echo "no" >&6; }
22407 tst_compi_freeaddrinfo="no"
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 if test "$tst_compi_freeaddrinfo" = "yes"; then
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
22415 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
22416 if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22418 $as_echo "yes" >&6; }
22419 tst_allow_freeaddrinfo="yes"
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22423 tst_allow_freeaddrinfo="no"
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
22428 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
22429 if test "$tst_links_freeaddrinfo" = "yes" &&
22430 test "$tst_proto_freeaddrinfo" = "yes" &&
22431 test "$tst_compi_freeaddrinfo" = "yes" &&
22432 test "$tst_allow_freeaddrinfo" = "yes"; then
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22434 $as_echo "yes" >&6; }
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_FREEADDRINFO 1
22440 ac_cv_func_freeaddrinfo="yes"
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22443 $as_echo "no" >&6; }
22444 ac_cv_func_freeaddrinfo="no"
22448 cares_includes_stdlib="\
22449 /* includes start */
22450 #ifdef HAVE_SYS_TYPES_H
22451 # include <sys/types.h>
22453 #ifdef HAVE_STDLIB_H
22454 # include <stdlib.h>
22456 /* includes end */"
22457 for ac_header in sys/types.h stdlib.h
22459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22460 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
22462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22463 cat >>confdefs.h <<_ACEOF
22464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22473 cares_includes_string="\
22474 /* includes start */
22475 #ifdef HAVE_SYS_TYPES_H
22476 # include <sys/types.h>
22478 #ifdef HAVE_STRING_H
22479 # include <string.h>
22481 #ifdef HAVE_STRINGS_H
22482 # include <strings.h>
22484 /* includes end */"
22485 for ac_header in sys/types.h string.h strings.h
22487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
22490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22491 cat >>confdefs.h <<_ACEOF
22492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22502 tst_links_getaddrinfo="unknown"
22503 tst_proto_getaddrinfo="unknown"
22504 tst_compi_getaddrinfo="unknown"
22505 tst_works_getaddrinfo="unknown"
22506 tst_allow_getaddrinfo="unknown"
22507 tst_tsafe_getaddrinfo="unknown"
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
22510 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
22511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22512 /* end confdefs.h. */
22515 $cares_includes_ws2tcpip
22516 $cares_includes_sys_socket
22517 $cares_includes_netdb
22522 if(0 != getaddrinfo(0, 0, 0, 0))
22530 if ac_fn_c_try_link "$LINENO"; then :
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22533 $as_echo "yes" >&6; }
22534 tst_links_getaddrinfo="yes"
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22539 $as_echo "no" >&6; }
22540 tst_links_getaddrinfo="no"
22543 rm -f core conftest.err conftest.$ac_objext \
22544 conftest$ac_exeext conftest.$ac_ext
22546 if test "$tst_links_getaddrinfo" = "yes"; then
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
22548 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
22549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22550 /* end confdefs.h. */
22552 $cares_includes_ws2tcpip
22553 $cares_includes_sys_socket
22554 $cares_includes_netdb
22557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22558 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22561 $as_echo "yes" >&6; }
22562 tst_proto_getaddrinfo="yes"
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22567 $as_echo "no" >&6; }
22568 tst_proto_getaddrinfo="no"
22575 if test "$tst_proto_getaddrinfo" = "yes"; then
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
22577 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
22578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579 /* end confdefs.h. */
22582 $cares_includes_ws2tcpip
22583 $cares_includes_sys_socket
22584 $cares_includes_netdb
22589 if(0 != getaddrinfo(0, 0, 0, 0))
22597 if ac_fn_c_try_compile "$LINENO"; then :
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22600 $as_echo "yes" >&6; }
22601 tst_compi_getaddrinfo="yes"
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22606 $as_echo "no" >&6; }
22607 tst_compi_getaddrinfo="no"
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 if test "x$cross_compiling" != "xyes" &&
22614 test "$tst_compi_getaddrinfo" = "yes"; then
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
22616 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
22617 if test "$cross_compiling" = yes; then :
22618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22620 as_fn_error $? "cannot run test program while cross compiling
22621 See \`config.log' for more details" "$LINENO" 5; }
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22627 $cares_includes_ws2tcpip
22628 $cares_includes_stdlib
22629 $cares_includes_string
22630 $cares_includes_sys_socket
22631 $cares_includes_netdb
22636 struct addrinfo hints;
22637 struct addrinfo *ai = 0;
22640 memset(&hints, 0, sizeof(hints));
22641 hints.ai_flags = AI_NUMERICHOST;
22642 hints.ai_family = AF_UNSPEC;
22643 hints.ai_socktype = SOCK_STREAM;
22644 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
22646 exit(1); /* fail */
22655 if ac_fn_c_try_run "$LINENO"; then :
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22658 $as_echo "yes" >&6; }
22659 tst_works_getaddrinfo="yes"
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22664 $as_echo "no" >&6; }
22665 tst_works_getaddrinfo="no"
22668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22669 conftest.$ac_objext conftest.beam conftest.$ac_ext
22674 if test "$tst_compi_getaddrinfo" = "yes" &&
22675 test "$tst_works_getaddrinfo" != "no"; then
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
22677 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
22678 if test "x$cares_disallow_getaddrinfo" != "xyes"; then
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22680 $as_echo "yes" >&6; }
22681 tst_allow_getaddrinfo="yes"
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22685 tst_allow_getaddrinfo="no"
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
22690 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
22691 if test "$tst_links_getaddrinfo" = "yes" &&
22692 test "$tst_proto_getaddrinfo" = "yes" &&
22693 test "$tst_compi_getaddrinfo" = "yes" &&
22694 test "$tst_allow_getaddrinfo" = "yes" &&
22695 test "$tst_works_getaddrinfo" != "no"; then
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22697 $as_echo "yes" >&6; }
22699 cat >>confdefs.h <<_ACEOF
22700 #define HAVE_GETADDRINFO 1
22703 ac_cv_func_getaddrinfo="yes"
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22706 $as_echo "no" >&6; }
22707 ac_cv_func_getaddrinfo="no"
22708 ac_cv_func_getaddrinfo_threadsafe="no"
22711 if test "$ac_cv_func_getaddrinfo" = "yes"; then
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
22713 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
22715 aix[1234].* | aix5.[01].*)
22716 tst_tsafe_getaddrinfo="no"
22719 tst_tsafe_getaddrinfo="yes"
22722 tst_tsafe_getaddrinfo="no"
22725 tst_tsafe_getaddrinfo="yes"
22727 freebsd[1234].* | freebsd5.[1234]*)
22728 tst_tsafe_getaddrinfo="no"
22731 tst_tsafe_getaddrinfo="yes"
22733 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
22734 tst_tsafe_getaddrinfo="no"
22737 tst_tsafe_getaddrinfo="yes"
22740 tst_tsafe_getaddrinfo="no"
22743 tst_tsafe_getaddrinfo="yes"
22746 tst_tsafe_getaddrinfo="no"
22749 tst_tsafe_getaddrinfo="yes"
22752 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
22753 test "$ac_cv_native_windows" = "yes"; then
22754 tst_tsafe_getaddrinfo="yes"
22756 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
22759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22760 /* end confdefs.h. */
22763 $cares_includes_sys_socket
22764 $cares_includes_netdb
22771 force compilation error
22777 if ac_fn_c_try_compile "$LINENO"; then :
22779 tst_symbol_defined="yes"
22783 tst_symbol_defined="no"
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787 if test "$tst_symbol_defined" = "yes"; then
22788 curl_cv_have_def_h_errno=yes
22791 curl_cv_have_def_h_errno=no
22795 if test "$curl_cv_have_def_h_errno" = "yes"; then
22796 tst_h_errno_macro="yes"
22798 tst_h_errno_macro="no"
22800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801 /* end confdefs.h. */
22804 $cares_includes_sys_socket
22805 $cares_includes_netdb
22819 if ac_fn_c_try_compile "$LINENO"; then :
22821 tst_h_errno_modifiable_lvalue="yes"
22825 tst_h_errno_modifiable_lvalue="no"
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830 /* end confdefs.h. */
22837 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
22839 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
22842 force compilation error
22850 if ac_fn_c_try_compile "$LINENO"; then :
22852 tst_h_errno_sbs_issue_7="yes"
22856 tst_h_errno_sbs_issue_7="no"
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 if test "$tst_h_errno_macro" = "no" &&
22861 test "$tst_h_errno_modifiable_lvalue" = "no" &&
22862 test "$tst_h_errno_sbs_issue_7" = "no"; then
22863 tst_tsafe_getaddrinfo="no"
22865 tst_tsafe_getaddrinfo="yes"
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
22869 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
22870 if test "$tst_tsafe_getaddrinfo" = "yes"; then
22872 cat >>confdefs.h <<_ACEOF
22873 #define HAVE_GETADDRINFO_THREADSAFE 1
22876 ac_cv_func_getaddrinfo_threadsafe="yes"
22878 ac_cv_func_getaddrinfo_threadsafe="no"
22884 tst_links_getenv="unknown"
22885 tst_proto_getenv="unknown"
22886 tst_compi_getenv="unknown"
22887 tst_allow_getenv="unknown"
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
22890 $as_echo_n "checking if getenv can be linked... " >&6; }
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h. */
22895 #define getenv innocuous_getenv
22897 # include <limits.h>
22899 # include <assert.h>
22906 #if defined __stub_getenv || defined __stub___getenv
22918 if ac_fn_c_try_link "$LINENO"; then :
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22921 $as_echo "yes" >&6; }
22922 tst_links_getenv="yes"
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22927 $as_echo "no" >&6; }
22928 tst_links_getenv="no"
22931 rm -f core conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
22934 if test "$tst_links_getenv" = "yes"; then
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
22936 $as_echo_n "checking if getenv is prototyped... " >&6; }
22937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h. */
22940 $cares_includes_stdlib
22943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22944 $EGREP "getenv" >/dev/null 2>&1; then :
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22947 $as_echo "yes" >&6; }
22948 tst_proto_getenv="yes"
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953 $as_echo "no" >&6; }
22954 tst_proto_getenv="no"
22961 if test "$tst_proto_getenv" = "yes"; then
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
22963 $as_echo_n "checking if getenv is compilable... " >&6; }
22964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22965 /* end confdefs.h. */
22968 $cares_includes_stdlib
22981 if ac_fn_c_try_compile "$LINENO"; then :
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22984 $as_echo "yes" >&6; }
22985 tst_compi_getenv="yes"
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22990 $as_echo "no" >&6; }
22991 tst_compi_getenv="no"
22994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997 if test "$tst_compi_getenv" = "yes"; then
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
22999 $as_echo_n "checking if getenv usage allowed... " >&6; }
23000 if test "x$cares_disallow_getenv" != "xyes"; then
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23002 $as_echo "yes" >&6; }
23003 tst_allow_getenv="yes"
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23006 $as_echo "no" >&6; }
23007 tst_allow_getenv="no"
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
23012 $as_echo_n "checking if getenv might be used... " >&6; }
23013 if test "$tst_links_getenv" = "yes" &&
23014 test "$tst_proto_getenv" = "yes" &&
23015 test "$tst_compi_getenv" = "yes" &&
23016 test "$tst_allow_getenv" = "yes"; then
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23018 $as_echo "yes" >&6; }
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_GETENV 1
23024 ac_cv_func_getenv="yes"
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23027 $as_echo "no" >&6; }
23028 ac_cv_func_getenv="no"
23033 tst_links_gethostbyaddr="unknown"
23034 tst_proto_gethostbyaddr="unknown"
23035 tst_compi_gethostbyaddr="unknown"
23036 tst_allow_gethostbyaddr="unknown"
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
23039 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23044 $cares_includes_winsock2
23045 $cares_includes_netdb
23050 if(0 != gethostbyaddr(0, 0, 0))
23058 if ac_fn_c_try_link "$LINENO"; then :
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23061 $as_echo "yes" >&6; }
23062 tst_links_gethostbyaddr="yes"
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23067 $as_echo "no" >&6; }
23068 tst_links_gethostbyaddr="no"
23071 rm -f core conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
23074 if test "$tst_links_gethostbyaddr" = "yes"; then
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
23076 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23080 $cares_includes_winsock2
23081 $cares_includes_netdb
23084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23085 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23088 $as_echo "yes" >&6; }
23089 tst_proto_gethostbyaddr="yes"
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23094 $as_echo "no" >&6; }
23095 tst_proto_gethostbyaddr="no"
23102 if test "$tst_proto_gethostbyaddr" = "yes"; then
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
23104 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h. */
23109 $cares_includes_winsock2
23110 $cares_includes_netdb
23115 if(0 != gethostbyaddr(0, 0, 0))
23123 if ac_fn_c_try_compile "$LINENO"; then :
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23126 $as_echo "yes" >&6; }
23127 tst_compi_gethostbyaddr="yes"
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23132 $as_echo "no" >&6; }
23133 tst_compi_gethostbyaddr="no"
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23139 if test "$tst_compi_gethostbyaddr" = "yes"; then
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
23141 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
23142 if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23144 $as_echo "yes" >&6; }
23145 tst_allow_gethostbyaddr="yes"
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23148 $as_echo "no" >&6; }
23149 tst_allow_gethostbyaddr="no"
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
23154 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
23155 if test "$tst_links_gethostbyaddr" = "yes" &&
23156 test "$tst_proto_gethostbyaddr" = "yes" &&
23157 test "$tst_compi_gethostbyaddr" = "yes" &&
23158 test "$tst_allow_gethostbyaddr" = "yes"; then
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23160 $as_echo "yes" >&6; }
23162 cat >>confdefs.h <<_ACEOF
23163 #define HAVE_GETHOSTBYADDR 1
23166 ac_cv_func_gethostbyaddr="yes"
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23169 $as_echo "no" >&6; }
23170 ac_cv_func_gethostbyaddr="no"
23175 tst_links_gethostbyname="unknown"
23176 tst_proto_gethostbyname="unknown"
23177 tst_compi_gethostbyname="unknown"
23178 tst_allow_gethostbyname="unknown"
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
23181 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
23182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183 /* end confdefs.h. */
23186 $cares_includes_winsock2
23187 $cares_includes_netdb
23192 if(0 != gethostbyname(0))
23200 if ac_fn_c_try_link "$LINENO"; then :
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23203 $as_echo "yes" >&6; }
23204 tst_links_gethostbyname="yes"
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23209 $as_echo "no" >&6; }
23210 tst_links_gethostbyname="no"
23213 rm -f core conftest.err conftest.$ac_objext \
23214 conftest$ac_exeext conftest.$ac_ext
23216 if test "$tst_links_gethostbyname" = "yes"; then
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
23218 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
23219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23220 /* end confdefs.h. */
23222 $cares_includes_winsock2
23223 $cares_includes_netdb
23226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23227 $EGREP "gethostbyname" >/dev/null 2>&1; then :
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23230 $as_echo "yes" >&6; }
23231 tst_proto_gethostbyname="yes"
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23236 $as_echo "no" >&6; }
23237 tst_proto_gethostbyname="no"
23244 if test "$tst_proto_gethostbyname" = "yes"; then
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
23246 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
23247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h. */
23251 $cares_includes_winsock2
23252 $cares_includes_netdb
23257 if(0 != gethostbyname(0))
23265 if ac_fn_c_try_compile "$LINENO"; then :
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23268 $as_echo "yes" >&6; }
23269 tst_compi_gethostbyname="yes"
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23274 $as_echo "no" >&6; }
23275 tst_compi_gethostbyname="no"
23278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23281 if test "$tst_compi_gethostbyname" = "yes"; then
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
23283 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
23284 if test "x$cares_disallow_gethostbyname" != "xyes"; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23286 $as_echo "yes" >&6; }
23287 tst_allow_gethostbyname="yes"
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23290 $as_echo "no" >&6; }
23291 tst_allow_gethostbyname="no"
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
23296 $as_echo_n "checking if gethostbyname might be used... " >&6; }
23297 if test "$tst_links_gethostbyname" = "yes" &&
23298 test "$tst_proto_gethostbyname" = "yes" &&
23299 test "$tst_compi_gethostbyname" = "yes" &&
23300 test "$tst_allow_gethostbyname" = "yes"; then
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23302 $as_echo "yes" >&6; }
23304 cat >>confdefs.h <<_ACEOF
23305 #define HAVE_GETHOSTBYNAME 1
23308 ac_cv_func_gethostbyname="yes"
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23311 $as_echo "no" >&6; }
23312 ac_cv_func_gethostbyname="no"
23316 cares_includes_unistd="\
23317 /* includes start */
23318 #ifdef HAVE_SYS_TYPES_H
23319 # include <sys/types.h>
23321 #ifdef HAVE_UNISTD_H
23322 # include <unistd.h>
23324 /* includes end */"
23325 for ac_header in sys/types.h unistd.h
23327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23328 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
23330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23331 cat >>confdefs.h <<_ACEOF
23332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23342 tst_links_gethostname="unknown"
23343 tst_proto_gethostname="unknown"
23344 tst_compi_gethostname="unknown"
23345 tst_allow_gethostname="unknown"
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
23348 $as_echo_n "checking if gethostname can be linked... " >&6; }
23349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23350 /* end confdefs.h. */
23353 $cares_includes_winsock2
23354 $cares_includes_unistd
23359 if(0 != gethostname(0, 0))
23367 if ac_fn_c_try_link "$LINENO"; then :
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23370 $as_echo "yes" >&6; }
23371 tst_links_gethostname="yes"
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23377 tst_links_gethostname="no"
23380 rm -f core conftest.err conftest.$ac_objext \
23381 conftest$ac_exeext conftest.$ac_ext
23383 if test "$tst_links_gethostname" = "yes"; then
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
23385 $as_echo_n "checking if gethostname is prototyped... " >&6; }
23386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23387 /* end confdefs.h. */
23389 $cares_includes_winsock2
23390 $cares_includes_unistd
23393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23394 $EGREP "gethostname" >/dev/null 2>&1; then :
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23397 $as_echo "yes" >&6; }
23398 tst_proto_gethostname="yes"
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 $as_echo "no" >&6; }
23404 tst_proto_gethostname="no"
23411 if test "$tst_proto_gethostname" = "yes"; then
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
23413 $as_echo_n "checking if gethostname is compilable... " >&6; }
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h. */
23418 $cares_includes_winsock2
23419 $cares_includes_unistd
23424 if(0 != gethostname(0, 0))
23432 if ac_fn_c_try_compile "$LINENO"; then :
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23435 $as_echo "yes" >&6; }
23436 tst_compi_gethostname="yes"
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23441 $as_echo "no" >&6; }
23442 tst_compi_gethostname="no"
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23448 if test "$tst_compi_gethostname" = "yes"; then
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
23450 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
23451 tst_gethostname_type_arg2="unknown"
23452 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
23453 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
23454 if test "$tst_gethostname_type_arg2" = "unknown"; then
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23459 $cares_includes_winsock2
23460 $cares_includes_unistd
23461 $cares_preprocess_callconv
23462 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
23467 if(0 != gethostname(0, 0))
23475 if ac_fn_c_try_compile "$LINENO"; then :
23477 tst_gethostname_type_arg2="$tst_arg2"
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
23485 $as_echo "$tst_gethostname_type_arg2" >&6; }
23486 if test "$tst_gethostname_type_arg2" != "unknown"; then
23488 cat >>confdefs.h <<_ACEOF
23489 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
23495 if test "$tst_compi_gethostname" = "yes"; then
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
23497 $as_echo_n "checking if gethostname usage allowed... " >&6; }
23498 if test "x$cares_disallow_gethostname" != "xyes"; then
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23500 $as_echo "yes" >&6; }
23501 tst_allow_gethostname="yes"
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23504 $as_echo "no" >&6; }
23505 tst_allow_gethostname="no"
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
23510 $as_echo_n "checking if gethostname might be used... " >&6; }
23511 if test "$tst_links_gethostname" = "yes" &&
23512 test "$tst_proto_gethostname" = "yes" &&
23513 test "$tst_compi_gethostname" = "yes" &&
23514 test "$tst_allow_gethostname" = "yes"; then
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23516 $as_echo "yes" >&6; }
23518 cat >>confdefs.h <<_ACEOF
23519 #define HAVE_GETHOSTNAME 1
23522 ac_cv_func_gethostname="yes"
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23525 $as_echo "no" >&6; }
23526 ac_cv_func_gethostname="no"
23531 tst_links_getservbyport_r="unknown"
23532 tst_proto_getservbyport_r="unknown"
23533 tst_compi_getservbyport_r="unknown"
23534 tst_allow_getservbyport_r="unknown"
23535 tst_nargs_getservbyport_r="unknown"
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
23538 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540 /* end confdefs.h. */
23543 #define getservbyport_r innocuous_getservbyport_r
23545 # include <limits.h>
23547 # include <assert.h>
23549 #undef getservbyport_r
23553 char getservbyport_r ();
23554 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
23560 return getservbyport_r ();
23566 if ac_fn_c_try_link "$LINENO"; then :
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23569 $as_echo "yes" >&6; }
23570 tst_links_getservbyport_r="yes"
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23575 $as_echo "no" >&6; }
23576 tst_links_getservbyport_r="no"
23579 rm -f core conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23582 if test "$tst_links_getservbyport_r" = "yes"; then
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
23584 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
23585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23586 /* end confdefs.h. */
23588 $cares_includes_netdb
23591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23592 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23595 $as_echo "yes" >&6; }
23596 tst_proto_getservbyport_r="yes"
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 $as_echo "no" >&6; }
23602 tst_proto_getservbyport_r="no"
23609 if test "$tst_proto_getservbyport_r" = "yes"; then
23610 if test "$tst_nargs_getservbyport_r" = "unknown"; then
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
23612 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
23613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614 /* end confdefs.h. */
23617 $cares_includes_netdb
23622 if(0 != getservbyport_r(0, 0, 0, 0))
23630 if ac_fn_c_try_compile "$LINENO"; then :
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23633 $as_echo "yes" >&6; }
23634 tst_compi_getservbyport_r="yes"
23635 tst_nargs_getservbyport_r="4"
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23640 $as_echo "no" >&6; }
23641 tst_compi_getservbyport_r="no"
23644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23646 if test "$tst_nargs_getservbyport_r" = "unknown"; then
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
23648 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23653 $cares_includes_netdb
23658 if(0 != getservbyport_r(0, 0, 0, 0, 0))
23666 if ac_fn_c_try_compile "$LINENO"; then :
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23669 $as_echo "yes" >&6; }
23670 tst_compi_getservbyport_r="yes"
23671 tst_nargs_getservbyport_r="5"
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23676 $as_echo "no" >&6; }
23677 tst_compi_getservbyport_r="no"
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 if test "$tst_nargs_getservbyport_r" = "unknown"; then
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
23684 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
23685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23686 /* end confdefs.h. */
23689 $cares_includes_netdb
23694 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
23702 if ac_fn_c_try_compile "$LINENO"; then :
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23705 $as_echo "yes" >&6; }
23706 tst_compi_getservbyport_r="yes"
23707 tst_nargs_getservbyport_r="6"
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23712 $as_echo "no" >&6; }
23713 tst_compi_getservbyport_r="no"
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
23719 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
23720 if test "$tst_compi_getservbyport_r" = "yes"; then
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23722 $as_echo "yes" >&6; }
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23725 $as_echo "no" >&6; }
23729 if test "$tst_compi_getservbyport_r" = "yes"; then
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
23731 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
23732 if test "x$cares_disallow_getservbyport_r" != "xyes"; then
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23734 $as_echo "yes" >&6; }
23735 tst_allow_getservbyport_r="yes"
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23738 $as_echo "no" >&6; }
23739 tst_allow_getservbyport_r="no"
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
23744 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
23745 if test "$tst_links_getservbyport_r" = "yes" &&
23746 test "$tst_proto_getservbyport_r" = "yes" &&
23747 test "$tst_compi_getservbyport_r" = "yes" &&
23748 test "$tst_allow_getservbyport_r" = "yes"; then
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23750 $as_echo "yes" >&6; }
23752 cat >>confdefs.h <<_ACEOF
23753 #define HAVE_GETSERVBYPORT_R 1
23757 cat >>confdefs.h <<_ACEOF
23758 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
23761 if test "$tst_nargs_getservbyport_r" -eq "4"; then
23763 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
23767 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
23770 ac_cv_func_getservbyport_r="yes"
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773 $as_echo "no" >&6; }
23774 ac_cv_func_getservbyport_r="no"
23778 cares_includes_arpa_inet="\
23779 /* includes start */
23780 #ifdef HAVE_SYS_TYPES_H
23781 # include <sys/types.h>
23783 #ifdef HAVE_SYS_SOCKET_H
23784 # include <sys/socket.h>
23786 #ifdef HAVE_NETINET_IN_H
23787 # include <netinet/in.h>
23789 #ifdef HAVE_ARPA_INET_H
23790 # include <arpa/inet.h>
23792 /* includes end */"
23793 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
23795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23796 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
23798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23799 cat >>confdefs.h <<_ACEOF
23800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23810 tst_links_inet_net_pton="unknown"
23811 tst_proto_inet_net_pton="unknown"
23812 tst_compi_inet_net_pton="unknown"
23813 tst_works_inet_net_pton="unknown"
23814 tst_allow_inet_net_pton="unknown"
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
23817 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h. */
23822 #define inet_net_pton innocuous_inet_net_pton
23824 # include <limits.h>
23826 # include <assert.h>
23828 #undef inet_net_pton
23832 char inet_net_pton ();
23833 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
23839 return inet_net_pton ();
23845 if ac_fn_c_try_link "$LINENO"; then :
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23848 $as_echo "yes" >&6; }
23849 tst_links_inet_net_pton="yes"
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23854 $as_echo "no" >&6; }
23855 tst_links_inet_net_pton="no"
23858 rm -f core conftest.err conftest.$ac_objext \
23859 conftest$ac_exeext conftest.$ac_ext
23861 if test "$tst_links_inet_net_pton" = "yes"; then
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
23863 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
23864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865 /* end confdefs.h. */
23867 $cares_includes_arpa_inet
23870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23871 $EGREP "inet_net_pton" >/dev/null 2>&1; then :
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23874 $as_echo "yes" >&6; }
23875 tst_proto_inet_net_pton="yes"
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23880 $as_echo "no" >&6; }
23881 tst_proto_inet_net_pton="no"
23888 if test "$tst_proto_inet_net_pton" = "yes"; then
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
23890 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
23891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h. */
23895 $cares_includes_arpa_inet
23900 if(0 != inet_net_pton(0, 0, 0, 0))
23908 if ac_fn_c_try_compile "$LINENO"; then :
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23911 $as_echo "yes" >&6; }
23912 tst_compi_inet_net_pton="yes"
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23917 $as_echo "no" >&6; }
23918 tst_compi_inet_net_pton="no"
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924 if test "x$cross_compiling" != "xyes" &&
23925 test "$tst_compi_inet_net_pton" = "yes"; then
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
23927 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
23928 if test "$cross_compiling" = yes; then :
23929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23931 as_fn_error $? "cannot run test program while cross compiling
23932 See \`config.log' for more details" "$LINENO" 5; }
23934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h. */
23938 $cares_includes_stdlib
23939 $cares_includes_arpa_inet
23940 $cares_includes_string
23945 unsigned char ipv6a[16+1];
23946 unsigned char ipv4a[4+1];
23947 const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
23948 const char *ipv6net2 = "::fffe:7f00:1";
23949 const char *ipv6net3 = "7f20:1::/64";
23950 const char *ipv6net4 = "7f20:1::/2147483649";
23951 const char *ipv4net1 = "192.168.100.1";
23952 const char *ipv4net2 = "192.168.100/32";
23953 const char *ipv4net3 = "192.168.100.1/2147483649";
23955 memset(ipv4a, 1, sizeof(ipv4a));
23956 if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
23957 exit(1); /* fail */
23959 if( (ipv4a[0x00] != 0xc0) ||
23960 (ipv4a[0x01] != 0xa8) ||
23961 (ipv4a[0x02] != 0x64) ||
23962 (ipv4a[0x03] != 0x01) ||
23963 (ipv4a[0x04] != 0x01) )
23964 exit(1); /* fail */
23966 memset(ipv4a, 1, sizeof(ipv4a));
23967 if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
23968 exit(1); /* fail */
23970 if( (ipv4a[0x00] != 0xc0) ||
23971 (ipv4a[0x01] != 0xa8) ||
23972 (ipv4a[0x02] != 0x64) ||
23973 (ipv4a[0x03] != 0x00) ||
23974 (ipv4a[0x04] != 0x01) )
23975 exit(1); /* fail */
23977 memset(ipv4a, 1, sizeof(ipv4a));
23978 if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
23979 exit(1); /* fail */
23981 memset(ipv6a, 1, sizeof(ipv6a));
23982 if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
23983 exit(1); /* fail */
23985 if( (ipv6a[0x00] != 0xfe) ||
23986 (ipv6a[0x01] != 0x80) ||
23987 (ipv6a[0x08] != 0x02) ||
23988 (ipv6a[0x09] != 0x14) ||
23989 (ipv6a[0x0a] != 0x4f) ||
23990 (ipv6a[0x0b] != 0xff) ||
23991 (ipv6a[0x0c] != 0xfe) ||
23992 (ipv6a[0x0d] != 0x0b) ||
23993 (ipv6a[0x0e] != 0x76) ||
23994 (ipv6a[0x0f] != 0xc8) ||
23995 (ipv6a[0x10] != 0x01) )
23996 exit(1); /* fail */
23998 if( (ipv6a[0x02] != 0x0) ||
23999 (ipv6a[0x03] != 0x0) ||
24000 (ipv6a[0x04] != 0x0) ||
24001 (ipv6a[0x05] != 0x0) ||
24002 (ipv6a[0x06] != 0x0) ||
24003 (ipv6a[0x07] != 0x0) )
24004 exit(1); /* fail */
24006 memset(ipv6a, 0, sizeof(ipv6a));
24007 ipv6a[0x10] = 0x01;
24008 if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
24009 exit(1); /* fail */
24011 if( (ipv6a[0x0a] != 0xff) ||
24012 (ipv6a[0x0b] != 0xfe) ||
24013 (ipv6a[0x0c] != 0x7f) ||
24014 (ipv6a[0x0f] != 0x01) ||
24015 (ipv6a[0x10] != 0x01) )
24016 exit(1); /* fail */
24018 if( (ipv6a[0x00] != 0x0) ||
24019 (ipv6a[0x01] != 0x0) ||
24020 (ipv6a[0x02] != 0x0) ||
24021 (ipv6a[0x03] != 0x0) ||
24022 (ipv6a[0x04] != 0x0) ||
24023 (ipv6a[0x05] != 0x0) ||
24024 (ipv6a[0x06] != 0x0) ||
24025 (ipv6a[0x07] != 0x0) ||
24026 (ipv6a[0x08] != 0x0) ||
24027 (ipv6a[0x09] != 0x0) ||
24028 (ipv6a[0x0d] != 0x0) ||
24029 (ipv6a[0x0e] != 0x0) )
24030 exit(1); /* fail */
24032 memset(ipv6a, 1, sizeof(ipv6a));
24033 if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
24034 exit(1); /* fail */
24035 if( (ipv6a[0x00] != 0x7f) ||
24036 (ipv6a[0x01] != 0x20) ||
24037 (ipv6a[0x03] != 0x01) ||
24038 (ipv6a[0x08] != 0x01) ||
24039 (ipv6a[0x09] != 0x01) ||
24040 (ipv6a[0x0a] != 0x01) ||
24041 (ipv6a[0x0b] != 0x01) ||
24042 (ipv6a[0x0c] != 0x01) ||
24043 (ipv6a[0x0d] != 0x01) ||
24044 (ipv6a[0x0e] != 0x01) ||
24045 (ipv6a[0x0f] != 0x01) ||
24046 (ipv6a[0x10] != 0x01) )
24047 exit(1); /* fail */
24048 if( (ipv6a[0x02] != 0x0) ||
24049 (ipv6a[0x04] != 0x0) ||
24050 (ipv6a[0x05] != 0x0) ||
24051 (ipv6a[0x06] != 0x0) ||
24052 (ipv6a[0x07] != 0x0) ||
24053 (ipv6a[0x07] != 0x0) )
24054 exit(1); /* fail */
24056 memset(ipv6a, 1, sizeof(ipv6a));
24057 if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
24058 exit(1); /* fail */
24067 if ac_fn_c_try_run "$LINENO"; then :
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24070 $as_echo "yes" >&6; }
24071 tst_works_inet_net_pton="yes"
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24076 $as_echo "no" >&6; }
24077 tst_works_inet_net_pton="no"
24080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24081 conftest.$ac_objext conftest.beam conftest.$ac_ext
24086 if test "$tst_compi_inet_net_pton" = "yes" &&
24087 test "$tst_works_inet_net_pton" != "no"; then
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
24089 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
24090 if test "x$cares_disallow_inet_net_pton" != "xyes"; then
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24092 $as_echo "yes" >&6; }
24093 tst_allow_inet_net_pton="yes"
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24096 $as_echo "no" >&6; }
24097 tst_allow_inet_net_pton="no"
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
24102 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
24103 if test "$tst_links_inet_net_pton" = "yes" &&
24104 test "$tst_proto_inet_net_pton" = "yes" &&
24105 test "$tst_compi_inet_net_pton" = "yes" &&
24106 test "$tst_allow_inet_net_pton" = "yes" &&
24107 test "$tst_works_inet_net_pton" != "no"; then
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24109 $as_echo "yes" >&6; }
24111 cat >>confdefs.h <<_ACEOF
24112 #define HAVE_INET_NET_PTON 1
24115 ac_cv_func_inet_net_pton="yes"
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24119 ac_cv_func_inet_net_pton="no"
24124 tst_links_inet_ntop="unknown"
24125 tst_proto_inet_ntop="unknown"
24126 tst_compi_inet_ntop="unknown"
24127 tst_works_inet_ntop="unknown"
24128 tst_allow_inet_ntop="unknown"
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
24131 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
24132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h. */
24136 #define inet_ntop innocuous_inet_ntop
24138 # include <limits.h>
24140 # include <assert.h>
24147 #if defined __stub_inet_ntop || defined __stub___inet_ntop
24153 return inet_ntop ();
24159 if ac_fn_c_try_link "$LINENO"; then :
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24162 $as_echo "yes" >&6; }
24163 tst_links_inet_ntop="yes"
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24168 $as_echo "no" >&6; }
24169 tst_links_inet_ntop="no"
24172 rm -f core conftest.err conftest.$ac_objext \
24173 conftest$ac_exeext conftest.$ac_ext
24175 if test "$tst_links_inet_ntop" = "yes"; then
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
24177 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
24178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24179 /* end confdefs.h. */
24181 $cares_includes_arpa_inet
24184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24185 $EGREP "inet_ntop" >/dev/null 2>&1; then :
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24188 $as_echo "yes" >&6; }
24189 tst_proto_inet_ntop="yes"
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24194 $as_echo "no" >&6; }
24195 tst_proto_inet_ntop="no"
24202 if test "$tst_proto_inet_ntop" = "yes"; then
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
24204 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
24205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206 /* end confdefs.h. */
24209 $cares_includes_arpa_inet
24214 if(0 != inet_ntop(0, 0, 0, 0))
24222 if ac_fn_c_try_compile "$LINENO"; then :
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24225 $as_echo "yes" >&6; }
24226 tst_compi_inet_ntop="yes"
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231 $as_echo "no" >&6; }
24232 tst_compi_inet_ntop="no"
24235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238 if test "x$cross_compiling" != "xyes" &&
24239 test "$tst_compi_inet_ntop" = "yes"; then
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
24241 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
24242 if test "$cross_compiling" = yes; then :
24243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24245 as_fn_error $? "cannot run test program while cross compiling
24246 See \`config.log' for more details" "$LINENO" 5; }
24248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249 /* end confdefs.h. */
24252 $cares_includes_stdlib
24253 $cares_includes_arpa_inet
24254 $cares_includes_string
24259 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
24260 char ipv4res[sizeof "255.255.255.255"];
24261 unsigned char ipv6a[26];
24262 unsigned char ipv4a[5];
24273 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
24275 exit(1); /* fail */
24276 if(ipv4ptr != ipv4res)
24277 exit(1); /* fail */
24279 exit(1); /* fail */
24280 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
24281 exit(1); /* fail */
24284 memset(ipv6a, 0, sizeof(ipv6a));
24297 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
24299 exit(1); /* fail */
24300 if(ipv6ptr != ipv6res)
24301 exit(1); /* fail */
24303 exit(1); /* fail */
24304 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
24305 exit(1); /* fail */
24314 if ac_fn_c_try_run "$LINENO"; then :
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24317 $as_echo "yes" >&6; }
24318 tst_works_inet_ntop="yes"
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323 $as_echo "no" >&6; }
24324 tst_works_inet_ntop="no"
24327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24328 conftest.$ac_objext conftest.beam conftest.$ac_ext
24333 if test "$tst_compi_inet_ntop" = "yes" &&
24334 test "$tst_works_inet_ntop" != "no"; then
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
24336 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
24337 if test "x$cares_disallow_inet_ntop" != "xyes"; then
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24339 $as_echo "yes" >&6; }
24340 tst_allow_inet_ntop="yes"
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24343 $as_echo "no" >&6; }
24344 tst_allow_inet_ntop="no"
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
24349 $as_echo_n "checking if inet_ntop might be used... " >&6; }
24350 if test "$tst_links_inet_ntop" = "yes" &&
24351 test "$tst_proto_inet_ntop" = "yes" &&
24352 test "$tst_compi_inet_ntop" = "yes" &&
24353 test "$tst_allow_inet_ntop" = "yes" &&
24354 test "$tst_works_inet_ntop" != "no"; then
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24356 $as_echo "yes" >&6; }
24358 cat >>confdefs.h <<_ACEOF
24359 #define HAVE_INET_NTOP 1
24362 ac_cv_func_inet_ntop="yes"
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24365 $as_echo "no" >&6; }
24366 ac_cv_func_inet_ntop="no"
24371 tst_links_inet_pton="unknown"
24372 tst_proto_inet_pton="unknown"
24373 tst_compi_inet_pton="unknown"
24374 tst_works_inet_pton="unknown"
24375 tst_allow_inet_pton="unknown"
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
24378 $as_echo_n "checking if inet_pton can be linked... " >&6; }
24379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24380 /* end confdefs.h. */
24383 #define inet_pton innocuous_inet_pton
24385 # include <limits.h>
24387 # include <assert.h>
24394 #if defined __stub_inet_pton || defined __stub___inet_pton
24400 return inet_pton ();
24406 if ac_fn_c_try_link "$LINENO"; then :
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24409 $as_echo "yes" >&6; }
24410 tst_links_inet_pton="yes"
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24415 $as_echo "no" >&6; }
24416 tst_links_inet_pton="no"
24419 rm -f core conftest.err conftest.$ac_objext \
24420 conftest$ac_exeext conftest.$ac_ext
24422 if test "$tst_links_inet_pton" = "yes"; then
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
24424 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
24425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24426 /* end confdefs.h. */
24428 $cares_includes_arpa_inet
24431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24432 $EGREP "inet_pton" >/dev/null 2>&1; then :
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24435 $as_echo "yes" >&6; }
24436 tst_proto_inet_pton="yes"
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441 $as_echo "no" >&6; }
24442 tst_proto_inet_pton="no"
24449 if test "$tst_proto_inet_pton" = "yes"; then
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
24451 $as_echo_n "checking if inet_pton is compilable... " >&6; }
24452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24453 /* end confdefs.h. */
24456 $cares_includes_arpa_inet
24461 if(0 != inet_pton(0, 0, 0))
24469 if ac_fn_c_try_compile "$LINENO"; then :
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24472 $as_echo "yes" >&6; }
24473 tst_compi_inet_pton="yes"
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24478 $as_echo "no" >&6; }
24479 tst_compi_inet_pton="no"
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24485 if test "x$cross_compiling" != "xyes" &&
24486 test "$tst_compi_inet_pton" = "yes"; then
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
24488 $as_echo_n "checking if inet_pton seems to work... " >&6; }
24489 if test "$cross_compiling" = yes; then :
24490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24492 as_fn_error $? "cannot run test program while cross compiling
24493 See \`config.log' for more details" "$LINENO" 5; }
24495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496 /* end confdefs.h. */
24499 $cares_includes_stdlib
24500 $cares_includes_arpa_inet
24501 $cares_includes_string
24506 unsigned char ipv6a[16+1];
24507 unsigned char ipv4a[4+1];
24508 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
24509 const char *ipv4src = "192.168.100.1";
24511 memset(ipv4a, 1, sizeof(ipv4a));
24512 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
24513 exit(1); /* fail */
24515 if( (ipv4a[0] != 0xc0) ||
24516 (ipv4a[1] != 0xa8) ||
24517 (ipv4a[2] != 0x64) ||
24518 (ipv4a[3] != 0x01) ||
24519 (ipv4a[4] != 0x01) )
24520 exit(1); /* fail */
24522 memset(ipv6a, 1, sizeof(ipv6a));
24523 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
24524 exit(1); /* fail */
24526 if( (ipv6a[0] != 0xfe) ||
24527 (ipv6a[1] != 0x80) ||
24528 (ipv6a[8] != 0x02) ||
24529 (ipv6a[9] != 0x14) ||
24530 (ipv6a[10] != 0x4f) ||
24531 (ipv6a[11] != 0xff) ||
24532 (ipv6a[12] != 0xfe) ||
24533 (ipv6a[13] != 0x0b) ||
24534 (ipv6a[14] != 0x76) ||
24535 (ipv6a[15] != 0xc8) ||
24536 (ipv6a[16] != 0x01) )
24537 exit(1); /* fail */
24539 if( (ipv6a[2] != 0x0) ||
24540 (ipv6a[3] != 0x0) ||
24541 (ipv6a[4] != 0x0) ||
24542 (ipv6a[5] != 0x0) ||
24543 (ipv6a[6] != 0x0) ||
24544 (ipv6a[7] != 0x0) )
24545 exit(1); /* fail */
24554 if ac_fn_c_try_run "$LINENO"; then :
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24557 $as_echo "yes" >&6; }
24558 tst_works_inet_pton="yes"
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24563 $as_echo "no" >&6; }
24564 tst_works_inet_pton="no"
24567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24568 conftest.$ac_objext conftest.beam conftest.$ac_ext
24573 if test "$tst_compi_inet_pton" = "yes" &&
24574 test "$tst_works_inet_pton" != "no"; then
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
24576 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
24577 if test "x$cares_disallow_inet_pton" != "xyes"; then
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24579 $as_echo "yes" >&6; }
24580 tst_allow_inet_pton="yes"
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24583 $as_echo "no" >&6; }
24584 tst_allow_inet_pton="no"
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
24589 $as_echo_n "checking if inet_pton might be used... " >&6; }
24590 if test "$tst_links_inet_pton" = "yes" &&
24591 test "$tst_proto_inet_pton" = "yes" &&
24592 test "$tst_compi_inet_pton" = "yes" &&
24593 test "$tst_allow_inet_pton" = "yes" &&
24594 test "$tst_works_inet_pton" != "no"; then
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24596 $as_echo "yes" >&6; }
24598 cat >>confdefs.h <<_ACEOF
24599 #define HAVE_INET_PTON 1
24602 ac_cv_func_inet_pton="yes"
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24605 $as_echo "no" >&6; }
24606 ac_cv_func_inet_pton="no"
24610 cares_includes_stropts="\
24611 /* includes start */
24612 #ifdef HAVE_SYS_TYPES_H
24613 # include <sys/types.h>
24615 #ifdef HAVE_UNISTD_H
24616 # include <unistd.h>
24618 #ifdef HAVE_SYS_SOCKET_H
24619 # include <sys/socket.h>
24621 #ifdef HAVE_SYS_IOCTL_H
24622 # include <sys/ioctl.h>
24624 #ifdef HAVE_STROPTS_H
24625 # include <stropts.h>
24627 /* includes end */"
24628 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
24630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24631 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
24633 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24634 cat >>confdefs.h <<_ACEOF
24635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24645 tst_links_ioctl="unknown"
24646 tst_proto_ioctl="unknown"
24647 tst_compi_ioctl="unknown"
24648 tst_allow_ioctl="unknown"
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
24651 $as_echo_n "checking if ioctl can be linked... " >&6; }
24652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24653 /* end confdefs.h. */
24656 #define ioctl innocuous_ioctl
24658 # include <limits.h>
24660 # include <assert.h>
24667 #if defined __stub_ioctl || defined __stub___ioctl
24679 if ac_fn_c_try_link "$LINENO"; then :
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24682 $as_echo "yes" >&6; }
24683 tst_links_ioctl="yes"
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24688 $as_echo "no" >&6; }
24689 tst_links_ioctl="no"
24692 rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24695 if test "$tst_links_ioctl" = "yes"; then
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
24697 $as_echo_n "checking if ioctl is prototyped... " >&6; }
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h. */
24701 $cares_includes_stropts
24704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24705 $EGREP "ioctl" >/dev/null 2>&1; then :
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24708 $as_echo "yes" >&6; }
24709 tst_proto_ioctl="yes"
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24714 $as_echo "no" >&6; }
24715 tst_proto_ioctl="no"
24722 if test "$tst_proto_ioctl" = "yes"; then
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
24724 $as_echo_n "checking if ioctl is compilable... " >&6; }
24725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24726 /* end confdefs.h. */
24729 $cares_includes_stropts
24734 if(0 != ioctl(0, 0, 0))
24742 if ac_fn_c_try_compile "$LINENO"; then :
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24745 $as_echo "yes" >&6; }
24746 tst_compi_ioctl="yes"
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24751 $as_echo "no" >&6; }
24752 tst_compi_ioctl="no"
24755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 if test "$tst_compi_ioctl" = "yes"; then
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
24760 $as_echo_n "checking if ioctl usage allowed... " >&6; }
24761 if test "x$cares_disallow_ioctl" != "xyes"; then
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24763 $as_echo "yes" >&6; }
24764 tst_allow_ioctl="yes"
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24767 $as_echo "no" >&6; }
24768 tst_allow_ioctl="no"
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
24773 $as_echo_n "checking if ioctl might be used... " >&6; }
24774 if test "$tst_links_ioctl" = "yes" &&
24775 test "$tst_proto_ioctl" = "yes" &&
24776 test "$tst_compi_ioctl" = "yes" &&
24777 test "$tst_allow_ioctl" = "yes"; then
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24779 $as_echo "yes" >&6; }
24781 cat >>confdefs.h <<_ACEOF
24782 #define HAVE_IOCTL 1
24785 ac_cv_func_ioctl="yes"
24788 tst_compi_ioctl_fionbio="unknown"
24789 tst_allow_ioctl_fionbio="unknown"
24791 if test "$ac_cv_func_ioctl" = "yes"; then
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
24793 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h. */
24798 $cares_includes_stropts
24804 if(0 != ioctl(0, FIONBIO, &flags))
24812 if ac_fn_c_try_compile "$LINENO"; then :
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24815 $as_echo "yes" >&6; }
24816 tst_compi_ioctl_fionbio="yes"
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24821 $as_echo "no" >&6; }
24822 tst_compi_ioctl_fionbio="no"
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 if test "$tst_compi_ioctl_fionbio" = "yes"; then
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
24830 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
24831 if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24833 $as_echo "yes" >&6; }
24834 tst_allow_ioctl_fionbio="yes"
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24837 $as_echo "no" >&6; }
24838 tst_allow_ioctl_fionbio="no"
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
24843 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
24844 if test "$tst_compi_ioctl_fionbio" = "yes" &&
24845 test "$tst_allow_ioctl_fionbio" = "yes"; then
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24847 $as_echo "yes" >&6; }
24849 cat >>confdefs.h <<_ACEOF
24850 #define HAVE_IOCTL_FIONBIO 1
24853 ac_cv_func_ioctl_fionbio="yes"
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24857 ac_cv_func_ioctl_fionbio="no"
24862 tst_compi_ioctl_siocgifaddr="unknown"
24863 tst_allow_ioctl_siocgifaddr="unknown"
24865 if test "$ac_cv_func_ioctl" = "yes"; then
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
24867 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h. */
24872 $cares_includes_stropts
24873 #include <net/if.h>
24879 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
24887 if ac_fn_c_try_compile "$LINENO"; then :
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24890 $as_echo "yes" >&6; }
24891 tst_compi_ioctl_siocgifaddr="yes"
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24896 $as_echo "no" >&6; }
24897 tst_compi_ioctl_siocgifaddr="no"
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
24905 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
24906 if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24908 $as_echo "yes" >&6; }
24909 tst_allow_ioctl_siocgifaddr="yes"
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24912 $as_echo "no" >&6; }
24913 tst_allow_ioctl_siocgifaddr="no"
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
24918 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
24919 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
24920 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24922 $as_echo "yes" >&6; }
24924 cat >>confdefs.h <<_ACEOF
24925 #define HAVE_IOCTL_SIOCGIFADDR 1
24928 ac_cv_func_ioctl_siocgifaddr="yes"
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24931 $as_echo "no" >&6; }
24932 ac_cv_func_ioctl_siocgifaddr="no"
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24937 $as_echo "no" >&6; }
24938 ac_cv_func_ioctl="no"
24943 tst_links_ioctlsocket="unknown"
24944 tst_proto_ioctlsocket="unknown"
24945 tst_compi_ioctlsocket="unknown"
24946 tst_allow_ioctlsocket="unknown"
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
24949 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
24950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24951 /* end confdefs.h. */
24954 $cares_includes_winsock2
24959 if(0 != ioctlsocket(0, 0, 0))
24967 if ac_fn_c_try_link "$LINENO"; then :
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24970 $as_echo "yes" >&6; }
24971 tst_links_ioctlsocket="yes"
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24976 $as_echo "no" >&6; }
24977 tst_links_ioctlsocket="no"
24980 rm -f core conftest.err conftest.$ac_objext \
24981 conftest$ac_exeext conftest.$ac_ext
24983 if test "$tst_links_ioctlsocket" = "yes"; then
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
24985 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
24986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h. */
24989 $cares_includes_winsock2
24992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24993 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24996 $as_echo "yes" >&6; }
24997 tst_proto_ioctlsocket="yes"
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25002 $as_echo "no" >&6; }
25003 tst_proto_ioctlsocket="no"
25010 if test "$tst_proto_ioctlsocket" = "yes"; then
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
25012 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
25013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25014 /* end confdefs.h. */
25017 $cares_includes_winsock2
25022 if(0 != ioctlsocket(0, 0, 0))
25030 if ac_fn_c_try_compile "$LINENO"; then :
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25033 $as_echo "yes" >&6; }
25034 tst_compi_ioctlsocket="yes"
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25039 $as_echo "no" >&6; }
25040 tst_compi_ioctlsocket="no"
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046 if test "$tst_compi_ioctlsocket" = "yes"; then
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
25048 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
25049 if test "x$cares_disallow_ioctlsocket" != "xyes"; then
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25051 $as_echo "yes" >&6; }
25052 tst_allow_ioctlsocket="yes"
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25055 $as_echo "no" >&6; }
25056 tst_allow_ioctlsocket="no"
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
25061 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
25062 if test "$tst_links_ioctlsocket" = "yes" &&
25063 test "$tst_proto_ioctlsocket" = "yes" &&
25064 test "$tst_compi_ioctlsocket" = "yes" &&
25065 test "$tst_allow_ioctlsocket" = "yes"; then
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25067 $as_echo "yes" >&6; }
25069 cat >>confdefs.h <<_ACEOF
25070 #define HAVE_IOCTLSOCKET 1
25073 ac_cv_func_ioctlsocket="yes"
25076 tst_compi_ioctlsocket_fionbio="unknown"
25077 tst_allow_ioctlsocket_fionbio="unknown"
25079 if test "$ac_cv_func_ioctlsocket" = "yes"; then
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
25081 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
25082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25083 /* end confdefs.h. */
25086 $cares_includes_winsock2
25092 if(0 != ioctlsocket(0, FIONBIO, &flags))
25100 if ac_fn_c_try_compile "$LINENO"; then :
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25103 $as_echo "yes" >&6; }
25104 tst_compi_ioctlsocket_fionbio="yes"
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25109 $as_echo "no" >&6; }
25110 tst_compi_ioctlsocket_fionbio="no"
25113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
25118 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
25119 if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25121 $as_echo "yes" >&6; }
25122 tst_allow_ioctlsocket_fionbio="yes"
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25125 $as_echo "no" >&6; }
25126 tst_allow_ioctlsocket_fionbio="no"
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
25131 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
25132 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
25133 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25135 $as_echo "yes" >&6; }
25137 cat >>confdefs.h <<_ACEOF
25138 #define HAVE_IOCTLSOCKET_FIONBIO 1
25141 ac_cv_func_ioctlsocket_fionbio="yes"
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25144 $as_echo "no" >&6; }
25145 ac_cv_func_ioctlsocket_fionbio="no"
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 $as_echo "no" >&6; }
25151 ac_cv_func_ioctlsocket="no"
25156 tst_links_ioctlsocket_camel="unknown"
25157 tst_proto_ioctlsocket_camel="unknown"
25158 tst_compi_ioctlsocket_camel="unknown"
25159 tst_allow_ioctlsocket_camel="unknown"
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
25162 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
25163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h. */
25167 #define IoctlSocket innocuous_IoctlSocket
25169 # include <limits.h>
25171 # include <assert.h>
25177 char IoctlSocket ();
25178 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
25184 return IoctlSocket ();
25190 if ac_fn_c_try_link "$LINENO"; then :
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25193 $as_echo "yes" >&6; }
25194 tst_links_ioctlsocket_camel="yes"
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25199 $as_echo "no" >&6; }
25200 tst_links_ioctlsocket_camel="no"
25203 rm -f core conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
25206 if test "$tst_links_ioctlsocket_camel" = "yes"; then
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
25208 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
25209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h. */
25212 $cares_includes_stropts
25215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25216 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25219 $as_echo "yes" >&6; }
25220 tst_proto_ioctlsocket_camel="yes"
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225 $as_echo "no" >&6; }
25226 tst_proto_ioctlsocket_camel="no"
25233 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
25235 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
25236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h. */
25240 $cares_includes_stropts
25245 if(0 != IoctlSocket(0, 0, 0))
25253 if ac_fn_c_try_compile "$LINENO"; then :
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25256 $as_echo "yes" >&6; }
25257 tst_compi_ioctlsocket_camel="yes"
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25262 $as_echo "no" >&6; }
25263 tst_compi_ioctlsocket_camel="no"
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
25271 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
25272 if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25274 $as_echo "yes" >&6; }
25275 tst_allow_ioctlsocket_camel="yes"
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25278 $as_echo "no" >&6; }
25279 tst_allow_ioctlsocket_camel="no"
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
25284 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
25285 if test "$tst_links_ioctlsocket_camel" = "yes" &&
25286 test "$tst_proto_ioctlsocket_camel" = "yes" &&
25287 test "$tst_compi_ioctlsocket_camel" = "yes" &&
25288 test "$tst_allow_ioctlsocket_camel" = "yes"; then
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25290 $as_echo "yes" >&6; }
25292 cat >>confdefs.h <<_ACEOF
25293 #define HAVE_IOCTLSOCKET_CAMEL 1
25296 ac_cv_func_ioctlsocket_camel="yes"
25299 tst_compi_ioctlsocket_camel_fionbio="unknown"
25300 tst_allow_ioctlsocket_camel_fionbio="unknown"
25302 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
25304 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
25305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306 /* end confdefs.h. */
25309 $cares_includes_stropts
25315 if(0 != ioctlsocket(0, FIONBIO, &flags))
25323 if ac_fn_c_try_compile "$LINENO"; then :
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25326 $as_echo "yes" >&6; }
25327 tst_compi_ioctlsocket_camel_fionbio="yes"
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25332 $as_echo "no" >&6; }
25333 tst_compi_ioctlsocket_camel_fionbio="no"
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25339 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
25341 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
25342 if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25344 $as_echo "yes" >&6; }
25345 tst_allow_ioctlsocket_camel_fionbio="yes"
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25348 $as_echo "no" >&6; }
25349 tst_allow_ioctlsocket_camel_fionbio="no"
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
25354 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
25355 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
25356 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25358 $as_echo "yes" >&6; }
25360 cat >>confdefs.h <<_ACEOF
25361 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
25364 ac_cv_func_ioctlsocket_camel_fionbio="yes"
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25367 $as_echo "no" >&6; }
25368 ac_cv_func_ioctlsocket_camel_fionbio="no"
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25373 $as_echo "no" >&6; }
25374 ac_cv_func_ioctlsocket_camel="no"
25379 tst_links_setsockopt="unknown"
25380 tst_proto_setsockopt="unknown"
25381 tst_compi_setsockopt="unknown"
25382 tst_allow_setsockopt="unknown"
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
25385 $as_echo_n "checking if setsockopt can be linked... " >&6; }
25386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25387 /* end confdefs.h. */
25390 $cares_includes_winsock2
25391 $cares_includes_sys_socket
25396 if(0 != setsockopt(0, 0, 0, 0, 0))
25404 if ac_fn_c_try_link "$LINENO"; then :
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25407 $as_echo "yes" >&6; }
25408 tst_links_setsockopt="yes"
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25413 $as_echo "no" >&6; }
25414 tst_links_setsockopt="no"
25417 rm -f core conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
25420 if test "$tst_links_setsockopt" = "yes"; then
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
25422 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h. */
25426 $cares_includes_winsock2
25427 $cares_includes_sys_socket
25430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25431 $EGREP "setsockopt" >/dev/null 2>&1; then :
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25434 $as_echo "yes" >&6; }
25435 tst_proto_setsockopt="yes"
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25440 $as_echo "no" >&6; }
25441 tst_proto_setsockopt="no"
25448 if test "$tst_proto_setsockopt" = "yes"; then
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
25450 $as_echo_n "checking if setsockopt is compilable... " >&6; }
25451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25452 /* end confdefs.h. */
25455 $cares_includes_winsock2
25456 $cares_includes_sys_socket
25461 if(0 != setsockopt(0, 0, 0, 0, 0))
25469 if ac_fn_c_try_compile "$LINENO"; then :
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25472 $as_echo "yes" >&6; }
25473 tst_compi_setsockopt="yes"
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25478 $as_echo "no" >&6; }
25479 tst_compi_setsockopt="no"
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 if test "$tst_compi_setsockopt" = "yes"; then
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
25487 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
25488 if test "x$cares_disallow_setsockopt" != "xyes"; then
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25490 $as_echo "yes" >&6; }
25491 tst_allow_setsockopt="yes"
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25494 $as_echo "no" >&6; }
25495 tst_allow_setsockopt="no"
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
25500 $as_echo_n "checking if setsockopt might be used... " >&6; }
25501 if test "$tst_links_setsockopt" = "yes" &&
25502 test "$tst_proto_setsockopt" = "yes" &&
25503 test "$tst_compi_setsockopt" = "yes" &&
25504 test "$tst_allow_setsockopt" = "yes"; then
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25506 $as_echo "yes" >&6; }
25508 cat >>confdefs.h <<_ACEOF
25509 #define HAVE_SETSOCKOPT 1
25512 ac_cv_func_setsockopt="yes"
25515 tst_compi_setsockopt_so_nonblock="unknown"
25516 tst_allow_setsockopt_so_nonblock="unknown"
25518 if test "$ac_cv_func_setsockopt" = "yes"; then
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
25520 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25525 $cares_includes_winsock2
25526 $cares_includes_sys_socket
25531 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
25539 if ac_fn_c_try_compile "$LINENO"; then :
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25542 $as_echo "yes" >&6; }
25543 tst_compi_setsockopt_so_nonblock="yes"
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25548 $as_echo "no" >&6; }
25549 tst_compi_setsockopt_so_nonblock="no"
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
25557 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
25558 if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25560 $as_echo "yes" >&6; }
25561 tst_allow_setsockopt_so_nonblock="yes"
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25564 $as_echo "no" >&6; }
25565 tst_allow_setsockopt_so_nonblock="no"
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
25570 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
25571 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
25572 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25574 $as_echo "yes" >&6; }
25576 cat >>confdefs.h <<_ACEOF
25577 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
25580 ac_cv_func_setsockopt_so_nonblock="yes"
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25583 $as_echo "no" >&6; }
25584 ac_cv_func_setsockopt_so_nonblock="no"
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25589 $as_echo "no" >&6; }
25590 ac_cv_func_setsockopt="no"
25595 tst_links_socket="unknown"
25596 tst_proto_socket="unknown"
25597 tst_compi_socket="unknown"
25598 tst_allow_socket="unknown"
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
25601 $as_echo_n "checking if socket can be linked... " >&6; }
25602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25603 /* end confdefs.h. */
25606 $cares_includes_winsock2
25607 $cares_includes_sys_socket
25608 $cares_includes_socket
25613 if(0 != socket(0, 0, 0))
25621 if ac_fn_c_try_link "$LINENO"; then :
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }
25625 tst_links_socket="yes"
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630 $as_echo "no" >&6; }
25631 tst_links_socket="no"
25634 rm -f core conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
25637 if test "$tst_links_socket" = "yes"; then
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
25639 $as_echo_n "checking if socket is prototyped... " >&6; }
25640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641 /* end confdefs.h. */
25643 $cares_includes_winsock2
25644 $cares_includes_sys_socket
25645 $cares_includes_socket
25648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25649 $EGREP "socket" >/dev/null 2>&1; then :
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25652 $as_echo "yes" >&6; }
25653 tst_proto_socket="yes"
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25658 $as_echo "no" >&6; }
25659 tst_proto_socket="no"
25666 if test "$tst_proto_socket" = "yes"; then
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
25668 $as_echo_n "checking if socket is compilable... " >&6; }
25669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h. */
25673 $cares_includes_winsock2
25674 $cares_includes_sys_socket
25675 $cares_includes_socket
25680 if(0 != socket(0, 0, 0))
25688 if ac_fn_c_try_compile "$LINENO"; then :
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25691 $as_echo "yes" >&6; }
25692 tst_compi_socket="yes"
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25697 $as_echo "no" >&6; }
25698 tst_compi_socket="no"
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25704 if test "$tst_compi_socket" = "yes"; then
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
25706 $as_echo_n "checking if socket usage allowed... " >&6; }
25707 if test "x$cares_disallow_socket" != "xyes"; then
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25709 $as_echo "yes" >&6; }
25710 tst_allow_socket="yes"
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713 $as_echo "no" >&6; }
25714 tst_allow_socket="no"
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
25719 $as_echo_n "checking if socket might be used... " >&6; }
25720 if test "$tst_links_socket" = "yes" &&
25721 test "$tst_proto_socket" = "yes" &&
25722 test "$tst_compi_socket" = "yes" &&
25723 test "$tst_allow_socket" = "yes"; then
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25725 $as_echo "yes" >&6; }
25727 cat >>confdefs.h <<_ACEOF
25728 #define HAVE_SOCKET 1
25731 ac_cv_func_socket="yes"
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25734 $as_echo "no" >&6; }
25735 ac_cv_func_socket="no"
25740 tst_links_strcasecmp="unknown"
25741 tst_proto_strcasecmp="unknown"
25742 tst_compi_strcasecmp="unknown"
25743 tst_allow_strcasecmp="unknown"
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
25746 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
25747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25748 /* end confdefs.h. */
25751 #define strcasecmp innocuous_strcasecmp
25753 # include <limits.h>
25755 # include <assert.h>
25761 char strcasecmp ();
25762 #if defined __stub_strcasecmp || defined __stub___strcasecmp
25768 return strcasecmp ();
25774 if ac_fn_c_try_link "$LINENO"; then :
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25777 $as_echo "yes" >&6; }
25778 tst_links_strcasecmp="yes"
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25783 $as_echo "no" >&6; }
25784 tst_links_strcasecmp="no"
25787 rm -f core conftest.err conftest.$ac_objext \
25788 conftest$ac_exeext conftest.$ac_ext
25790 if test "$tst_links_strcasecmp" = "yes"; then
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
25792 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
25793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25794 /* end confdefs.h. */
25796 $cares_includes_string
25799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25800 $EGREP "strcasecmp" >/dev/null 2>&1; then :
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25803 $as_echo "yes" >&6; }
25804 tst_proto_strcasecmp="yes"
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25809 $as_echo "no" >&6; }
25810 tst_proto_strcasecmp="no"
25817 if test "$tst_proto_strcasecmp" = "yes"; then
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
25819 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
25820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25821 /* end confdefs.h. */
25824 $cares_includes_string
25829 if(0 != strcasecmp(0, 0))
25837 if ac_fn_c_try_compile "$LINENO"; then :
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25840 $as_echo "yes" >&6; }
25841 tst_compi_strcasecmp="yes"
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25846 $as_echo "no" >&6; }
25847 tst_compi_strcasecmp="no"
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 if test "$tst_compi_strcasecmp" = "yes"; then
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
25855 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
25856 if test "x$cares_disallow_strcasecmp" != "xyes"; then
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25858 $as_echo "yes" >&6; }
25859 tst_allow_strcasecmp="yes"
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25862 $as_echo "no" >&6; }
25863 tst_allow_strcasecmp="no"
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
25868 $as_echo_n "checking if strcasecmp might be used... " >&6; }
25869 if test "$tst_links_strcasecmp" = "yes" &&
25870 test "$tst_proto_strcasecmp" = "yes" &&
25871 test "$tst_compi_strcasecmp" = "yes" &&
25872 test "$tst_allow_strcasecmp" = "yes"; then
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25874 $as_echo "yes" >&6; }
25876 cat >>confdefs.h <<_ACEOF
25877 #define HAVE_STRCASECMP 1
25880 ac_cv_func_strcasecmp="yes"
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25883 $as_echo "no" >&6; }
25884 ac_cv_func_strcasecmp="no"
25889 tst_links_strcmpi="unknown"
25890 tst_proto_strcmpi="unknown"
25891 tst_compi_strcmpi="unknown"
25892 tst_allow_strcmpi="unknown"
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
25895 $as_echo_n "checking if strcmpi can be linked... " >&6; }
25896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h. */
25900 #define strcmpi innocuous_strcmpi
25902 # include <limits.h>
25904 # include <assert.h>
25911 #if defined __stub_strcmpi || defined __stub___strcmpi
25923 if ac_fn_c_try_link "$LINENO"; then :
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25926 $as_echo "yes" >&6; }
25927 tst_links_strcmpi="yes"
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25932 $as_echo "no" >&6; }
25933 tst_links_strcmpi="no"
25936 rm -f core conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
25939 if test "$tst_links_strcmpi" = "yes"; then
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
25941 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
25942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25943 /* end confdefs.h. */
25945 $cares_includes_string
25948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25949 $EGREP "strcmpi" >/dev/null 2>&1; then :
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25952 $as_echo "yes" >&6; }
25953 tst_proto_strcmpi="yes"
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25958 $as_echo "no" >&6; }
25959 tst_proto_strcmpi="no"
25966 if test "$tst_proto_strcmpi" = "yes"; then
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
25968 $as_echo_n "checking if strcmpi is compilable... " >&6; }
25969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970 /* end confdefs.h. */
25973 $cares_includes_string
25978 if(0 != strcmpi(0, 0))
25986 if ac_fn_c_try_compile "$LINENO"; then :
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25989 $as_echo "yes" >&6; }
25990 tst_compi_strcmpi="yes"
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
25996 tst_compi_strcmpi="no"
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26002 if test "$tst_compi_strcmpi" = "yes"; then
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
26004 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
26005 if test "x$cares_disallow_strcmpi" != "xyes"; then
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26007 $as_echo "yes" >&6; }
26008 tst_allow_strcmpi="yes"
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26011 $as_echo "no" >&6; }
26012 tst_allow_strcmpi="no"
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
26017 $as_echo_n "checking if strcmpi might be used... " >&6; }
26018 if test "$tst_links_strcmpi" = "yes" &&
26019 test "$tst_proto_strcmpi" = "yes" &&
26020 test "$tst_compi_strcmpi" = "yes" &&
26021 test "$tst_allow_strcmpi" = "yes"; then
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26023 $as_echo "yes" >&6; }
26025 cat >>confdefs.h <<_ACEOF
26026 #define HAVE_STRCMPI 1
26029 ac_cv_func_strcmpi="yes"
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26032 $as_echo "no" >&6; }
26033 ac_cv_func_strcmpi="no"
26038 tst_links_strdup="unknown"
26039 tst_proto_strdup="unknown"
26040 tst_compi_strdup="unknown"
26041 tst_allow_strdup="unknown"
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
26044 $as_echo_n "checking if strdup can be linked... " >&6; }
26045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26046 /* end confdefs.h. */
26049 #define strdup innocuous_strdup
26051 # include <limits.h>
26053 # include <assert.h>
26060 #if defined __stub_strdup || defined __stub___strdup
26072 if ac_fn_c_try_link "$LINENO"; then :
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26075 $as_echo "yes" >&6; }
26076 tst_links_strdup="yes"
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26081 $as_echo "no" >&6; }
26082 tst_links_strdup="no"
26085 rm -f core conftest.err conftest.$ac_objext \
26086 conftest$ac_exeext conftest.$ac_ext
26088 if test "$tst_links_strdup" = "yes"; then
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
26090 $as_echo_n "checking if strdup is prototyped... " >&6; }
26091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092 /* end confdefs.h. */
26094 $cares_includes_string
26097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26098 $EGREP "strdup" >/dev/null 2>&1; then :
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26101 $as_echo "yes" >&6; }
26102 tst_proto_strdup="yes"
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26108 tst_proto_strdup="no"
26115 if test "$tst_proto_strdup" = "yes"; then
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
26117 $as_echo_n "checking if strdup is compilable... " >&6; }
26118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26119 /* end confdefs.h. */
26122 $cares_includes_string
26135 if ac_fn_c_try_compile "$LINENO"; then :
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26138 $as_echo "yes" >&6; }
26139 tst_compi_strdup="yes"
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26144 $as_echo "no" >&6; }
26145 tst_compi_strdup="no"
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151 if test "$tst_compi_strdup" = "yes"; then
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
26153 $as_echo_n "checking if strdup usage allowed... " >&6; }
26154 if test "x$cares_disallow_strdup" != "xyes"; then
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26156 $as_echo "yes" >&6; }
26157 tst_allow_strdup="yes"
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26160 $as_echo "no" >&6; }
26161 tst_allow_strdup="no"
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
26166 $as_echo_n "checking if strdup might be used... " >&6; }
26167 if test "$tst_links_strdup" = "yes" &&
26168 test "$tst_proto_strdup" = "yes" &&
26169 test "$tst_compi_strdup" = "yes" &&
26170 test "$tst_allow_strdup" = "yes"; then
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26172 $as_echo "yes" >&6; }
26174 cat >>confdefs.h <<_ACEOF
26175 #define HAVE_STRDUP 1
26178 ac_cv_func_strdup="yes"
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26181 $as_echo "no" >&6; }
26182 ac_cv_func_strdup="no"
26187 tst_links_stricmp="unknown"
26188 tst_proto_stricmp="unknown"
26189 tst_compi_stricmp="unknown"
26190 tst_allow_stricmp="unknown"
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
26193 $as_echo_n "checking if stricmp can be linked... " >&6; }
26194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26195 /* end confdefs.h. */
26198 #define stricmp innocuous_stricmp
26200 # include <limits.h>
26202 # include <assert.h>
26209 #if defined __stub_stricmp || defined __stub___stricmp
26221 if ac_fn_c_try_link "$LINENO"; then :
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26224 $as_echo "yes" >&6; }
26225 tst_links_stricmp="yes"
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26230 $as_echo "no" >&6; }
26231 tst_links_stricmp="no"
26234 rm -f core conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
26237 if test "$tst_links_stricmp" = "yes"; then
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
26239 $as_echo_n "checking if stricmp is prototyped... " >&6; }
26240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26241 /* end confdefs.h. */
26243 $cares_includes_string
26246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26247 $EGREP "stricmp" >/dev/null 2>&1; then :
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26250 $as_echo "yes" >&6; }
26251 tst_proto_stricmp="yes"
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26256 $as_echo "no" >&6; }
26257 tst_proto_stricmp="no"
26264 if test "$tst_proto_stricmp" = "yes"; then
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
26266 $as_echo_n "checking if stricmp is compilable... " >&6; }
26267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268 /* end confdefs.h. */
26271 $cares_includes_string
26276 if(0 != stricmp(0, 0))
26284 if ac_fn_c_try_compile "$LINENO"; then :
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26287 $as_echo "yes" >&6; }
26288 tst_compi_stricmp="yes"
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26293 $as_echo "no" >&6; }
26294 tst_compi_stricmp="no"
26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26300 if test "$tst_compi_stricmp" = "yes"; then
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
26302 $as_echo_n "checking if stricmp usage allowed... " >&6; }
26303 if test "x$cares_disallow_stricmp" != "xyes"; then
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26305 $as_echo "yes" >&6; }
26306 tst_allow_stricmp="yes"
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26309 $as_echo "no" >&6; }
26310 tst_allow_stricmp="no"
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
26315 $as_echo_n "checking if stricmp might be used... " >&6; }
26316 if test "$tst_links_stricmp" = "yes" &&
26317 test "$tst_proto_stricmp" = "yes" &&
26318 test "$tst_compi_stricmp" = "yes" &&
26319 test "$tst_allow_stricmp" = "yes"; then
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26321 $as_echo "yes" >&6; }
26323 cat >>confdefs.h <<_ACEOF
26324 #define HAVE_STRICMP 1
26327 ac_cv_func_stricmp="yes"
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26330 $as_echo "no" >&6; }
26331 ac_cv_func_stricmp="no"
26336 tst_links_strncasecmp="unknown"
26337 tst_proto_strncasecmp="unknown"
26338 tst_compi_strncasecmp="unknown"
26339 tst_allow_strncasecmp="unknown"
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
26342 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
26343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26344 /* end confdefs.h. */
26347 #define strncasecmp innocuous_strncasecmp
26349 # include <limits.h>
26351 # include <assert.h>
26357 char strncasecmp ();
26358 #if defined __stub_strncasecmp || defined __stub___strncasecmp
26364 return strncasecmp ();
26370 if ac_fn_c_try_link "$LINENO"; then :
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26373 $as_echo "yes" >&6; }
26374 tst_links_strncasecmp="yes"
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26379 $as_echo "no" >&6; }
26380 tst_links_strncasecmp="no"
26383 rm -f core conftest.err conftest.$ac_objext \
26384 conftest$ac_exeext conftest.$ac_ext
26386 if test "$tst_links_strncasecmp" = "yes"; then
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
26388 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
26389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26390 /* end confdefs.h. */
26392 $cares_includes_string
26395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26396 $EGREP "strncasecmp" >/dev/null 2>&1; then :
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26399 $as_echo "yes" >&6; }
26400 tst_proto_strncasecmp="yes"
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26405 $as_echo "no" >&6; }
26406 tst_proto_strncasecmp="no"
26413 if test "$tst_proto_strncasecmp" = "yes"; then
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
26415 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
26416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26417 /* end confdefs.h. */
26420 $cares_includes_string
26425 if(0 != strncasecmp(0, 0, 0))
26433 if ac_fn_c_try_compile "$LINENO"; then :
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26436 $as_echo "yes" >&6; }
26437 tst_compi_strncasecmp="yes"
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26442 $as_echo "no" >&6; }
26443 tst_compi_strncasecmp="no"
26446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26449 if test "$tst_compi_strncasecmp" = "yes"; then
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
26451 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
26452 if test "x$cares_disallow_strncasecmp" != "xyes"; then
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26454 $as_echo "yes" >&6; }
26455 tst_allow_strncasecmp="yes"
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26458 $as_echo "no" >&6; }
26459 tst_allow_strncasecmp="no"
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
26464 $as_echo_n "checking if strncasecmp might be used... " >&6; }
26465 if test "$tst_links_strncasecmp" = "yes" &&
26466 test "$tst_proto_strncasecmp" = "yes" &&
26467 test "$tst_compi_strncasecmp" = "yes" &&
26468 test "$tst_allow_strncasecmp" = "yes"; then
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26470 $as_echo "yes" >&6; }
26472 cat >>confdefs.h <<_ACEOF
26473 #define HAVE_STRNCASECMP 1
26476 ac_cv_func_strncasecmp="yes"
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26479 $as_echo "no" >&6; }
26480 ac_cv_func_strncasecmp="no"
26485 tst_links_strncmpi="unknown"
26486 tst_proto_strncmpi="unknown"
26487 tst_compi_strncmpi="unknown"
26488 tst_allow_strncmpi="unknown"
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
26491 $as_echo_n "checking if strncmpi can be linked... " >&6; }
26492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h. */
26496 #define strncmpi innocuous_strncmpi
26498 # include <limits.h>
26500 # include <assert.h>
26507 #if defined __stub_strncmpi || defined __stub___strncmpi
26513 return strncmpi ();
26519 if ac_fn_c_try_link "$LINENO"; then :
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26522 $as_echo "yes" >&6; }
26523 tst_links_strncmpi="yes"
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26528 $as_echo "no" >&6; }
26529 tst_links_strncmpi="no"
26532 rm -f core conftest.err conftest.$ac_objext \
26533 conftest$ac_exeext conftest.$ac_ext
26535 if test "$tst_links_strncmpi" = "yes"; then
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
26537 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
26538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26539 /* end confdefs.h. */
26541 $cares_includes_string
26544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26545 $EGREP "strncmpi" >/dev/null 2>&1; then :
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26548 $as_echo "yes" >&6; }
26549 tst_proto_strncmpi="yes"
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26554 $as_echo "no" >&6; }
26555 tst_proto_strncmpi="no"
26562 if test "$tst_proto_strncmpi" = "yes"; then
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
26564 $as_echo_n "checking if strncmpi is compilable... " >&6; }
26565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566 /* end confdefs.h. */
26569 $cares_includes_string
26574 if(0 != strncmpi(0, 0))
26582 if ac_fn_c_try_compile "$LINENO"; then :
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26585 $as_echo "yes" >&6; }
26586 tst_compi_strncmpi="yes"
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26591 $as_echo "no" >&6; }
26592 tst_compi_strncmpi="no"
26595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26598 if test "$tst_compi_strncmpi" = "yes"; then
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
26600 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
26601 if test "x$cares_disallow_strncmpi" != "xyes"; then
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26603 $as_echo "yes" >&6; }
26604 tst_allow_strncmpi="yes"
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26607 $as_echo "no" >&6; }
26608 tst_allow_strncmpi="no"
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
26613 $as_echo_n "checking if strncmpi might be used... " >&6; }
26614 if test "$tst_links_strncmpi" = "yes" &&
26615 test "$tst_proto_strncmpi" = "yes" &&
26616 test "$tst_compi_strncmpi" = "yes" &&
26617 test "$tst_allow_strncmpi" = "yes"; then
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26619 $as_echo "yes" >&6; }
26621 cat >>confdefs.h <<_ACEOF
26622 #define HAVE_STRNCMPI 1
26625 ac_cv_func_strncmpi="yes"
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26628 $as_echo "no" >&6; }
26629 ac_cv_func_strncmpi="no"
26634 tst_links_strnicmp="unknown"
26635 tst_proto_strnicmp="unknown"
26636 tst_compi_strnicmp="unknown"
26637 tst_allow_strnicmp="unknown"
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
26640 $as_echo_n "checking if strnicmp can be linked... " >&6; }
26641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26642 /* end confdefs.h. */
26645 #define strnicmp innocuous_strnicmp
26647 # include <limits.h>
26649 # include <assert.h>
26656 #if defined __stub_strnicmp || defined __stub___strnicmp
26662 return strnicmp ();
26668 if ac_fn_c_try_link "$LINENO"; then :
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26671 $as_echo "yes" >&6; }
26672 tst_links_strnicmp="yes"
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26677 $as_echo "no" >&6; }
26678 tst_links_strnicmp="no"
26681 rm -f core conftest.err conftest.$ac_objext \
26682 conftest$ac_exeext conftest.$ac_ext
26684 if test "$tst_links_strnicmp" = "yes"; then
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
26686 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
26687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26688 /* end confdefs.h. */
26690 $cares_includes_string
26693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26694 $EGREP "strnicmp" >/dev/null 2>&1; then :
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26697 $as_echo "yes" >&6; }
26698 tst_proto_strnicmp="yes"
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26703 $as_echo "no" >&6; }
26704 tst_proto_strnicmp="no"
26711 if test "$tst_proto_strnicmp" = "yes"; then
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
26713 $as_echo_n "checking if strnicmp is compilable... " >&6; }
26714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26715 /* end confdefs.h. */
26718 $cares_includes_string
26723 if(0 != strnicmp(0, 0))
26731 if ac_fn_c_try_compile "$LINENO"; then :
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26734 $as_echo "yes" >&6; }
26735 tst_compi_strnicmp="yes"
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26740 $as_echo "no" >&6; }
26741 tst_compi_strnicmp="no"
26744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26747 if test "$tst_compi_strnicmp" = "yes"; then
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
26749 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
26750 if test "x$cares_disallow_strnicmp" != "xyes"; then
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26752 $as_echo "yes" >&6; }
26753 tst_allow_strnicmp="yes"
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26756 $as_echo "no" >&6; }
26757 tst_allow_strnicmp="no"
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
26762 $as_echo_n "checking if strnicmp might be used... " >&6; }
26763 if test "$tst_links_strnicmp" = "yes" &&
26764 test "$tst_proto_strnicmp" = "yes" &&
26765 test "$tst_compi_strnicmp" = "yes" &&
26766 test "$tst_allow_strnicmp" = "yes"; then
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26768 $as_echo "yes" >&6; }
26770 cat >>confdefs.h <<_ACEOF
26771 #define HAVE_STRNICMP 1
26774 ac_cv_func_strnicmp="yes"
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26777 $as_echo "no" >&6; }
26778 ac_cv_func_strnicmp="no"
26782 cares_includes_sys_uio="\
26783 /* includes start */
26784 #ifdef HAVE_SYS_TYPES_H
26785 # include <sys/types.h>
26787 #ifdef HAVE_SYS_UIO_H
26788 # include <sys/uio.h>
26790 /* includes end */"
26791 for ac_header in sys/types.h sys/uio.h
26793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26794 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
26796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26797 cat >>confdefs.h <<_ACEOF
26798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26808 tst_links_writev="unknown"
26809 tst_proto_writev="unknown"
26810 tst_compi_writev="unknown"
26811 tst_allow_writev="unknown"
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
26814 $as_echo_n "checking if writev can be linked... " >&6; }
26815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26816 /* end confdefs.h. */
26819 #define writev innocuous_writev
26821 # include <limits.h>
26823 # include <assert.h>
26830 #if defined __stub_writev || defined __stub___writev
26842 if ac_fn_c_try_link "$LINENO"; then :
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26845 $as_echo "yes" >&6; }
26846 tst_links_writev="yes"
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26851 $as_echo "no" >&6; }
26852 tst_links_writev="no"
26855 rm -f core conftest.err conftest.$ac_objext \
26856 conftest$ac_exeext conftest.$ac_ext
26858 if test "$tst_links_writev" = "yes"; then
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
26860 $as_echo_n "checking if writev is prototyped... " >&6; }
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26864 $cares_includes_sys_uio
26867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26868 $EGREP "writev" >/dev/null 2>&1; then :
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26871 $as_echo "yes" >&6; }
26872 tst_proto_writev="yes"
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26877 $as_echo "no" >&6; }
26878 tst_proto_writev="no"
26885 if test "$tst_proto_writev" = "yes"; then
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
26887 $as_echo_n "checking if writev is compilable... " >&6; }
26888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26889 /* end confdefs.h. */
26892 $cares_includes_sys_uio
26897 if(0 != writev(0, 0, 0))
26905 if ac_fn_c_try_compile "$LINENO"; then :
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26908 $as_echo "yes" >&6; }
26909 tst_compi_writev="yes"
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26914 $as_echo "no" >&6; }
26915 tst_compi_writev="no"
26918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26921 if test "$tst_compi_writev" = "yes"; then
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
26923 $as_echo_n "checking if writev usage allowed... " >&6; }
26924 if test "x$cares_disallow_writev" != "xyes"; then
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26926 $as_echo "yes" >&6; }
26927 tst_allow_writev="yes"
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26930 $as_echo "no" >&6; }
26931 tst_allow_writev="no"
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
26936 $as_echo_n "checking if writev might be used... " >&6; }
26937 if test "$tst_links_writev" = "yes" &&
26938 test "$tst_proto_writev" = "yes" &&
26939 test "$tst_compi_writev" = "yes" &&
26940 test "$tst_allow_writev" = "yes"; then
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26942 $as_echo "yes" >&6; }
26944 cat >>confdefs.h <<_ACEOF
26945 #define HAVE_WRITEV 1
26948 ac_cv_func_writev="yes"
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26951 $as_echo "no" >&6; }
26952 ac_cv_func_writev="no"
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
26959 $as_echo_n "checking for PF_INET6... " >&6; }
26960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26961 /* end confdefs.h. */
26965 #ifdef HAVE_WINDOWS_H
26966 #ifndef WIN32_LEAN_AND_MEAN
26967 #define WIN32_LEAN_AND_MEAN
26969 #include <windows.h>
26970 #ifdef HAVE_WINSOCK2_H
26971 #include <winsock2.h>
26974 #ifdef HAVE_SYS_TYPES_H
26975 #include <sys/types.h>
26977 #ifdef HAVE_SYS_SOCKET_H
26978 #include <sys/socket.h>
26990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26991 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
26999 if test "$ac_constant" = "yes" ; then
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27001 $as_echo "yes" >&6; }
27003 cat >>confdefs.h <<_ACEOF
27004 #define HAVE_PF_INET6 1
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27010 $as_echo "no" >&6; }
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
27017 $as_echo_n "checking for AF_INET6... " >&6; }
27018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27019 /* end confdefs.h. */
27023 #ifdef HAVE_WINDOWS_H
27024 #ifndef WIN32_LEAN_AND_MEAN
27025 #define WIN32_LEAN_AND_MEAN
27027 #include <windows.h>
27028 #ifdef HAVE_WINSOCK2_H
27029 #include <winsock2.h>
27032 #ifdef HAVE_SYS_TYPES_H
27033 #include <sys/types.h>
27035 #ifdef HAVE_SYS_SOCKET_H
27036 #include <sys/socket.h>
27048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27049 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
27057 if test "$ac_constant" = "yes" ; then
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27059 $as_echo "yes" >&6; }
27061 cat >>confdefs.h <<_ACEOF
27062 #define HAVE_AF_INET6 1
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27068 $as_echo "no" >&6; }
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
27076 $as_echo_n "checking for struct in6_addr... " >&6; }
27077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27081 #ifdef HAVE_WINDOWS_H
27082 #ifndef WIN32_LEAN_AND_MEAN
27083 #define WIN32_LEAN_AND_MEAN
27085 #include <windows.h>
27086 #ifdef HAVE_WINSOCK2_H
27087 #include <winsock2.h>
27088 #ifdef HAVE_WS2TCPIP_H
27089 #include <ws2tcpip.h>
27093 #ifdef HAVE_SYS_TYPES_H
27094 #include <sys/types.h>
27096 #ifdef HAVE_NETINET_IN_H
27097 #include <netinet/in.h>
27104 struct in6_addr struct_instance;
27110 if ac_fn_c_try_compile "$LINENO"; then :
27115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27116 if test "$ac_struct" = "yes" ; then
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27118 $as_echo "yes" >&6; }
27120 cat >>confdefs.h <<_ACEOF
27121 #define HAVE_STRUCT_IN6_ADDR 1
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27127 $as_echo "no" >&6; }
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
27134 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
27135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27136 /* end confdefs.h. */
27139 #ifdef HAVE_WINDOWS_H
27140 #ifndef WIN32_LEAN_AND_MEAN
27141 #define WIN32_LEAN_AND_MEAN
27143 #include <windows.h>
27144 #ifdef HAVE_WINSOCK2_H
27145 #include <winsock2.h>
27146 #ifdef HAVE_WS2TCPIP_H
27147 #include <ws2tcpip.h>
27151 #ifdef HAVE_SYS_TYPES_H
27152 #include <sys/types.h>
27154 #ifdef HAVE_NETINET_IN_H
27155 #include <netinet/in.h>
27162 struct sockaddr_in6 struct_instance;
27168 if ac_fn_c_try_compile "$LINENO"; then :
27173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27174 if test "$ac_struct" = "yes" ; then
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27176 $as_echo "yes" >&6; }
27178 cat >>confdefs.h <<_ACEOF
27179 #define HAVE_STRUCT_SOCKADDR_IN6 1
27181 ac_have_sockaddr_in6=yes
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27185 $as_echo "no" >&6; }
27190 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
27192 #ifdef HAVE_WINDOWS_H
27193 #ifndef WIN32_LEAN_AND_MEAN
27194 #define WIN32_LEAN_AND_MEAN
27196 #include <windows.h>
27197 #ifdef HAVE_WINSOCK2_H
27198 #include <winsock2.h>
27199 #ifdef HAVE_WS2TCPIP_H
27200 #include <ws2tcpip.h>
27204 #ifdef HAVE_SYS_TYPES_H
27205 #include <sys/types.h>
27207 #ifdef HAVE_NETINET_IN_H
27208 #include <netinet/in.h>
27213 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
27215 cat >>confdefs.h <<_ACEOF
27216 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
27223 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
27225 #ifdef HAVE_WINDOWS_H
27226 #ifndef WIN32_LEAN_AND_MEAN
27227 #define WIN32_LEAN_AND_MEAN
27229 #include <windows.h>
27230 #ifdef HAVE_WINSOCK2_H
27231 #include <winsock2.h>
27232 #ifdef HAVE_WS2TCPIP_H
27233 #include <ws2tcpip.h>
27237 #ifdef HAVE_SYS_TYPES_H
27238 #include <sys/types.h>
27240 #ifdef HAVE_NETINET_IN_H
27241 #include <netinet/in.h>
27243 #ifdef HAVE_SYS_SOCKET_H
27244 #include <sys/socket.h>
27246 #ifdef HAVE_NETDB_H
27253 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
27255 cat >>confdefs.h <<_ACEOF
27256 #define HAVE_STRUCT_ADDRINFO 1
27263 for ac_func in bitncmp \
27268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27271 cat >>confdefs.h <<_ACEOF
27272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
27280 $as_echo_n "checking deeper for $func... " >&6; }
27281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27282 /* end confdefs.h. */
27296 if ac_fn_c_try_link "$LINENO"; then :
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27299 $as_echo "yes" >&6; }
27300 eval "ac_cv_func_$func=yes"
27302 cat >>confdefs.h <<_ACEOF
27303 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
27310 $as_echo "but still no" >&6; }
27313 rm -f core conftest.err conftest.$ac_objext \
27314 conftest$ac_exeext conftest.$ac_ext
27321 # The cast to long int works around a bug in the HP C Compiler
27322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27324 # This bug is HP SR number 8606223364.
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in6_addr" >&5
27326 $as_echo_n "checking size of struct in6_addr... " >&6; }
27327 if ${ac_cv_sizeof_struct_in6_addr+:} false; then :
27328 $as_echo_n "(cached) " >&6
27330 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in6_addr))" "ac_cv_sizeof_struct_in6_addr" "
27332 #ifdef HAVE_WINDOWS_H
27333 #ifndef WIN32_LEAN_AND_MEAN
27334 #define WIN32_LEAN_AND_MEAN
27336 #include <windows.h>
27337 #ifdef HAVE_WINSOCK2_H
27338 #include <winsock2.h>
27339 #ifdef HAVE_WS2TCPIP_H
27340 #include <ws2tcpip.h>
27344 #ifdef HAVE_SYS_TYPES_H
27345 #include <sys/types.h>
27347 #ifdef HAVE_SYS_SOCKET_H
27348 #include <sys/socket.h>
27350 #ifdef HAVE_NETINET_IN_H
27351 #include <netinet/in.h>
27359 if test "$ac_cv_type_struct_in6_addr" = yes; then
27360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27362 as_fn_error 77 "cannot compute sizeof (struct in6_addr)
27363 See \`config.log' for more details" "$LINENO" 5; }
27365 ac_cv_sizeof_struct_in6_addr=0
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in6_addr" >&5
27371 $as_echo "$ac_cv_sizeof_struct_in6_addr" >&6; }
27375 cat >>confdefs.h <<_ACEOF
27376 #define SIZEOF_STRUCT_IN6_ADDR $ac_cv_sizeof_struct_in6_addr
27381 # The cast to long int works around a bug in the HP C Compiler
27382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27384 # This bug is HP SR number 8606223364.
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in_addr" >&5
27386 $as_echo_n "checking size of struct in_addr... " >&6; }
27387 if ${ac_cv_sizeof_struct_in_addr+:} false; then :
27388 $as_echo_n "(cached) " >&6
27390 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in_addr))" "ac_cv_sizeof_struct_in_addr" "
27392 #ifdef HAVE_WINDOWS_H
27393 #ifndef WIN32_LEAN_AND_MEAN
27394 #define WIN32_LEAN_AND_MEAN
27396 #include <windows.h>
27397 #ifdef HAVE_WINSOCK2_H
27398 #include <winsock2.h>
27399 #ifdef HAVE_WS2TCPIP_H
27400 #include <ws2tcpip.h>
27404 #ifdef HAVE_SYS_TYPES_H
27405 #include <sys/types.h>
27407 #ifdef HAVE_SYS_SOCKET_H
27408 #include <sys/socket.h>
27410 #ifdef HAVE_NETINET_IN_H
27411 #include <netinet/in.h>
27419 if test "$ac_cv_type_struct_in_addr" = yes; then
27420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27422 as_fn_error 77 "cannot compute sizeof (struct in_addr)
27423 See \`config.log' for more details" "$LINENO" 5; }
27425 ac_cv_sizeof_struct_in_addr=0
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in_addr" >&5
27431 $as_echo "$ac_cv_sizeof_struct_in_addr" >&6; }
27435 cat >>confdefs.h <<_ACEOF
27436 #define SIZEOF_STRUCT_IN_ADDR $ac_cv_sizeof_struct_in_addr
27443 for ac_header in sys/types.h sys/socket.h netdb.h
27445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27446 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27448 cat >>confdefs.h <<_ACEOF
27449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
27458 $as_echo_n "checking for getnameinfo... " >&6; }
27459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460 /* end confdefs.h. */
27463 #define getnameinfo innocuous_getnameinfo
27465 # include <limits.h>
27467 # include <assert.h>
27473 char getnameinfo ();
27474 #if defined __stub_getnameinfo || defined __stub___getnameinfo
27480 return getnameinfo ();
27486 if ac_fn_c_try_link "$LINENO"; then :
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27489 $as_echo "yes" >&6; }
27490 curl_cv_getnameinfo="yes"
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27495 $as_echo "no" >&6; }
27496 curl_cv_getnameinfo="no"
27499 rm -f core conftest.err conftest.$ac_objext \
27500 conftest$ac_exeext conftest.$ac_ext
27502 if test "$curl_cv_getnameinfo" != "yes"; then
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
27504 $as_echo_n "checking deeper for getnameinfo... " >&6; }
27505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27506 /* end confdefs.h. */
27520 if ac_fn_c_try_link "$LINENO"; then :
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27523 $as_echo "yes" >&6; }
27524 curl_cv_getnameinfo="yes"
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
27529 $as_echo "but still no" >&6; }
27530 curl_cv_getnameinfo="no"
27533 rm -f core conftest.err conftest.$ac_objext \
27534 conftest$ac_exeext conftest.$ac_ext
27537 if test "$curl_cv_getnameinfo" != "yes"; then
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
27539 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
27540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27541 /* end confdefs.h. */
27545 #ifdef HAVE_WINDOWS_H
27546 #ifndef WIN32_LEAN_AND_MEAN
27547 #define WIN32_LEAN_AND_MEAN
27549 #include <windows.h>
27550 #ifdef HAVE_WINSOCK2_H
27551 #include <winsock2.h>
27552 #ifdef HAVE_WS2TCPIP_H
27553 #include <ws2tcpip.h>
27557 #ifdef HAVE_SYS_TYPES_H
27558 #include <sys/types.h>
27560 #ifdef HAVE_SYS_SOCKET_H
27561 #include <sys/socket.h>
27563 #ifdef HAVE_NETDB_H
27571 getnameinfo(0, 0, 0, 0, 0, 0, 0);
27578 if ac_fn_c_try_link "$LINENO"; then :
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27581 $as_echo "yes" >&6; }
27582 curl_cv_getnameinfo="yes"
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
27587 $as_echo "but still no" >&6; }
27588 curl_cv_getnameinfo="no"
27591 rm -f core conftest.err conftest.$ac_objext \
27592 conftest$ac_exeext conftest.$ac_ext
27595 if test "$curl_cv_getnameinfo" = "yes"; then
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
27597 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
27598 if ${curl_cv_func_getnameinfo_args+:} false; then :
27599 $as_echo_n "(cached) " >&6
27602 curl_cv_func_getnameinfo_args="unknown"
27603 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
27604 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
27605 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
27606 for gni_arg7 in 'int' 'unsigned int'; do
27607 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
27608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27609 /* end confdefs.h. */
27613 #ifdef HAVE_WINDOWS_H
27614 #ifndef WIN32_LEAN_AND_MEAN
27615 #define WIN32_LEAN_AND_MEAN
27617 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
27618 #undef _WIN32_WINNT
27619 #define _WIN32_WINNT 0x0501
27621 #include <windows.h>
27622 #ifdef HAVE_WINSOCK2_H
27623 #include <winsock2.h>
27624 #ifdef HAVE_WS2TCPIP_H
27625 #include <ws2tcpip.h>
27628 #define GNICALLCONV WSAAPI
27630 #ifdef HAVE_SYS_TYPES_H
27631 #include <sys/types.h>
27633 #ifdef HAVE_SYS_SOCKET_H
27634 #include <sys/socket.h>
27636 #ifdef HAVE_NETDB_H
27639 #define GNICALLCONV
27641 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
27642 char *, $gni_arg46,
27643 char *, $gni_arg46,
27650 $gni_arg46 hostlen=0;
27651 $gni_arg46 servlen=0;
27653 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
27660 if ac_fn_c_try_compile "$LINENO"; then :
27662 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
27665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
27674 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
27675 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
27677 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
27679 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
27681 gni_prev_IFS=$IFS; IFS=','
27682 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
27686 gni_qual_type_arg1=$1
27689 cat >>confdefs.h <<_ACEOF
27690 #define GETNAMEINFO_TYPE_ARG2 $2
27694 cat >>confdefs.h <<_ACEOF
27695 #define GETNAMEINFO_TYPE_ARG46 $3
27699 cat >>confdefs.h <<_ACEOF
27700 #define GETNAMEINFO_TYPE_ARG7 $4
27706 case $prev_sh_opts in
27714 case "$gni_qual_type_arg1" in
27716 gni_qual_arg1=const
27717 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
27721 gni_type_arg1=$gni_qual_type_arg1
27726 cat >>confdefs.h <<_ACEOF
27727 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
27731 cat >>confdefs.h <<_ACEOF
27732 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
27736 case $prev_sh_opts in
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_GETNAMEINFO 1
27749 ac_cv_func_getnameinfo="yes"
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
27756 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
27757 if ${ac_cv_c_bigendian+:} false; then :
27758 $as_echo_n "(cached) " >&6
27760 ac_cv_c_bigendian=unknown
27761 # See if we're dealing with a universal compiler.
27762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27763 /* end confdefs.h. */
27764 #ifndef __APPLE_CC__
27765 not a universal capable compiler
27770 if ac_fn_c_try_compile "$LINENO"; then :
27772 # Check for potential -arch flags. It is not universal unless
27773 # there are at least two -arch flags with different values.
27776 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
27777 if test -n "$ac_prev"; then
27779 i?86 | x86_64 | ppc | ppc64)
27780 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
27783 ac_cv_c_bigendian=universal
27789 elif test "x$ac_word" = "x-arch"; then
27794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27795 if test $ac_cv_c_bigendian = unknown; then
27796 # See if sys/param.h defines the BYTE_ORDER macro.
27797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27798 /* end confdefs.h. */
27799 #include <sys/types.h>
27800 #include <sys/param.h>
27804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27807 bogus endian macros
27814 if ac_fn_c_try_compile "$LINENO"; then :
27815 # It does; now see whether it defined to BIG_ENDIAN or not.
27816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27817 /* end confdefs.h. */
27818 #include <sys/types.h>
27819 #include <sys/param.h>
27823 #if BYTE_ORDER != BIG_ENDIAN
27831 if ac_fn_c_try_compile "$LINENO"; then :
27832 ac_cv_c_bigendian=yes
27834 ac_cv_c_bigendian=no
27836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27840 if test $ac_cv_c_bigendian = unknown; then
27841 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27843 /* end confdefs.h. */
27844 #include <limits.h>
27848 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27849 bogus endian macros
27856 if ac_fn_c_try_compile "$LINENO"; then :
27857 # It does; now see whether it defined to _BIG_ENDIAN or not.
27858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27859 /* end confdefs.h. */
27860 #include <limits.h>
27864 #ifndef _BIG_ENDIAN
27872 if ac_fn_c_try_compile "$LINENO"; then :
27873 ac_cv_c_bigendian=yes
27875 ac_cv_c_bigendian=no
27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27881 if test $ac_cv_c_bigendian = unknown; then
27882 # Compile a test program.
27883 if test "$cross_compiling" = yes; then :
27884 # Try to guess by grepping values from an object file.
27885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27886 /* end confdefs.h. */
27887 short int ascii_mm[] =
27888 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27889 short int ascii_ii[] =
27890 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27891 int use_ascii (int i) {
27892 return ascii_mm[i] + ascii_ii[i];
27894 short int ebcdic_ii[] =
27895 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27896 short int ebcdic_mm[] =
27897 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27898 int use_ebcdic (int i) {
27899 return ebcdic_mm[i] + ebcdic_ii[i];
27905 return use_ascii (foo) == use_ebcdic (foo);
27910 if ac_fn_c_try_compile "$LINENO"; then :
27911 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27912 ac_cv_c_bigendian=yes
27914 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27915 if test "$ac_cv_c_bigendian" = unknown; then
27916 ac_cv_c_bigendian=no
27918 # finding both strings is unlikely to happen, but who knows?
27919 ac_cv_c_bigendian=unknown
27923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h. */
27927 $ac_includes_default
27931 /* Are we little or big endian? From Harbison&Steele. */
27935 char c[sizeof (long int)];
27938 return u.c[sizeof (long int) - 1] == 1;
27944 if ac_fn_c_try_run "$LINENO"; then :
27945 ac_cv_c_bigendian=no
27947 ac_cv_c_bigendian=yes
27949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27950 conftest.$ac_objext conftest.beam conftest.$ac_ext
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27956 $as_echo "$ac_cv_c_bigendian" >&6; }
27957 case $ac_cv_c_bigendian in #(
27960 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
27966 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
27971 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
27977 # Check whether --with-random was given.
27978 if test "${with_random+set}" = set; then :
27979 withval=$with_random; RANDOM_FILE="$withval"
27982 if test "$cross_compiling" = "no"; then
27983 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
27985 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
27986 if eval \${$as_ac_File+:} false; then :
27987 $as_echo_n "(cached) " >&6
27989 test "$cross_compiling" = yes &&
27990 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27991 if test -r ""/dev/urandom""; then
27992 eval "$as_ac_File=yes"
27994 eval "$as_ac_File=no"
27997 eval ac_res=\$$as_ac_File
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27999 $as_echo "$ac_res" >&6; }
28000 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
28001 RANDOM_FILE="/dev/urandom"
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
28006 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
28013 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
28016 cat >>confdefs.h <<_ACEOF
28017 #define RANDOM_FILE "$RANDOM_FILE"
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
28024 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
28025 OPT_NONBLOCKING="default"
28026 # Check whether --enable-nonblocking was given.
28027 if test "${enable_nonblocking+set}" = set; then :
28028 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
28031 case "$OPT_NONBLOCKING" in
28033 want_nonblocking="no"
28036 want_nonblocking="yes"
28039 want_nonblocking="yes"
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
28043 $as_echo "$want_nonblocking" >&6; }
28047 tst_method="unknown"
28048 if test "$want_nonblocking" = "yes"; then
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
28050 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
28051 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
28052 tst_method="fcntl O_NONBLOCK"
28053 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
28054 tst_method="ioctl FIONBIO"
28055 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
28056 tst_method="ioctlsocket FIONBIO"
28057 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
28058 tst_method="IoctlSocket FIONBIO"
28059 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
28060 tst_method="setsockopt SO_NONBLOCK"
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
28063 $as_echo "$tst_method" >&6; }
28064 if test "$tst_method" = "unknown"; then
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
28066 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
28069 if test "$tst_method" = "unknown"; then
28071 cat >>confdefs.h <<_ACEOF
28072 #define USE_BLOCKING_SOCKETS 1
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
28076 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
28082 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
28083 CFLAG_CARES_SYMBOL_HIDING=""
28084 doing_symbol_hiding="no"
28085 if test x"$ac_cv_native_windows" != "xyes" &&
28086 test "$want_symbol_hiding" = "yes" &&
28087 test "$supports_symbol_hiding" = "yes"; then
28088 doing_symbol_hiding="yes"
28089 CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
28091 cat >>confdefs.h <<_ACEOF
28092 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28096 $as_echo "yes" >&6; }
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28099 $as_echo "no" >&6; }
28101 if test x$doing_symbol_hiding = xyes; then
28102 DOING_CARES_SYMBOL_HIDING_TRUE=
28103 DOING_CARES_SYMBOL_HIDING_FALSE='#'
28105 DOING_CARES_SYMBOL_HIDING_TRUE='#'
28106 DOING_CARES_SYMBOL_HIDING_FALSE=
28110 if test "$doing_symbol_hiding" = "yes"; then
28112 cat >>confdefs.h <<_ACEOF
28113 #define CARES_SYMBOL_HIDING 1
28119 CARES_PRIVATE_LIBS="$LIBS"
28122 CARES_CFLAG_EXTRAS=""
28123 if test X"$want_werror" = Xyes; then
28124 CARES_CFLAG_EXTRAS="-Werror"
28135 squeeze CARES_PRIVATE_LIBS
28140 for xc_word in $LIBS; do
28146 xc_bad_var_libs=yes
28150 if test $xc_bad_var_libs = yes; then
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
28152 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
28154 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
28158 xc_bad_var_ldflags=no
28159 for xc_word in $LDFLAGS; do
28162 xc_bad_var_ldflags=yes
28165 xc_bad_var_ldflags=yes
28168 xc_bad_var_ldflags=yes
28171 xc_bad_var_ldflags=yes
28175 if test $xc_bad_var_ldflags = yes; then
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
28177 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
28178 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
28179 for xc_word in $LDFLAGS; do
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
28183 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
28187 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
28191 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
28195 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
28202 xc_bad_var_cppflags=no
28203 for xc_word in $CPPFLAGS; do
28206 xc_bad_var_cppflags=yes
28208 -L* | --library-path=*)
28209 xc_bad_var_cppflags=yes
28212 xc_bad_var_cppflags=yes
28216 if test $xc_bad_var_cppflags = yes; then
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
28218 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
28219 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
28220 for xc_word in $CPPFLAGS; do
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
28224 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
28226 -L* | --library-path=*)
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
28228 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
28232 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
28239 xc_bad_var_cflags=no
28240 for xc_word in $CFLAGS; do
28243 xc_bad_var_cflags=yes
28246 xc_bad_var_cflags=yes
28249 xc_bad_var_cflags=yes
28252 xc_bad_var_cflags=yes
28254 -L* | --library-path=*)
28255 xc_bad_var_cflags=yes
28258 xc_bad_var_cflags=yes
28262 if test $xc_bad_var_cflags = yes; then
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
28264 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
28265 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
28266 for xc_word in $CFLAGS; do
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
28270 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
28274 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
28278 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
28282 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
28284 -L* | --library-path=*)
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
28286 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
28290 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
28296 if test $xc_bad_var_libs = yes ||
28297 test $xc_bad_var_cflags = yes ||
28298 test $xc_bad_var_ldflags = yes ||
28299 test $xc_bad_var_cppflags = yes; then
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
28301 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
28305 if test "x$cross_compiling" = "xno"; then
28308 subdirs="$subdirs test"
28312 ac_config_files="$ac_config_files Makefile libcares.pc"
28314 cat >confcache <<\_ACEOF
28315 # This file is a shell script that caches the results of configure
28316 # tests run on this system so they can be shared between configure
28317 # scripts and configure runs, see configure's option --config-cache.
28318 # It is not useful on other systems. If it contains results you don't
28319 # want to keep, you may remove or edit it.
28321 # config.status only pays attention to the cache file if you give it
28322 # the --recheck option to rerun configure.
28324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28326 # following values.
28330 # The following way of writing the cache mishandles newlines in values,
28331 # but we know of no workaround that is simple, portable, and efficient.
28332 # So, we kill variables containing newlines.
28333 # Ultrix sh set writes to stderr and can't be redirected directly,
28334 # and sets the high bit in the cache file unless we assign to the vars.
28336 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28337 eval ac_val=\$$ac_var
28341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28345 _ | IFS | as_nl) ;; #(
28346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28347 *) { eval $ac_var=; unset $ac_var;} ;;
28353 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28354 *${as_nl}ac_space=\ *)
28355 # `set' does not quote correctly, so add quotes: double-quote
28356 # substitution turns \\\\ into \\, and sed turns \\ into \.
28359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28362 # `set' quotes correctly as required by POSIX, so do not add quotes.
28363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28374 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28377 if test -w "$cache_file"; then
28378 if test "x$cache_file" != "x/dev/null"; then
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28380 $as_echo "$as_me: updating cache $cache_file" >&6;}
28381 if test ! -f "$cache_file" || test -h "$cache_file"; then
28382 cat confcache >"$cache_file"
28384 case $cache_file in #(
28386 mv -f confcache "$cache_file"$$ &&
28387 mv -f "$cache_file"$$ "$cache_file" ;; #(
28389 mv -f confcache "$cache_file" ;;
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28395 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28401 # Let make expand exec_prefix.
28402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28404 DEFS=-DHAVE_CONFIG_H
28409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28410 # 1. Remove the extension, and $U if already installed.
28411 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28412 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28413 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28414 # will be set to the directory where LIBOBJS objects are built.
28415 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28416 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28418 LIBOBJS=$ac_libobjs
28420 LTLIBOBJS=$ac_ltlibobjs
28423 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28424 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28427 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
28428 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
28429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28432 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28433 if test -n "$am_sleep_pid"; then
28434 # Hide warnings about reused PIDs.
28435 wait $am_sleep_pid 2>/dev/null
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28438 $as_echo "done" >&6; }
28439 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28440 as_fn_error $? "conditional \"AMDEP\" was never defined.
28441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28443 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28444 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28447 if test -n "$EXEEXT"; then
28449 am__EXEEXT_FALSE='#'
28451 am__EXEEXT_TRUE='#'
28455 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
28456 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
28457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28459 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
28460 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
28461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28463 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
28464 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
28465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28467 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
28468 as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
28469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28471 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
28472 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
28473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28475 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
28476 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
28477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28480 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
28481 as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
28482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28485 : "${CONFIG_STATUS=./config.status}"
28487 ac_clean_files_save=$ac_clean_files
28488 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28490 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28492 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28494 # Generated by $as_me.
28495 # Run this file to recreate the current configuration.
28496 # Compiler output produced by configure, useful for debugging
28497 # configure, is in config.log if it exists.
28500 ac_cs_recheck=false
28503 SHELL=\${CONFIG_SHELL-$SHELL}
28506 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28507 ## -------------------- ##
28508 ## M4sh Initialization. ##
28509 ## -------------------- ##
28511 # Be more Bourne compatible
28512 DUALCASE=1; export DUALCASE # for MKS sh
28513 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28516 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28517 # is contrary to our usage. Disable this feature.
28518 alias -g '${1+"$@"}'='"$@"'
28519 setopt NO_GLOB_SUBST
28521 case `(set -o) 2>/dev/null` in #(
28533 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28534 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28536 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28537 # Prefer a ksh shell builtin over an external printf program on Solaris,
28538 # but without wasting forks for bash or zsh.
28539 if test -z "$BASH_VERSION$ZSH_VERSION" \
28540 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28541 as_echo='print -r --'
28542 as_echo_n='print -rn --'
28543 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28544 as_echo='printf %s\n'
28545 as_echo_n='printf %s'
28547 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28548 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28549 as_echo_n='/usr/ucb/echo -n'
28551 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28552 as_echo_n_body='eval
28556 expr "X$arg" : "X\\(.*\\)$as_nl";
28557 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28559 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28561 export as_echo_n_body
28562 as_echo_n='sh -c $as_echo_n_body as_echo'
28564 export as_echo_body
28565 as_echo='sh -c $as_echo_body as_echo'
28571 # We need space, tab and new line, in precisely that order. Quoting is
28572 # there to prevent editors from complaining about space-tab.
28573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28574 # splitting by setting IFS to empty value.)
28577 # Find who we are. Look in the path if we contain no directory separator.
28580 *[\\/]* ) as_myself=$0 ;;
28581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28582 for as_dir in $PATH
28585 test -z "$as_dir" && as_dir=.
28586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28592 # We did not find ourselves, most probably we were run as `sh COMMAND'
28593 # in which case we are not to be found in the path.
28594 if test "x$as_myself" = x; then
28597 if test ! -f "$as_myself"; then
28598 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28602 # Unset variables that we do not need and which cause bugs (e.g. in
28603 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28604 # suppresses any "Segmentation fault" message there. '((' could
28605 # trigger a bug in pdksh 5.2.14.
28606 for as_var in BASH_ENV ENV MAIL MAILPATH
28607 do eval test x\${$as_var+set} = xset \
28608 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28625 # ----------------------------------------
28626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28628 # script with STATUS, using 1 if that was 0.
28631 as_status=$1; test $as_status -eq 0 && as_status=1
28633 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28634 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28636 $as_echo "$as_me: error: $2" >&2
28637 as_fn_exit $as_status
28641 # as_fn_set_status STATUS
28642 # -----------------------
28643 # Set $? to STATUS, without forking.
28644 as_fn_set_status ()
28647 } # as_fn_set_status
28649 # as_fn_exit STATUS
28650 # -----------------
28651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28655 as_fn_set_status $1
28661 # Portably unset VAR.
28664 { eval $1=; unset $1;}
28666 as_unset=as_fn_unset
28667 # as_fn_append VAR VALUE
28668 # ----------------------
28669 # Append the text in VALUE to the end of the definition contained in VAR. Take
28670 # advantage of any shell optimizations that allow amortized linear growth over
28671 # repeated appends, instead of the typical quadratic growth present in naive
28673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28674 eval 'as_fn_append ()
28685 # as_fn_arith ARG...
28686 # ------------------
28687 # Perform arithmetic evaluation on the ARGs, and store the result in the
28688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28689 # must be portable across $(()) and expr.
28690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28691 eval 'as_fn_arith ()
28698 as_val=`expr "$@" || test $? -eq 1`
28703 if expr a : '\(a\)' >/dev/null 2>&1 &&
28704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28711 as_basename=basename
28716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28722 as_me=`$as_basename -- "$0" ||
28723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28724 X"$0" : 'X\(//\)$' \| \
28725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28727 sed '/^.*\/\([^/][^/]*\)\/*$/{
28741 # Avoid depending upon Character Ranges.
28742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28745 as_cr_digits='0123456789'
28746 as_cr_alnum=$as_cr_Letters$as_cr_digits
28748 ECHO_C= ECHO_N= ECHO_T=
28749 case `echo -n x` in #(((((
28751 case `echo 'xy\c'` in
28752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28754 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28761 rm -f conf$$ conf$$.exe conf$$.file
28762 if test -d conf$$.dir; then
28763 rm -f conf$$.dir/conf$$.file
28766 mkdir conf$$.dir 2>/dev/null
28768 if (echo >conf$$.file) 2>/dev/null; then
28769 if ln -s conf$$.file conf$$ 2>/dev/null; then
28771 # ... but there are two gotchas:
28772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28774 # In both cases, we have to default to `cp -pR'.
28775 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28777 elif ln conf$$.file conf$$ 2>/dev/null; then
28785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28786 rmdir conf$$.dir 2>/dev/null
28791 # Create "$as_dir" as a directory, including parents if necessary.
28796 -*) as_dir=./$as_dir;;
28798 test -d "$as_dir" || eval $as_mkdir_p || {
28802 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28803 *) as_qdir=$as_dir;;
28805 as_dirs="'$as_qdir' $as_dirs"
28806 as_dir=`$as_dirname -- "$as_dir" ||
28807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28808 X"$as_dir" : 'X\(//\)[^/]' \| \
28809 X"$as_dir" : 'X\(//\)$' \| \
28810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28811 $as_echo X"$as_dir" |
28812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28816 /^X\(\/\/\)[^/].*/{
28829 test -d "$as_dir" && break
28831 test -z "$as_dirs" || eval "mkdir $as_dirs"
28832 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28836 if mkdir -p . 2>/dev/null; then
28837 as_mkdir_p='mkdir -p "$as_dir"'
28839 test -d ./-p && rmdir ./-p
28844 # as_fn_executable_p FILE
28845 # -----------------------
28846 # Test if FILE is an executable regular file.
28847 as_fn_executable_p ()
28849 test -f "$1" && test -x "$1"
28850 } # as_fn_executable_p
28851 as_test_x='test -x'
28852 as_executable_p=as_fn_executable_p
28854 # Sed expression to map a string onto a valid CPP name.
28855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28857 # Sed expression to map a string onto a valid variable name.
28858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28862 ## ----------------------------------- ##
28863 ## Main body of $CONFIG_STATUS script. ##
28864 ## ----------------------------------- ##
28866 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28869 # Save the log message, to keep $0 and so on meaningful, and to
28870 # report actual input values of CONFIG_FILES etc. instead of their
28871 # values after options handling.
28873 This file was extended by c-ares $as_me 1.11.0, which was
28874 generated by GNU Autoconf 2.69. Invocation command line was
28876 CONFIG_FILES = $CONFIG_FILES
28877 CONFIG_HEADERS = $CONFIG_HEADERS
28878 CONFIG_LINKS = $CONFIG_LINKS
28879 CONFIG_COMMANDS = $CONFIG_COMMANDS
28882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28887 case $ac_config_files in *"
28888 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28891 case $ac_config_headers in *"
28892 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28897 # Files that config.status was made for.
28898 config_files="$ac_config_files"
28899 config_headers="$ac_config_headers"
28900 config_commands="$ac_config_commands"
28904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28906 \`$as_me' instantiates files and other configuration actions
28907 from templates according to the current configuration. Unless the files
28908 and actions are specified as TAGs, all are instantiated by default.
28910 Usage: $0 [OPTION]... [TAG]...
28912 -h, --help print this help, then exit
28913 -V, --version print version number and configuration settings, then exit
28914 --config print configuration, then exit
28915 -q, --quiet, --silent
28916 do not print progress messages
28917 -d, --debug don't remove temporary files
28918 --recheck update $as_me by reconfiguring in the same conditions
28919 --file=FILE[:TEMPLATE]
28920 instantiate the configuration file FILE
28921 --header=FILE[:TEMPLATE]
28922 instantiate the configuration header FILE
28924 Configuration files:
28927 Configuration headers:
28930 Configuration commands:
28933 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
28936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28937 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28939 c-ares config.status 1.11.0
28940 configured by $0, generated by GNU Autoconf 2.69,
28941 with options \\"\$ac_cs_config\\"
28943 Copyright (C) 2012 Free Software Foundation, Inc.
28944 This config.status script is free software; the Free Software Foundation
28945 gives unlimited permission to copy, distribute and modify it."
28952 test -n "\$AWK" || AWK=awk
28955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28956 # The default lists apply if the user does not specify any file.
28962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28979 # Handling of the options.
28980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28983 $as_echo "$ac_cs_version"; exit ;;
28984 --config | --confi | --conf | --con | --co | --c )
28985 $as_echo "$ac_cs_config"; exit ;;
28986 --debug | --debu | --deb | --de | --d | -d )
28988 --file | --fil | --fi | --f )
28991 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28992 '') as_fn_error $? "missing file argument" ;;
28994 as_fn_append CONFIG_FILES " '$ac_optarg'"
28995 ac_need_defaults=false;;
28996 --header | --heade | --head | --hea )
28999 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29001 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29002 ac_need_defaults=false;;
29004 # Conflict between --help and --header
29005 as_fn_error $? "ambiguous option: \`$1'
29006 Try \`$0 --help' for more information.";;
29007 --help | --hel | -h )
29008 $as_echo "$ac_cs_usage"; exit ;;
29009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29010 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29013 # This is an error.
29014 -*) as_fn_error $? "unrecognized option: \`$1'
29015 Try \`$0 --help' for more information." ;;
29017 *) as_fn_append ac_config_targets " $1"
29018 ac_need_defaults=false ;;
29024 ac_configure_extra_args=
29026 if $ac_cs_silent; then
29028 ac_configure_extra_args="$ac_configure_extra_args --silent"
29032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29033 if \$ac_cs_recheck; then
29034 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29036 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29037 CONFIG_SHELL='$SHELL'
29038 export CONFIG_SHELL
29043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29047 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29048 ## Running $as_me. ##
29054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29058 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29061 # The HP-UX ksh and POSIX shell print the target directory to stdout
29062 # if CDPATH is set.
29063 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29065 sed_quote_subst='$sed_quote_subst'
29066 double_quote_subst='$double_quote_subst'
29067 delay_variable_subst='$delay_variable_subst'
29068 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29069 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29070 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29071 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29072 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29073 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29074 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29075 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29076 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29077 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
29078 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29079 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29080 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29081 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29082 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29083 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29084 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29085 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29086 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29087 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29088 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29089 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29090 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29091 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29092 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29093 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29094 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29095 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29096 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29097 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29098 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29099 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29100 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29101 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29102 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29103 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29104 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29105 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29106 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29107 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29108 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29109 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29110 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29111 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29112 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29113 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29114 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29115 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29116 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29117 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29118 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29119 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29120 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29121 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29122 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29123 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29124 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29125 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
29126 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29127 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"`'
29128 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
29129 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29130 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29131 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
29132 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29133 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29134 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29135 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29136 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29137 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29138 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29139 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29140 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29141 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29142 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29143 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29144 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29145 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29146 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29147 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29148 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29149 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29150 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29151 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29152 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29153 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29154 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29155 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29156 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29157 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29158 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29159 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29160 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29161 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29162 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29163 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29164 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29165 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29166 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29167 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29168 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29169 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29170 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29171 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29172 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29173 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29174 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29175 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29176 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29177 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29178 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29179 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29180 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29181 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29182 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29183 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29184 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29185 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29186 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29187 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29188 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29189 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29190 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29191 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29192 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29193 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29194 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29195 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29196 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
29197 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
29198 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29199 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29200 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29201 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29202 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29203 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29206 LTCFLAGS='$LTCFLAGS'
29207 compiler='$compiler_DEFAULT'
29209 # A function that is used when there is no print builtin or printf.
29210 func_fallback_echo ()
29212 eval 'cat <<_LTECHO_EOF
29217 # Quote evaled strings.
29234 deplibs_check_method \
29238 sharedlib_from_linklib_cmd \
29241 archiver_list_spec \
29247 lt_cv_sys_global_symbol_pipe \
29248 lt_cv_sys_global_symbol_to_cdecl \
29249 lt_cv_sys_global_symbol_to_import \
29250 lt_cv_sys_global_symbol_to_c_name_address \
29251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29252 lt_cv_nm_interface \
29253 nm_file_list_spec \
29254 lt_cv_truncate_bin \
29255 lt_prog_compiler_no_builtin_flag \
29256 lt_prog_compiler_pic \
29257 lt_prog_compiler_wl \
29258 lt_prog_compiler_static \
29259 lt_cv_prog_compiler_c_o \
29268 export_dynamic_flag_spec \
29269 whole_archive_flag_spec \
29270 compiler_needs_object \
29272 allow_undefined_flag \
29273 no_undefined_flag \
29274 hardcode_libdir_flag_spec \
29275 hardcode_libdir_separator \
29279 variables_saved_for_relink \
29281 library_names_spec \
29283 install_override_mode \
29287 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29288 *[\\\\\\\`\\"\\\$]*)
29289 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29292 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29297 # Double-quote double-evaled strings.
29298 for var in reload_cmds \
29299 old_postinstall_cmds \
29300 old_postuninstall_cmds \
29302 extract_expsyms_cmds \
29303 old_archive_from_new_cmds \
29304 old_archive_from_expsyms_cmds \
29306 archive_expsym_cmds \
29308 module_expsym_cmds \
29309 export_symbols_cmds \
29313 postuninstall_cmds \
29315 sys_lib_search_path_spec \
29316 configure_time_dlsearch_path \
29317 configure_time_lt_sys_library_path; do
29318 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29319 *[\\\\\\\`\\"\\\$]*)
29320 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29323 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29328 ac_aux_dir='$ac_aux_dir'
29330 # See if we are running on zsh, and set the options that allow our
29331 # commands through without removal of \ escapes INIT.
29332 if test -n "\${ZSH_VERSION+set}"; then
29333 setopt NO_GLOB_SUBST
29347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29349 # Handling of arguments.
29350 for ac_config_target in $ac_config_targets
29352 case $ac_config_target in
29353 "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
29354 "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
29355 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29356 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29357 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29358 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
29360 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29365 # If the user did not use the arguments to specify the items to instantiate,
29366 # then the envvar interface is used. Set only those that are not.
29367 # We use the long form for the default assignment because of an extremely
29368 # bizarre bug on SunOS 4.1.3.
29369 if $ac_need_defaults; then
29370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29371 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29372 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29375 # Have a temporary directory for convenience. Make it in the build tree
29376 # simply because there is no reason against having it here, and in addition,
29377 # creating and moving files from /tmp can sometimes cause problems.
29378 # Hook for its removal unless debugging.
29379 # Note that there is a small window in which the directory will not be cleaned:
29380 # after its creation but before its name has been assigned to `$tmp'.
29384 trap 'exit_status=$?
29385 : "${ac_tmp:=$tmp}"
29386 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29388 trap 'as_fn_exit 1' 1 2 13 15
29390 # Create a (secure) tmp directory for tmp files.
29393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29397 tmp=./conf$$-$RANDOM
29398 (umask 077 && mkdir "$tmp")
29399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29402 # Set up the scripts for CONFIG_FILES section.
29403 # No need to generate them if there are no CONFIG_FILES.
29404 # This happens for instance with `./config.status config.h'.
29405 if test -n "$CONFIG_FILES"; then
29408 ac_cr=`echo X | tr X '\015'`
29409 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29410 # But we know of no other shell where ac_cr would be empty at this
29411 # point, so we can use a bashism as a fallback.
29412 if test "x$ac_cr" = x; then
29413 eval ac_cr=\$\'\\r\'
29415 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29416 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29419 ac_cs_awk_cr=$ac_cr
29422 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29427 echo "cat >conf$$subs.awk <<_ACEOF" &&
29428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29430 } >conf$$subs.sh ||
29431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29434 for ac_last_try in false false false false false :; do
29435 . ./conf$$subs.sh ||
29436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29439 if test $ac_delim_n = $ac_delim_num; then
29441 elif $ac_last_try; then
29442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29447 rm -f conf$$subs.sh
29449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29450 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29454 s/^/S["/; s/!.*/"]=/
29464 s/\(.\{148\}\)..*/\1/
29466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29478 s/\(.\{148\}\)..*/\1/
29480 s/["\\]/\\&/g; s/^/"/; s/$/"/
29484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29489 ' <conf$$subs.awk | sed '
29494 ' >>$CONFIG_STATUS || ac_write_fail=1
29495 rm -f conf$$subs.awk
29496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29498 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29499 for (key in S) S_is_set[key] = 1
29505 nfields = split(line, field, "@")
29507 len = length(field[1])
29508 for (i = 2; i < nfields; i++) {
29510 keylen = length(key)
29511 if (S_is_set[key]) {
29513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29514 len += length(value) + length(field[++i])
29525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29526 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29527 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29530 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29531 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29534 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29535 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29536 # trailing colons and then remove the whole line if VPATH becomes empty
29537 # (actually we leave an empty line to preserve line numbers).
29538 if test "x$srcdir" = x.; then
29539 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29558 fi # test -n "$CONFIG_FILES"
29560 # Set up the scripts for CONFIG_HEADERS section.
29561 # No need to generate them if there are no CONFIG_HEADERS.
29562 # This happens for instance with `./config.status Makefile'.
29563 if test -n "$CONFIG_HEADERS"; then
29564 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29568 # Transform confdefs.h into an awk script `defines.awk', embedded as
29569 # here-document in config.status, that substitutes the proper values into
29570 # config.h.in to produce config.h.
29572 # Create a delimiter string that does not exist in confdefs.h, to ease
29573 # handling of long lines.
29575 for ac_last_try in false false :; do
29576 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29577 if test -z "$ac_tt"; then
29579 elif $ac_last_try; then
29580 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29586 # For the awk script, D is an array of macro values keyed by name,
29587 # likewise P contains macro parameters if any. Preserve backslash
29588 # newline sequences.
29590 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29592 s/.\{148\}/&'"$ac_delim"'/g
29595 s/^[ ]*#[ ]*define[ ][ ]*/ /
29602 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29604 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29608 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29609 D["\1"]=" \3\\\\\\n"\\/p
29611 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29616 s/.\{148\}/&'"$ac_delim"'/g
29621 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29624 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29626 ' <confdefs.h | sed '
29627 s/'"$ac_delim"'/"\\\
29628 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29631 for (key in D) D_is_set[key] = 1
29634 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29636 split(line, arg, " ")
29637 if (arg[1] == "#") {
29641 defundef = substr(arg[1], 2)
29644 split(mac1, mac2, "(") #)
29646 prefix = substr(line, 1, index(line, defundef) - 1)
29647 if (D_is_set[macro]) {
29648 # Preserve the white space surrounding the "#".
29649 print prefix "define", macro P[macro] D[macro]
29652 # Replace #undef with comments. This is necessary, for example,
29653 # in the case of _POSIX_SOURCE, which is predefined and required
29654 # on some systems where configure will not decide to define it.
29655 if (defundef == "undef") {
29656 print "/*", prefix defundef, macro, "*/"
29664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29665 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29666 fi # test -n "$CONFIG_HEADERS"
29669 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29674 :[FHLC]) ac_mode=$ac_tag; continue;;
29676 case $ac_mode$ac_tag in
29678 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29679 :[FH]-) ac_tag=-:-;;
29680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29697 -) ac_f="$ac_tmp/stdin";;
29698 *) # Look for the file first in the build tree, then in the source tree
29699 # (if the path is not absolute). The absolute path cannot be DOS-style,
29700 # because $ac_f cannot contain `:'.
29704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29706 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29708 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29709 as_fn_append ac_file_inputs " '$ac_f'"
29712 # Let's still pretend it is `configure' which instantiates (i.e., don't
29713 # use $as_me), people would be surprised to read:
29714 # /* config.h. Generated by config.status. */
29715 configure_input='Generated from '`
29716 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29718 if test x"$ac_file" != x-; then
29719 configure_input="$ac_file. $configure_input"
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29721 $as_echo "$as_me: creating $ac_file" >&6;}
29723 # Neutralize special characters interpreted by sed in replacement strings.
29724 case $configure_input in #(
29725 *\&* | *\|* | *\\* )
29726 ac_sed_conf_input=`$as_echo "$configure_input" |
29727 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29728 *) ac_sed_conf_input=$configure_input;;
29732 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29738 ac_dir=`$as_dirname -- "$ac_file" ||
29739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29740 X"$ac_file" : 'X\(//\)[^/]' \| \
29741 X"$ac_file" : 'X\(//\)$' \| \
29742 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29743 $as_echo X"$ac_file" |
29744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29748 /^X\(\/\/\)[^/].*/{
29761 as_dir="$ac_dir"; as_fn_mkdir_p
29765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29767 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29768 # A ".." for each directory in $ac_dir_suffix.
29769 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29770 case $ac_top_builddir_sub in
29771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29775 ac_abs_top_builddir=$ac_pwd
29776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29777 # for backward compatibility:
29778 ac_top_builddir=$ac_top_build_prefix
29781 .) # We are building in place.
29783 ac_top_srcdir=$ac_top_builddir_sub
29784 ac_abs_top_srcdir=$ac_pwd ;;
29785 [\\/]* | ?:[\\/]* ) # Absolute name.
29786 ac_srcdir=$srcdir$ac_dir_suffix;
29787 ac_top_srcdir=$srcdir
29788 ac_abs_top_srcdir=$srcdir ;;
29789 *) # Relative name.
29790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29791 ac_top_srcdir=$ac_top_build_prefix$srcdir
29792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29804 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29805 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29807 ac_MKDIR_P=$MKDIR_P
29809 [\\/$]* | ?:[\\/]* ) ;;
29810 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29815 # If the template does not know about datarootdir, expand it.
29816 # FIXME: This hack should be removed a few years after 2.60.
29817 ac_datarootdir_hack=; ac_datarootdir_seen=
29828 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29829 *datarootdir*) ac_datarootdir_seen=yes;;
29830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29832 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29835 ac_datarootdir_hack='
29836 s&@datadir@&$datadir&g
29837 s&@docdir@&$docdir&g
29838 s&@infodir@&$infodir&g
29839 s&@localedir@&$localedir&g
29840 s&@mandir@&$mandir&g
29841 s&\\\${datarootdir}&$datarootdir&g' ;;
29845 # Neutralize VPATH when `$srcdir' = `.'.
29846 # Shell code in configure.ac might set extrasub.
29847 # FIXME: do we really want to maintain this feature?
29848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29849 ac_sed_extra="$ac_vpsub
29852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29855 s|@configure_input@|$ac_sed_conf_input|;t t
29856 s&@top_builddir@&$ac_top_builddir_sub&;t t
29857 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29858 s&@srcdir@&$ac_srcdir&;t t
29859 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29860 s&@top_srcdir@&$ac_top_srcdir&;t t
29861 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29862 s&@builddir@&$ac_builddir&;t t
29863 s&@abs_builddir@&$ac_abs_builddir&;t t
29864 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29865 s&@INSTALL@&$ac_INSTALL&;t t
29866 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29867 $ac_datarootdir_hack
29869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29870 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29873 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29875 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29877 which seems to be undefined. Please make sure it is defined" >&5
29878 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29879 which seems to be undefined. Please make sure it is defined" >&2;}
29881 rm -f "$ac_tmp/stdin"
29883 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29884 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29892 if test x"$ac_file" != x-; then
29894 $as_echo "/* $configure_input */" \
29895 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29896 } >"$ac_tmp/config.h" \
29897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29898 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29900 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29903 mv "$ac_tmp/config.h" "$ac_file" \
29904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29907 $as_echo "/* $configure_input */" \
29908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29909 || as_fn_error $? "could not create -" "$LINENO" 5
29911 # Compute "$ac_file"'s index in $config_headers.
29914 for _am_header in $config_headers :; do
29915 case $_am_header in
29916 $_am_arg | $_am_arg:* )
29919 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29922 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29923 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29924 X"$_am_arg" : 'X\(//\)[^/]' \| \
29925 X"$_am_arg" : 'X\(//\)$' \| \
29926 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29927 $as_echo X"$_am_arg" |
29928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29932 /^X\(\/\/\)[^/].*/{
29944 s/.*/./; q'`/stamp-h$_am_stamp_count
29947 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29948 $as_echo "$as_me: executing $ac_file commands" >&6;}
29953 case $ac_file$ac_mode in
29954 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29955 # Older Autoconf quotes --file arguments for eval, but not when files
29956 # are listed without --file. Let's play safe and only enable the eval
29957 # if we detect the quoting.
29958 case $CONFIG_FILES in
29959 *\'*) eval set x "$CONFIG_FILES" ;;
29960 *) set x $CONFIG_FILES ;;
29965 # Strip MF so we end up with the name of the file.
29966 mf=`echo "$mf" | sed -e 's/:.*$//'`
29967 # Check whether this is an Automake generated Makefile or not.
29968 # We used to match only the files named 'Makefile.in', but
29969 # some people rename them; so instead we look at the file content.
29970 # Grep'ing the first line is not enough: some people post-process
29971 # each Makefile.in and add a new line on top of each file to say so.
29972 # Grep'ing the whole file is not good either: AIX grep has a line
29973 # limit of 2048, but all sed's we know have understand at least 4000.
29974 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29975 dirpart=`$as_dirname -- "$mf" ||
29976 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29977 X"$mf" : 'X\(//\)[^/]' \| \
29978 X"$mf" : 'X\(//\)$' \| \
29979 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29985 /^X\(\/\/\)[^/].*/{
30001 # Extract the definition of DEPDIR, am__include, and am__quote
30002 # from the Makefile without running 'make'.
30003 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30004 test -z "$DEPDIR" && continue
30005 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30006 test -z "$am__include" && continue
30007 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30008 # Find all dependency output files, they are included files with
30009 # $(DEPDIR) in their names. We invoke sed twice because it is the
30010 # simplest approach to changing $(DEPDIR) to its actual value in the
30012 for file in `sed -n "
30013 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30014 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30015 # Make sure the directory exists.
30016 test -f "$dirpart/$file" && continue
30017 fdir=`$as_dirname -- "$file" ||
30018 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30019 X"$file" : 'X\(//\)[^/]' \| \
30020 X"$file" : 'X\(//\)$' \| \
30021 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30022 $as_echo X"$file" |
30023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30027 /^X\(\/\/\)[^/].*/{
30040 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30041 # echo "creating $dirpart/$file"
30042 echo '# dummy' > "$dirpart/$file"
30049 # See if we are running on zsh, and set the options that allow our
30050 # commands through without removal of \ escapes.
30051 if test -n "${ZSH_VERSION+set}"; then
30052 setopt NO_GLOB_SUBST
30056 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30059 cat <<_LT_EOF >> "$cfgfile"
30061 # Generated automatically by $as_me ($PACKAGE) $VERSION
30062 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30063 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30065 # Provide generalized library-building support services.
30066 # Written by Gordon Matzigkeit, 1996
30068 # Copyright (C) 2014 Free Software Foundation, Inc.
30069 # This is free software; see the source for copying conditions. There is NO
30070 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30072 # GNU Libtool is free software; you can redistribute it and/or modify
30073 # it under the terms of the GNU General Public License as published by
30074 # the Free Software Foundation; either version 2 of of the License, or
30075 # (at your option) any later version.
30077 # As a special exception to the GNU General Public License, if you
30078 # distribute this file as part of a program or library that is built
30079 # using GNU Libtool, you may include this file under the same
30080 # distribution terms that you use for the rest of that program.
30082 # GNU Libtool is distributed in the hope that it will be useful, but
30083 # WITHOUT ANY WARRANTY; without even the implied warranty of
30084 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30085 # GNU General Public License for more details.
30087 # You should have received a copy of the GNU General Public License
30088 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30091 # The names of the tagged configurations supported by this script.
30094 # Configured defaults for sys_lib_dlsearch_path munging.
30095 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
30097 # ### BEGIN LIBTOOL CONFIG
30099 # Which release of libtool.m4 was used?
30100 macro_version=$macro_version
30101 macro_revision=$macro_revision
30103 # Assembler program.
30106 # DLL creation program.
30107 DLLTOOL=$lt_DLLTOOL
30109 # Object dumper program.
30110 OBJDUMP=$lt_OBJDUMP
30112 # Whether or not to build shared libraries.
30113 build_libtool_libs=$enable_shared
30115 # Whether or not to build static libraries.
30116 build_old_libs=$enable_static
30118 # What type of objects to build.
30121 # Whether or not to optimize for fast installation.
30122 fast_install=$enable_fast_install
30124 # Shared archive member basename,for filename based shared library versioning on AIX.
30125 shared_archive_member_spec=$shared_archive_member_spec
30127 # Shell to use when invoking shell scripts.
30130 # An echo program that protects backslashes.
30133 # The PATH separator for the build system.
30134 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30137 host_alias=$host_alias
30141 # The build system.
30142 build_alias=$build_alias
30146 # A sed program that does not truncate output.
30149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30150 Xsed="\$SED -e 1s/^X//"
30152 # A grep program that handles long lines.
30158 # A literal string matcher.
30161 # A BSD- or MS-compatible name lister.
30164 # Whether we need soft or hard links.
30167 # What is the maximum length of a command?
30168 max_cmd_len=$max_cmd_len
30170 # Object file suffix (normally "o").
30173 # Executable file suffix (normally "").
30176 # whether the shell understands "unset".
30179 # turn spaces into newlines.
30182 # turn newlines into spaces.
30185 # convert \$build file names to \$host format.
30186 to_host_file_cmd=$lt_cv_to_host_file_cmd
30188 # convert \$build files to toolchain format.
30189 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30191 # Method to check whether dependent libraries are shared objects.
30192 deplibs_check_method=$lt_deplibs_check_method
30194 # Command to use when deplibs_check_method = "file_magic".
30195 file_magic_cmd=$lt_file_magic_cmd
30197 # How to find potential files when deplibs_check_method = "file_magic".
30198 file_magic_glob=$lt_file_magic_glob
30200 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30201 want_nocaseglob=$lt_want_nocaseglob
30203 # Command to associate shared and link libraries.
30204 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30209 # Flags to create an archive.
30210 AR_FLAGS=$lt_AR_FLAGS
30212 # How to feed a file listing to the archiver.
30213 archiver_list_spec=$lt_archiver_list_spec
30215 # A symbol stripping program.
30218 # Commands used to install an old-style archive.
30220 old_postinstall_cmds=$lt_old_postinstall_cmds
30221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30223 # Whether to use a lock for old archive extraction.
30224 lock_old_archive_extraction=$lock_old_archive_extraction
30229 # LTCC compiler flags.
30230 LTCFLAGS=$lt_CFLAGS
30232 # Take the output of nm and produce a listing of raw symbols and C names.
30233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30235 # Transform the output of nm in a proper C declaration.
30236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30238 # Transform the output of nm into a list of symbols to manually relocate.
30239 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30241 # Transform the output of nm in a C name address pair.
30242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30244 # Transform the output of nm in a C name address pair when lib prefix is needed.
30245 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30247 # The name lister interface.
30248 nm_interface=$lt_lt_cv_nm_interface
30250 # Specify filename containing input files for \$NM.
30251 nm_file_list_spec=$lt_nm_file_list_spec
30253 # The root where to search for dependent libraries,and where our libraries should be installed.
30254 lt_sysroot=$lt_sysroot
30256 # Command to truncate a binary pipe.
30257 lt_truncate_bin=$lt_lt_cv_truncate_bin
30259 # The name of the directory that contains temporary libtool files.
30262 # Used to examine libraries when file_magic_cmd begins with "file".
30263 MAGIC_CMD=$MAGIC_CMD
30265 # Must we lock files when doing compilation?
30266 need_locks=$lt_need_locks
30269 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30271 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30272 DSYMUTIL=$lt_DSYMUTIL
30274 # Tool to change global to local symbols on Mac OS X.
30277 # Tool to manipulate fat objects and archives on Mac OS X.
30280 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30283 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30284 OTOOL64=$lt_OTOOL64
30286 # Old archive suffix (normally "a").
30289 # Shared library suffix (normally ".so").
30290 shrext_cmds=$lt_shrext_cmds
30292 # The commands to extract the exported symbol list from a shared archive.
30293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30295 # Variables whose values should be saved in libtool wrapper scripts and
30296 # restored at link time.
30297 variables_saved_for_relink=$lt_variables_saved_for_relink
30299 # Do we need the "lib" prefix for modules?
30300 need_lib_prefix=$need_lib_prefix
30302 # Do we need a version for libraries?
30303 need_version=$need_version
30305 # Library versioning type.
30306 version_type=$version_type
30308 # Shared library runtime path variable.
30309 runpath_var=$runpath_var
30311 # Shared library path variable.
30312 shlibpath_var=$shlibpath_var
30314 # Is shlibpath searched before the hard-coded library search path?
30315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30317 # Format of library name prefix.
30318 libname_spec=$lt_libname_spec
30320 # List of archive names. First name is the real one, the rest are links.
30321 # The last name is the one that the linker finds with -lNAME
30322 library_names_spec=$lt_library_names_spec
30324 # The coded name of the library, if different from the real name.
30325 soname_spec=$lt_soname_spec
30327 # Permission mode override for installation of shared libraries.
30328 install_override_mode=$lt_install_override_mode
30330 # Command to use after installation of a shared archive.
30331 postinstall_cmds=$lt_postinstall_cmds
30333 # Command to use after uninstallation of a shared archive.
30334 postuninstall_cmds=$lt_postuninstall_cmds
30336 # Commands used to finish a libtool library installation in a directory.
30337 finish_cmds=$lt_finish_cmds
30339 # As "finish_cmds", except a single script fragment to be evaled but
30341 finish_eval=$lt_finish_eval
30343 # Whether we should hardcode library paths into libraries.
30344 hardcode_into_libs=$hardcode_into_libs
30346 # Compile-time system search path for libraries.
30347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30349 # Detected run-time system search path for libraries.
30350 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30352 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30353 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30355 # Whether dlopen is supported.
30356 dlopen_support=$enable_dlopen
30358 # Whether dlopen of programs is supported.
30359 dlopen_self=$enable_dlopen_self
30361 # Whether dlopen of statically linked programs is supported.
30362 dlopen_self_static=$enable_dlopen_self_static
30364 # Commands to strip libraries.
30365 old_striplib=$lt_old_striplib
30366 striplib=$lt_striplib
30369 # The linker used to build libraries.
30372 # How to create reloadable object files.
30373 reload_flag=$lt_reload_flag
30374 reload_cmds=$lt_reload_cmds
30376 # Commands used to build an old-style archive.
30377 old_archive_cmds=$lt_old_archive_cmds
30379 # A language specific compiler.
30382 # Is the compiler the GNU compiler?
30385 # Compiler flag to turn off builtin functions.
30386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30388 # Additional compiler flags for building library objects.
30389 pic_flag=$lt_lt_prog_compiler_pic
30391 # How to pass a linker flag through the compiler.
30392 wl=$lt_lt_prog_compiler_wl
30394 # Compiler flag to prevent dynamic linking.
30395 link_static_flag=$lt_lt_prog_compiler_static
30397 # Does compiler simultaneously support -c and -o options?
30398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30400 # Whether or not to add -lc for building shared libraries.
30401 build_libtool_need_lc=$archive_cmds_need_lc
30403 # Whether or not to disallow shared libs when runtime libs are static.
30404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30406 # Compiler flag to allow reflexive dlopens.
30407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30409 # Compiler flag to generate shared objects directly from archives.
30410 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30412 # Whether the compiler copes with passing no objects directly.
30413 compiler_needs_object=$lt_compiler_needs_object
30415 # Create an old-style archive from a shared archive.
30416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30418 # Create a temporary old-style archive to link instead of a shared archive.
30419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30421 # Commands used to build a shared archive.
30422 archive_cmds=$lt_archive_cmds
30423 archive_expsym_cmds=$lt_archive_expsym_cmds
30425 # Commands used to build a loadable module if different from building
30426 # a shared archive.
30427 module_cmds=$lt_module_cmds
30428 module_expsym_cmds=$lt_module_expsym_cmds
30430 # Whether we are building with GNU ld or not.
30431 with_gnu_ld=$lt_with_gnu_ld
30433 # Flag that allows shared libraries with undefined symbols to be built.
30434 allow_undefined_flag=$lt_allow_undefined_flag
30436 # Flag that enforces no undefined symbols.
30437 no_undefined_flag=$lt_no_undefined_flag
30439 # Flag to hardcode \$libdir into a binary during linking.
30440 # This must work even if \$libdir does not exist
30441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30443 # Whether we need a single "-rpath" flag with a separated argument.
30444 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30446 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30447 # DIR into the resulting binary.
30448 hardcode_direct=$hardcode_direct
30450 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30451 # DIR into the resulting binary and the resulting library dependency is
30452 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30453 # library is relocated.
30454 hardcode_direct_absolute=$hardcode_direct_absolute
30456 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30457 # into the resulting binary.
30458 hardcode_minus_L=$hardcode_minus_L
30460 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30461 # into the resulting binary.
30462 hardcode_shlibpath_var=$hardcode_shlibpath_var
30464 # Set to "yes" if building a shared library automatically hardcodes DIR
30465 # into the library and all subsequent libraries and executables linked
30467 hardcode_automatic=$hardcode_automatic
30469 # Set to yes if linker adds runtime paths of dependent libraries
30470 # to runtime path list.
30471 inherit_rpath=$inherit_rpath
30473 # Whether libtool must link a program against all its dependency libraries.
30474 link_all_deplibs=$link_all_deplibs
30476 # Set to "yes" if exported symbols are required.
30477 always_export_symbols=$always_export_symbols
30479 # The commands to list exported symbols.
30480 export_symbols_cmds=$lt_export_symbols_cmds
30482 # Symbols that should not be listed in the preloaded symbols.
30483 exclude_expsyms=$lt_exclude_expsyms
30485 # Symbols that must always be exported.
30486 include_expsyms=$lt_include_expsyms
30488 # Commands necessary for linking programs (against libraries) with templates.
30489 prelink_cmds=$lt_prelink_cmds
30491 # Commands necessary for finishing linking programs.
30492 postlink_cmds=$lt_postlink_cmds
30494 # Specify filename containing input files.
30495 file_list_spec=$lt_file_list_spec
30497 # How to hardcode a shared library path into an executable.
30498 hardcode_action=$hardcode_action
30500 # ### END LIBTOOL CONFIG
30504 cat <<'_LT_EOF' >> "$cfgfile"
30506 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30508 # func_munge_path_list VARIABLE PATH
30509 # -----------------------------------
30510 # VARIABLE is name of variable containing _space_ separated list of
30511 # directories to be munged by the contents of PATH, which is string
30514 # string "DIR[ DIR]" will be prepended to VARIABLE
30516 # string "DIR[ DIR]" will be appended to VARIABLE
30517 # "DIRP[:DIRP]::[DIRA:]DIRA"
30518 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30519 # "DIRA[ DIRA]" will be appended to VARIABLE
30521 # VARIABLE will be replaced by "DIR[ DIR]"
30522 func_munge_path_list ()
30528 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30531 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30534 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30535 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30538 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30544 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
30545 func_cc_basename ()
30547 for cc_temp in $*""; do
30549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30555 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30559 # ### END FUNCTIONS SHARED WITH CONFIGURE
30565 cat <<\_LT_EOF >> "$cfgfile"
30566 # AIX sometimes has problems with the GCC collect2 program. For some
30567 # reason, if we set the COLLECT_NAMES environment variable, the problems
30568 # vanish in a puff of smoke.
30569 if test set != "${COLLECT_NAMES+set}"; then
30571 export COLLECT_NAMES
30578 ltmain=$ac_aux_dir/ltmain.sh
30581 # We use sed instead of cat because bash on DJGPP gets confused if
30582 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30583 # text mode, it properly converts lines to CR/LF. This bash problem
30584 # is reportedly fixed, but why not run on old versions too?
30585 sed '$q' "$ltmain" >> "$cfgfile" \
30586 || (rm -f "$cfgfile"; exit 1)
30588 mv -f "$cfgfile" "$ofile" ||
30589 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30600 ac_clean_files=$ac_clean_files_save
30602 test $ac_write_fail = 0 ||
30603 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30606 # configure is writing to config.log, and then calls config.status.
30607 # config.status does its own redirection, appending to config.log.
30608 # Unfortunately, on DOS this fails, as config.log is still kept open
30609 # by configure, so config.status won't be able to write to it; its
30610 # output is simply discarded. So we exec the FD to /dev/null,
30611 # effectively closing config.log, so it can be properly (re)opened and
30612 # appended to by config.status. When coming back to configure, we
30613 # need to make the FD available again.
30614 if test "$no_create" != yes; then
30616 ac_config_status_args=
30617 test "$silent" = yes &&
30618 ac_config_status_args="$ac_config_status_args --quiet"
30620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30623 # would make configure fail if this is the last instruction.
30624 $ac_cs_success || as_fn_exit 1
30628 # CONFIG_SUBDIRS section.
30630 if test "$no_recursion" != yes; then
30632 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
30633 # so they do not pile up.
30634 ac_sub_configure_args=
30636 eval "set x $ac_configure_args"
30640 if test -n "$ac_prev"; then
30645 -cache-file | --cache-file | --cache-fil | --cache-fi \
30646 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30647 ac_prev=cache_file ;;
30648 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30649 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30652 --config-cache | -C)
30654 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30656 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30662 --disable-option-checking)
30666 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30668 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
30672 # Always prepend --prefix to ensure using the same prefix
30673 # in subdir configurations.
30674 ac_arg="--prefix=$prefix"
30676 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30678 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
30681 if test "$silent" = yes; then
30682 ac_sub_configure_args="--silent $ac_sub_configure_args"
30685 # Always prepend --disable-option-checking to silence warnings, since
30686 # different subdirs can have different --enable and --with options.
30687 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
30690 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30692 # Do not complain, so a configure script can configure whichever
30693 # parts of a large source tree are present.
30694 test -d "$srcdir/$ac_dir" || continue
30696 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
30697 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
30698 $as_echo "$ac_msg" >&6
30699 as_dir="$ac_dir"; as_fn_mkdir_p
30703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30706 # A ".." for each directory in $ac_dir_suffix.
30707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30708 case $ac_top_builddir_sub in
30709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30713 ac_abs_top_builddir=$ac_pwd
30714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30715 # for backward compatibility:
30716 ac_top_builddir=$ac_top_build_prefix
30719 .) # We are building in place.
30721 ac_top_srcdir=$ac_top_builddir_sub
30722 ac_abs_top_srcdir=$ac_pwd ;;
30723 [\\/]* | ?:[\\/]* ) # Absolute name.
30724 ac_srcdir=$srcdir$ac_dir_suffix;
30725 ac_top_srcdir=$srcdir
30726 ac_abs_top_srcdir=$srcdir ;;
30727 *) # Relative name.
30728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30729 ac_top_srcdir=$ac_top_build_prefix$srcdir
30730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30737 # Check for guested configure; otherwise get Cygnus style configure.
30738 if test -f "$ac_srcdir/configure.gnu"; then
30739 ac_sub_configure=$ac_srcdir/configure.gnu
30740 elif test -f "$ac_srcdir/configure"; then
30741 ac_sub_configure=$ac_srcdir/configure
30742 elif test -f "$ac_srcdir/configure.in"; then
30743 # This should be Cygnus configure.
30744 ac_sub_configure=$ac_aux_dir/configure
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
30747 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30751 # The recursion is here.
30752 if test -n "$ac_sub_configure"; then
30753 # Make the cache file name correct relative to the subdirectory.
30754 case $cache_file in
30755 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
30756 *) # Relative name.
30757 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30761 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30762 # The eval makes quoting arguments work.
30763 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
30764 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
30765 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
30771 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30773 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30777 ## ---------------------------------- ##
30778 ## Start of distclean amending code ##
30779 ## ---------------------------------- ##
30781 for xc_subdir in '.'
30784 if test ! -f "$xc_subdir/Makefile"; then
30785 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
30789 # Fetch dependency tracking file list from Makefile include lines.
30791 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
30792 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
30794 # --disable-dependency-tracking might have been used, consequently
30795 # there is nothing to amend without a dependency tracking file list.
30797 if test $xc_cnt_words -gt 0; then
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
30800 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
30802 # Build Makefile specific patch hunk.
30804 xc_p="$xc_subdir/xc_patch.tmp"
30806 xc_rm_depfiles=`echo "$xc_inc_lines" \
30807 | $SED 's%include% -rm -f%' 2>/dev/null`
30809 xc_dep_subdirs=`echo "$xc_inc_lines" \
30810 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
30811 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
30814 echo "$xc_rm_depfiles" >$xc_p
30816 for xc_dep_dir in $xc_dep_subdirs; do
30817 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
30818 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
30819 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
30820 echo "${xc_tab}fi" >>$xc_p
30823 # Build Makefile patching sed scripts.
30825 xc_s1="$xc_subdir/xc_script_1.tmp"
30826 xc_s2="$xc_subdir/xc_script_2.tmp"
30827 xc_s3="$xc_subdir/xc_script_3.tmp"
30829 cat >$xc_s1 <<\_EOT
30830 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
30831 s/^.*(DEPDIR)/___xc_depdir_line___/
30833 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
30834 s/^.*(DEPDIR)/___xc_depdir_line___/
30838 cat >$xc_s2 <<\_EOT
30839 /___xc_depdir_line___$/{
30841 /___xc_depdir_line___$/D
30846 /^___xc_depdir_line___/{
30852 # Apply patch to Makefile and cleanup.
30854 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
30855 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
30856 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
30858 if test -f "$xc_subdir/Makefile.tmp3"; then
30859 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
30862 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
30863 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
30864 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
30866 test -f "$xc_p" && rm -f "$xc_p"
30867 test -f "$xc_s1" && rm -f "$xc_s1"
30868 test -f "$xc_s2" && rm -f "$xc_s2"
30869 test -f "$xc_s3" && rm -f "$xc_s3"
30875 ## -------------------------------- ##
30876 ## End of distclean amending code ##
30877 ## -------------------------------- ##