2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for c-ares 1.12.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.12.0'
828 PACKAGE_STRING='c-ares 1.12.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
935 INSTALL_STRIP_PROGRAM
971 CODE_COVERAGE_LDFLAGS
976 CODE_COVERAGE_ENABLED
977 CODE_COVERAGE_ENABLED_FALSE
978 CODE_COVERAGE_ENABLED_TRUE
988 MAINTAINER_MODE_FALSE
1018 program_transform_name
1031 enable_option_checking
1032 enable_maintainer_mode
1039 enable_symbol_hiding
1040 enable_expose_statics
1042 enable_code_coverage
1043 enable_dependency_tracking
1058 ac_precious_vars='build_alias
1072 ac_subdirs_all='test'
1074 # Initialize some variables set by options.
1076 ac_init_version=false
1077 ac_unrecognized_opts=
1078 ac_unrecognized_sep=
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1088 program_transform_name=s,x,x,
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 runstatedir='${localstatedir}/run'
1111 includedir='${prefix}/include'
1112 oldincludedir='/usr/include'
1113 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1114 infodir='${datarootdir}/info'
1119 libdir='${exec_prefix}/lib'
1120 localedir='${datarootdir}/locale'
1121 mandir='${datarootdir}/man'
1127 # If the previous option needs an argument, assign it.
1128 if test -n "$ac_prev"; then
1129 eval $ac_prev=\$ac_option
1135 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1140 # Accept the important Cygnus configure options, so we can diagnose typos.
1142 case $ac_dashdash$ac_option in
1146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1149 bindir=$ac_optarg ;;
1151 -build | --build | --buil | --bui | --bu)
1152 ac_prev=build_alias ;;
1153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1154 build_alias=$ac_optarg ;;
1156 -cache-file | --cache-file | --cache-fil | --cache-fi \
1157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1158 ac_prev=cache_file ;;
1159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1161 cache_file=$ac_optarg ;;
1163 --config-cache | -C)
1164 cache_file=config.cache ;;
1166 -datadir | --datadir | --datadi | --datad)
1168 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1169 datadir=$ac_optarg ;;
1171 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1172 | --dataroo | --dataro | --datar)
1173 ac_prev=datarootdir ;;
1174 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1175 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1176 datarootdir=$ac_optarg ;;
1178 -disable-* | --disable-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid feature name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "enable_$ac_useropt"
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval enable_$ac_useropt=no ;;
1194 -docdir | --docdir | --docdi | --doc | --do)
1196 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1197 docdir=$ac_optarg ;;
1199 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1201 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1202 dvidir=$ac_optarg ;;
1204 -enable-* | --enable-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid feature name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "enable_$ac_useropt"
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1218 eval enable_$ac_useropt=\$ac_optarg ;;
1220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1222 | --exec | --exe | --ex)
1223 ac_prev=exec_prefix ;;
1224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1226 | --exec=* | --exe=* | --ex=*)
1227 exec_prefix=$ac_optarg ;;
1229 -gas | --gas | --ga | --g)
1230 # Obsolete; use --with-gas.
1233 -help | --help | --hel | --he | -h)
1234 ac_init_help=long ;;
1235 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1236 ac_init_help=recursive ;;
1237 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1238 ac_init_help=short ;;
1240 -host | --host | --hos | --ho)
1241 ac_prev=host_alias ;;
1242 -host=* | --host=* | --hos=* | --ho=*)
1243 host_alias=$ac_optarg ;;
1245 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1247 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1249 htmldir=$ac_optarg ;;
1251 -includedir | --includedir | --includedi | --included | --include \
1252 | --includ | --inclu | --incl | --inc)
1253 ac_prev=includedir ;;
1254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1255 | --includ=* | --inclu=* | --incl=* | --inc=*)
1256 includedir=$ac_optarg ;;
1258 -infodir | --infodir | --infodi | --infod | --info | --inf)
1260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1261 infodir=$ac_optarg ;;
1263 -libdir | --libdir | --libdi | --libd)
1265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1266 libdir=$ac_optarg ;;
1268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1269 | --libexe | --libex | --libe)
1270 ac_prev=libexecdir ;;
1271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1272 | --libexe=* | --libex=* | --libe=*)
1273 libexecdir=$ac_optarg ;;
1275 -localedir | --localedir | --localedi | --localed | --locale)
1276 ac_prev=localedir ;;
1277 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1278 localedir=$ac_optarg ;;
1280 -localstatedir | --localstatedir | --localstatedi | --localstated \
1281 | --localstate | --localstat | --localsta | --localst | --locals)
1282 ac_prev=localstatedir ;;
1283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1284 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1285 localstatedir=$ac_optarg ;;
1287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1290 mandir=$ac_optarg ;;
1292 -nfp | --nfp | --nf)
1293 # Obsolete; use --without-fp.
1296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1297 | --no-cr | --no-c | -n)
1300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1306 | --oldin | --oldi | --old | --ol | --o)
1307 ac_prev=oldincludedir ;;
1308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1311 oldincludedir=$ac_optarg ;;
1313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1316 prefix=$ac_optarg ;;
1318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1319 | --program-pre | --program-pr | --program-p)
1320 ac_prev=program_prefix ;;
1321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1323 program_prefix=$ac_optarg ;;
1325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1326 | --program-suf | --program-su | --program-s)
1327 ac_prev=program_suffix ;;
1328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1330 program_suffix=$ac_optarg ;;
1332 -program-transform-name | --program-transform-name \
1333 | --program-transform-nam | --program-transform-na \
1334 | --program-transform-n | --program-transform- \
1335 | --program-transform | --program-transfor \
1336 | --program-transfo | --program-transf \
1337 | --program-trans | --program-tran \
1338 | --progr-tra | --program-tr | --program-t)
1339 ac_prev=program_transform_name ;;
1340 -program-transform-name=* | --program-transform-name=* \
1341 | --program-transform-nam=* | --program-transform-na=* \
1342 | --program-transform-n=* | --program-transform-=* \
1343 | --program-transform=* | --program-transfor=* \
1344 | --program-transfo=* | --program-transf=* \
1345 | --program-trans=* | --program-tran=* \
1346 | --progr-tra=* | --program-tr=* | --program-t=*)
1347 program_transform_name=$ac_optarg ;;
1349 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1351 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1352 pdfdir=$ac_optarg ;;
1354 -psdir | --psdir | --psdi | --psd | --ps)
1356 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1360 | -silent | --silent | --silen | --sile | --sil)
1363 -runstatedir | --runstatedir | --runstatedi | --runstated \
1364 | --runstate | --runstat | --runsta | --runst | --runs \
1365 | --run | --ru | --r)
1366 ac_prev=runstatedir ;;
1367 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1368 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1369 | --run=* | --ru=* | --r=*)
1370 runstatedir=$ac_optarg ;;
1372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1376 sbindir=$ac_optarg ;;
1378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1380 | --sharedst | --shareds | --shared | --share | --shar \
1382 ac_prev=sharedstatedir ;;
1383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1387 sharedstatedir=$ac_optarg ;;
1389 -site | --site | --sit)
1391 -site=* | --site=* | --sit=*)
1394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1397 srcdir=$ac_optarg ;;
1399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1400 | --syscon | --sysco | --sysc | --sys | --sy)
1401 ac_prev=sysconfdir ;;
1402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1404 sysconfdir=$ac_optarg ;;
1406 -target | --target | --targe | --targ | --tar | --ta | --t)
1407 ac_prev=target_alias ;;
1408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1409 target_alias=$ac_optarg ;;
1411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1414 -version | --version | --versio | --versi | --vers | -V)
1415 ac_init_version=: ;;
1418 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1419 # Reject names that are not valid shell variable names.
1420 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1421 as_fn_error $? "invalid package name: $ac_useropt"
1422 ac_useropt_orig=$ac_useropt
1423 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424 case $ac_user_opts in
1428 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1429 ac_unrecognized_sep=', ';;
1431 eval with_$ac_useropt=\$ac_optarg ;;
1433 -without-* | --without-*)
1434 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437 as_fn_error $? "invalid package name: $ac_useropt"
1438 ac_useropt_orig=$ac_useropt
1439 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440 case $ac_user_opts in
1444 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1445 ac_unrecognized_sep=', ';;
1447 eval with_$ac_useropt=no ;;
1450 # Obsolete; use --with-x.
1453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1454 | --x-incl | --x-inc | --x-in | --x-i)
1455 ac_prev=x_includes ;;
1456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1458 x_includes=$ac_optarg ;;
1460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1462 ac_prev=x_libraries ;;
1463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1465 x_libraries=$ac_optarg ;;
1467 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1468 Try \`$0 --help' for more information"
1472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1473 # Reject names that are not valid shell variable names.
1474 case $ac_envvar in #(
1475 '' | [0-9]* | *[!_$as_cr_alnum]* )
1476 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1478 eval $ac_envvar=\$ac_optarg
1479 export $ac_envvar ;;
1482 # FIXME: should be removed in autoconf 3.0.
1483 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1485 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1486 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1492 if test -n "$ac_prev"; then
1493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1494 as_fn_error $? "missing argument to $ac_option"
1497 if test -n "$ac_unrecognized_opts"; then
1498 case $enable_option_checking in
1500 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1501 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1505 # Check all directory arguments for consistency.
1506 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1507 datadir sysconfdir sharedstatedir localstatedir includedir \
1508 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1509 libdir localedir mandir runstatedir
1511 eval ac_val=\$$ac_var
1512 # Remove trailing slashes.
1515 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1516 eval $ac_var=\$ac_val;;
1518 # Be sure to have absolute directory names.
1520 [\\/$]* | ?:[\\/]* ) continue;;
1521 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1523 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1526 # There might be people who depend on the old broken behavior: `$host'
1527 # used to hold the argument of --host etc.
1528 # FIXME: To remove some day.
1531 target=$target_alias
1533 # FIXME: To remove some day.
1534 if test "x$host_alias" != x; then
1535 if test "x$build_alias" = x; then
1536 cross_compiling=maybe
1537 elif test "x$build_alias" != "x$host_alias"; then
1543 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1545 test "$silent" = yes && exec 6>/dev/null
1548 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1549 ac_ls_di=`ls -di .` &&
1550 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1551 as_fn_error $? "working directory cannot be determined"
1552 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1553 as_fn_error $? "pwd does not report name of working directory"
1556 # Find the source files, if location was not specified.
1557 if test -z "$srcdir"; then
1558 ac_srcdir_defaulted=yes
1559 # Try the directory containing this script, then the parent directory.
1560 ac_confdir=`$as_dirname -- "$as_myself" ||
1561 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1562 X"$as_myself" : 'X\(//\)[^/]' \| \
1563 X"$as_myself" : 'X\(//\)$' \| \
1564 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1565 $as_echo X"$as_myself" |
1566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1584 if test ! -r "$srcdir/$ac_unique_file"; then
1588 ac_srcdir_defaulted=no
1590 if test ! -r "$srcdir/$ac_unique_file"; then
1591 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1592 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1594 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1596 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1598 # When building in place, set srcdir=.
1599 if test "$ac_abs_confdir" = "$ac_pwd"; then
1602 # Remove unnecessary trailing slashes from srcdir.
1603 # Double slashes in file names in object file debugging info
1604 # mess up M-x gdb in Emacs.
1606 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1608 for ac_var in $ac_precious_vars; do
1609 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_env_${ac_var}_value=\$${ac_var}
1611 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1612 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1616 # Report the --help message.
1618 if test "$ac_init_help" = "long"; then
1619 # Omit some internal or obsolete options to make the list less imposing.
1620 # This message is too long to be a string in the A/UX 3.1 sh.
1622 \`configure' configures c-ares 1.12.0 to adapt to many kinds of systems.
1624 Usage: $0 [OPTION]... [VAR=VALUE]...
1626 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1627 VAR=VALUE. See below for descriptions of some of the useful variables.
1629 Defaults for the options are specified in brackets.
1632 -h, --help display this help and exit
1633 --help=short display options specific to this package
1634 --help=recursive display the short help of all the included packages
1635 -V, --version display version information and exit
1636 -q, --quiet, --silent do not print \`checking ...' messages
1637 --cache-file=FILE cache test results in FILE [disabled]
1638 -C, --config-cache alias for \`--cache-file=config.cache'
1639 -n, --no-create do not create output files
1640 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1642 Installation directories:
1643 --prefix=PREFIX install architecture-independent files in PREFIX
1644 [$ac_default_prefix]
1645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1648 By default, \`make install' will install all the files in
1649 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1650 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1651 for instance \`--prefix=\$HOME'.
1653 For better control, use the options below.
1655 Fine tuning of the installation directories:
1656 --bindir=DIR user executables [EPREFIX/bin]
1657 --sbindir=DIR system admin executables [EPREFIX/sbin]
1658 --libexecdir=DIR program executables [EPREFIX/libexec]
1659 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1660 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1661 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1662 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1663 --libdir=DIR object code libraries [EPREFIX/lib]
1664 --includedir=DIR C header files [PREFIX/include]
1665 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1666 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1667 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1668 --infodir=DIR info documentation [DATAROOTDIR/info]
1669 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1670 --mandir=DIR man documentation [DATAROOTDIR/man]
1671 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares]
1672 --htmldir=DIR html documentation [DOCDIR]
1673 --dvidir=DIR dvi documentation [DOCDIR]
1674 --pdfdir=DIR pdf documentation [DOCDIR]
1675 --psdir=DIR ps documentation [DOCDIR]
1681 --program-prefix=PREFIX prepend PREFIX to installed program names
1682 --program-suffix=SUFFIX append SUFFIX to installed program names
1683 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1686 --build=BUILD configure for building on BUILD [guessed]
1687 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1691 if test -n "$ac_init_help"; then
1692 case $ac_init_help in
1693 short | recursive ) echo "Configuration of c-ares 1.12.0:";;
1698 --disable-option-checking ignore unrecognized --enable/--with options
1699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1701 --enable-maintainer-mode
1702 enable make rules and dependencies not useful (and
1703 sometimes confusing) to the casual installer
1704 --enable-silent-rules less verbose build output (undo: "make V=1")
1705 --disable-silent-rules verbose build output (undo: "make V=0")
1706 --enable-debug Enable debug build options
1707 --disable-debug Disable debug build options
1708 --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1709 --disable-optimize Disable compiler optimizations
1710 --enable-warnings Enable strict compiler warnings
1711 --disable-warnings Disable strict compiler warnings
1712 --enable-werror Enable compiler warnings as errors
1713 --disable-werror Disable compiler warnings as errors
1714 --enable-curldebug Enable curl debug memory tracking
1715 --disable-curldebug Disable curl debug memory tracking
1716 --enable-symbol-hiding Enable hiding of library internal symbols
1717 --disable-symbol-hiding Disable hiding of library internal symbols
1718 --enable-expose-statics Enable exposure of internal static functions for
1720 --disable-expose-statics
1721 Disable exposure of internal static functions for
1723 --enable-code-coverage Whether to enable code coverage support
1724 --enable-dependency-tracking
1725 do not reject slow dependency extractors
1726 --disable-dependency-tracking
1727 speeds up one-time build
1728 --disable-largefile omit support for large files
1729 --enable-shared[=PKGS] build shared libraries [default=yes]
1730 --enable-static[=PKGS] build static libraries [default=yes]
1731 --enable-fast-install[=PKGS]
1732 optimize for fast installation [default=yes]
1733 --disable-libtool-lock avoid locking (might break parallel builds)
1734 --enable-libgcc use libgcc when linking
1735 --enable-nonblocking Enable non-blocking communications
1736 --disable-nonblocking Disable non-blocking communications
1737 --enable-tests build test suite
1740 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1741 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1742 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1743 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1745 --with-aix-soname=aix|svr4|both
1746 shared library versioning (aka "SONAME") variant to
1747 provide on AIX, [default=aix].
1748 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1749 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1750 compiler's sysroot if not specified).
1751 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1753 Some influential environment variables:
1754 CC C compiler command
1755 CFLAGS C compiler flags
1756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1757 nonstandard directory <lib dir>
1758 LIBS libraries to pass to the linker, e.g. -l<library>
1759 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1760 you have headers in a nonstandard directory <include dir>
1762 CXX C++ compiler command
1763 CXXFLAGS C++ compiler flags
1765 User-defined run-time library search path.
1766 CXXCPP C++ preprocessor
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1771 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1801 .) # We are building in place.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1834 c-ares configure 1.12.0
1835 generated by GNU Autoconf 2.69
1837 Copyright (C) 2012 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_try_compile
1886 # ac_fn_c_try_cpp LINENO
1887 # ----------------------
1888 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_cpp conftest.$ac_ext"
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } > conftest.i && {
1908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1923 # ac_fn_cxx_try_compile LINENO
1924 # ----------------------------
1925 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_cxx_try_compile ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext
1930 if { { ac_try="$ac_compile"
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_compile") 2>conftest.err
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest.$ac_objext; then :
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1959 } # ac_fn_cxx_try_compile
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 test -x conftest$ac_exeext
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_link
2007 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists and can be compiled using the include files in
2010 # INCLUDES, setting the cache variable VAR accordingly.
2011 ac_fn_c_check_header_compile ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_header_compile
2038 # ac_fn_c_try_run LINENO
2039 # ----------------------
2040 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2041 # that executables *can* be run.
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if { { ac_try="$ac_link"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_link") 2>&5
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2056 { { case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_try") 2>&5
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; }; }; then :
2068 $as_echo "$as_me: program exited with status $ac_status" >&5
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2072 ac_retval=$ac_status
2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 as_fn_set_status $ac_retval
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2094 #define $2 innocuous_$2
2096 # include <limits.h>
2098 # include <assert.h>
2105 #if defined __stub_$2 || defined __stub___$2
2116 if ac_fn_c_try_link "$LINENO"; then :
2121 rm -f core conftest.err conftest.$ac_objext \
2122 conftest$ac_exeext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_func
2131 # ac_fn_cxx_try_cpp LINENO
2132 # ------------------------
2133 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_cpp ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if { { ac_try="$ac_cpp conftest.$ac_ext"
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2146 if test -s conftest.err; then
2147 grep -v '^ *+' conftest.err >conftest.er1
2148 cat conftest.er1 >&5
2149 mv -f conftest.er1 conftest.err
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } > conftest.i && {
2153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2154 test ! -s conftest.err
2158 $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 as_fn_set_status $ac_retval
2166 } # ac_fn_cxx_try_cpp
2168 # ac_fn_cxx_try_link LINENO
2169 # -------------------------
2170 # Try to link conftest.$ac_ext, and return whether this succeeded.
2171 ac_fn_cxx_try_link ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 rm -f conftest.$ac_objext conftest$ac_exeext
2175 if { { ac_try="$ac_link"
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_link") 2>conftest.err
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } && {
2191 test -z "$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2193 } && test -s conftest$ac_exeext && {
2194 test "$cross_compiling" = yes ||
2195 test -x conftest$ac_exeext
2199 $as_echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2204 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2205 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2206 # interfere with the next link command; also delete a directory that is
2207 # left behind by Apple's compiler. We do this before executing the actions.
2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 as_fn_set_status $ac_retval
2212 } # ac_fn_cxx_try_link
2214 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2215 # -------------------------------------------------------
2216 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2217 # the include files in INCLUDES and setting the cache variable VAR
2219 ac_fn_c_check_header_mongrel ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if eval \${$3+:} false; then :
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2232 # Is the header compilable?
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2234 $as_echo_n "checking $2 usability... " >&6; }
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 ac_header_compiler=yes
2243 ac_header_compiler=no
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2247 $as_echo "$ac_header_compiler" >&6; }
2249 # Is the header present?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2251 $as_echo_n "checking $2 presence... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 if ac_fn_c_try_cpp "$LINENO"; then :
2257 ac_header_preproc=yes
2259 ac_header_preproc=no
2261 rm -f conftest.err conftest.i conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2263 $as_echo "$ac_header_preproc" >&6; }
2265 # So? What about this header?
2266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2269 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2275 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2277 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2279 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2281 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284 ( $as_echo "## ------------------------------------------------------------------------------- ##
2285 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2286 ## ------------------------------------------------------------------------------- ##"
2287 ) | sed "s/^/$as_me: WARNING: /" >&2
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if eval \${$3+:} false; then :
2293 $as_echo_n "(cached) " >&6
2295 eval "$3=\$ac_header_compiler"
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 } # ac_fn_c_check_header_mongrel
2305 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2306 # -------------------------------------------
2307 # Tests whether TYPE exists after having included INCLUDES, setting cache
2308 # variable VAR accordingly.
2309 ac_fn_c_check_type ()
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if eval \${$3+:} false; then :
2315 $as_echo_n "(cached) " >&6
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2341 if ac_fn_c_try_compile "$LINENO"; then :
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 } # ac_fn_c_check_type
2357 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2358 # ----------------------------------------------------
2359 # Tries to find if the field MEMBER exists in type AGGR, after including
2360 # INCLUDES, setting cache variable VAR accordingly.
2361 ac_fn_c_check_member ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2365 $as_echo_n "checking for $2.$3... " >&6; }
2366 if eval \${$4+:} false; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2381 if ac_fn_c_try_compile "$LINENO"; then :
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2390 if (sizeof ac_aggr.$3)
2396 if ac_fn_c_try_compile "$LINENO"; then :
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 } # ac_fn_c_check_member
2411 cat >config.log <<_ACEOF
2412 This file contains any messages produced by compilers while
2413 running configure, to aid debugging if configure makes a mistake.
2415 It was created by c-ares $as_me 1.12.0, which was
2416 generated by GNU Autoconf 2.69. Invocation command line was
2428 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2429 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2430 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2431 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2432 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2434 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2435 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2437 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2438 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2439 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2440 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2441 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2442 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2443 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 $as_echo "PATH: $as_dir"
2468 # Keep a trace of the command line.
2469 # Strip out --no-create and --no-recursion so they do not pile up.
2470 # Strip out --silent because we don't want to record it for future runs.
2471 # Also quote any args containing shell meta-characters.
2472 # Make two passes to allow for proper duplicate-argument suppression.
2476 ac_must_keep_next=false
2482 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2484 | -silent | --silent | --silen | --sile | --sil)
2487 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2490 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2492 as_fn_append ac_configure_args1 " '$ac_arg'"
2493 if test $ac_must_keep_next = true; then
2494 ac_must_keep_next=false # Got value, back to normal.
2497 *=* | --config-cache | -C | -disable-* | --disable-* \
2498 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2499 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2500 | -with-* | --with-* | -without-* | --without-* | --x)
2501 case "$ac_configure_args0 " in
2502 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2505 -* ) ac_must_keep_next=true ;;
2508 as_fn_append ac_configure_args " '$ac_arg'"
2513 { ac_configure_args0=; unset ac_configure_args0;}
2514 { ac_configure_args1=; unset ac_configure_args1;}
2516 # When interrupted or exit'd, cleanup temporary files, and complete
2517 # config.log. We remove comments because anyway the quotes in there
2518 # would cause problems or look ugly.
2519 # WARNING: Use '\'' to represent an apostrophe within the trap.
2520 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2521 trap 'exit_status=$?
2522 # Save into config.log some information that might help in debugging.
2526 $as_echo "## ---------------- ##
2527 ## Cache variables. ##
2528 ## ---------------- ##"
2530 # The following way of writing the cache mishandles newlines in values,
2532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2533 eval ac_val=\$$ac_var
2537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2541 _ | IFS | as_nl) ;; #(
2542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2543 *) { eval $ac_var=; unset $ac_var;} ;;
2548 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2549 *${as_nl}ac_space=\ *)
2551 "s/'\''/'\''\\\\'\'''\''/g;
2552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2562 $as_echo "## ----------------- ##
2563 ## Output variables. ##
2564 ## ----------------- ##"
2566 for ac_var in $ac_subst_vars
2568 eval ac_val=\$$ac_var
2570 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 $as_echo "$ac_var='\''$ac_val'\''"
2576 if test -n "$ac_subst_files"; then
2577 $as_echo "## ------------------- ##
2578 ## File substitutions. ##
2579 ## ------------------- ##"
2581 for ac_var in $ac_subst_files
2583 eval ac_val=\$$ac_var
2585 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587 $as_echo "$ac_var='\''$ac_val'\''"
2592 if test -s confdefs.h; then
2593 $as_echo "## ----------- ##
2600 test "$ac_signal" != 0 &&
2601 $as_echo "$as_me: caught signal $ac_signal"
2602 $as_echo "$as_me: exit $exit_status"
2604 rm -f core *.core core.conftest.* &&
2605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2608 for ac_signal in 1 2 13 15; do
2609 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2614 rm -f -r conftest* confdefs.h
2616 $as_echo "/* confdefs.h */" > confdefs.h
2618 # Predefined preprocessor variables.
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_NAME "$PACKAGE_NAME"
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_STRING "$PACKAGE_STRING"
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_URL "$PACKAGE_URL"
2645 # Let the site file select an alternate cache file if it wants to.
2646 # Prefer an explicitly selected file to automatically selected ones.
2649 if test -n "$CONFIG_SITE"; then
2650 # We do not want a PATH search for config.site.
2651 case $CONFIG_SITE in #((
2652 -*) ac_site_file1=./$CONFIG_SITE;;
2653 */*) ac_site_file1=$CONFIG_SITE;;
2654 *) ac_site_file1=./$CONFIG_SITE;;
2656 elif test "x$prefix" != xNONE; then
2657 ac_site_file1=$prefix/share/config.site
2658 ac_site_file2=$prefix/etc/config.site
2660 ac_site_file1=$ac_default_prefix/share/config.site
2661 ac_site_file2=$ac_default_prefix/etc/config.site
2663 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2665 test "x$ac_site_file" = xNONE && continue
2666 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2668 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2669 sed 's/^/| /' "$ac_site_file" >&5
2671 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 as_fn_error $? "failed to load site script $ac_site_file
2674 See \`config.log' for more details" "$LINENO" 5; }
2678 if test -r "$cache_file"; then
2679 # Some versions of bash will fail to source /dev/null (special files
2680 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2681 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2683 $as_echo "$as_me: loading cache $cache_file" >&6;}
2685 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2686 *) . "./$cache_file";;
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2691 $as_echo "$as_me: creating cache $cache_file" >&6;}
2695 # Check that the precious variables saved in the cache have kept the same
2697 ac_cache_corrupted=false
2698 for ac_var in $ac_precious_vars; do
2699 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2700 eval ac_new_set=\$ac_env_${ac_var}_set
2701 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2702 eval ac_new_val=\$ac_env_${ac_var}_value
2703 case $ac_old_set,$ac_new_set in
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2706 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2707 ac_cache_corrupted=: ;;
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2710 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2711 ac_cache_corrupted=: ;;
2714 if test "x$ac_old_val" != "x$ac_new_val"; then
2715 # differences in whitespace do not lead to failure.
2716 ac_old_val_w=`echo x $ac_old_val`
2717 ac_new_val_w=`echo x $ac_new_val`
2718 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2720 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2721 ac_cache_corrupted=:
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2724 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2725 eval $ac_var=\$ac_old_val
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2728 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2730 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2733 # Pass precious variables to config.status.
2734 if test "$ac_new_set" = set; then
2736 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737 *) ac_arg=$ac_var=$ac_new_val ;;
2739 case " $ac_configure_args " in
2740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2741 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2745 if $ac_cache_corrupted; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2750 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2752 ## -------------------- ##
2753 ## Main body of script. ##
2754 ## -------------------- ##
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 # using cares-override.m4
2772 ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2777 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2778 # Check whether --enable-maintainer-mode was given.
2779 if test "${enable_maintainer_mode+set}" = set; then :
2780 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2782 USE_MAINTAINER_MODE=no
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2786 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2787 if test $USE_MAINTAINER_MODE = yes; then
2788 MAINTAINER_MODE_TRUE=
2789 MAINTAINER_MODE_FALSE='#'
2791 MAINTAINER_MODE_TRUE='#'
2792 MAINTAINER_MODE_FALSE=
2795 MAINT=$MAINTAINER_MODE_TRUE
2798 # Check whether --enable-silent-rules was given.
2799 if test "${enable_silent_rules+set}" = set; then :
2800 enableval=$enable_silent_rules;
2803 case $enable_silent_rules in # (((
2804 yes) AM_DEFAULT_VERBOSITY=0;;
2805 no) AM_DEFAULT_VERBOSITY=1;;
2806 *) AM_DEFAULT_VERBOSITY=0;;
2808 am_make=${MAKE-make}
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2810 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2811 if ${am_cv_make_support_nested_variables+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 if $as_echo 'TRUE=$(BAR$(V))
2820 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2821 am_cv_make_support_nested_variables=yes
2823 am_cv_make_support_nested_variables=no
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2827 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2828 if test $am_cv_make_support_nested_variables = yes; then
2830 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2832 AM_V=$AM_DEFAULT_VERBOSITY
2833 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2840 $as_echo_n "checking whether to enable debug build options... " >&6; }
2841 OPT_DEBUG_BUILD="default"
2842 # Check whether --enable-debug was given.
2843 if test "${enable_debug+set}" = set; then :
2844 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2847 case "$OPT_DEBUG_BUILD" in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2859 $as_echo "$want_debug" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2863 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2864 OPT_COMPILER_OPTIMIZE="default"
2865 # Check whether --enable-optimize was given.
2866 if test "${enable_optimize+set}" = set; then :
2867 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2870 case "$OPT_COMPILER_OPTIMIZE" in
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2877 if test "$want_debug" = "yes"; then
2878 want_optimize="assume_no"
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2880 $as_echo "not specified (assuming no)" >&6; }
2882 want_optimize="assume_yes"
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2884 $as_echo "not specified (assuming yes)" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2896 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2897 OPT_COMPILER_WARNINGS="default"
2898 # Check whether --enable-warnings was given.
2899 if test "${enable_warnings+set}" = set; then :
2900 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2903 case "$OPT_COMPILER_WARNINGS" in
2908 want_warnings="$want_debug"
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2915 $as_echo "$want_warnings" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2919 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2920 OPT_COMPILER_WERROR="default"
2921 # Check whether --enable-werror was given.
2922 if test "${enable_werror+set}" = set; then :
2923 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2926 case "$OPT_COMPILER_WERROR" in
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2938 $as_echo "$want_werror" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2942 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2943 OPT_CURLDEBUG_BUILD="default"
2944 # Check whether --enable-curldebug was given.
2945 if test "${enable_curldebug+set}" = set; then :
2946 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2949 case "$OPT_CURLDEBUG_BUILD" in
2957 want_curldebug="yes"
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
2961 $as_echo "$want_curldebug" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2965 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2966 OPT_SYMBOL_HIDING="default"
2967 # Check whether --enable-symbol-hiding was given.
2968 if test "${enable_symbol_hiding+set}" = set; then :
2969 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2972 case "$OPT_SYMBOL_HIDING" in
2974 want_symbol_hiding="no"
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2979 want_symbol_hiding="yes"
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2984 want_symbol_hiding="yes"
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986 $as_echo "yes" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
2992 $as_echo_n "checking whether to expose internal static functions for testing... " >&6; }
2993 OPT_EXPOSE_STATICS="default"
2994 # Check whether --enable-expose-statics was given.
2995 if test "${enable_expose_statics+set}" = set; then :
2996 enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
2999 case "$OPT_EXPOSE_STATICS" in
3001 want_expose_statics="no"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3006 want_expose_statics="no"
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3011 want_expose_statics="yes"
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3016 if test "$want_expose_statics" = "yes"; then
3018 cat >>confdefs.h <<_ACEOF
3019 #define CARES_EXPOSE_STATICS 1
3026 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3029 if test -z "$xc_configure_preamble_result"; then
3030 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3034 # Check that 'PATH_SEPARATOR' has already been set.
3037 if test -z "$xc_PATH_SEPARATOR"; then
3038 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3040 if test -z "$PATH_SEPARATOR"; then
3041 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3044 $as_echo_n "checking for path separator... " >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3046 $as_echo "$PATH_SEPARATOR" >&6; }
3047 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3049 $as_echo_n "checking for initial path separator... " >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3051 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3052 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3056 # Extract the first word of "sed", so it can be a program name with args.
3057 set dummy sed; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_path_SED+:} false; then :
3061 $as_echo_n "(cached) " >&6
3065 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3070 for as_dir in $as_dummy
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3089 if test -n "$SED"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3091 $as_echo "$SED" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3098 if test -z "$SED" || test "$SED" = "not_found"; then
3099 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3103 # Extract the first word of "grep", so it can be a program name with args.
3104 set dummy grep; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_path_GREP+:} false; then :
3108 $as_echo_n "(cached) " >&6
3112 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3117 for as_dir in $as_dummy
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3135 GREP=$ac_cv_path_GREP
3136 if test -n "$GREP"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3138 $as_echo "$GREP" >&6; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3145 if test -z "$GREP" || test "$GREP" = "not_found"; then
3146 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3150 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3152 $as_echo_n "checking for egrep... " >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3155 $as_echo "$EGREP" >&6; }
3157 # Extract the first word of "egrep", so it can be a program name with args.
3158 set dummy egrep; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_path_EGREP+:} false; then :
3162 $as_echo_n "(cached) " >&6
3166 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3171 for as_dir in $as_dummy
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3189 EGREP=$ac_cv_path_EGREP
3190 if test -n "$EGREP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3192 $as_echo "$EGREP" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3200 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3201 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3205 if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3207 set dummy ${ac_tool_prefix}ar; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_path_AR+:} false; then :
3211 $as_echo_n "(cached) " >&6
3215 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3220 for as_dir in $as_dummy
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 if test -n "$AR"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3240 $as_echo "$AR" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3248 if test -z "$ac_cv_path_AR"; then
3250 # Extract the first word of "ar", so it can be a program name with args.
3251 set dummy ar; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if ${ac_cv_path_ac_pt_AR+:} false; then :
3255 $as_echo_n "(cached) " >&6
3259 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3264 for as_dir in $as_dummy
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 ac_pt_AR=$ac_cv_path_ac_pt_AR
3282 if test -n "$ac_pt_AR"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3284 $as_echo "$ac_pt_AR" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3290 if test "x$ac_pt_AR" = x; then
3293 case $cross_compiling:$ac_tool_warned in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3305 if test -z "$AR" || test "$AR" = "not_found"; then
3306 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3311 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3312 if ${ac_cv_path_SED+:} false; then :
3313 $as_echo_n "(cached) " >&6
3315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3316 for ac_i in 1 2 3 4 5 6 7; do
3317 ac_script="$ac_script$as_nl$ac_script"
3319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3320 { ac_script=; unset ac_script;}
3321 if test -z "$SED"; then
3322 ac_path_SED_found=false
3323 # Loop through the user's path and test for each of PROGNAME-LIST
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_prog in sed gsed; do
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3332 as_fn_executable_p "$ac_path_SED" || continue
3333 # Check for GNU ac_path_SED and select it if it is found.
3334 # Check for GNU $ac_path_SED
3335 case `"$ac_path_SED" --version 2>&1` in
3337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3340 $as_echo_n 0123456789 >"conftest.in"
3343 cat "conftest.in" "conftest.in" >"conftest.tmp"
3344 mv "conftest.tmp" "conftest.in"
3345 cp "conftest.in" "conftest.nl"
3346 $as_echo '' >> "conftest.nl"
3347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3349 as_fn_arith $ac_count + 1 && ac_count=$as_val
3350 if test $ac_count -gt ${ac_path_SED_max-0}; then
3351 # Best one so far, save it but keep looking for a better one
3352 ac_cv_path_SED="$ac_path_SED"
3353 ac_path_SED_max=$ac_count
3355 # 10*(2^10) chars as input seems more than enough
3356 test $ac_count -gt 10 && break
3358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3361 $ac_path_SED_found && break 3
3366 if test -z "$ac_cv_path_SED"; then
3367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3375 $as_echo "$ac_cv_path_SED" >&6; }
3376 SED="$ac_cv_path_SED"
3382 # allow to override gcov location
3384 # Check whether --with-gcov was given.
3385 if test "${with_gcov+set}" = set; then :
3386 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3388 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3393 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3394 # Check whether --enable-code-coverage was given.
3395 if test "${enable_code_coverage+set}" = set; then :
3396 enableval=$enable_code_coverage;
3398 enable_code_coverage=no
3402 if test x$enable_code_coverage = xyes; then
3403 CODE_COVERAGE_ENABLED_TRUE=
3404 CODE_COVERAGE_ENABLED_FALSE='#'
3406 CODE_COVERAGE_ENABLED_TRUE='#'
3407 CODE_COVERAGE_ENABLED_FALSE=
3410 CODE_COVERAGE_ENABLED=$enable_code_coverage
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3413 $as_echo "$enable_code_coverage" >&6; }
3415 if test "$enable_code_coverage" = "yes" ; then :
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_GCOV+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$GCOV"; then
3427 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 GCOV=$ac_cv_prog_GCOV
3447 if test -n "$GCOV"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3449 $as_echo "$GCOV" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$ac_cv_prog_GCOV"; then
3459 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3460 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$ac_ct_GCOV"; then
3467 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3487 if test -n "$ac_ct_GCOV"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3489 $as_echo "$ac_ct_GCOV" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 if test "x$ac_ct_GCOV" = x; then
3498 case $cross_compiling:$ac_tool_warned in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3507 GCOV="$ac_cv_prog_GCOV"
3510 if test "X$GCOV" = "X:"; then :
3511 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3515 if test "$GCC" = "no" ; then :
3517 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3521 # List of supported lcov versions.
3522 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
3524 # Extract the first word of "lcov", so it can be a program name with args.
3525 set dummy lcov; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_LCOV+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$LCOV"; then
3532 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_LCOV="lcov"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 LCOV=$ac_cv_prog_LCOV
3552 if test -n "$LCOV"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3554 $as_echo "$LCOV" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3561 # Extract the first word of "genhtml", so it can be a program name with args.
3562 set dummy genhtml; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_GENHTML+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$GENHTML"; then
3569 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_GENHTML="genhtml"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 GENHTML=$ac_cv_prog_GENHTML
3589 if test -n "$GENHTML"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3591 $as_echo "$GENHTML" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3599 if test "$LCOV" ; then :
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
3602 $as_echo_n "checking for lcov version... " >&6; }
3603 if ${ax_cv_lcov_version+:} false; then :
3604 $as_echo_n "(cached) " >&6
3607 ax_cv_lcov_version=invalid
3608 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
3609 for lcov_check_version in $lcov_version_list; do
3610 if test "$lcov_version" = "$lcov_check_version"; then
3611 ax_cv_lcov_version="$lcov_check_version (ok)"
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
3617 $as_echo "$ax_cv_lcov_version" >&6; }
3621 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
3622 as_fn_error $? "$lcov_msg" "$LINENO" 5
3626 case $ax_cv_lcov_version in
3628 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
3629 as_fn_error $? "$lcov_msg" "$LINENO" 5
3634 if test -z "$GENHTML" ; then :
3636 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3640 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3641 CODE_COVERAGE_LDFLAGS="-lgcov"
3646 CODE_COVERAGE_RULES='
3650 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3651 # (Default: $(top_builddir))
3652 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3653 # by lcov for code coverage. (Default:
3654 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3655 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3656 # reports to be created. (Default:
3657 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3658 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3659 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
3660 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3661 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
3662 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3663 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3664 # instance. (Default: empty)
3665 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3667 # The generated report will be titled using the $(PACKAGE_NAME) and
3668 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
3669 # use the git-version-gen script, available online.
3671 # Optional variables
3672 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3673 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3674 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3675 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3676 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3677 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3678 CODE_COVERAGE_GENHTML_OPTIONS ?=
3679 CODE_COVERAGE_IGNORE_PATTERN ?=
3681 code_coverage_quiet = $(code_coverage_quiet_$(V))
3682 code_coverage_quiet_ =
3683 code_coverage_quiet_0 = --quiet
3685 # Use recursive makes in order to ignore errors during check
3686 check-code-coverage:
3687 -$(MAKE) $(AM_MAKEFLAGS) -k check
3688 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3690 # Capture code coverage data
3691 code-coverage-capture: code-coverage-capture-hook
3692 $(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)
3693 $(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)"
3694 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3695 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)
3696 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3698 # Hook rule executed before code-coverage-capture, overridable by the user
3699 code-coverage-capture-hook:
3701 clean: code-coverage-clean
3702 code-coverage-clean:
3703 -$(LCOV) --directory $(top_builddir) -z
3704 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3705 -find . -name "*.gcda" -o -name "*.gcov" -delete
3708 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3710 DISTCHECK_CONFIGURE_FLAGS ?=
3711 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3713 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3722 if test -f ${srcdir}/ares_build.h; then
3723 rm -f ${srcdir}/ares_build.h
3728 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3729 if test -f "$ac_dir/install-sh"; then
3731 ac_install_sh="$ac_aux_dir/install-sh -c"
3733 elif test -f "$ac_dir/install.sh"; then
3735 ac_install_sh="$ac_aux_dir/install.sh -c"
3737 elif test -f "$ac_dir/shtool"; then
3739 ac_install_sh="$ac_aux_dir/shtool install -c"
3743 if test -z "$ac_aux_dir"; then
3744 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3747 # These three variables are undocumented and unsupported,
3748 # and are intended to be withdrawn in a future Autoconf release.
3749 # They can cause serious problems if a builder's source tree is in a directory
3750 # whose full name contains unusual characters.
3751 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3752 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3753 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3756 # Make sure we can run config.sub.
3757 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3758 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3761 $as_echo_n "checking build system type... " >&6; }
3762 if ${ac_cv_build+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 ac_build_alias=$build_alias
3766 test "x$ac_build_alias" = x &&
3767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3768 test "x$ac_build_alias" = x &&
3769 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3770 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3775 $as_echo "$ac_cv_build" >&6; }
3776 case $ac_cv_build in
3778 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3781 ac_save_IFS=$IFS; IFS='-'
3787 # Remember, the first character of IFS is used to create $*,
3788 # except with old shells:
3791 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3795 $as_echo_n "checking host system type... " >&6; }
3796 if ${ac_cv_host+:} false; then :
3797 $as_echo_n "(cached) " >&6
3799 if test "x$host_alias" = x; then
3800 ac_cv_host=$ac_cv_build
3802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3808 $as_echo "$ac_cv_host" >&6; }
3811 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3814 ac_save_IFS=$IFS; IFS='-'
3820 # Remember, the first character of IFS is used to create $*,
3821 # except with old shells:
3824 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3828 cat >>confdefs.h <<_ACEOF
3829 #define OS "${host}"
3834 xc_prog_cc_prev_IFS=$IFS
3835 xc_prog_cc_prev_LIBS=$LIBS
3836 xc_prog_cc_prev_CFLAGS=$CFLAGS
3837 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3838 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3843 for xc_word in $LIBS; do
3853 if test $xc_bad_var_libs = yes; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3855 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3857 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3861 xc_bad_var_ldflags=no
3862 for xc_word in $LDFLAGS; do
3865 xc_bad_var_ldflags=yes
3868 xc_bad_var_ldflags=yes
3871 xc_bad_var_ldflags=yes
3874 xc_bad_var_ldflags=yes
3878 if test $xc_bad_var_ldflags = yes; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3880 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3881 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3882 for xc_word in $LDFLAGS; do
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3886 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3890 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3894 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3898 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3905 xc_bad_var_cppflags=no
3906 for xc_word in $CPPFLAGS; do
3909 xc_bad_var_cppflags=yes
3911 -L* | --library-path=*)
3912 xc_bad_var_cppflags=yes
3915 xc_bad_var_cppflags=yes
3919 if test $xc_bad_var_cppflags = yes; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3921 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3922 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3923 for xc_word in $CPPFLAGS; do
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3927 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3929 -L* | --library-path=*)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3931 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3935 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3942 xc_bad_var_cflags=no
3943 for xc_word in $CFLAGS; do
3946 xc_bad_var_cflags=yes
3949 xc_bad_var_cflags=yes
3952 xc_bad_var_cflags=yes
3955 xc_bad_var_cflags=yes
3957 -L* | --library-path=*)
3958 xc_bad_var_cflags=yes
3961 xc_bad_var_cflags=yes
3965 if test $xc_bad_var_cflags = yes; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3967 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3968 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
3969 for xc_word in $CFLAGS; do
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3973 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3977 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3981 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3985 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3987 -L* | --library-path=*)
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3989 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3993 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3999 if test $xc_bad_var_libs = yes ||
4000 test $xc_bad_var_cflags = yes ||
4001 test $xc_bad_var_ldflags = yes ||
4002 test $xc_bad_var_cppflags = yes; then
4003 as_fn_error $? "Can not continue. Fix errors mentioned immediately above this line." "$LINENO" 5
4006 # Find a good install program. We prefer a C program (faster),
4007 # so one script is as good as another. But avoid the broken or
4008 # incompatible versions:
4009 # SysV /etc/install, /usr/sbin/install
4010 # SunOS /usr/etc/install
4011 # IRIX /sbin/install
4013 # AmigaOS /C/install, which installs bootblocks on floppy discs
4014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4017 # OS/2's system install, which has a completely different semantic
4018 # ./install, which can be erroneously created by make from ./install.sh.
4019 # Reject install programs that cannot install multiple files.
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4021 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4022 if test -z "$INSTALL"; then
4023 if ${ac_cv_path_install+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 # Account for people who put trailing slashes in PATH elements.
4032 case $as_dir/ in #((
4033 ./ | .// | /[cC]/* | \
4034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4035 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4038 # OSF1 and SCO ODT 3.0 have their own names for install.
4039 # Don't use installbsd from OSF since it installs stuff as root
4041 for ac_prog in ginstall scoinst install; do
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4044 if test $ac_prog = install &&
4045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4046 # AIX install. It has an incompatible calling convention.
4048 elif test $ac_prog = install &&
4049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4050 # program-specific install script used by HP pwplus--don't use.
4053 rm -rf conftest.one conftest.two conftest.dir
4054 echo one > conftest.one
4055 echo two > conftest.two
4057 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4058 test -s conftest.one && test -s conftest.two &&
4059 test -s conftest.dir/conftest.one &&
4060 test -s conftest.dir/conftest.two
4062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4075 rm -rf conftest.one conftest.two conftest.dir
4078 if test "${ac_cv_path_install+set}" = set; then
4079 INSTALL=$ac_cv_path_install
4081 # As a last resort, use the slow shell script. Don't cache a
4082 # value for INSTALL within a source directory, because that will
4083 # break other packages using the cache if that directory is
4084 # removed, or if the value is a relative name.
4085 INSTALL=$ac_install_sh
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4089 $as_echo "$INSTALL" >&6; }
4091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4092 # It thinks the first close brace ends the variable substitution.
4093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4099 # Expand $ac_aux_dir to an absolute path.
4100 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if ${ac_cv_prog_CC+:} false; then :
4113 $as_echo_n "(cached) " >&6
4115 if test -n "$CC"; then
4116 ac_cv_prog_CC="$CC" # Let the user override the test.
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 if test -n "$CC"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4138 $as_echo "$CC" >&6; }
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4146 if test -z "$ac_cv_prog_CC"; then
4148 # Extract the first word of "gcc", so it can be a program name with args.
4149 set dummy gcc; ac_word=$2
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 if test -n "$ac_ct_CC"; then
4156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_ac_ct_CC="gcc"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4176 if test -n "$ac_ct_CC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4178 $as_echo "$ac_ct_CC" >&6; }
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4184 if test "x$ac_ct_CC" = x; then
4187 case $cross_compiling:$ac_tool_warned in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4191 ac_tool_warned=yes ;;
4199 if test -z "$CC"; then
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}cc; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_CC+:} false; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC="${ac_tool_prefix}cc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231 $as_echo "$CC" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4240 if test -z "$CC"; then
4241 # Extract the first word of "cc", so it can be a program name with args.
4242 set dummy cc; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_CC+:} false; then :
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$CC"; then
4249 ac_cv_prog_CC="$CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4260 ac_prog_rejected=yes
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 if test $ac_prog_rejected = yes; then
4272 # We found a bogon in the path, so make sure we never use it.
4273 set dummy $ac_cv_prog_CC
4275 if test $# != 0; then
4276 # We chose a different compiler from the bogus one.
4277 # However, it has the same basename, so the bogon will be chosen
4278 # first if we set CC to just the basename; use the full file name.
4280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4286 if test -n "$CC"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288 $as_echo "$CC" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4296 if test -z "$CC"; then
4297 if test -n "$ac_tool_prefix"; then
4298 for ac_prog in cl.exe
4300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_CC+:} false; then :
4305 $as_echo_n "(cached) " >&6
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 if test -n "$CC"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330 $as_echo "$CC" >&6; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4337 test -n "$CC" && break
4340 if test -z "$CC"; then
4342 for ac_prog in cl.exe
4344 # Extract the first word of "$ac_prog", so it can be a program name with args.
4345 set dummy $ac_prog; ac_word=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -n "$ac_ct_CC"; then
4352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_ac_ct_CC="$ac_prog"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4372 if test -n "$ac_ct_CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4374 $as_echo "$ac_ct_CC" >&6; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4381 test -n "$ac_ct_CC" && break
4384 if test "x$ac_ct_CC" = x; then
4387 case $cross_compiling:$ac_tool_warned in
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391 ac_tool_warned=yes ;;
4400 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402 as_fn_error $? "no acceptable C compiler found in \$PATH
4403 See \`config.log' for more details" "$LINENO" 5; }
4405 # Provide some information about the compiler.
4406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4409 for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4419 if test -s conftest.err; then
4421 ... rest of stderr output deleted ...
4422 10q' conftest.err >conftest.er1
4423 cat conftest.er1 >&5
4425 rm -f conftest.er1 conftest.err
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4440 ac_clean_files_save=$ac_clean_files
4441 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4442 # Try to create an executable without -o first, disregard a.out.
4443 # It will help us diagnose broken compilers, and finding out an intuition
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4446 $as_echo_n "checking whether the C compiler works... " >&6; }
4447 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4449 # The possible output files:
4450 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4453 for ac_file in $ac_files
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4457 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4462 if { { ac_try="$ac_link_default"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_link_default") 2>&5
4471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472 test $ac_status = 0; }; then :
4473 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4474 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4475 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4476 # so that the user can short-circuit this test for compilers unknown to
4478 for ac_file in $ac_files ''
4480 test -f "$ac_file" || continue
4482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4485 # We found the default executable, but exeext='' is most
4489 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4493 # We set ac_cv_exeext here because the later test for it is not
4494 # safe: cross compilers may not add the suffix if given an `-o'
4495 # argument, so we may need to know it at that point already.
4496 # Even if this section looks crufty: it has the advantage of
4503 test "$ac_cv_exeext" = no && ac_cv_exeext=
4508 if test -z "$ac_file"; then :
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 $as_echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error 77 "C compiler cannot create executables
4517 See \`config.log' for more details" "$LINENO" 5; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4520 $as_echo "yes" >&6; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4523 $as_echo_n "checking for C compiler default output file name... " >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4525 $as_echo "$ac_file" >&6; }
4526 ac_exeext=$ac_cv_exeext
4528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4529 ac_clean_files=$ac_clean_files_save
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4531 $as_echo_n "checking for suffix of executables... " >&6; }
4532 if { { ac_try="$ac_link"
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4538 $as_echo "$ac_try_echo"; } >&5
4539 (eval "$ac_link") 2>&5
4541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542 test $ac_status = 0; }; then :
4543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4545 # work properly (i.e., refer to `conftest.exe'), while it won't with
4547 for ac_file in conftest.exe conftest conftest.*; do
4548 test -f "$ac_file" || continue
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4559 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4560 See \`config.log' for more details" "$LINENO" 5; }
4562 rm -f conftest conftest$ac_cv_exeext
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4564 $as_echo "$ac_cv_exeext" >&6; }
4566 rm -f conftest.$ac_ext
4567 EXEEXT=$ac_cv_exeext
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4574 FILE *f = fopen ("conftest.out", "w");
4575 return ferror (f) || fclose (f) != 0;
4581 ac_clean_files="$ac_clean_files conftest.out"
4582 # Check that the compiler produces executables we can run. If not, either
4583 # the compiler is broken, or we cross compile.
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4585 $as_echo_n "checking whether we are cross compiling... " >&6; }
4586 if test "$cross_compiling" != yes; then
4587 { { ac_try="$ac_link"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 $as_echo "$ac_try_echo"; } >&5
4594 (eval "$ac_link") 2>&5
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598 if { ac_try='./conftest$ac_cv_exeext'
4599 { { case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4604 $as_echo "$ac_try_echo"; } >&5
4605 (eval "$ac_try") 2>&5
4607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }; }; then
4611 if test "$cross_compiling" = maybe; then
4614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4616 as_fn_error $? "cannot run C compiled programs.
4617 If you meant to cross compile, use \`--host'.
4618 See \`config.log' for more details" "$LINENO" 5; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4623 $as_echo "$cross_compiling" >&6; }
4625 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4626 ac_clean_files=$ac_clean_files_save
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4628 $as_echo_n "checking for suffix of object files... " >&6; }
4629 if ${ac_cv_objext+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4642 rm -f conftest.o conftest.obj
4643 if { { ac_try="$ac_compile"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4649 $as_echo "$ac_try_echo"; } >&5
4650 (eval "$ac_compile") 2>&5
4652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4653 test $ac_status = 0; }; then :
4654 for ac_file in conftest.o conftest.obj conftest.*; do
4655 test -f "$ac_file" || continue;
4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4658 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4668 as_fn_error $? "cannot compute suffix of object files: cannot compile
4669 See \`config.log' for more details" "$LINENO" 5; }
4671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4674 $as_echo "$ac_cv_objext" >&6; }
4675 OBJEXT=$ac_cv_objext
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4678 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4679 if ${ac_cv_c_compiler_gnu+:} false; then :
4680 $as_echo_n "(cached) " >&6
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4695 if ac_fn_c_try_compile "$LINENO"; then :
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4705 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4706 if test $ac_compiler_gnu = yes; then
4711 ac_test_CFLAGS=${CFLAGS+set}
4712 ac_save_CFLAGS=$CFLAGS
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4714 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4715 if ${ac_cv_prog_cc_g+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 ac_save_c_werror_flag=$ac_c_werror_flag
4719 ac_c_werror_flag=yes
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4732 if ac_fn_c_try_compile "$LINENO"; then :
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4746 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_c_werror_flag=$ac_save_c_werror_flag
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4761 if ac_fn_c_try_compile "$LINENO"; then :
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4772 $as_echo "$ac_cv_prog_cc_g" >&6; }
4773 if test "$ac_test_CFLAGS" = set; then
4774 CFLAGS=$ac_save_CFLAGS
4775 elif test $ac_cv_prog_cc_g = yes; then
4776 if test "$GCC" = yes; then
4782 if test "$GCC" = yes; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4790 if ${ac_cv_prog_cc_c89+:} false; then :
4791 $as_echo_n "(cached) " >&6
4793 ac_cv_prog_cc_c89=no
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4801 struct buf { int x; };
4802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4803 static char *e (p, i)
4809 static char *f (char * (*g) (char **, int), char **p, ...)
4814 s = g (p, va_arg (v,int));
4819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4820 function prototypes and stuff, but not '\xHH' hex character constants.
4821 These don't provoke an error unfortunately, instead are silently treated
4822 as 'x'. The following induces an error, until -std is added to get
4823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4824 array size at least. It's necessary to write '\x00'==0 to get something
4825 that's true only with -std. */
4826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4829 inside strings and character constants. */
4831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4833 int test (int i, double x);
4834 struct s1 {int (*f) (int a);};
4835 struct s2 {int (*f) (double a);};
4836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4849 CC="$ac_save_CC $ac_arg"
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_prog_cc_c89=$ac_arg
4853 rm -f core conftest.err conftest.$ac_objext
4854 test "x$ac_cv_prog_cc_c89" != "xno" && break
4856 rm -f conftest.$ac_ext
4861 case "x$ac_cv_prog_cc_c89" in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864 $as_echo "none needed" >&6; } ;;
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4867 $as_echo "unsupported" >&6; } ;;
4869 CC="$CC $ac_cv_prog_cc_c89"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4873 if test "x$ac_cv_prog_cc_c89" != xno; then :
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4889 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4890 if ${am_cv_prog_cc_c_o+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4903 # Make sure it works both with $CC and with simple cc.
4904 # Following AC_PROG_CC_C_O, we do the test twice because some
4905 # compilers refuse to overwrite an existing .o file with -o,
4906 # though they will create one.
4907 am_cv_prog_cc_c_o=yes
4909 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4910 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } \
4914 && test -f conftest2.$ac_objext; then
4917 am_cv_prog_cc_c_o=no
4921 rm -f core conftest*
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4925 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4926 if test "$am_cv_prog_cc_c_o" != yes; then
4927 # Losing compiler, so override with the script.
4928 # FIXME: It is wrong to rewrite CC.
4929 # But if we don't then we get into trouble of one sort or another.
4930 # A longer-term fix would be to have automake use am__CC in this case,
4931 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4932 CC="$am_aux_dir/compile $CC"
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4949 # On Suns, sometimes $CPP names a directory.
4950 if test -n "$CPP" && test -d "$CPP"; then
4953 if test -z "$CPP"; then
4954 if ${ac_cv_prog_CPP+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 # Double quotes because CPP needs to be expanded
4958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4961 for ac_c_preproc_warn_flag in '' yes
4963 # Use a header file that comes with gcc, so configuring glibc
4964 # with a fresh cross-compiler works.
4965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966 # <limits.h> exists even on freestanding compilers.
4967 # On the NeXT, cc -E runs the code through the compiler's parser,
4968 # not just through cpp. "Syntax error" is here to catch this case.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 # include <limits.h>
4974 # include <assert.h>
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4981 # Broken: fails on valid input.
4984 rm -f conftest.err conftest.i conftest.$ac_ext
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4993 # Broken: success on invalid input.
4996 # Passes both tests.
5000 rm -f conftest.err conftest.i conftest.$ac_ext
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.i conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then :
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5018 $as_echo "$CPP" >&6; }
5020 for ac_c_preproc_warn_flag in '' yes
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
5024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
5026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5031 # include <limits.h>
5033 # include <assert.h>
5037 if ac_fn_c_try_cpp "$LINENO"; then :
5040 # Broken: fails on valid input.
5043 rm -f conftest.err conftest.i conftest.$ac_ext
5045 # OK, works on sane cases. Now check whether nonexistent headers
5046 # can be detected and how.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 #include <ac_nonexistent.h>
5051 if ac_fn_c_try_cpp "$LINENO"; then :
5052 # Broken: success on invalid input.
5055 # Passes both tests.
5059 rm -f conftest.err conftest.i conftest.$ac_ext
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.i conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then :
5067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5069 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5070 See \`config.log' for more details" "$LINENO" 5; }
5074 ac_cpp='$CPP $CPPFLAGS'
5075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 IFS=$xc_prog_cc_prev_IFS
5081 LIBS=$xc_prog_cc_prev_LIBS
5082 CFLAGS=$xc_prog_cc_prev_CFLAGS
5083 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5084 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5091 ac_cpp='$CXXCPP $CPPFLAGS'
5092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 if test -z "$CXX"; then
5096 if test -n "$CCC"; then
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_prog_CXX+:} false; then :
5107 $as_echo_n "(cached) " >&6
5109 if test -n "$CXX"; then
5110 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 if test -n "$CXX"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5132 $as_echo "$CXX" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5139 test -n "$CXX" && break
5142 if test -z "$CXX"; then
5144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147 set dummy $ac_prog; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5151 $as_echo_n "(cached) " >&6
5153 if test -n "$ac_ct_CXX"; then
5154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_ac_ct_CXX="$ac_prog"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5174 if test -n "$ac_ct_CXX"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5176 $as_echo "$ac_ct_CXX" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 test -n "$ac_ct_CXX" && break
5186 if test "x$ac_ct_CXX" = x; then
5189 case $cross_compiling:$ac_tool_warned in
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5201 # Provide some information about the compiler.
5202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5205 for ac_option in --version -v -V -qversion; do
5206 { { ac_try="$ac_compiler $ac_option >&5"
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5212 $as_echo "$ac_try_echo"; } >&5
5213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5215 if test -s conftest.err; then
5217 ... rest of stderr output deleted ...
5218 10q' conftest.err >conftest.er1
5219 cat conftest.er1 >&5
5221 rm -f conftest.er1 conftest.err
5222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223 test $ac_status = 0; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5227 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5228 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5245 if ac_fn_cxx_try_compile "$LINENO"; then :
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5255 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5256 if test $ac_compiler_gnu = yes; then
5261 ac_test_CXXFLAGS=${CXXFLAGS+set}
5262 ac_save_CXXFLAGS=$CXXFLAGS
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5264 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5265 if ${ac_cv_prog_cxx_g+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5269 ac_cxx_werror_flag=yes
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5283 if ac_fn_cxx_try_compile "$LINENO"; then :
5284 ac_cv_prog_cxx_g=yes
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5298 if ac_fn_cxx_try_compile "$LINENO"; then :
5301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5314 if ac_fn_cxx_try_compile "$LINENO"; then :
5315 ac_cv_prog_cxx_g=yes
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5325 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5326 if test "$ac_test_CXXFLAGS" = set; then
5327 CXXFLAGS=$ac_save_CXXFLAGS
5328 elif test $ac_cv_prog_cxx_g = yes; then
5329 if test "$GXX" = yes; then
5335 if test "$GXX" = yes; then
5342 ac_cpp='$CXXCPP $CPPFLAGS'
5343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5348 ax_cxx_compile_cxx11_required=false
5350 ac_cpp='$CXXCPP $CPPFLAGS'
5351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5356 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5357 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5363 template <typename T>
5366 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5372 struct Child : public Base {
5373 virtual void f() override {}
5376 typedef check<check<bool>> right_angle_brackets;
5381 typedef check<int> check_type;
5383 check_type&& cr = static_cast<check_type&&>(c);
5388 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5389 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5390 namespace test_template_alias_sfinae {
5393 template<typename T>
5394 using member = typename T::member_type;
5396 template<typename T>
5399 template<typename T>
5400 void func(member<T>*) {}
5410 if ac_fn_cxx_try_compile "$LINENO"; then :
5411 ax_cv_cxx_compile_cxx11=yes
5413 ax_cv_cxx_compile_cxx11=no
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5418 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5419 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5425 if test x$ac_success = xno; then
5426 for switch in -std=c++11 -std=c++0x; do
5427 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5429 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5430 if eval \${$cachevar+:} false; then :
5431 $as_echo_n "(cached) " >&6
5433 ac_save_CXXFLAGS="$CXXFLAGS"
5434 CXXFLAGS="$CXXFLAGS $switch"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5438 template <typename T>
5441 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5447 struct Child : public Base {
5448 virtual void f() override {}
5451 typedef check<check<bool>> right_angle_brackets;
5456 typedef check<int> check_type;
5458 check_type&& cr = static_cast<check_type&&>(c);
5463 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5464 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5465 namespace test_template_alias_sfinae {
5468 template<typename T>
5469 using member = typename T::member_type;
5471 template<typename T>
5474 template<typename T>
5475 void func(member<T>*) {}
5485 if ac_fn_cxx_try_compile "$LINENO"; then :
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 CXXFLAGS="$ac_save_CXXFLAGS"
5493 eval ac_res=\$$cachevar
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5495 $as_echo "$ac_res" >&6; }
5496 if eval test x\$$cachevar = xyes; then
5497 CXXFLAGS="$CXXFLAGS $switch"
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5510 if test x$ac_success = xno; then
5511 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5514 if test x$ac_success = xno; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5517 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5521 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5529 am__api_version='1.15'
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5532 $as_echo_n "checking whether build environment is sane... " >&6; }
5533 # Reject unsafe characters in $srcdir or the absolute working directory
5534 # name. Accept space and tab only in the latter.
5538 *[\\\"\#\$\&\'\`$am_lf]*)
5539 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5542 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5543 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5546 # Do 'set' in a subshell so we don't clobber the current shell's
5547 # arguments. Must try -L first in case configure is actually a
5548 # symlink; some systems play weird games with the mod time of symlinks
5549 # (eg FreeBSD returns the mod time of the symlink's containing
5553 for am_try in 1 2; do
5554 echo "timestamp, slept: $am_has_slept" > conftest.file
5555 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5556 if test "$*" = "X"; then
5558 set X `ls -t "$srcdir/configure" conftest.file`
5560 if test "$*" != "X $srcdir/configure conftest.file" \
5561 && test "$*" != "X conftest.file $srcdir/configure"; then
5563 # If neither matched, then we have a broken ls. This can happen
5564 # if, for instance, CONFIG_SHELL is bash and it inherits a
5565 # broken ls alias from the environment. This has actually
5566 # happened. Such a system could not be considered "sane".
5567 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5568 alias in your environment" "$LINENO" 5
5570 if test "$2" = conftest.file || test $am_try -eq 2; then
5577 test "$2" = conftest.file
5583 as_fn_error $? "newly created file is older than distributed files!
5584 Check your system clock" "$LINENO" 5
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5587 $as_echo "yes" >&6; }
5588 # If we didn't sleep, we still need to ensure time stamps of config.status and
5589 # generated files are strictly newer.
5591 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5598 test "$program_prefix" != NONE &&
5599 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5600 # Use a double $ so make ignores it.
5601 test "$program_suffix" != NONE &&
5602 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5603 # Double any \ or $.
5604 # By default was `s,x,x', remove it if useless.
5605 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5606 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5608 if test x"${MISSING+set}" != xset; then
5611 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5613 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5616 # Use eval to expand $SHELL
5617 if eval "$MISSING --is-lightweight"; then
5618 am_missing_run="$MISSING "
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5622 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5625 if test x"${install_sh+set}" != xset; then
5628 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5630 install_sh="\${SHELL} $am_aux_dir/install-sh"
5634 # Installed binaries are usually stripped using 'strip' when the user
5635 # run "make install-strip". However 'strip' might not be the right
5636 # tool to use in cross-compilation environments, therefore Automake
5637 # will honor the 'STRIP' environment variable to overrule this program.
5638 if test "$cross_compiling" != no; then
5639 if test -n "$ac_tool_prefix"; then
5640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5641 set dummy ${ac_tool_prefix}strip; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_STRIP+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test -n "$STRIP"; then
5648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 STRIP=$ac_cv_prog_STRIP
5668 if test -n "$STRIP"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5670 $as_echo "$STRIP" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5678 if test -z "$ac_cv_prog_STRIP"; then
5680 # Extract the first word of "strip", so it can be a program name with args.
5681 set dummy strip; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 if test -n "$ac_ct_STRIP"; then
5688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_STRIP="strip"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5708 if test -n "$ac_ct_STRIP"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5710 $as_echo "$ac_ct_STRIP" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5716 if test "x$ac_ct_STRIP" = x; then
5719 case $cross_compiling:$ac_tool_warned in
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723 ac_tool_warned=yes ;;
5728 STRIP="$ac_cv_prog_STRIP"
5732 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5735 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5736 if test -z "$MKDIR_P"; then
5737 if ${ac_cv_path_mkdir+:} false; then :
5738 $as_echo_n "(cached) " >&6
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5744 test -z "$as_dir" && as_dir=.
5745 for ac_prog in mkdir gmkdir; do
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5748 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5749 'mkdir (GNU coreutils) '* | \
5750 'mkdir (coreutils) '* | \
5751 'mkdir (fileutils) '4.1*)
5752 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5762 test -d ./--version && rmdir ./--version
5763 if test "${ac_cv_path_mkdir+set}" = set; then
5764 MKDIR_P="$ac_cv_path_mkdir -p"
5766 # As a last resort, use the slow shell script. Don't cache a
5767 # value for MKDIR_P within a source directory, because that will
5768 # break other packages using the cache if that directory is
5769 # removed, or if the value is a relative name.
5770 MKDIR_P="$ac_install_sh -d"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5774 $as_echo "$MKDIR_P" >&6; }
5776 for ac_prog in gawk mawk nawk awk
5778 # Extract the first word of "$ac_prog", so it can be a program name with args.
5779 set dummy $ac_prog; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_AWK+:} false; then :
5783 $as_echo_n "(cached) " >&6
5785 if test -n "$AWK"; then
5786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_AWK="$ac_prog"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 if test -n "$AWK"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5808 $as_echo "$AWK" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5815 test -n "$AWK" && break
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5821 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5823 $as_echo_n "(cached) " >&6
5825 cat >conftest.make <<\_ACEOF
5828 @echo '@@@%%%=$(MAKE)=@@@%%%'
5830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5833 eval ac_cv_prog_make_${ac_make}_set=yes;;
5835 eval ac_cv_prog_make_${ac_make}_set=no;;
5839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5841 $as_echo "yes" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 SET_MAKE="MAKE=${MAKE-make}"
5849 rm -rf .tst 2>/dev/null
5850 mkdir .tst 2>/dev/null
5851 if test -d .tst; then
5856 rmdir .tst 2>/dev/null
5858 DEPDIR="${am__leading_dot}deps"
5860 ac_config_commands="$ac_config_commands depfiles"
5863 am_make=${MAKE-make}
5864 cat > confinc << 'END'
5866 @echo this is the am__doit target
5869 # If we don't find an include directive, just comment out the code.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5871 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5875 # First try GNU make style include.
5876 echo "include confinc" > confmf
5877 # Ignore all kinds of additional output from 'make'.
5878 case `$am_make -s -f confmf 2> /dev/null` in #(
5879 *the\ am__doit\ target*)
5885 # Now try BSD make style include.
5886 if test "$am__include" = "#"; then
5887 echo '.include "confinc"' > confmf
5888 case `$am_make -s -f confmf 2> /dev/null` in #(
5889 *the\ am__doit\ target*)
5890 am__include=.include
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5899 $as_echo "$_am_result" >&6; }
5900 rm -f confinc confmf
5902 # Check whether --enable-dependency-tracking was given.
5903 if test "${enable_dependency_tracking+set}" = set; then :
5904 enableval=$enable_dependency_tracking;
5907 if test "x$enable_dependency_tracking" != xno; then
5908 am_depcomp="$ac_aux_dir/depcomp"
5912 if test "x$enable_dependency_tracking" != xno; then
5921 ## --------------------------------------- ##
5922 ## Start of automake initialization code ##
5923 ## --------------------------------------- ##
5925 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5926 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5927 # is not polluted with repeated "-I."
5928 am__isrc=' -I$(srcdir)'
5929 # test to see if srcdir already configured
5930 if test -f $srcdir/config.status; then
5931 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5935 # test whether we have cygpath
5936 if test -z "$CYGPATH_W"; then
5937 if (cygpath --version) >/dev/null 2>/dev/null; then
5938 CYGPATH_W='cygpath -w'
5945 # Define the identity of the package.
5950 cat >>confdefs.h <<_ACEOF
5951 #define PACKAGE "$PACKAGE"
5955 cat >>confdefs.h <<_ACEOF
5956 #define VERSION "$VERSION"
5959 # Some tools Automake needs.
5961 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5964 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5967 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5970 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5973 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5975 # For better backward compatibility. To be removed once Automake 1.9.x
5976 # dies out for good. For more background, see:
5977 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5978 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5979 mkdir_p='$(MKDIR_P)'
5981 # We need awk for the "check" target (and possibly the TAP driver). The
5982 # system "awk" is bad on some platforms.
5983 # Always define AMTAR for backward compatibility. Yes, it's still used
5984 # in the wild :-( We should find a proper way to deprecate it ...
5988 # We'll loop over all known methods to create a tar archive until one works.
5989 _am_tools='gnutar pax cpio none'
5991 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5997 depcc="$CC" am_compiler_list=
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6000 $as_echo_n "checking dependency style of $depcc... " >&6; }
6001 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6002 $as_echo_n "(cached) " >&6
6004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6005 # We make a subdir and do the tests there. Otherwise we can end up
6006 # making bogus files that we don't know about and never remove. For
6007 # instance it was reported that on HP-UX the gcc test will end up
6008 # making a dummy file named 'D' -- because '-MD' means "put the output
6012 # Copy depcomp to subdir because otherwise we won't find it if we're
6013 # using a relative directory.
6014 cp "$am_depcomp" conftest.dir
6016 # We will build objects and dependencies in a subdirectory because
6017 # it helps to detect inapplicable dependency modes. For instance
6018 # both Tru64's cc and ICC support -MD to output dependencies as a
6019 # side effect of compilation, but ICC will put the dependencies in
6020 # the current directory while Tru64 will put them in the object
6024 am_cv_CC_dependencies_compiler_type=none
6025 if test "$am_compiler_list" = ""; then
6026 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6029 case " $depcc " in #(
6030 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6033 for depmode in $am_compiler_list; do
6034 # Setup a source with many dependencies, because some compilers
6035 # like to wrap large dependency lists on column 80 (with \), and
6036 # we should not choose a depcomp mode which is confused by this.
6038 # We need to recreate these files for each test, as the compiler may
6039 # overwrite some of them when testing with obscure command lines.
6040 # This happens at least with the AIX C compiler.
6042 for i in 1 2 3 4 5 6; do
6043 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6044 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6045 # Solaris 10 /bin/sh.
6046 echo '/* dummy */' > sub/conftst$i.h
6048 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6050 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6051 # mode. It turns out that the SunPro C++ compiler does not properly
6052 # handle '-M -o', and we need to detect this. Also, some Intel
6053 # versions had trouble with output in subdirs.
6054 am__obj=sub/conftest.${OBJEXT-o}
6055 am__minus_obj="-o $am__obj"
6058 # This depmode causes a compiler race in universal mode.
6059 test "$am__universal" = false || continue
6062 # After this tag, mechanisms are not by side-effect, so they'll
6063 # only be used when explicitly requested.
6064 if test "x$enable_dependency_tracking" = xyes; then
6070 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6071 # This compiler won't grok '-c -o', but also, the minuso test has
6072 # not run yet. These depmodes are late enough in the game, and
6073 # so weak that their functioning should not be impacted.
6074 am__obj=conftest.${OBJEXT-o}
6079 if depmode=$depmode \
6080 source=sub/conftest.c object=$am__obj \
6081 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6082 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6083 >/dev/null 2>conftest.err &&
6084 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6085 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6086 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6088 # icc doesn't choke on unknown options, it will just issue warnings
6089 # or remarks (even with -Werror). So we grep stderr for any message
6090 # that says an option was ignored or not supported.
6091 # When given -MP, icc 7.0 and 7.1 complain thusly:
6092 # icc: Command line warning: ignoring option '-M'; no argument required
6093 # The diagnosis changed in icc 8.0:
6094 # icc: Command line remark: option '-MP' not supported
6095 if (grep 'ignoring option' conftest.err ||
6096 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6097 am_cv_CC_dependencies_compiler_type=$depmode
6106 am_cv_CC_dependencies_compiler_type=none
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6111 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6112 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6115 test "x$enable_dependency_tracking" != xno \
6116 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6118 am__fastdepCC_FALSE='#'
6120 am__fastdepCC_TRUE='#'
6121 am__fastdepCC_FALSE=
6125 depcc="$CXX" am_compiler_list=
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6128 $as_echo_n "checking dependency style of $depcc... " >&6; }
6129 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6133 # We make a subdir and do the tests there. Otherwise we can end up
6134 # making bogus files that we don't know about and never remove. For
6135 # instance it was reported that on HP-UX the gcc test will end up
6136 # making a dummy file named 'D' -- because '-MD' means "put the output
6140 # Copy depcomp to subdir because otherwise we won't find it if we're
6141 # using a relative directory.
6142 cp "$am_depcomp" conftest.dir
6144 # We will build objects and dependencies in a subdirectory because
6145 # it helps to detect inapplicable dependency modes. For instance
6146 # both Tru64's cc and ICC support -MD to output dependencies as a
6147 # side effect of compilation, but ICC will put the dependencies in
6148 # the current directory while Tru64 will put them in the object
6152 am_cv_CXX_dependencies_compiler_type=none
6153 if test "$am_compiler_list" = ""; then
6154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6157 case " $depcc " in #(
6158 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6161 for depmode in $am_compiler_list; do
6162 # Setup a source with many dependencies, because some compilers
6163 # like to wrap large dependency lists on column 80 (with \), and
6164 # we should not choose a depcomp mode which is confused by this.
6166 # We need to recreate these files for each test, as the compiler may
6167 # overwrite some of them when testing with obscure command lines.
6168 # This happens at least with the AIX C compiler.
6170 for i in 1 2 3 4 5 6; do
6171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6172 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6173 # Solaris 10 /bin/sh.
6174 echo '/* dummy */' > sub/conftst$i.h
6176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6178 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6179 # mode. It turns out that the SunPro C++ compiler does not properly
6180 # handle '-M -o', and we need to detect this. Also, some Intel
6181 # versions had trouble with output in subdirs.
6182 am__obj=sub/conftest.${OBJEXT-o}
6183 am__minus_obj="-o $am__obj"
6186 # This depmode causes a compiler race in universal mode.
6187 test "$am__universal" = false || continue
6190 # After this tag, mechanisms are not by side-effect, so they'll
6191 # only be used when explicitly requested.
6192 if test "x$enable_dependency_tracking" = xyes; then
6198 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6199 # This compiler won't grok '-c -o', but also, the minuso test has
6200 # not run yet. These depmodes are late enough in the game, and
6201 # so weak that their functioning should not be impacted.
6202 am__obj=conftest.${OBJEXT-o}
6207 if depmode=$depmode \
6208 source=sub/conftest.c object=$am__obj \
6209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6211 >/dev/null 2>conftest.err &&
6212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6216 # icc doesn't choke on unknown options, it will just issue warnings
6217 # or remarks (even with -Werror). So we grep stderr for any message
6218 # that says an option was ignored or not supported.
6219 # When given -MP, icc 7.0 and 7.1 complain thusly:
6220 # icc: Command line warning: ignoring option '-M'; no argument required
6221 # The diagnosis changed in icc 8.0:
6222 # icc: Command line remark: option '-MP' not supported
6223 if (grep 'ignoring option' conftest.err ||
6224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6225 am_cv_CXX_dependencies_compiler_type=$depmode
6234 am_cv_CXX_dependencies_compiler_type=none
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6239 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6240 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6243 test "x$enable_dependency_tracking" != xno \
6244 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6245 am__fastdepCXX_TRUE=
6246 am__fastdepCXX_FALSE='#'
6248 am__fastdepCXX_TRUE='#'
6249 am__fastdepCXX_FALSE=
6254 # POSIX will say in a future version that running "rm -f" with no argument
6255 # is OK; and we want to be able to make that assumption in our Makefile
6256 # recipes. So use an aggressive probe to check that the usage we want is
6257 # actually supported "in the wild" to an acceptable degree.
6258 # See automake bug#10828.
6259 # To make any issue more visible, cause the running configure to be aborted
6260 # by default if the 'rm' program in use doesn't match our expectations; the
6261 # user can still override this though.
6262 if rm -f && rm -fr && rm -rf; then : OK; else
6266 Your 'rm' program seems unable to run without file operands specified
6267 on the command line, even when the '-f' option is present. This is contrary
6268 to the behaviour of most rm programs out there, and not conforming with
6269 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6271 Please tell bug-automake@gnu.org about your system, including the value
6272 of your $PATH and any error possibly output before this message. This
6273 can help us improve future automake versions.
6276 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6277 echo 'Configuration will proceed anyway, since you have set the' >&2
6278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6282 Aborting the configuration process, to ensure you take notice of the issue.
6284 You can download and install GNU coreutils to get an 'rm' implementation
6285 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6287 If you want to complete the configuration process using your problematic
6288 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6289 to "yes", and re-run configure.
6292 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6296 ## ------------------------------------- ##
6297 ## End of automake initialization code ##
6298 ## ------------------------------------- ##
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6305 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6306 if ${ac_cv_path_GREP+:} false; then :
6307 $as_echo_n "(cached) " >&6
6309 if test -z "$GREP"; then
6310 ac_path_GREP_found=false
6311 # Loop through the user's path and test for each of PROGNAME-LIST
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6316 test -z "$as_dir" && as_dir=.
6317 for ac_prog in grep ggrep; do
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6320 as_fn_executable_p "$ac_path_GREP" || continue
6321 # Check for GNU ac_path_GREP and select it if it is found.
6322 # Check for GNU $ac_path_GREP
6323 case `"$ac_path_GREP" --version 2>&1` in
6325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6328 $as_echo_n 0123456789 >"conftest.in"
6331 cat "conftest.in" "conftest.in" >"conftest.tmp"
6332 mv "conftest.tmp" "conftest.in"
6333 cp "conftest.in" "conftest.nl"
6334 $as_echo 'GREP' >> "conftest.nl"
6335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337 as_fn_arith $ac_count + 1 && ac_count=$as_val
6338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6339 # Best one so far, save it but keep looking for a better one
6340 ac_cv_path_GREP="$ac_path_GREP"
6341 ac_path_GREP_max=$ac_count
6343 # 10*(2^10) chars as input seems more than enough
6344 test $ac_count -gt 10 && break
6346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6349 $ac_path_GREP_found && break 3
6354 if test -z "$ac_cv_path_GREP"; then
6355 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6358 ac_cv_path_GREP=$GREP
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6363 $as_echo "$ac_cv_path_GREP" >&6; }
6364 GREP="$ac_cv_path_GREP"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6368 $as_echo_n "checking for egrep... " >&6; }
6369 if ${ac_cv_path_EGREP+:} false; then :
6370 $as_echo_n "(cached) " >&6
6372 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6373 then ac_cv_path_EGREP="$GREP -E"
6375 if test -z "$EGREP"; then
6376 ac_path_EGREP_found=false
6377 # Loop through the user's path and test for each of PROGNAME-LIST
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6382 test -z "$as_dir" && as_dir=.
6383 for ac_prog in egrep; do
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6386 as_fn_executable_p "$ac_path_EGREP" || continue
6387 # Check for GNU ac_path_EGREP and select it if it is found.
6388 # Check for GNU $ac_path_EGREP
6389 case `"$ac_path_EGREP" --version 2>&1` in
6391 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6394 $as_echo_n 0123456789 >"conftest.in"
6397 cat "conftest.in" "conftest.in" >"conftest.tmp"
6398 mv "conftest.tmp" "conftest.in"
6399 cp "conftest.in" "conftest.nl"
6400 $as_echo 'EGREP' >> "conftest.nl"
6401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6403 as_fn_arith $ac_count + 1 && ac_count=$as_val
6404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6405 # Best one so far, save it but keep looking for a better one
6406 ac_cv_path_EGREP="$ac_path_EGREP"
6407 ac_path_EGREP_max=$ac_count
6409 # 10*(2^10) chars as input seems more than enough
6410 test $ac_count -gt 10 && break
6412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6415 $ac_path_EGREP_found && break 3
6420 if test -z "$ac_cv_path_EGREP"; then
6421 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6424 ac_cv_path_EGREP=$EGREP
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6430 $as_echo "$ac_cv_path_EGREP" >&6; }
6431 EGREP="$ac_cv_path_EGREP"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6437 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6450 $as_echo "yes" >&6; }
6451 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6467 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6479 force compilation error
6487 if ac_fn_c_try_compile "$LINENO"; then :
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490 $as_echo "yes" >&6; }
6491 tmp_thread_safe_initially_defined="yes"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6497 tmp_thread_safe_initially_defined="no"
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 if test "$tmp_thread_safe_initially_defined" = "no"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6504 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6507 aix[123].* | aix4.[012].*)
6508 tmp_need_thread_safe="no"
6511 tmp_need_thread_safe="yes"
6514 tmp_need_thread_safe="no"
6518 if test "$tmp_need_thread_safe" = "yes"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6520 $as_echo "yes" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6528 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6529 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6530 test "$tmp_need_thread_safe" = "yes"; then
6533 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6535 cat >>confdefs.h <<_EOF
6536 #ifndef _THREAD_SAFE
6537 # define _THREAD_SAFE
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542 $as_echo "yes" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6552 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6564 force compilation error
6572 if ac_fn_c_try_compile "$LINENO"; then :
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6575 $as_echo "yes" >&6; }
6576 tmp_reentrant_initially_defined="yes"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 tmp_reentrant_initially_defined="no"
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 if test "$tmp_reentrant_initially_defined" = "no"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6589 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6593 tmp_need_reentrant="yes"
6596 tmp_need_reentrant="no"
6600 if test "$tmp_need_reentrant" = "no"; then
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6619 if ac_fn_c_try_compile "$LINENO"; then :
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 if test "$tmp_errno" = "yes"; then
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6642 force compilation error
6650 if ac_fn_c_try_compile "$LINENO"; then :
6652 tmp_errno="errno_macro_defined"
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6669 force compilation error
6677 if ac_fn_c_try_compile "$LINENO"; then :
6679 tmp_errno="errno_macro_needs_reentrant"
6680 tmp_need_reentrant="yes"
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 if test "$tmp_need_reentrant" = "no"; then
6692 if test "$tmp_need_reentrant" = "no"; then
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6698 #define gmtime_r innocuous_gmtime_r
6700 # include <limits.h>
6702 # include <assert.h>
6709 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6721 if ac_fn_c_try_link "$LINENO"; then :
6730 rm -f core conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6732 if test "$tmp_gmtime_r" = "yes"; then
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6736 #include <sys/types.h>
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6743 tmp_gmtime_r="proto_declared"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6751 #include <sys/types.h>
6755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6758 tmp_gmtime_r="proto_needs_reentrant"
6759 tmp_need_reentrant="yes"
6771 if test "$tmp_need_reentrant" = "no"; then
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6777 #define localtime_r innocuous_localtime_r
6779 # include <limits.h>
6781 # include <assert.h>
6787 char localtime_r ();
6788 #if defined __stub_localtime_r || defined __stub___localtime_r
6794 return localtime_r ();
6800 if ac_fn_c_try_link "$LINENO"; then :
6802 tmp_localtime_r="yes"
6806 tmp_localtime_r="no"
6809 rm -f core conftest.err conftest.$ac_objext \
6810 conftest$ac_exeext conftest.$ac_ext
6811 if test "$tmp_localtime_r" = "yes"; then
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6815 #include <sys/types.h>
6819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6820 $EGREP "localtime_r" >/dev/null 2>&1; then :
6822 tmp_localtime_r="proto_declared"
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6830 #include <sys/types.h>
6834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 $EGREP "localtime_r" >/dev/null 2>&1; then :
6837 tmp_localtime_r="proto_needs_reentrant"
6838 tmp_need_reentrant="yes"
6850 if test "$tmp_need_reentrant" = "no"; then
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6856 #define strerror_r innocuous_strerror_r
6858 # include <limits.h>
6860 # include <assert.h>
6867 #if defined __stub_strerror_r || defined __stub___strerror_r
6873 return strerror_r ();
6879 if ac_fn_c_try_link "$LINENO"; then :
6881 tmp_strerror_r="yes"
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 if test "$tmp_strerror_r" = "yes"; then
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6894 #include <sys/types.h>
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 $EGREP "strerror_r" >/dev/null 2>&1; then :
6901 tmp_strerror_r="proto_declared"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6909 #include <sys/types.h>
6913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6914 $EGREP "strerror_r" >/dev/null 2>&1; then :
6916 tmp_strerror_r="proto_needs_reentrant"
6917 tmp_need_reentrant="yes"
6929 if test "$tmp_need_reentrant" = "no"; then
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6935 #define strtok_r innocuous_strtok_r
6937 # include <limits.h>
6939 # include <assert.h>
6946 #if defined __stub_strtok_r || defined __stub___strtok_r
6958 if ac_fn_c_try_link "$LINENO"; then :
6967 rm -f core conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 if test "$tmp_strtok_r" = "yes"; then
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6973 #include <sys/types.h>
6977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978 $EGREP "strtok_r" >/dev/null 2>&1; then :
6980 tmp_strtok_r="proto_declared"
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6988 #include <sys/types.h>
6992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6993 $EGREP "strtok_r" >/dev/null 2>&1; then :
6995 tmp_strtok_r="proto_needs_reentrant"
6996 tmp_need_reentrant="yes"
7008 if test "$tmp_need_reentrant" = "no"; then
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7014 #define inet_ntoa_r innocuous_inet_ntoa_r
7016 # include <limits.h>
7018 # include <assert.h>
7024 char inet_ntoa_r ();
7025 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7031 return inet_ntoa_r ();
7037 if ac_fn_c_try_link "$LINENO"; then :
7039 tmp_inet_ntoa_r="yes"
7043 tmp_inet_ntoa_r="no"
7046 rm -f core conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 if test "$tmp_inet_ntoa_r" = "yes"; then
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7052 #include <sys/types.h>
7053 #include <sys/socket.h>
7054 #include <netinet/in.h>
7055 #include <arpa/inet.h>
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7061 tmp_inet_ntoa_r="proto_declared"
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7069 #include <sys/types.h>
7070 #include <sys/socket.h>
7071 #include <netinet/in.h>
7072 #include <arpa/inet.h>
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7078 tmp_inet_ntoa_r="proto_needs_reentrant"
7079 tmp_need_reentrant="yes"
7091 if test "$tmp_need_reentrant" = "no"; then
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7097 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7099 # include <limits.h>
7101 # include <assert.h>
7103 #undef gethostbyaddr_r
7107 char gethostbyaddr_r ();
7108 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7114 return gethostbyaddr_r ();
7120 if ac_fn_c_try_link "$LINENO"; then :
7122 tmp_gethostbyaddr_r="yes"
7126 tmp_gethostbyaddr_r="no"
7129 rm -f core conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 if test "$tmp_gethostbyaddr_r" = "yes"; then
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7135 #include <sys/types.h>
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7142 tmp_gethostbyaddr_r="proto_declared"
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7150 #include <sys/types.h>
7154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7155 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7157 tmp_gethostbyaddr_r="proto_needs_reentrant"
7158 tmp_need_reentrant="yes"
7170 if test "$tmp_need_reentrant" = "no"; then
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7176 #define gethostbyname_r innocuous_gethostbyname_r
7178 # include <limits.h>
7180 # include <assert.h>
7182 #undef gethostbyname_r
7186 char gethostbyname_r ();
7187 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7193 return gethostbyname_r ();
7199 if ac_fn_c_try_link "$LINENO"; then :
7201 tmp_gethostbyname_r="yes"
7205 tmp_gethostbyname_r="no"
7208 rm -f core conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7210 if test "$tmp_gethostbyname_r" = "yes"; then
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7214 #include <sys/types.h>
7218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7221 tmp_gethostbyname_r="proto_declared"
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7229 #include <sys/types.h>
7233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7236 tmp_gethostbyname_r="proto_needs_reentrant"
7237 tmp_need_reentrant="yes"
7249 if test "$tmp_need_reentrant" = "no"; then
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7255 #define getprotobyname_r innocuous_getprotobyname_r
7257 # include <limits.h>
7259 # include <assert.h>
7261 #undef getprotobyname_r
7265 char getprotobyname_r ();
7266 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7272 return getprotobyname_r ();
7278 if ac_fn_c_try_link "$LINENO"; then :
7280 tmp_getprotobyname_r="yes"
7284 tmp_getprotobyname_r="no"
7287 rm -f core conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
7289 if test "$tmp_getprotobyname_r" = "yes"; then
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7293 #include <sys/types.h>
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7300 tmp_getprotobyname_r="proto_declared"
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7308 #include <sys/types.h>
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7315 tmp_getprotobyname_r="proto_needs_reentrant"
7316 tmp_need_reentrant="yes"
7328 if test "$tmp_need_reentrant" = "no"; then
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7334 #define getservbyport_r innocuous_getservbyport_r
7336 # include <limits.h>
7338 # include <assert.h>
7340 #undef getservbyport_r
7344 char getservbyport_r ();
7345 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7351 return getservbyport_r ();
7357 if ac_fn_c_try_link "$LINENO"; then :
7359 tmp_getservbyport_r="yes"
7363 tmp_getservbyport_r="no"
7366 rm -f core conftest.err conftest.$ac_objext \
7367 conftest$ac_exeext conftest.$ac_ext
7368 if test "$tmp_getservbyport_r" = "yes"; then
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7372 #include <sys/types.h>
7376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7379 tmp_getservbyport_r="proto_declared"
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7387 #include <sys/types.h>
7391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7394 tmp_getservbyport_r="proto_needs_reentrant"
7395 tmp_need_reentrant="yes"
7409 if test "$tmp_need_reentrant" = "yes"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7411 $as_echo "yes" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7419 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7420 if test "$tmp_reentrant_initially_defined" = "yes" ||
7421 test "$tmp_need_reentrant" = "yes"; then
7424 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7426 cat >>confdefs.h <<_EOF
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7441 # Check whether --enable-largefile was given.
7442 if test "${enable_largefile+set}" = set; then :
7443 enableval=$enable_largefile;
7446 if test "$enable_largefile" != no; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7449 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7450 if ${ac_cv_sys_largefile_CC+:} false; then :
7451 $as_echo_n "(cached) " >&6
7453 ac_cv_sys_largefile_CC=no
7454 if test "$GCC" != yes; then
7457 # IRIX 6.2 and later do not support large files by default,
7458 # so use the C compiler's -n32 option if that helps.
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 #include <sys/types.h>
7462 /* Check that off_t can represent 2**63 - 1 correctly.
7463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7464 since some C++ compilers masquerading as C compilers
7465 incorrectly reject 9223372036854775807. */
7466 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7468 && LARGE_OFF_T % 2147483647 == 1)
7477 if ac_fn_c_try_compile "$LINENO"; then :
7480 rm -f core conftest.err conftest.$ac_objext
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483 ac_cv_sys_largefile_CC=' -n32'; break
7485 rm -f core conftest.err conftest.$ac_objext
7489 rm -f conftest.$ac_ext
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7493 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7494 if test "$ac_cv_sys_largefile_CC" != no; then
7495 CC=$CC$ac_cv_sys_largefile_CC
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7499 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7500 if ${ac_cv_sys_file_offset_bits+:} false; then :
7501 $as_echo_n "(cached) " >&6
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 #include <sys/types.h>
7507 /* Check that off_t can represent 2**63 - 1 correctly.
7508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7509 since some C++ compilers masquerading as C compilers
7510 incorrectly reject 9223372036854775807. */
7511 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7513 && LARGE_OFF_T % 2147483647 == 1)
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 ac_cv_sys_file_offset_bits=no; break
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #define _FILE_OFFSET_BITS 64
7529 #include <sys/types.h>
7530 /* Check that off_t can represent 2**63 - 1 correctly.
7531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7532 since some C++ compilers masquerading as C compilers
7533 incorrectly reject 9223372036854775807. */
7534 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7536 && LARGE_OFF_T % 2147483647 == 1)
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 ac_cv_sys_file_offset_bits=64; break
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 ac_cv_sys_file_offset_bits=unknown
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7554 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7555 case $ac_cv_sys_file_offset_bits in #(
7558 cat >>confdefs.h <<_ACEOF
7559 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7564 if test $ac_cv_sys_file_offset_bits = unknown; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7566 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7567 if ${ac_cv_sys_large_files+:} false; then :
7568 $as_echo_n "(cached) " >&6
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 #include <sys/types.h>
7574 /* Check that off_t can represent 2**63 - 1 correctly.
7575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7576 since some C++ compilers masquerading as C compilers
7577 incorrectly reject 9223372036854775807. */
7578 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7580 && LARGE_OFF_T % 2147483647 == 1)
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 ac_cv_sys_large_files=no; break
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 #define _LARGE_FILES 1
7596 #include <sys/types.h>
7597 /* Check that off_t can represent 2**63 - 1 correctly.
7598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7599 since some C++ compilers masquerading as C compilers
7600 incorrectly reject 9223372036854775807. */
7601 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7603 && LARGE_OFF_T % 2147483647 == 1)
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 ac_cv_sys_large_files=1; break
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 ac_cv_sys_large_files=unknown
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7621 $as_echo "$ac_cv_sys_large_files" >&6; }
7622 case $ac_cv_sys_large_files in #(
7625 cat >>confdefs.h <<_ACEOF
7626 #define _LARGE_FILES $ac_cv_sys_large_files
7640 $as_echo "#define ETC_INET 1" >>confdefs.h
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7648 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7653 macro_version='2.4.6'
7654 macro_revision='2.4.6'
7668 ltmain=$ac_aux_dir/ltmain.sh
7670 # Backslashify metacharacters that are still active within
7671 # double-quoted strings.
7672 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7674 # Same as above, but do not quote variable references.
7675 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7677 # Sed substitution to delay expansion of an escaped shell variable in a
7678 # double_quote_subst'ed string.
7679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7681 # Sed substitution to delay expansion of an escaped single quote.
7682 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7684 # Sed substitution to avoid accidental globbing in evaled expressions
7685 no_glob_subst='s/\*/\\\*/g'
7687 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7688 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7689 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7692 $as_echo_n "checking how to print strings... " >&6; }
7693 # Test print first, because it will be a builtin if present.
7694 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7695 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7697 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7700 # Use this function as a fallback that always works.
7701 func_fallback_echo ()
7703 eval 'cat <<_LTECHO_EOF
7707 ECHO='func_fallback_echo'
7710 # func_echo_all arg...
7711 # Invoke $ECHO with all args, space-separated.
7718 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7719 $as_echo "printf" >&6; } ;;
7720 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7721 $as_echo "print -r" >&6; } ;;
7722 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7723 $as_echo "cat" >&6; } ;;
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7740 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7741 if ${ac_cv_path_SED+:} false; then :
7742 $as_echo_n "(cached) " >&6
7744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7745 for ac_i in 1 2 3 4 5 6 7; do
7746 ac_script="$ac_script$as_nl$ac_script"
7748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7749 { ac_script=; unset ac_script;}
7750 if test -z "$SED"; then
7751 ac_path_SED_found=false
7752 # Loop through the user's path and test for each of PROGNAME-LIST
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_prog in sed gsed; do
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7761 as_fn_executable_p "$ac_path_SED" || continue
7762 # Check for GNU ac_path_SED and select it if it is found.
7763 # Check for GNU $ac_path_SED
7764 case `"$ac_path_SED" --version 2>&1` in
7766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7769 $as_echo_n 0123456789 >"conftest.in"
7772 cat "conftest.in" "conftest.in" >"conftest.tmp"
7773 mv "conftest.tmp" "conftest.in"
7774 cp "conftest.in" "conftest.nl"
7775 $as_echo '' >> "conftest.nl"
7776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7778 as_fn_arith $ac_count + 1 && ac_count=$as_val
7779 if test $ac_count -gt ${ac_path_SED_max-0}; then
7780 # Best one so far, save it but keep looking for a better one
7781 ac_cv_path_SED="$ac_path_SED"
7782 ac_path_SED_max=$ac_count
7784 # 10*(2^10) chars as input seems more than enough
7785 test $ac_count -gt 10 && break
7787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7790 $ac_path_SED_found && break 3
7795 if test -z "$ac_cv_path_SED"; then
7796 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7804 $as_echo "$ac_cv_path_SED" >&6; }
7805 SED="$ac_cv_path_SED"
7808 test -z "$SED" && SED=sed
7809 Xsed="$SED -e 1s/^X//"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7822 $as_echo_n "checking for fgrep... " >&6; }
7823 if ${ac_cv_path_FGREP+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7827 then ac_cv_path_FGREP="$GREP -F"
7829 if test -z "$FGREP"; then
7830 ac_path_FGREP_found=false
7831 # Loop through the user's path and test for each of PROGNAME-LIST
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7836 test -z "$as_dir" && as_dir=.
7837 for ac_prog in fgrep; do
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7840 as_fn_executable_p "$ac_path_FGREP" || continue
7841 # Check for GNU ac_path_FGREP and select it if it is found.
7842 # Check for GNU $ac_path_FGREP
7843 case `"$ac_path_FGREP" --version 2>&1` in
7845 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7848 $as_echo_n 0123456789 >"conftest.in"
7851 cat "conftest.in" "conftest.in" >"conftest.tmp"
7852 mv "conftest.tmp" "conftest.in"
7853 cp "conftest.in" "conftest.nl"
7854 $as_echo 'FGREP' >> "conftest.nl"
7855 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7857 as_fn_arith $ac_count + 1 && ac_count=$as_val
7858 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7859 # Best one so far, save it but keep looking for a better one
7860 ac_cv_path_FGREP="$ac_path_FGREP"
7861 ac_path_FGREP_max=$ac_count
7863 # 10*(2^10) chars as input seems more than enough
7864 test $ac_count -gt 10 && break
7866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7869 $ac_path_FGREP_found && break 3
7874 if test -z "$ac_cv_path_FGREP"; then
7875 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7878 ac_cv_path_FGREP=$FGREP
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7884 $as_echo "$ac_cv_path_FGREP" >&6; }
7885 FGREP="$ac_cv_path_FGREP"
7888 test -z "$GREP" && GREP=grep
7908 # Check whether --with-gnu-ld was given.
7909 if test "${with_gnu_ld+set}" = set; then :
7910 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7916 if test yes = "$GCC"; then
7917 # Check if gcc -print-prog-name=ld gives a path.
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7919 $as_echo_n "checking for ld used by $CC... " >&6; }
7922 # gcc leaves a trailing carriage return, which upsets mingw
7923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7928 # Accept absolute paths.
7930 re_direlt='/[^/][^/]*/\.\./'
7931 # Canonicalize the pathname of ld
7932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7936 test -z "$LD" && LD=$ac_prog
7939 # If it fails, then pretend we aren't using GCC.
7943 # If it is relative, then search for the first ld in PATH.
7947 elif test yes = "$with_gnu_ld"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7949 $as_echo_n "checking for GNU ld... " >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7952 $as_echo_n "checking for non-GNU ld... " >&6; }
7954 if ${lt_cv_path_LD+:} false; then :
7955 $as_echo_n "(cached) " >&6
7957 if test -z "$LD"; then
7958 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7959 for ac_dir in $PATH; do
7961 test -z "$ac_dir" && ac_dir=.
7962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7963 lt_cv_path_LD=$ac_dir/$ac_prog
7964 # Check to see if the program is GNU ld. I'd rather use --version,
7965 # but apparently some variants of GNU ld only accept -v.
7966 # Break only if it was the GNU/non-GNU ld that we prefer.
7967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7968 *GNU* | *'with BFD'*)
7969 test no != "$with_gnu_ld" && break
7972 test yes != "$with_gnu_ld" && break
7979 lt_cv_path_LD=$LD # Let the user override the test with a path.
7984 if test -n "$LD"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7986 $as_echo "$LD" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7991 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7994 if ${lt_cv_prog_gnu_ld+:} false; then :
7995 $as_echo_n "(cached) " >&6
7997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7998 case `$LD -v 2>&1 </dev/null` in
7999 *GNU* | *'with BFD'*)
8000 lt_cv_prog_gnu_ld=yes
8003 lt_cv_prog_gnu_ld=no
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8009 with_gnu_ld=$lt_cv_prog_gnu_ld
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8020 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8021 if ${lt_cv_path_NM+:} false; then :
8022 $as_echo_n "(cached) " >&6
8024 if test -n "$NM"; then
8025 # Let the user override the test.
8028 lt_nm_to_check=${ac_tool_prefix}nm
8029 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8030 lt_nm_to_check="$lt_nm_to_check nm"
8032 for lt_tmp_nm in $lt_nm_to_check; do
8033 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8034 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8036 test -z "$ac_dir" && ac_dir=.
8037 tmp_nm=$ac_dir/$lt_tmp_nm
8038 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8039 # Check to see if the nm accepts a BSD-compat flag.
8040 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8041 # nm: unknown option "B" ignored
8042 # Tru64's nm complains that /dev/null is an invalid object file
8043 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8045 mingw*) lt_bad_file=conftest.nm/nofile ;;
8046 *) lt_bad_file=/dev/null ;;
8048 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8049 *$lt_bad_file* | *'Invalid file or object type'*)
8050 lt_cv_path_NM="$tmp_nm -B"
8054 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8056 lt_cv_path_NM="$tmp_nm -p"
8060 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8061 continue # so that we can try to find one that supports BSD flags
8070 : ${lt_cv_path_NM=no}
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8074 $as_echo "$lt_cv_path_NM" >&6; }
8075 if test no != "$lt_cv_path_NM"; then
8078 # Didn't find any BSD compatible name lister, look for dumpbin.
8079 if test -n "$DUMPBIN"; then :
8080 # Let the user override the test.
8082 if test -n "$ac_tool_prefix"; then
8083 for ac_prog in dumpbin "link -dump"
8085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_DUMPBIN+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$DUMPBIN"; then
8093 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 DUMPBIN=$ac_cv_prog_DUMPBIN
8113 if test -n "$DUMPBIN"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8115 $as_echo "$DUMPBIN" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8122 test -n "$DUMPBIN" && break
8125 if test -z "$DUMPBIN"; then
8126 ac_ct_DUMPBIN=$DUMPBIN
8127 for ac_prog in dumpbin "link -dump"
8129 # Extract the first word of "$ac_prog", so it can be a program name with args.
8130 set dummy $ac_prog; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8134 $as_echo_n "(cached) " >&6
8136 if test -n "$ac_ct_DUMPBIN"; then
8137 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8157 if test -n "$ac_ct_DUMPBIN"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8159 $as_echo "$ac_ct_DUMPBIN" >&6; }
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8166 test -n "$ac_ct_DUMPBIN" && break
8169 if test "x$ac_ct_DUMPBIN" = x; then
8172 case $cross_compiling:$ac_tool_warned in
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176 ac_tool_warned=yes ;;
8178 DUMPBIN=$ac_ct_DUMPBIN
8182 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8184 DUMPBIN="$DUMPBIN -symbols -headers"
8192 if test : != "$DUMPBIN"; then
8196 test -z "$NM" && NM=nm
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8204 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8205 if ${lt_cv_nm_interface+:} false; then :
8206 $as_echo_n "(cached) " >&6
8208 lt_cv_nm_interface="BSD nm"
8209 echo "int some_variable = 0;" > conftest.$ac_ext
8210 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8211 (eval "$ac_compile" 2>conftest.err)
8212 cat conftest.err >&5
8213 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8214 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8215 cat conftest.err >&5
8216 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8217 cat conftest.out >&5
8218 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8219 lt_cv_nm_interface="MS dumpbin"
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8224 $as_echo "$lt_cv_nm_interface" >&6; }
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8227 $as_echo_n "checking whether ln -s works... " >&6; }
8229 if test "$LN_S" = "ln -s"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8231 $as_echo "yes" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8234 $as_echo "no, using $LN_S" >&6; }
8237 # find the maximum length of command line arguments
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8239 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8240 if ${lt_cv_sys_max_cmd_len+:} false; then :
8241 $as_echo_n "(cached) " >&6
8248 # On DJGPP, this test can blow up pretty badly due to problems in libc
8249 # (any single argument exceeding 2000 bytes causes a buffer overrun
8250 # during glob expansion). Even if it were fixed, the result of this
8251 # check would be larger than it should be.
8252 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8256 # Under GNU Hurd, this test is not required because there is
8257 # no limit to the length of command line arguments.
8258 # Libtool will interpret -1 as no limit whatsoever
8259 lt_cv_sys_max_cmd_len=-1;
8262 cygwin* | mingw* | cegcc*)
8263 # On Win9x/ME, this test blows up -- it succeeds, but takes
8264 # about 5 minutes as the teststring grows exponentially.
8265 # Worse, since 9x/ME are not pre-emptively multitasking,
8266 # you end up with a "frozen" computer, even though with patience
8267 # the test eventually succeeds (with a max line length of 256k).
8268 # Instead, let's just punt: use the minimum linelength reported by
8269 # all of the supported platforms: 8192 (on NT/2K/XP).
8270 lt_cv_sys_max_cmd_len=8192;
8274 # On MiNT this can take a long time and run out of memory.
8275 lt_cv_sys_max_cmd_len=8192;
8279 # On AmigaOS with pdksh, this test takes hours, literally.
8280 # So we just punt and use a minimum line length of 8192.
8281 lt_cv_sys_max_cmd_len=8192;
8284 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8285 # This has been around since 386BSD, at least. Likely further.
8286 if test -x /sbin/sysctl; then
8287 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8288 elif test -x /usr/sbin/sysctl; then
8289 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8291 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8293 # And add a safety zone
8294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8299 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8300 lt_cv_sys_max_cmd_len=196608
8304 # The test takes a long time on OS/2.
8305 lt_cv_sys_max_cmd_len=8192
8309 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8310 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8311 # nice to cause kernel panics so lets avoid the loop below.
8312 # First set a reasonable default.
8313 lt_cv_sys_max_cmd_len=16384
8315 if test -x /sbin/sysconfig; then
8316 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8317 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8322 lt_cv_sys_max_cmd_len=102400
8324 sysv5* | sco5v6* | sysv4.2uw2*)
8325 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8326 if test -n "$kargmax"; then
8327 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8329 lt_cv_sys_max_cmd_len=32768
8333 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8334 if test -n "$lt_cv_sys_max_cmd_len" && \
8335 test undefined != "$lt_cv_sys_max_cmd_len"; then
8336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8339 # Make teststring a little bigger before we do anything with it.
8340 # a 1K string should be a reasonable start.
8341 for i in 1 2 3 4 5 6 7 8; do
8342 teststring=$teststring$teststring
8344 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8345 # If test is not a shell built-in, we'll probably end up computing a
8346 # maximum length that is only half of the actual maximum length, but
8348 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8349 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8350 test 17 != "$i" # 1/2 MB should be enough
8353 teststring=$teststring$teststring
8355 # Only check the string length outside the loop.
8356 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8358 # Add a significant safety factor because C++ compilers can tack on
8359 # massive amounts of additional arguments before passing them to the
8360 # linker. It appears as though 1/2 is a usable value.
8361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8368 if test -n "$lt_cv_sys_max_cmd_len"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8370 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8373 $as_echo "none" >&6; }
8375 max_cmd_len=$lt_cv_sys_max_cmd_len
8386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8396 # test EBCDIC or ASCII
8397 case `echo X|tr X '\101'` in
8398 A) # ASCII based system
8399 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8400 lt_SP2NL='tr \040 \012'
8401 lt_NL2SP='tr \015\012 \040\040'
8403 *) # EBCDIC based system
8404 lt_SP2NL='tr \100 \n'
8405 lt_NL2SP='tr \r\n \100\100'
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8418 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8419 if ${lt_cv_to_host_file_cmd+:} false; then :
8420 $as_echo_n "(cached) " >&6
8425 *-*-mingw* ) # actually msys
8426 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8429 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8431 * ) # otherwise, assume *nix
8432 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8438 *-*-mingw* ) # actually msys
8439 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8442 lt_cv_to_host_file_cmd=func_convert_file_noop
8444 * ) # otherwise, assume *nix
8445 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8449 * ) # unhandled hosts (and "normal" native builds)
8450 lt_cv_to_host_file_cmd=func_convert_file_noop
8456 to_host_file_cmd=$lt_cv_to_host_file_cmd
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8458 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8465 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8466 if ${lt_cv_to_tool_file_cmd+:} false; then :
8467 $as_echo_n "(cached) " >&6
8469 #assume ordinary cross tools, or native build.
8470 lt_cv_to_tool_file_cmd=func_convert_file_noop
8474 *-*-mingw* ) # actually msys
8475 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8485 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8492 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8493 if ${lt_cv_ld_reload_flag+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 lt_cv_ld_reload_flag='-r'
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8499 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8500 reload_flag=$lt_cv_ld_reload_flag
8501 case $reload_flag in
8503 *) reload_flag=" $reload_flag" ;;
8505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8507 cygwin* | mingw* | pw32* | cegcc*)
8508 if test yes != "$GCC"; then
8513 if test yes = "$GCC"; then
8514 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8529 if test -n "$ac_tool_prefix"; then
8530 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8531 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_OBJDUMP+:} false; then :
8535 $as_echo_n "(cached) " >&6
8537 if test -n "$OBJDUMP"; then
8538 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 OBJDUMP=$ac_cv_prog_OBJDUMP
8558 if test -n "$OBJDUMP"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8560 $as_echo "$OBJDUMP" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8568 if test -z "$ac_cv_prog_OBJDUMP"; then
8569 ac_ct_OBJDUMP=$OBJDUMP
8570 # Extract the first word of "objdump", so it can be a program name with args.
8571 set dummy objdump; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8575 $as_echo_n "(cached) " >&6
8577 if test -n "$ac_ct_OBJDUMP"; then
8578 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8598 if test -n "$ac_ct_OBJDUMP"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8600 $as_echo "$ac_ct_OBJDUMP" >&6; }
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8606 if test "x$ac_ct_OBJDUMP" = x; then
8609 case $cross_compiling:$ac_tool_warned in
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8613 ac_tool_warned=yes ;;
8615 OBJDUMP=$ac_ct_OBJDUMP
8618 OBJDUMP="$ac_cv_prog_OBJDUMP"
8621 test -z "$OBJDUMP" && OBJDUMP=objdump
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8630 if ${lt_cv_deplibs_check_method+:} false; then :
8631 $as_echo_n "(cached) " >&6
8633 lt_cv_file_magic_cmd='$MAGIC_CMD'
8634 lt_cv_file_magic_test_file=
8635 lt_cv_deplibs_check_method='unknown'
8636 # Need to set the preceding variable on all platforms that support
8637 # interlibrary dependencies.
8638 # 'none' -- dependencies not supported.
8639 # 'unknown' -- same as none, but documents that we really don't know.
8640 # 'pass_all' -- all dependencies passed with no checks.
8641 # 'test_compile' -- check by making test program.
8642 # 'file_magic [[regex]]' -- check by looking for files in library path
8643 # that responds to the $file_magic_cmd with a given extended regex.
8644 # If you have 'file' or equivalent on your system and you're not sure
8645 # whether 'pass_all' will *always* work, you probably want this one.
8649 lt_cv_deplibs_check_method=pass_all
8653 lt_cv_deplibs_check_method=pass_all
8657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8658 lt_cv_file_magic_cmd='/usr/bin/file -L'
8659 lt_cv_file_magic_test_file=/shlib/libc.so
8663 # func_win32_libid is a shell function defined in ltmain.sh
8664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8665 lt_cv_file_magic_cmd='func_win32_libid'
8669 # Base MSYS/MinGW do not provide the 'file' command needed by
8670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8671 # unless we find 'file', for example because we are cross-compiling.
8672 if ( file / ) >/dev/null 2>&1; then
8673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8674 lt_cv_file_magic_cmd='func_win32_libid'
8676 # Keep this pattern in sync with the one in func_win32_libid.
8677 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8678 lt_cv_file_magic_cmd='$OBJDUMP -f'
8683 # use the weaker test based on 'objdump'. See mingw*.
8684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8685 lt_cv_file_magic_cmd='$OBJDUMP -f'
8688 darwin* | rhapsody*)
8689 lt_cv_deplibs_check_method=pass_all
8692 freebsd* | dragonfly*)
8693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8696 # Not sure whether the presence of OpenBSD here was a mistake.
8697 # Let's accept both of them until this is cleared up.
8698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8699 lt_cv_file_magic_cmd=/usr/bin/file
8700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8704 lt_cv_deplibs_check_method=pass_all
8709 lt_cv_deplibs_check_method=pass_all
8712 hpux10.20* | hpux11*)
8713 lt_cv_file_magic_cmd=/usr/bin/file
8716 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8717 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8720 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]'
8721 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8725 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8731 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8735 irix5* | irix6* | nonstopux*)
8737 *-32|*"-32 ") libmagic=32-bit;;
8738 *-n32|*"-n32 ") libmagic=N32;;
8739 *-64|*"-64 ") libmagic=64-bit;;
8740 *) libmagic=never-match;;
8742 lt_cv_deplibs_check_method=pass_all
8745 # This must be glibc/ELF.
8746 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8747 lt_cv_deplibs_check_method=pass_all
8750 netbsd* | netbsdelf*-gnu)
8751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8760 lt_cv_file_magic_cmd=/usr/bin/file
8761 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8765 lt_cv_deplibs_check_method=pass_all
8769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8776 osf3* | osf4* | osf5*)
8777 lt_cv_deplibs_check_method=pass_all
8781 lt_cv_deplibs_check_method=pass_all
8785 lt_cv_deplibs_check_method=pass_all
8788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8789 lt_cv_deplibs_check_method=pass_all
8793 case $host_vendor in
8795 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]'
8796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8799 lt_cv_deplibs_check_method=pass_all
8802 lt_cv_file_magic_cmd='/bin/file'
8803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8806 lt_cv_file_magic_cmd='/bin/file'
8807 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8808 lt_cv_file_magic_test_file=/lib/libc.so
8811 lt_cv_deplibs_check_method=pass_all
8814 lt_cv_deplibs_check_method=pass_all
8820 lt_cv_deplibs_check_method=pass_all
8823 lt_cv_deplibs_check_method=pass_all
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8829 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8833 if test "$build" = "$host"; then
8836 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8839 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8845 file_magic_cmd=$lt_cv_file_magic_cmd
8846 deplibs_check_method=$lt_cv_deplibs_check_method
8847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8870 if test -n "$ac_tool_prefix"; then
8871 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8872 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if ${ac_cv_prog_DLLTOOL+:} false; then :
8876 $as_echo_n "(cached) " >&6
8878 if test -n "$DLLTOOL"; then
8879 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 DLLTOOL=$ac_cv_prog_DLLTOOL
8899 if test -n "$DLLTOOL"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8901 $as_echo "$DLLTOOL" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8909 if test -z "$ac_cv_prog_DLLTOOL"; then
8910 ac_ct_DLLTOOL=$DLLTOOL
8911 # Extract the first word of "dlltool", so it can be a program name with args.
8912 set dummy dlltool; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8916 $as_echo_n "(cached) " >&6
8918 if test -n "$ac_ct_DLLTOOL"; then
8919 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8928 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8939 if test -n "$ac_ct_DLLTOOL"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8941 $as_echo "$ac_ct_DLLTOOL" >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8947 if test "x$ac_ct_DLLTOOL" = x; then
8950 case $cross_compiling:$ac_tool_warned in
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954 ac_tool_warned=yes ;;
8956 DLLTOOL=$ac_ct_DLLTOOL
8959 DLLTOOL="$ac_cv_prog_DLLTOOL"
8962 test -z "$DLLTOOL" && DLLTOOL=dlltool
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8971 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8972 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8973 $as_echo_n "(cached) " >&6
8975 lt_cv_sharedlib_from_linklib_cmd='unknown'
8978 cygwin* | mingw* | pw32* | cegcc*)
8979 # two different shell functions defined in ltmain.sh;
8980 # decide which one to use based on capabilities of $DLLTOOL
8981 case `$DLLTOOL --help 2>&1` in
8982 *--identify-strict*)
8983 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8986 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8991 # fallback: assume linklib IS sharedlib
8992 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8998 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8999 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9000 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9008 if test -n "$ac_tool_prefix"; then
9011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if ${ac_cv_prog_AR+:} false; then :
9016 $as_echo_n "(cached) " >&6
9018 if test -n "$AR"; then
9019 ac_cv_prog_AR="$AR" # Let the user override the test.
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9028 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 if test -n "$AR"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9041 $as_echo "$AR" >&6; }
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9048 test -n "$AR" && break
9051 if test -z "$AR"; then
9055 # Extract the first word of "$ac_prog", so it can be a program name with args.
9056 set dummy $ac_prog; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9060 $as_echo_n "(cached) " >&6
9062 if test -n "$ac_ct_AR"; then
9063 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_ac_ct_AR="$ac_prog"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9083 if test -n "$ac_ct_AR"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9085 $as_echo "$ac_ct_AR" >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9092 test -n "$ac_ct_AR" && break
9095 if test "x$ac_ct_AR" = x; then
9098 case $cross_compiling:$ac_tool_warned in
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9102 ac_tool_warned=yes ;;
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9122 $as_echo_n "checking for archiver @FILE support... " >&6; }
9123 if ${lt_cv_ar_at_file+:} false; then :
9124 $as_echo_n "(cached) " >&6
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9137 if ac_fn_c_try_compile "$LINENO"; then :
9138 echo conftest.$ac_objext > conftest.lst
9139 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9141 (eval $lt_ar_try) 2>&5
9143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9144 test $ac_status = 0; }
9145 if test 0 -eq "$ac_status"; then
9146 # Ensure the archiver fails upon bogus file names.
9147 rm -f conftest.$ac_objext libconftest.a
9148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9149 (eval $lt_ar_try) 2>&5
9151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9152 test $ac_status = 0; }
9153 if test 0 -ne "$ac_status"; then
9157 rm -f conftest.* libconftest.a
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9164 $as_echo "$lt_cv_ar_at_file" >&6; }
9166 if test no = "$lt_cv_ar_at_file"; then
9169 archiver_list_spec=$lt_cv_ar_at_file
9178 if test -n "$ac_tool_prefix"; then
9179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9180 set dummy ${ac_tool_prefix}strip; ac_word=$2
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 $as_echo_n "checking for $ac_word... " >&6; }
9183 if ${ac_cv_prog_STRIP+:} false; then :
9184 $as_echo_n "(cached) " >&6
9186 if test -n "$STRIP"; then
9187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 test -z "$as_dir" && as_dir=.
9194 for ac_exec_ext in '' $ac_executable_extensions; do
9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 STRIP=$ac_cv_prog_STRIP
9207 if test -n "$STRIP"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9209 $as_echo "$STRIP" >&6; }
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9217 if test -z "$ac_cv_prog_STRIP"; then
9219 # Extract the first word of "strip", so it can be a program name with args.
9220 set dummy strip; ac_word=$2
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222 $as_echo_n "checking for $ac_word... " >&6; }
9223 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 if test -n "$ac_ct_STRIP"; then
9227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233 test -z "$as_dir" && as_dir=.
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9236 ac_cv_prog_ac_ct_STRIP="strip"
9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9247 if test -n "$ac_ct_STRIP"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9249 $as_echo "$ac_ct_STRIP" >&6; }
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9255 if test "x$ac_ct_STRIP" = x; then
9258 case $cross_compiling:$ac_tool_warned in
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9262 ac_tool_warned=yes ;;
9267 STRIP="$ac_cv_prog_STRIP"
9270 test -z "$STRIP" && STRIP=:
9277 if test -n "$ac_tool_prefix"; then
9278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if ${ac_cv_prog_RANLIB+:} false; then :
9283 $as_echo_n "(cached) " >&6
9285 if test -n "$RANLIB"; then
9286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 RANLIB=$ac_cv_prog_RANLIB
9306 if test -n "$RANLIB"; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9308 $as_echo "$RANLIB" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9316 if test -z "$ac_cv_prog_RANLIB"; then
9317 ac_ct_RANLIB=$RANLIB
9318 # Extract the first word of "ranlib", so it can be a program name with args.
9319 set dummy ranlib; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9323 $as_echo_n "(cached) " >&6
9325 if test -n "$ac_ct_RANLIB"; then
9326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_ac_ct_RANLIB="ranlib"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9346 if test -n "$ac_ct_RANLIB"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9348 $as_echo "$ac_ct_RANLIB" >&6; }
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9354 if test "x$ac_ct_RANLIB" = x; then
9357 case $cross_compiling:$ac_tool_warned in
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9361 ac_tool_warned=yes ;;
9363 RANLIB=$ac_ct_RANLIB
9366 RANLIB="$ac_cv_prog_RANLIB"
9369 test -z "$RANLIB" && RANLIB=:
9376 # Determine commands to create old-style static archives.
9377 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9378 old_postinstall_cmds='chmod 644 $oldlib'
9379 old_postuninstall_cmds=
9381 if test -n "$RANLIB"; then
9384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9390 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9395 lock_old_archive_extraction=yes ;;
9397 lock_old_archive_extraction=no ;;
9438 # If no C compiler was specified, use CC.
9441 # If no C compiler flags were specified, use CFLAGS.
9442 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9444 # Allow CC to be a program name with arguments.
9448 # Check for command to grab the raw symbol name followed by C symbol from nm.
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9450 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9451 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9452 $as_echo_n "(cached) " >&6
9455 # These are sane defaults that work on at least a few old systems.
9456 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9458 # Character class describing NM global symbol codes.
9459 symcode='[BCDEGRST]'
9461 # Regexp to match symbols that can be accessed directly from C.
9462 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9464 # Define system-specific variables.
9469 cygwin* | mingw* | pw32* | cegcc*)
9470 symcode='[ABCDGISTW]'
9473 if test ia64 = "$host_cpu"; then
9474 symcode='[ABCDEGRST]'
9478 symcode='[BCDEGRST]'
9481 symcode='[BCDEGQRST]'
9492 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9500 # If we're using GNU nm, then use its standard symbol codes.
9501 case `$NM -V 2>&1` in
9502 *GNU* | *'with BFD'*)
9503 symcode='[ABCDGIRSTW]' ;;
9506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9507 # Gets list of data symbols to import.
9508 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9509 # Adjust the below global symbol transforms to fixup imported variables.
9510 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9511 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9512 lt_c_name_lib_hook="\
9513 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9514 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9516 # Disable hooks by default.
9517 lt_cv_sys_global_symbol_to_import=
9523 # Transform an extracted symbol line into a proper C declaration.
9524 # Some systems (esp. on ia64) link data and code symbols differently,
9525 # so use this general approach.
9526 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9528 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9529 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9531 # Transform an extracted symbol line into symbol name and symbol address
9532 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9534 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9535 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9537 # Transform an extracted symbol line into symbol name with lib prefix and
9539 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9540 $lt_c_name_lib_hook\
9541 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9542 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9543 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9545 # Handle CRLF in mingw tool chain
9549 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9553 # Try without a prefix underscore, then with it.
9554 for ac_symprfx in "" "_"; do
9556 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9557 symxfrm="\\1 $ac_symprfx\\2 \\2"
9559 # Write the raw and C identifiers.
9560 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9561 # Fake it for dumpbin and say T for any non-static function,
9562 # D for any global variable and I for any imported variable.
9563 # Also find C++ and __fastcall symbols from MSVC++,
9564 # which start with @ or ?.
9565 lt_cv_sys_global_symbol_pipe="$AWK '"\
9566 " {last_section=section; section=\$ 3};"\
9567 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9568 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9569 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9570 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9571 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9572 " \$ 0!~/External *\|/{next};"\
9573 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9574 " {if(hide[section]) next};"\
9575 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9576 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9577 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9578 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9579 " ' prfx=^$ac_symprfx"
9581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9583 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9585 # Check to see that the pipe works correctly.
9589 cat > conftest.$ac_ext <<_LT_EOF
9594 void nm_test_func(void);
9595 void nm_test_func(void){}
9599 int main(){nm_test_var='a';nm_test_func();return(0);}
9602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9603 (eval $ac_compile) 2>&5
9605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9606 test $ac_status = 0; }; then
9607 # Now try to grab the symbols.
9609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9610 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613 test $ac_status = 0; } && test -s "$nlist"; then
9614 # Try sorting and uniquifying the output.
9615 if sort "$nlist" | uniq > "$nlist"T; then
9616 mv -f "$nlist"T "$nlist"
9621 # Make sure that we snagged all the symbols we need.
9622 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9623 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9624 cat <<_LT_EOF > conftest.$ac_ext
9625 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9626 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9627 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9628 relocations are performed -- see ld's documentation on pseudo-relocs. */
9629 # define LT_DLSYM_CONST
9630 #elif defined __osf__
9631 /* This system does not cope well with relocations in const data. */
9632 # define LT_DLSYM_CONST
9634 # define LT_DLSYM_CONST const
9642 # Now generate the symbol file.
9643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9645 cat <<_LT_EOF >> conftest.$ac_ext
9647 /* The mapping between symbol names and symbols. */
9648 LT_DLSYM_CONST struct {
9652 lt__PROGRAM__LTX_preloaded_symbols[] =
9654 { "@PROGRAM@", (void *) 0 },
9656 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9657 cat <<\_LT_EOF >> conftest.$ac_ext
9661 /* This works around a problem in FreeBSD linker */
9662 #ifdef FREEBSD_WORKAROUND
9663 static const void *lt_preloaded_setup() {
9664 return lt__PROGRAM__LTX_preloaded_symbols;
9672 # Now try linking the two files.
9673 mv -f conftest.$ac_objext conftstm.$ac_objext
9674 lt_globsym_save_LIBS=$LIBS
9675 lt_globsym_save_CFLAGS=$CFLAGS
9676 LIBS=conftstm.$ac_objext
9677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9679 (eval $ac_link) 2>&5
9681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9685 LIBS=$lt_globsym_save_LIBS
9686 CFLAGS=$lt_globsym_save_CFLAGS
9688 echo "cannot find nm_test_func in $nlist" >&5
9691 echo "cannot find nm_test_var in $nlist" >&5
9694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9697 echo "$progname: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9700 rm -rf conftest* conftst*
9702 # Do not use the global_symbol_pipe unless it works.
9703 if test yes = "$pipe_works"; then
9706 lt_cv_sys_global_symbol_pipe=
9712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713 lt_cv_sys_global_symbol_to_cdecl=
9715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9717 $as_echo "failed" >&6; }
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9720 $as_echo "ok" >&6; }
9723 # Response file support.
9724 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9725 nm_file_list_spec='@'
9726 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9727 nm_file_list_spec='@'
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9767 $as_echo_n "checking for sysroot... " >&6; }
9769 # Check whether --with-sysroot was given.
9770 if test "${with_sysroot+set}" = set; then :
9771 withval=$with_sysroot;
9778 case $with_sysroot in #(
9780 if test yes = "$GCC"; then
9781 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9785 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9791 $as_echo "$with_sysroot" >&6; }
9792 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9797 $as_echo "${lt_sysroot:-no}" >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9804 $as_echo_n "checking for a working dd... " >&6; }
9805 if ${ac_cv_path_lt_DD+:} false; then :
9806 $as_echo_n "(cached) " >&6
9808 printf 0123456789abcdef0123456789abcdef >conftest.i
9809 cat conftest.i conftest.i >conftest2.i
9811 if test -z "$lt_DD"; then
9812 ac_path_lt_DD_found=false
9813 # Loop through the user's path and test for each of PROGNAME-LIST
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 test -z "$as_dir" && as_dir=.
9819 for ac_prog in dd; do
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9822 as_fn_executable_p "$ac_path_lt_DD" || continue
9823 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9824 cmp -s conftest.i conftest.out \
9825 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9827 $ac_path_lt_DD_found && break 3
9832 if test -z "$ac_cv_path_lt_DD"; then
9836 ac_cv_path_lt_DD=$lt_DD
9839 rm -f conftest.i conftest2.i conftest.out
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9842 $as_echo "$ac_cv_path_lt_DD" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9846 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9847 if ${lt_cv_truncate_bin+:} false; then :
9848 $as_echo_n "(cached) " >&6
9850 printf 0123456789abcdef0123456789abcdef >conftest.i
9851 cat conftest.i conftest.i >conftest2.i
9853 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9854 cmp -s conftest.i conftest.out \
9855 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9857 rm -f conftest.i conftest2.i conftest.out
9858 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9861 $as_echo "$lt_cv_truncate_bin" >&6; }
9869 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9872 for cc_temp in $*""; do
9874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9880 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9883 # Check whether --enable-libtool-lock was given.
9884 if test "${enable_libtool_lock+set}" = set; then :
9885 enableval=$enable_libtool_lock;
9888 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9890 # Some flags need to be propagated to the compiler or linker for good
9894 # Find out what ABI is being produced by ac_compile, and set mode
9895 # options accordingly.
9896 echo 'int i;' > conftest.$ac_ext
9897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9898 (eval $ac_compile) 2>&5
9900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9901 test $ac_status = 0; }; then
9902 case `/usr/bin/file conftest.$ac_objext` in
9914 # Find out what ABI is being produced by ac_compile, and set linker
9915 # options accordingly.
9916 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9918 (eval $ac_compile) 2>&5
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; }; then
9922 if test yes = "$lt_cv_prog_gnu_ld"; then
9923 case `/usr/bin/file conftest.$ac_objext` in
9925 LD="${LD-ld} -melf32bsmip"
9928 LD="${LD-ld} -melf32bmipn32"
9931 LD="${LD-ld} -melf64bmip"
9935 case `/usr/bin/file conftest.$ac_objext` in
9952 # Find out what ABI is being produced by ac_compile, and set linker
9953 # options accordingly.
9954 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956 (eval $ac_compile) 2>&5
9958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959 test $ac_status = 0; }; then
9961 case `/usr/bin/file conftest.$ac_objext` in
9969 case `/usr/bin/file conftest.$ac_objext` in
9971 emul="${emul}btsmip"
9974 emul="${emul}ltsmip"
9977 case `/usr/bin/file conftest.$ac_objext` in
9982 LD="${LD-ld} -m $emul"
9987 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9988 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9989 # Find out what ABI is being produced by ac_compile, and set linker
9990 # options accordingly. Note that the listed cases only cover the
9991 # situations where additional linker options are needed (such as when
9992 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9993 # vice versa); the common cases where no linker options are needed do
9994 # not appear in the list.
9995 echo 'int i;' > conftest.$ac_ext
9996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9997 (eval $ac_compile) 2>&5
9999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10000 test $ac_status = 0; }; then
10001 case `/usr/bin/file conftest.o` in
10004 x86_64-*kfreebsd*-gnu)
10005 LD="${LD-ld} -m elf_i386_fbsd"
10008 case `/usr/bin/file conftest.o` in
10010 LD="${LD-ld} -m elf32_x86_64"
10013 LD="${LD-ld} -m elf_i386"
10017 powerpc64le-*linux*)
10018 LD="${LD-ld} -m elf32lppclinux"
10021 LD="${LD-ld} -m elf32ppclinux"
10024 LD="${LD-ld} -m elf_s390"
10027 LD="${LD-ld} -m elf32_sparc"
10033 x86_64-*kfreebsd*-gnu)
10034 LD="${LD-ld} -m elf_x86_64_fbsd"
10037 LD="${LD-ld} -m elf_x86_64"
10040 LD="${LD-ld} -m elf64lppc"
10043 LD="${LD-ld} -m elf64ppc"
10045 s390*-*linux*|s390*-*tpf*)
10046 LD="${LD-ld} -m elf64_s390"
10049 LD="${LD-ld} -m elf64_sparc"
10059 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10060 SAVE_CFLAGS=$CFLAGS
10061 CFLAGS="$CFLAGS -belf"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10063 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10064 if ${lt_cv_cc_needs_belf+:} false; then :
10065 $as_echo_n "(cached) " >&6
10068 ac_cpp='$CPP $CPPFLAGS'
10069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10083 if ac_fn_c_try_link "$LINENO"; then :
10084 lt_cv_cc_needs_belf=yes
10086 lt_cv_cc_needs_belf=no
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10091 ac_cpp='$CPP $CPPFLAGS'
10092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10098 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10099 if test yes != "$lt_cv_cc_needs_belf"; then
10100 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10101 CFLAGS=$SAVE_CFLAGS
10105 # Find out what ABI is being produced by ac_compile, and set linker
10106 # options accordingly.
10107 echo 'int i;' > conftest.$ac_ext
10108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10109 (eval $ac_compile) 2>&5
10111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10112 test $ac_status = 0; }; then
10113 case `/usr/bin/file conftest.o` in
10115 case $lt_cv_prog_gnu_ld in
10118 i?86-*-solaris*|x86_64-*-solaris*)
10119 LD="${LD-ld} -m elf_x86_64"
10122 LD="${LD-ld} -m elf64_sparc"
10125 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10126 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10131 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10143 need_locks=$enable_libtool_lock
10145 if test -n "$ac_tool_prefix"; then
10146 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10147 set dummy ${ac_tool_prefix}mt; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10151 $as_echo_n "(cached) " >&6
10153 if test -n "$MANIFEST_TOOL"; then
10154 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10174 if test -n "$MANIFEST_TOOL"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10176 $as_echo "$MANIFEST_TOOL" >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10184 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10185 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10186 # Extract the first word of "mt", so it can be a program name with args.
10187 set dummy mt; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10191 $as_echo_n "(cached) " >&6
10193 if test -n "$ac_ct_MANIFEST_TOOL"; then
10194 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10214 if test -n "$ac_ct_MANIFEST_TOOL"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10216 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10222 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10225 case $cross_compiling:$ac_tool_warned in
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10229 ac_tool_warned=yes ;;
10231 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10234 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10237 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10239 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10240 if ${lt_cv_path_mainfest_tool+:} false; then :
10241 $as_echo_n "(cached) " >&6
10243 lt_cv_path_mainfest_tool=no
10244 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10245 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10246 cat conftest.err >&5
10247 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10248 lt_cv_path_mainfest_tool=yes
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10253 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10254 if test yes != "$lt_cv_path_mainfest_tool"; then
10264 rhapsody* | darwin*)
10265 if test -n "$ac_tool_prefix"; then
10266 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10267 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10271 $as_echo_n "(cached) " >&6
10273 if test -n "$DSYMUTIL"; then
10274 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10294 if test -n "$DSYMUTIL"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10296 $as_echo "$DSYMUTIL" >&6; }
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10304 if test -z "$ac_cv_prog_DSYMUTIL"; then
10305 ac_ct_DSYMUTIL=$DSYMUTIL
10306 # Extract the first word of "dsymutil", so it can be a program name with args.
10307 set dummy dsymutil; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10311 $as_echo_n "(cached) " >&6
10313 if test -n "$ac_ct_DSYMUTIL"; then
10314 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10334 if test -n "$ac_ct_DSYMUTIL"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10336 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10342 if test "x$ac_ct_DSYMUTIL" = x; then
10345 case $cross_compiling:$ac_tool_warned in
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349 ac_tool_warned=yes ;;
10351 DSYMUTIL=$ac_ct_DSYMUTIL
10354 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10357 if test -n "$ac_tool_prefix"; then
10358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10359 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_prog_NMEDIT+:} false; then :
10363 $as_echo_n "(cached) " >&6
10365 if test -n "$NMEDIT"; then
10366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 NMEDIT=$ac_cv_prog_NMEDIT
10386 if test -n "$NMEDIT"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10388 $as_echo "$NMEDIT" >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10396 if test -z "$ac_cv_prog_NMEDIT"; then
10397 ac_ct_NMEDIT=$NMEDIT
10398 # Extract the first word of "nmedit", so it can be a program name with args.
10399 set dummy nmedit; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10403 $as_echo_n "(cached) " >&6
10405 if test -n "$ac_ct_NMEDIT"; then
10406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10426 if test -n "$ac_ct_NMEDIT"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10428 $as_echo "$ac_ct_NMEDIT" >&6; }
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10434 if test "x$ac_ct_NMEDIT" = x; then
10437 case $cross_compiling:$ac_tool_warned in
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10441 ac_tool_warned=yes ;;
10443 NMEDIT=$ac_ct_NMEDIT
10446 NMEDIT="$ac_cv_prog_NMEDIT"
10449 if test -n "$ac_tool_prefix"; then
10450 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10451 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if ${ac_cv_prog_LIPO+:} false; then :
10455 $as_echo_n "(cached) " >&6
10457 if test -n "$LIPO"; then
10458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 LIPO=$ac_cv_prog_LIPO
10478 if test -n "$LIPO"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10480 $as_echo "$LIPO" >&6; }
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10488 if test -z "$ac_cv_prog_LIPO"; then
10490 # Extract the first word of "lipo", so it can be a program name with args.
10491 set dummy lipo; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10495 $as_echo_n "(cached) " >&6
10497 if test -n "$ac_ct_LIPO"; then
10498 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_ac_ct_LIPO="lipo"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10518 if test -n "$ac_ct_LIPO"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10520 $as_echo "$ac_ct_LIPO" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10526 if test "x$ac_ct_LIPO" = x; then
10529 case $cross_compiling:$ac_tool_warned in
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533 ac_tool_warned=yes ;;
10538 LIPO="$ac_cv_prog_LIPO"
10541 if test -n "$ac_tool_prefix"; then
10542 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10543 set dummy ${ac_tool_prefix}otool; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_prog_OTOOL+:} false; then :
10547 $as_echo_n "(cached) " >&6
10549 if test -n "$OTOOL"; then
10550 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569 OTOOL=$ac_cv_prog_OTOOL
10570 if test -n "$OTOOL"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10572 $as_echo "$OTOOL" >&6; }
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10580 if test -z "$ac_cv_prog_OTOOL"; then
10582 # Extract the first word of "otool", so it can be a program name with args.
10583 set dummy otool; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10587 $as_echo_n "(cached) " >&6
10589 if test -n "$ac_ct_OTOOL"; then
10590 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_ac_ct_OTOOL="otool"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10610 if test -n "$ac_ct_OTOOL"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10612 $as_echo "$ac_ct_OTOOL" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10618 if test "x$ac_ct_OTOOL" = x; then
10621 case $cross_compiling:$ac_tool_warned in
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10625 ac_tool_warned=yes ;;
10630 OTOOL="$ac_cv_prog_OTOOL"
10633 if test -n "$ac_tool_prefix"; then
10634 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10635 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 $as_echo_n "checking for $ac_word... " >&6; }
10638 if ${ac_cv_prog_OTOOL64+:} false; then :
10639 $as_echo_n "(cached) " >&6
10641 if test -n "$OTOOL64"; then
10642 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661 OTOOL64=$ac_cv_prog_OTOOL64
10662 if test -n "$OTOOL64"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10664 $as_echo "$OTOOL64" >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10672 if test -z "$ac_cv_prog_OTOOL64"; then
10673 ac_ct_OTOOL64=$OTOOL64
10674 # Extract the first word of "otool64", so it can be a program name with args.
10675 set dummy otool64; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10679 $as_echo_n "(cached) " >&6
10681 if test -n "$ac_ct_OTOOL64"; then
10682 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691 ac_cv_prog_ac_ct_OTOOL64="otool64"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10702 if test -n "$ac_ct_OTOOL64"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10704 $as_echo "$ac_ct_OTOOL64" >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10710 if test "x$ac_ct_OTOOL64" = x; then
10713 case $cross_compiling:$ac_tool_warned in
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10717 ac_tool_warned=yes ;;
10719 OTOOL64=$ac_ct_OTOOL64
10722 OTOOL64="$ac_cv_prog_OTOOL64"
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10752 $as_echo_n "checking for -single_module linker flag... " >&6; }
10753 if ${lt_cv_apple_cc_single_mod+:} false; then :
10754 $as_echo_n "(cached) " >&6
10756 lt_cv_apple_cc_single_mod=no
10757 if test -z "$LT_MULTI_MODULE"; then
10758 # By default we will add the -single_module flag. You can override
10759 # by either setting the environment variable LT_MULTI_MODULE
10760 # non-empty at configure time, or by adding -multi_module to the
10762 rm -rf libconftest.dylib*
10763 echo "int foo(void){return 1;}" > conftest.c
10764 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10765 -dynamiclib -Wl,-single_module conftest.c" >&5
10766 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10767 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10769 # If there is a non-empty error log, and "single_module"
10770 # appears in it, assume the flag caused a linker warning
10771 if test -s conftest.err && $GREP single_module conftest.err; then
10772 cat conftest.err >&5
10773 # Otherwise, if the output was created with a 0 exit code from
10774 # the compiler, it worked.
10775 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10776 lt_cv_apple_cc_single_mod=yes
10778 cat conftest.err >&5
10780 rm -rf libconftest.dylib*
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10785 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10788 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10789 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10790 $as_echo_n "(cached) " >&6
10792 lt_cv_ld_exported_symbols_list=no
10793 save_LDFLAGS=$LDFLAGS
10794 echo "_main" > conftest.sym
10795 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 lt_cv_ld_exported_symbols_list=yes
10809 lt_cv_ld_exported_symbols_list=no
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LDFLAGS=$save_LDFLAGS
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10817 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10820 $as_echo_n "checking for -force_load linker flag... " >&6; }
10821 if ${lt_cv_ld_force_load+:} false; then :
10822 $as_echo_n "(cached) " >&6
10824 lt_cv_ld_force_load=no
10825 cat > conftest.c << _LT_EOF
10826 int forced_loaded() { return 2;}
10828 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10829 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10830 echo "$AR cru libconftest.a conftest.o" >&5
10831 $AR cru libconftest.a conftest.o 2>&5
10832 echo "$RANLIB libconftest.a" >&5
10833 $RANLIB libconftest.a 2>&5
10834 cat > conftest.c << _LT_EOF
10835 int main() { return 0;}
10837 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10838 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10840 if test -s conftest.err && $GREP force_load conftest.err; then
10841 cat conftest.err >&5
10842 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10843 lt_cv_ld_force_load=yes
10845 cat conftest.err >&5
10847 rm -f conftest.err libconftest.a conftest conftest.c
10848 rm -rf conftest.dSYM
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10852 $as_echo "$lt_cv_ld_force_load" >&6; }
10854 rhapsody* | darwin1.[012])
10855 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10857 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10858 darwin*) # darwin 5.x on
10859 # if running on 10.5 or later, the deployment target defaults
10860 # to the OS version, if on x86, and 10.4, the deployment
10861 # target defaults to 10.4. Don't you love it?
10862 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10863 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10864 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10866 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10868 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10872 if test yes = "$lt_cv_apple_cc_single_mod"; then
10873 _lt_dar_single_mod='$single_module'
10875 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10876 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10878 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10880 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10881 _lt_dsymutil='~$DSYMUTIL $lib || :'
10888 # func_munge_path_list VARIABLE PATH
10889 # -----------------------------------
10890 # VARIABLE is name of variable containing _space_ separated list of
10891 # directories to be munged by the contents of PATH, which is string
10894 # string "DIR[ DIR]" will be prepended to VARIABLE
10896 # string "DIR[ DIR]" will be appended to VARIABLE
10897 # "DIRP[:DIRP]::[DIRA:]DIRA"
10898 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10899 # "DIRA[ DIRA]" will be appended to VARIABLE
10901 # VARIABLE will be replaced by "DIR[ DIR]"
10902 func_munge_path_list ()
10908 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10911 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10914 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10915 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10918 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10924 $as_echo_n "checking for ANSI C header files... " >&6; }
10925 if ${ac_cv_header_stdc+:} false; then :
10926 $as_echo_n "(cached) " >&6
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930 #include <stdlib.h>
10931 #include <stdarg.h>
10932 #include <string.h>
10942 if ac_fn_c_try_compile "$LINENO"; then :
10943 ac_cv_header_stdc=yes
10945 ac_cv_header_stdc=no
10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949 if test $ac_cv_header_stdc = yes; then
10950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 #include <string.h>
10956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10957 $EGREP "memchr" >/dev/null 2>&1; then :
10960 ac_cv_header_stdc=no
10966 if test $ac_cv_header_stdc = yes; then
10967 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10970 #include <stdlib.h>
10973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10974 $EGREP "free" >/dev/null 2>&1; then :
10977 ac_cv_header_stdc=no
10983 if test $ac_cv_header_stdc = yes; then
10984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10985 if test "$cross_compiling" = yes; then :
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10991 #include <stdlib.h>
10992 #if ((' ' & 0x0FF) == 0x020)
10993 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10994 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10996 # define ISLOWER(c) \
10997 (('a' <= (c) && (c) <= 'i') \
10998 || ('j' <= (c) && (c) <= 'r') \
10999 || ('s' <= (c) && (c) <= 'z'))
11000 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11003 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11008 for (i = 0; i < 256; i++)
11009 if (XOR (islower (i), ISLOWER (i))
11010 || toupper (i) != TOUPPER (i))
11015 if ac_fn_c_try_run "$LINENO"; then :
11018 ac_cv_header_stdc=no
11020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11021 conftest.$ac_objext conftest.beam conftest.$ac_ext
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11027 $as_echo "$ac_cv_header_stdc" >&6; }
11028 if test $ac_cv_header_stdc = yes; then
11030 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11034 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11035 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11036 inttypes.h stdint.h unistd.h
11038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11039 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11042 cat >>confdefs.h <<_ACEOF
11043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11051 for ac_header in dlfcn.h
11053 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11055 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_DLFCN_H 1
11066 func_stripname_cnf ()
11069 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11070 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11072 } # func_stripname_cnf
11074 # ------------------------------------ #
11075 # Determine libtool default behavior #
11076 # ------------------------------------ #
11079 # Default behavior is to enable shared and static libraries on systems
11080 # where libtool knows how to build both library versions, and does not
11081 # require separate configuration and build runs for each flavor.
11084 xc_lt_want_enable_shared='yes'
11085 xc_lt_want_enable_static='yes'
11088 # User may have disabled shared or static libraries.
11090 case "x$enable_shared" in # (
11092 xc_lt_want_enable_shared='no'
11095 case "x$enable_static" in # (
11097 xc_lt_want_enable_static='no'
11100 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11101 test "x$xc_lt_want_enable_static" = 'xno'; then
11102 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11106 # Default behavior on systems that require independent configuration
11107 # and build runs for shared and static is to enable shared libraries
11108 # and disable static ones. On these systems option '--disable-shared'
11109 # must be used in order to build a proper static library.
11112 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11113 test "x$xc_lt_want_enable_static" = 'xyes'; then
11114 case $host_os in # (
11115 mingw* | pw32* | cegcc* | os2* | aix*)
11116 xc_lt_want_enable_static='no'
11122 # Make libtool aware of current shared and static library preferences
11123 # taking in account that, depending on host characteristics, libtool
11124 # may modify these option preferences later in this configure script.
11127 enable_shared=$xc_lt_want_enable_shared
11128 enable_static=$xc_lt_want_enable_static
11131 # Default behavior is to build PIC objects for shared libraries and
11132 # non-PIC objects for static libraries.
11135 xc_lt_want_with_pic='default'
11138 # User may have specified PIC preference.
11141 case "x$with_pic" in # ((
11143 xc_lt_want_with_pic='no'
11146 xc_lt_want_with_pic='yes'
11151 # Default behavior on some systems where building a shared library out
11152 # of non-PIC compiled objects will fail with following linker error
11153 # "relocation R_X86_64_32 can not be used when making a shared object"
11154 # is to build PIC objects even for static libraries. This behavior may
11155 # be overriden using 'configure --disable-shared --without-pic'.
11158 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11159 case $host_cpu in # (
11160 x86_64 | amd64 | ia64)
11161 case $host_os in # (
11163 xc_lt_want_with_pic='yes'
11171 # Make libtool aware of current PIC preference taking in account that,
11172 # depending on host characteristics, libtool may modify PIC default
11173 # behavior to fit host system idiosyncrasies later in this script.
11176 with_pic=$xc_lt_want_with_pic
11178 ## ----------------------- ##
11179 ## Start of libtool code ##
11180 ## ----------------------- ##
11186 enable_win32_dll=yes
11189 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11190 if test -n "$ac_tool_prefix"; then
11191 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11192 set dummy ${ac_tool_prefix}as; ac_word=$2
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194 $as_echo_n "checking for $ac_word... " >&6; }
11195 if ${ac_cv_prog_AS+:} false; then :
11196 $as_echo_n "(cached) " >&6
11198 if test -n "$AS"; then
11199 ac_cv_prog_AS="$AS" # Let the user override the test.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208 ac_cv_prog_AS="${ac_tool_prefix}as"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 if test -n "$AS"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11221 $as_echo "$AS" >&6; }
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11229 if test -z "$ac_cv_prog_AS"; then
11231 # Extract the first word of "as", so it can be a program name with args.
11232 set dummy as; ac_word=$2
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11234 $as_echo_n "checking for $ac_word... " >&6; }
11235 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11236 $as_echo_n "(cached) " >&6
11238 if test -n "$ac_ct_AS"; then
11239 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248 ac_cv_prog_ac_ct_AS="as"
11249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11259 if test -n "$ac_ct_AS"; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11261 $as_echo "$ac_ct_AS" >&6; }
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11267 if test "x$ac_ct_AS" = x; then
11270 case $cross_compiling:$ac_tool_warned in
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11274 ac_tool_warned=yes ;;
11279 AS="$ac_cv_prog_AS"
11282 if test -n "$ac_tool_prefix"; then
11283 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11284 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if ${ac_cv_prog_DLLTOOL+:} false; then :
11288 $as_echo_n "(cached) " >&6
11290 if test -n "$DLLTOOL"; then
11291 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 DLLTOOL=$ac_cv_prog_DLLTOOL
11311 if test -n "$DLLTOOL"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11313 $as_echo "$DLLTOOL" >&6; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11321 if test -z "$ac_cv_prog_DLLTOOL"; then
11322 ac_ct_DLLTOOL=$DLLTOOL
11323 # Extract the first word of "dlltool", so it can be a program name with args.
11324 set dummy dlltool; ac_word=$2
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326 $as_echo_n "checking for $ac_word... " >&6; }
11327 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11328 $as_echo_n "(cached) " >&6
11330 if test -n "$ac_ct_DLLTOOL"; then
11331 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11337 test -z "$as_dir" && as_dir=.
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11351 if test -n "$ac_ct_DLLTOOL"; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11353 $as_echo "$ac_ct_DLLTOOL" >&6; }
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11359 if test "x$ac_ct_DLLTOOL" = x; then
11362 case $cross_compiling:$ac_tool_warned in
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11366 ac_tool_warned=yes ;;
11368 DLLTOOL=$ac_ct_DLLTOOL
11371 DLLTOOL="$ac_cv_prog_DLLTOOL"
11374 if test -n "$ac_tool_prefix"; then
11375 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11376 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_prog_OBJDUMP+:} false; then :
11380 $as_echo_n "(cached) " >&6
11382 if test -n "$OBJDUMP"; then
11383 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 OBJDUMP=$ac_cv_prog_OBJDUMP
11403 if test -n "$OBJDUMP"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11405 $as_echo "$OBJDUMP" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11413 if test -z "$ac_cv_prog_OBJDUMP"; then
11414 ac_ct_OBJDUMP=$OBJDUMP
11415 # Extract the first word of "objdump", so it can be a program name with args.
11416 set dummy objdump; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11420 $as_echo_n "(cached) " >&6
11422 if test -n "$ac_ct_OBJDUMP"; then
11423 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11432 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11443 if test -n "$ac_ct_OBJDUMP"; then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11445 $as_echo "$ac_ct_OBJDUMP" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11451 if test "x$ac_ct_OBJDUMP" = x; then
11454 case $cross_compiling:$ac_tool_warned in
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11458 ac_tool_warned=yes ;;
11460 OBJDUMP=$ac_ct_OBJDUMP
11463 OBJDUMP="$ac_cv_prog_OBJDUMP"
11469 test -z "$AS" && AS=as
11475 test -z "$DLLTOOL" && DLLTOOL=dlltool
11481 test -z "$OBJDUMP" && OBJDUMP=objdump
11493 # Check whether --enable-shared was given.
11494 if test "${enable_shared+set}" = set; then :
11495 enableval=$enable_shared; p=${PACKAGE-default}
11497 yes) enable_shared=yes ;;
11498 no) enable_shared=no ;;
11501 # Look at the argument we got. We use all the common list separators.
11502 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11503 for pkg in $enableval; do
11505 if test "X$pkg" = "X$p"; then
11524 # Check whether --enable-static was given.
11525 if test "${enable_static+set}" = set; then :
11526 enableval=$enable_static; p=${PACKAGE-default}
11528 yes) enable_static=yes ;;
11529 no) enable_static=no ;;
11532 # Look at the argument we got. We use all the common list separators.
11533 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11534 for pkg in $enableval; do
11536 if test "X$pkg" = "X$p"; then
11556 # Check whether --with-pic was given.
11557 if test "${with_pic+set}" = set; then :
11558 withval=$with_pic; lt_p=${PACKAGE-default}
11560 yes|no) pic_mode=$withval ;;
11563 # Look at the argument we got. We use all the common list separators.
11564 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11565 for lt_pkg in $withval; do
11567 if test "X$lt_pkg" = "X$lt_p"; then
11585 # Check whether --enable-fast-install was given.
11586 if test "${enable_fast_install+set}" = set; then :
11587 enableval=$enable_fast_install; p=${PACKAGE-default}
11589 yes) enable_fast_install=yes ;;
11590 no) enable_fast_install=no ;;
11592 enable_fast_install=no
11593 # Look at the argument we got. We use all the common list separators.
11594 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11595 for pkg in $enableval; do
11597 if test "X$pkg" = "X$p"; then
11598 enable_fast_install=yes
11605 enable_fast_install=yes
11615 shared_archive_member_spec=
11616 case $host,$enable_shared in
11617 power*-*-aix[5-9]*,yes)
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11619 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11621 # Check whether --with-aix-soname was given.
11622 if test "${with_aix_soname+set}" = set; then :
11623 withval=$with_aix_soname; case $withval in
11627 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11630 lt_cv_with_aix_soname=$with_aix_soname
11632 if ${lt_cv_with_aix_soname+:} false; then :
11633 $as_echo_n "(cached) " >&6
11635 lt_cv_with_aix_soname=aix
11638 with_aix_soname=$lt_cv_with_aix_soname
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11642 $as_echo "$with_aix_soname" >&6; }
11643 if test aix != "$with_aix_soname"; then
11644 # For the AIX way of multilib, we name the shared archive member
11645 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11646 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11647 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11648 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11649 if test 64 = "${OBJECT_MODE-32}"; then
11650 shared_archive_member_spec=shr_64
11652 shared_archive_member_spec=shr
11657 with_aix_soname=aix
11670 # This can be used to rebuild libtool when needed
11671 LIBTOOL_DEPS=$ltmain
11673 # Always use our own libtool.
11674 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11705 test -z "$LN_S" && LN_S="ln -s"
11720 if test -n "${ZSH_VERSION+set}"; then
11721 setopt NO_GLOB_SUBST
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11725 $as_echo_n "checking for objdir... " >&6; }
11726 if ${lt_cv_objdir+:} false; then :
11727 $as_echo_n "(cached) " >&6
11729 rm -f .libs 2>/dev/null
11730 mkdir .libs 2>/dev/null
11731 if test -d .libs; then
11734 # MS-DOS does not allow filenames that begin with a dot.
11737 rmdir .libs 2>/dev/null
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11740 $as_echo "$lt_cv_objdir" >&6; }
11741 objdir=$lt_cv_objdir
11747 cat >>confdefs.h <<_ACEOF
11748 #define LT_OBJDIR "$lt_cv_objdir/"
11756 # AIX sometimes has problems with the GCC collect2 program. For some
11757 # reason, if we set the COLLECT_NAMES environment variable, the problems
11758 # vanish in a puff of smoke.
11759 if test set != "${COLLECT_NAMES+set}"; then
11761 export COLLECT_NAMES
11766 # Global variables:
11768 can_build_shared=yes
11770 # All known linkers require a '.a' archive for static linking (except MSVC,
11771 # which needs '.lib').
11774 with_gnu_ld=$lt_cv_prog_gnu_ld
11779 # Set sane defaults for various variables
11780 test -z "$CC" && CC=cc
11781 test -z "$LTCC" && LTCC=$CC
11782 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11783 test -z "$LD" && LD=ld
11784 test -z "$ac_objext" && ac_objext=o
11786 func_cc_basename $compiler
11787 cc_basename=$func_cc_basename_result
11790 # Only perform the check for file, if the check method requires it
11791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11792 case $deplibs_check_method in
11794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11796 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11797 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11798 $as_echo_n "(cached) " >&6
11802 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11805 lt_save_MAGIC_CMD=$MAGIC_CMD
11806 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11808 for ac_dir in $ac_dummy; do
11810 test -z "$ac_dir" && ac_dir=.
11811 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11812 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11813 if test -n "$file_magic_test_file"; then
11814 case $deplibs_check_method in
11816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11817 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11819 $EGREP "$file_magic_regex" > /dev/null; then
11824 *** Warning: the command libtool uses to detect shared libraries,
11825 *** $file_magic_cmd, produces output that libtool cannot recognize.
11826 *** The result is that libtool may fail to recognize shared libraries
11827 *** as such. This will affect the creation of libtool libraries that
11828 *** depend on shared libraries, but programs linked with such libtool
11829 *** libraries will work regardless of this problem. Nevertheless, you
11830 *** may want to report the problem to your system manager and/or to
11831 *** bug-libtool@gnu.org
11841 MAGIC_CMD=$lt_save_MAGIC_CMD
11846 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11847 if test -n "$MAGIC_CMD"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11849 $as_echo "$MAGIC_CMD" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11859 if test -z "$lt_cv_path_MAGIC_CMD"; then
11860 if test -n "$ac_tool_prefix"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11862 $as_echo_n "checking for file... " >&6; }
11863 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11864 $as_echo_n "(cached) " >&6
11868 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11871 lt_save_MAGIC_CMD=$MAGIC_CMD
11872 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11874 for ac_dir in $ac_dummy; do
11876 test -z "$ac_dir" && ac_dir=.
11877 if test -f "$ac_dir/file"; then
11878 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11879 if test -n "$file_magic_test_file"; then
11880 case $deplibs_check_method in
11882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11883 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11885 $EGREP "$file_magic_regex" > /dev/null; then
11890 *** Warning: the command libtool uses to detect shared libraries,
11891 *** $file_magic_cmd, produces output that libtool cannot recognize.
11892 *** The result is that libtool may fail to recognize shared libraries
11893 *** as such. This will affect the creation of libtool libraries that
11894 *** depend on shared libraries, but programs linked with such libtool
11895 *** libraries will work regardless of this problem. Nevertheless, you
11896 *** may want to report the problem to your system manager and/or to
11897 *** bug-libtool@gnu.org
11907 MAGIC_CMD=$lt_save_MAGIC_CMD
11912 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11913 if test -n "$MAGIC_CMD"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11915 $as_echo "$MAGIC_CMD" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11931 # Use C for the default configuration in the libtool script
11935 ac_cpp='$CPP $CPPFLAGS'
11936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11941 # Source file extension for C test sources.
11944 # Object file extension for compiled C test sources.
11948 # Code to be used in simple compile tests
11949 lt_simple_compile_test_code="int some_variable = 0;"
11951 # Code to be used in simple link tests
11952 lt_simple_link_test_code='int main(){return(0);}'
11960 # If no C compiler was specified, use CC.
11963 # If no C compiler flags were specified, use CFLAGS.
11964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11966 # Allow CC to be a program name with arguments.
11969 # Save the default compiler, since it gets overwritten when the other
11970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11971 compiler_DEFAULT=$CC
11973 # save warnings/boilerplate of simple test code
11974 ac_outfile=conftest.$ac_objext
11975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11977 _lt_compiler_boilerplate=`cat conftest.err`
11980 ac_outfile=conftest.$ac_objext
11981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11983 _lt_linker_boilerplate=`cat conftest.err`
11988 ## There is no encapsulation within the following macros, do not change
11989 ## the running order or otherwise move them around unless you know exactly
11990 ## what you are doing...
11991 if test -n "$compiler"; then
11993 lt_prog_compiler_no_builtin_flag=
11995 if test yes = "$GCC"; then
11996 case $cc_basename in
11998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12004 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12005 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12006 $as_echo_n "(cached) " >&6
12008 lt_cv_prog_compiler_rtti_exceptions=no
12009 ac_outfile=conftest.$ac_objext
12010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12012 # Insert the option either (1) after the last *FLAGS variable, or
12013 # (2) before a word containing "conftest.", or (3) at the end.
12014 # Note that $ac_compile itself does not contain backslashes and begins
12015 # with a dollar sign (not a hyphen), so the echo should work correctly.
12016 # The option is referenced via a variable to avoid confusing sed.
12017 lt_compile=`echo "$ac_compile" | $SED \
12018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12020 -e 's:$: $lt_compiler_flag:'`
12021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12022 (eval "$lt_compile" 2>conftest.err)
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 if (exit $ac_status) && test -s "$ac_outfile"; then
12027 # The compiler can only warn and ignore the option if not recognized
12028 # So say no if there are warnings other than the usual output.
12029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12032 lt_cv_prog_compiler_rtti_exceptions=yes
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12039 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12041 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12054 lt_prog_compiler_wl=
12055 lt_prog_compiler_pic=
12056 lt_prog_compiler_static=
12059 if test yes = "$GCC"; then
12060 lt_prog_compiler_wl='-Wl,'
12061 lt_prog_compiler_static='-static'
12065 # All AIX code is PIC.
12066 if test ia64 = "$host_cpu"; then
12067 # AIX 5 now supports IA64 processor
12068 lt_prog_compiler_static='-Bstatic'
12070 lt_prog_compiler_pic='-fPIC'
12076 # see comment about AmigaOS4 .so support
12077 lt_prog_compiler_pic='-fPIC'
12080 # FIXME: we need at least 68020 code to build shared libraries, but
12081 # adding the '-m68020' flag to GCC prevents building anything better,
12083 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12089 # PIC is the default for these OSes.
12092 mingw* | cygwin* | pw32* | os2* | cegcc*)
12093 # This hack is so that the source file can tell whether it is being
12094 # built for inclusion in a dll (and should export symbols for example).
12095 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12096 # (--disable-auto-import) libraries
12097 lt_prog_compiler_pic='-DDLL_EXPORT'
12100 lt_prog_compiler_static='$wl-static'
12105 darwin* | rhapsody*)
12106 # PIC is the default on this platform
12107 # Common symbols not allowed in MH_DYLIB files
12108 lt_prog_compiler_pic='-fno-common'
12112 # PIC is the default for Haiku.
12113 # The "-static" flag exists, but is broken.
12114 lt_prog_compiler_static=
12118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12120 # sets the default TLS model and affects inlining.
12126 lt_prog_compiler_pic='-fPIC'
12132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12133 # Instead, we relocate shared libraries at runtime.
12137 # Just because we use GCC doesn't mean we suddenly get shared libraries
12138 # on systems that don't support them.
12139 lt_prog_compiler_can_build_shared=no
12144 # QNX uses GNU C++, but need to define -shared option too, otherwise
12145 # it will coredump.
12146 lt_prog_compiler_pic='-fPIC -shared'
12150 if test -d /usr/nec; then
12151 lt_prog_compiler_pic=-Kconform_pic
12156 lt_prog_compiler_pic='-fPIC'
12160 case $cc_basename in
12161 nvcc*) # Cuda Compiler Driver 2.2
12162 lt_prog_compiler_wl='-Xlinker '
12163 if test -n "$lt_prog_compiler_pic"; then
12164 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12169 # PORTME Check for flag to pass linker flags through the system compiler.
12172 lt_prog_compiler_wl='-Wl,'
12173 if test ia64 = "$host_cpu"; then
12174 # AIX 5 now supports IA64 processor
12175 lt_prog_compiler_static='-Bstatic'
12177 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12181 darwin* | rhapsody*)
12182 # PIC is the default on this platform
12183 # Common symbols not allowed in MH_DYLIB files
12184 lt_prog_compiler_pic='-fno-common'
12185 case $cc_basename in
12187 # NAG Fortran compiler
12188 lt_prog_compiler_wl='-Wl,-Wl,,'
12189 lt_prog_compiler_pic='-PIC'
12190 lt_prog_compiler_static='-Bstatic'
12195 mingw* | cygwin* | pw32* | os2* | cegcc*)
12196 # This hack is so that the source file can tell whether it is being
12197 # built for inclusion in a dll (and should export symbols for example).
12198 lt_prog_compiler_pic='-DDLL_EXPORT'
12201 lt_prog_compiler_static='$wl-static'
12206 hpux9* | hpux10* | hpux11*)
12207 lt_prog_compiler_wl='-Wl,'
12208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12209 # not for PA HP-UX.
12215 lt_prog_compiler_pic='+Z'
12218 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12219 lt_prog_compiler_static='$wl-a ${wl}archive'
12222 irix5* | irix6* | nonstopux*)
12223 lt_prog_compiler_wl='-Wl,'
12224 # PIC (with -KPIC) is the default.
12225 lt_prog_compiler_static='-non_shared'
12228 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12229 case $cc_basename in
12230 # old Intel for x86_64, which still supported -KPIC.
12232 lt_prog_compiler_wl='-Wl,'
12233 lt_prog_compiler_pic='-KPIC'
12234 lt_prog_compiler_static='-static'
12236 # icc used to be incompatible with GCC.
12237 # ICC 10 doesn't accept -KPIC any more.
12239 lt_prog_compiler_wl='-Wl,'
12240 lt_prog_compiler_pic='-fPIC'
12241 lt_prog_compiler_static='-static'
12243 # Lahey Fortran 8.1.
12245 lt_prog_compiler_wl='-Wl,'
12246 lt_prog_compiler_pic='--shared'
12247 lt_prog_compiler_static='--static'
12250 # NAG Fortran compiler
12251 lt_prog_compiler_wl='-Wl,-Wl,,'
12252 lt_prog_compiler_pic='-PIC'
12253 lt_prog_compiler_static='-Bstatic'
12256 # Fabrice Bellard et al's Tiny C Compiler
12257 lt_prog_compiler_wl='-Wl,'
12258 lt_prog_compiler_pic='-fPIC'
12259 lt_prog_compiler_static='-static'
12261 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12262 # Portland Group compilers (*not* the Pentium gcc compiler,
12263 # which looks to be a dead project)
12264 lt_prog_compiler_wl='-Wl,'
12265 lt_prog_compiler_pic='-fpic'
12266 lt_prog_compiler_static='-Bstatic'
12269 lt_prog_compiler_wl='-Wl,'
12270 # All Alpha code is PIC.
12271 lt_prog_compiler_static='-non_shared'
12273 xl* | bgxl* | bgf* | mpixl*)
12274 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12275 lt_prog_compiler_wl='-Wl,'
12276 lt_prog_compiler_pic='-qpic'
12277 lt_prog_compiler_static='-qstaticlink'
12280 case `$CC -V 2>&1 | sed 5q` in
12281 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12283 lt_prog_compiler_pic='-KPIC'
12284 lt_prog_compiler_static='-Bstatic'
12285 lt_prog_compiler_wl=''
12287 *Sun\ F* | *Sun*Fortran*)
12288 lt_prog_compiler_pic='-KPIC'
12289 lt_prog_compiler_static='-Bstatic'
12290 lt_prog_compiler_wl='-Qoption ld '
12294 lt_prog_compiler_pic='-KPIC'
12295 lt_prog_compiler_static='-Bstatic'
12296 lt_prog_compiler_wl='-Wl,'
12298 *Intel*\ [CF]*Compiler*)
12299 lt_prog_compiler_wl='-Wl,'
12300 lt_prog_compiler_pic='-fPIC'
12301 lt_prog_compiler_static='-static'
12304 lt_prog_compiler_wl='-Wl,'
12305 lt_prog_compiler_pic='-fpic'
12306 lt_prog_compiler_static='-Bstatic'
12314 lt_prog_compiler_pic='-KPIC'
12315 lt_prog_compiler_static='-Bstatic'
12319 # QNX uses GNU C++, but need to define -shared option too, otherwise
12320 # it will coredump.
12321 lt_prog_compiler_pic='-fPIC -shared'
12324 osf3* | osf4* | osf5*)
12325 lt_prog_compiler_wl='-Wl,'
12326 # All OSF/1 code is PIC.
12327 lt_prog_compiler_static='-non_shared'
12331 lt_prog_compiler_static='-non_shared'
12335 lt_prog_compiler_pic='-KPIC'
12336 lt_prog_compiler_static='-Bstatic'
12337 case $cc_basename in
12338 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12339 lt_prog_compiler_wl='-Qoption ld ';;
12341 lt_prog_compiler_wl='-Wl,';;
12346 lt_prog_compiler_wl='-Qoption ld '
12347 lt_prog_compiler_pic='-PIC'
12348 lt_prog_compiler_static='-Bstatic'
12351 sysv4 | sysv4.2uw2* | sysv4.3*)
12352 lt_prog_compiler_wl='-Wl,'
12353 lt_prog_compiler_pic='-KPIC'
12354 lt_prog_compiler_static='-Bstatic'
12358 if test -d /usr/nec; then
12359 lt_prog_compiler_pic='-Kconform_pic'
12360 lt_prog_compiler_static='-Bstatic'
12364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12365 lt_prog_compiler_wl='-Wl,'
12366 lt_prog_compiler_pic='-KPIC'
12367 lt_prog_compiler_static='-Bstatic'
12371 lt_prog_compiler_wl='-Wl,'
12372 lt_prog_compiler_can_build_shared=no
12376 lt_prog_compiler_pic='-pic'
12377 lt_prog_compiler_static='-Bstatic'
12381 lt_prog_compiler_can_build_shared=no
12387 # For platforms that do not support PIC, -DPIC is meaningless:
12389 lt_prog_compiler_pic=
12392 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12397 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12398 if ${lt_cv_prog_compiler_pic+:} false; then :
12399 $as_echo_n "(cached) " >&6
12401 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12404 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12405 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12408 # Check to make sure the PIC flag actually works.
12410 if test -n "$lt_prog_compiler_pic"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12412 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12413 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12414 $as_echo_n "(cached) " >&6
12416 lt_cv_prog_compiler_pic_works=no
12417 ac_outfile=conftest.$ac_objext
12418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12420 # Insert the option either (1) after the last *FLAGS variable, or
12421 # (2) before a word containing "conftest.", or (3) at the end.
12422 # Note that $ac_compile itself does not contain backslashes and begins
12423 # with a dollar sign (not a hyphen), so the echo should work correctly.
12424 # The option is referenced via a variable to avoid confusing sed.
12425 lt_compile=`echo "$ac_compile" | $SED \
12426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12428 -e 's:$: $lt_compiler_flag:'`
12429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12430 (eval "$lt_compile" 2>conftest.err)
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 if (exit $ac_status) && test -s "$ac_outfile"; then
12435 # The compiler can only warn and ignore the option if not recognized
12436 # So say no if there are warnings other than the usual output.
12437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12440 lt_cv_prog_compiler_pic_works=yes
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12447 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12449 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12450 case $lt_prog_compiler_pic in
12452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12455 lt_prog_compiler_pic=
12456 lt_prog_compiler_can_build_shared=no
12472 # Check to make sure the static flag actually works.
12474 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12476 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12477 if ${lt_cv_prog_compiler_static_works+:} false; then :
12478 $as_echo_n "(cached) " >&6
12480 lt_cv_prog_compiler_static_works=no
12481 save_LDFLAGS=$LDFLAGS
12482 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12483 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12485 # The linker can only warn and ignore the option if not recognized
12486 # So say no if there are warnings
12487 if test -s conftest.err; then
12488 # Append any errors to the config.log.
12489 cat conftest.err 1>&5
12490 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12492 if diff conftest.exp conftest.er2 >/dev/null; then
12493 lt_cv_prog_compiler_static_works=yes
12496 lt_cv_prog_compiler_static_works=yes
12500 LDFLAGS=$save_LDFLAGS
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12504 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12506 if test yes = "$lt_cv_prog_compiler_static_works"; then
12509 lt_prog_compiler_static=
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12520 if ${lt_cv_prog_compiler_c_o+:} false; then :
12521 $as_echo_n "(cached) " >&6
12523 lt_cv_prog_compiler_c_o=no
12524 $RM -r conftest 2>/dev/null
12528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12530 lt_compiler_flag="-o out/conftest2.$ac_objext"
12531 # Insert the option either (1) after the last *FLAGS variable, or
12532 # (2) before a word containing "conftest.", or (3) at the end.
12533 # Note that $ac_compile itself does not contain backslashes and begins
12534 # with a dollar sign (not a hyphen), so the echo should work correctly.
12535 lt_compile=`echo "$ac_compile" | $SED \
12536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12538 -e 's:$: $lt_compiler_flag:'`
12539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12540 (eval "$lt_compile" 2>out/conftest.err)
12542 cat out/conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12546 # The compiler can only warn and ignore the option if not recognized
12547 # So say no if there are warnings
12548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12551 lt_cv_prog_compiler_c_o=yes
12556 # SGI C++ compiler will create directory out/ii_files/ for
12557 # template instantiation
12558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12559 $RM out/* && rmdir out
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12566 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12574 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12575 if ${lt_cv_prog_compiler_c_o+:} false; then :
12576 $as_echo_n "(cached) " >&6
12578 lt_cv_prog_compiler_c_o=no
12579 $RM -r conftest 2>/dev/null
12583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12585 lt_compiler_flag="-o out/conftest2.$ac_objext"
12586 # Insert the option either (1) after the last *FLAGS variable, or
12587 # (2) before a word containing "conftest.", or (3) at the end.
12588 # Note that $ac_compile itself does not contain backslashes and begins
12589 # with a dollar sign (not a hyphen), so the echo should work correctly.
12590 lt_compile=`echo "$ac_compile" | $SED \
12591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12593 -e 's:$: $lt_compiler_flag:'`
12594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12595 (eval "$lt_compile" 2>out/conftest.err)
12597 cat out/conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12601 # The compiler can only warn and ignore the option if not recognized
12602 # So say no if there are warnings
12603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12606 lt_cv_prog_compiler_c_o=yes
12611 # SGI C++ compiler will create directory out/ii_files/ for
12612 # template instantiation
12613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12614 $RM out/* && rmdir out
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12621 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12626 hard_links=nottested
12627 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12628 # do not overwrite the value of need_locks provided by the user
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12630 $as_echo_n "checking if we can lock with hard links... " >&6; }
12633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12635 ln conftest.a conftest.b 2>&5 || hard_links=no
12636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12638 $as_echo "$hard_links" >&6; }
12639 if test no = "$hard_links"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12641 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12654 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12657 allow_undefined_flag=
12658 always_export_symbols=no
12660 archive_expsym_cmds=
12661 compiler_needs_object=no
12662 enable_shared_with_static_runtimes=no
12663 export_dynamic_flag_spec=
12664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12665 hardcode_automatic=no
12667 hardcode_direct_absolute=no
12668 hardcode_libdir_flag_spec=
12669 hardcode_libdir_separator=
12670 hardcode_minus_L=no
12671 hardcode_shlibpath_var=unsupported
12673 link_all_deplibs=unknown
12675 module_expsym_cmds=
12676 old_archive_from_new_cmds=
12677 old_archive_from_expsyms_cmds=
12678 thread_safe_flag_spec=
12679 whole_archive_flag_spec=
12680 # include_expsyms should be a list of space-separated symbols to be *always*
12681 # included in the symbol list
12683 # exclude_expsyms can be an extended regexp of symbols to exclude
12684 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12685 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12686 # as well as any symbol that contains 'd'.
12687 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12689 # platforms (ab)use it in PIC code, but their linkers get confused if
12690 # the symbol is explicitly referenced. Since portable code cannot
12691 # rely on this symbol name, it's probably fine to never include it in
12692 # preloaded symbol tables.
12693 # Exclude shared library initialization/finalization symbols.
12694 extract_expsyms_cmds=
12697 cygwin* | mingw* | pw32* | cegcc*)
12698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12699 # When not using gcc, we currently assume that we are using
12700 # Microsoft Visual C++.
12701 if test yes != "$GCC"; then
12706 # we just hope/assume this is gcc and not c89 (= MSVC++)
12709 openbsd* | bitrig*)
12712 linux* | k*bsd*-gnu | gnu*)
12713 link_all_deplibs=no
12719 # On some targets, GNU ld is compatible enough with the native linker
12720 # that we're better off using the native interface for both.
12721 lt_use_gnu_ld_interface=no
12722 if test yes = "$with_gnu_ld"; then
12725 # The AIX port of GNU ld has always aspired to compatibility
12726 # with the native linker. However, as the warning in the GNU ld
12727 # block says, versions before 2.19.5* couldn't really create working
12728 # shared libraries, regardless of the interface used.
12729 case `$LD -v 2>&1` in
12730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12732 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12734 lt_use_gnu_ld_interface=yes
12739 lt_use_gnu_ld_interface=yes
12744 if test yes = "$lt_use_gnu_ld_interface"; then
12745 # If archive_cmds runs LD, not CC, wlarc should be empty
12748 # Set some defaults for GNU ld with shared library support. These
12749 # are reset later if shared libraries are not supported. Putting them
12750 # here allows them to be overridden if necessary.
12751 runpath_var=LD_RUN_PATH
12752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12753 export_dynamic_flag_spec='$wl--export-dynamic'
12754 # ancient GNU ld didn't support --whole-archive et. al.
12755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12756 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12758 whole_archive_flag_spec=
12760 supports_anon_versioning=no
12761 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12762 *GNU\ gold*) supports_anon_versioning=yes ;;
12763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12766 *\ 2.11.*) ;; # other 2.11 versions
12767 *) supports_anon_versioning=yes ;;
12770 # See if GNU ld supports shared libraries.
12773 # On AIX/PPC, the GNU linker is very broken
12774 if test ia64 != "$host_cpu"; then
12778 *** Warning: the GNU linker, at least up to release 2.19, is reported
12779 *** to be unable to reliably create shared libraries on AIX.
12780 *** Therefore, libtool is disabling shared libraries support. If you
12781 *** really care for shared libraries, you may want to install binutils
12782 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12783 *** You will then need to restart the configuration process.
12792 # see comment about AmigaOS4 .so support
12793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12794 archive_expsym_cmds=''
12797 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)'
12798 hardcode_libdir_flag_spec='-L$libdir'
12799 hardcode_minus_L=yes
12805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12806 allow_undefined_flag=unsupported
12807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12808 # support --undefined. This deserves some investigation. FIXME
12809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12815 cygwin* | mingw* | pw32* | cegcc*)
12816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12817 # as there is no search path for DLLs.
12818 hardcode_libdir_flag_spec='-L$libdir'
12819 export_dynamic_flag_spec='$wl--export-all-symbols'
12820 allow_undefined_flag=unsupported
12821 always_export_symbols=no
12822 enable_shared_with_static_runtimes=yes
12823 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'
12824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12828 # If the export-symbols file already is a .def file, use it as
12829 # is; otherwise, prepend EXPORTS...
12830 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12831 cp $export_symbols $output_objdir/$soname.def;
12833 echo EXPORTS > $output_objdir/$soname.def;
12834 cat $export_symbols >> $output_objdir/$soname.def;
12836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12844 link_all_deplibs=yes
12848 hardcode_libdir_flag_spec='-L$libdir'
12849 hardcode_minus_L=yes
12850 allow_undefined_flag=unsupported
12852 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12855 $ECHO EXPORTS >> $output_objdir/$libname.def~
12856 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12858 emximp -o $lib $output_objdir/$libname.def'
12859 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12862 $ECHO EXPORTS >> $output_objdir/$libname.def~
12863 prefix_cmds="$SED"~
12864 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12865 prefix_cmds="$prefix_cmds -e 1d";
12867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12868 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12870 emximp -o $lib $output_objdir/$libname.def'
12871 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12872 enable_shared_with_static_runtimes=yes
12877 hardcode_shlibpath_var=no
12878 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12879 export_dynamic_flag_spec='$wl-E'
12880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12881 # Instead, shared libraries are loaded at an image base (0x10000000 by
12882 # default) and relocated if they conflict, which is a slow very memory
12883 # consuming and fragmenting process. To avoid this, we pick a random,
12884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12885 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12887 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'
12890 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12892 if test linux-dietlibc = "$host_os"; then
12893 case $cc_basename in
12894 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12897 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12898 && test no = "$tmp_diet"
12900 tmp_addflag=' $pic_flag'
12901 tmp_sharedflag='-shared'
12902 case $cc_basename,$host_cpu in
12903 pgcc*) # Portland Group C compiler
12904 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'
12905 tmp_addflag=' $pic_flag'
12907 pgf77* | pgf90* | pgf95* | pgfortran*)
12908 # Portland Group f77 and f90 compilers
12909 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'
12910 tmp_addflag=' $pic_flag -Mnomain' ;;
12911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12912 tmp_addflag=' -i_dynamic' ;;
12913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12914 tmp_addflag=' -i_dynamic -nofor_main' ;;
12915 ifc* | ifort*) # Intel Fortran compiler
12916 tmp_addflag=' -nofor_main' ;;
12917 lf95*) # Lahey Fortran 8.1
12918 whole_archive_flag_spec=
12919 tmp_sharedflag='--shared' ;;
12920 nagfor*) # NAGFOR 5.3
12921 tmp_sharedflag='-Wl,-shared' ;;
12922 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12923 tmp_sharedflag='-qmkshrobj'
12925 nvcc*) # Cuda Compiler Driver 2.2
12926 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'
12927 compiler_needs_object=yes
12930 case `$CC -V 2>&1 | sed 5q` in
12931 *Sun\ C*) # Sun C 5.9
12932 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'
12933 compiler_needs_object=yes
12934 tmp_sharedflag='-G' ;;
12935 *Sun\ F*) # Sun Fortran 8.3
12936 tmp_sharedflag='-G' ;;
12938 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12940 if test yes = "$supports_anon_versioning"; then
12941 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12943 echo "local: *; };" >> $output_objdir/$libname.ver~
12944 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12947 case $cc_basename in
12949 export_dynamic_flag_spec='-rdynamic'
12951 xlf* | bgf* | bgxlf* | mpixlf*)
12952 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12953 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12955 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12956 if test yes = "$supports_anon_versioning"; then
12957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12959 echo "local: *; };" >> $output_objdir/$libname.ver~
12960 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12969 netbsd* | netbsdelf*-gnu)
12970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12985 *** create shared libraries on Solaris systems. Therefore, libtool
12986 *** is disabling shared libraries support. We urge you to upgrade GNU
12987 *** binutils to release 2.9.1 or newer. Another option is to modify
12988 *** your PATH or compiler configuration so that the native linker is
12989 *** used, and then restart.
12992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12994 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13001 case `$LD -v 2>&1` in
13002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13007 *** reliably create shared libraries on SCO systems. Therefore, libtool
13008 *** is disabling shared libraries support. We urge you to upgrade GNU
13009 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13010 *** your PATH or compiler configuration so that the native linker is
13011 *** used, and then restart.
13016 # For security reasons, it is highly recommended that you always
13017 # use absolute paths for naming shared libraries, and exclude the
13018 # DT_RUNPATH tag from executables and libraries. But doing so
13019 # requires that you compile everything twice, which is a pain.
13020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13034 hardcode_direct=yes
13035 hardcode_shlibpath_var=no
13039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13048 if test no = "$ld_shlibs"; then
13050 hardcode_libdir_flag_spec=
13051 export_dynamic_flag_spec=
13052 whole_archive_flag_spec=
13055 # PORTME fill in a description of your system's linker (not GNU ld)
13058 allow_undefined_flag=unsupported
13059 always_export_symbols=yes
13060 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'
13061 # Note: this linker hardcodes the directories in LIBPATH if there
13062 # are no directories specified by -L.
13063 hardcode_minus_L=yes
13064 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13065 # Neither direct hardcoding nor static linking is supported with a
13067 hardcode_direct=unsupported
13072 if test ia64 = "$host_cpu"; then
13073 # On IA64, the linker does run time linking by default, so we don't
13074 # have to do anything special.
13075 aix_use_runtimelinking=no
13076 exp_sym_flag='-Bexport'
13079 # If we're using GNU nm, then we don't want the "-C" option.
13080 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13081 # Without the "-l" option, or with the "-B" option, AIX nm treats
13082 # weak defined symbols like other global defined symbols, whereas
13083 # GNU nm marks them as "W".
13084 # While the 'weak' keyword is ignored in the Export File, we need
13085 # it in the Import File for the 'aix-soname' feature, so we have
13086 # to replace the "-B" option with "-P" for AIX nm.
13087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13088 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'
13090 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'
13092 aix_use_runtimelinking=no
13094 # Test if we are trying to use run time linking or normal
13095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13096 # have runtime linking enabled, and use it for executables.
13097 # For shared libraries, we enable/disable runtime linking
13098 # depending on the kind of the shared library created -
13099 # when "with_aix_soname,aix_use_runtimelinking" is:
13100 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13101 # "aix,yes" lib.so shared, rtl:yes, for executables
13102 # lib.a static archive
13103 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13104 # lib.a(lib.so.V) shared, rtl:no, for executables
13105 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13106 # lib.a(lib.so.V) shared, rtl:no
13107 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13108 # lib.a static archive
13109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13110 for ld_flag in $LDFLAGS; do
13111 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13112 aix_use_runtimelinking=yes
13116 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13117 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13118 # so we don't have lib.a shared libs to link our executables.
13119 # We have to force runtime linking in this case.
13120 aix_use_runtimelinking=yes
13121 LDFLAGS="$LDFLAGS -Wl,-brtl"
13126 exp_sym_flag='-bexport'
13127 no_entry_flag='-bnoentry'
13130 # When large executables or shared objects are built, AIX ld can
13131 # have problems creating the table of contents. If linking a library
13132 # or program results in "error TOC overflow" add -mminimal-toc to
13133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13137 hardcode_direct=yes
13138 hardcode_direct_absolute=yes
13139 hardcode_libdir_separator=':'
13140 link_all_deplibs=yes
13141 file_list_spec='$wl-f,'
13142 case $with_aix_soname,$aix_use_runtimelinking in
13143 aix,*) ;; # traditional, no import file
13144 svr4,* | *,yes) # use import file
13145 # The Import File defines what to hardcode.
13147 hardcode_direct_absolute=no
13151 if test yes = "$GCC"; then
13152 case $host_os in aix4.[012]|aix4.[012].*)
13153 # We only want to do this on AIX 4.2 and lower, the check
13154 # below for broken collect2 doesn't work under 4.3+
13155 collect2name=`$CC -print-prog-name=collect2`
13156 if test -f "$collect2name" &&
13157 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13159 # We have reworked collect2
13162 # We have old collect2
13163 hardcode_direct=unsupported
13164 # It fails to find uninstalled libraries when the uninstalled
13165 # path is not listed in the libpath. Setting hardcode_minus_L
13166 # to unsupported forces relinking
13167 hardcode_minus_L=yes
13168 hardcode_libdir_flag_spec='-L$libdir'
13169 hardcode_libdir_separator=
13173 shared_flag='-shared'
13174 if test yes = "$aix_use_runtimelinking"; then
13175 shared_flag="$shared_flag "'$wl-G'
13177 # Need to ensure runtime linking is disabled for the traditional
13178 # shared library, or the linker may eventually find shared libraries
13179 # /with/ Import File - we do not want to mix them.
13180 shared_flag_aix='-shared'
13181 shared_flag_svr4='-shared $wl-G'
13184 if test ia64 = "$host_cpu"; then
13185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13186 # chokes on -Wl,-G. The following line is correct:
13189 if test yes = "$aix_use_runtimelinking"; then
13190 shared_flag='$wl-G'
13192 shared_flag='$wl-bM:SRE'
13194 shared_flag_aix='$wl-bM:SRE'
13195 shared_flag_svr4='$wl-G'
13199 export_dynamic_flag_spec='$wl-bexpall'
13200 # It seems that -bexpall does not export symbols beginning with
13201 # underscore (_), so it is better to generate a list of symbols to export.
13202 always_export_symbols=yes
13203 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13204 # Warning - without using the other runtime loading flags (-brtl),
13205 # -berok will link without error, but may produce a broken library.
13206 allow_undefined_flag='-berok'
13207 # Determine the default libpath from the value encoded in an
13208 # empty executable.
13209 if test set = "${lt_cv_aix_libpath+set}"; then
13210 aix_libpath=$lt_cv_aix_libpath
13212 if ${lt_cv_aix_libpath_+:} false; then :
13213 $as_echo_n "(cached) " >&6
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13225 if ac_fn_c_try_link "$LINENO"; then :
13227 lt_aix_libpath_sed='
13228 /Import File Strings/,/^$/ {
13230 s/^0 *\([^ ]*\) *$/\1/
13234 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13235 # Check for a 64-bit object if we didn't find anything.
13236 if test -z "$lt_cv_aix_libpath_"; then
13237 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13240 rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242 if test -z "$lt_cv_aix_libpath_"; then
13243 lt_cv_aix_libpath_=/usr/lib:/lib
13248 aix_libpath=$lt_cv_aix_libpath_
13251 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13252 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
13254 if test ia64 = "$host_cpu"; then
13255 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13256 allow_undefined_flag="-z nodefs"
13257 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"
13259 # Determine the default libpath from the value encoded in an
13260 # empty executable.
13261 if test set = "${lt_cv_aix_libpath+set}"; then
13262 aix_libpath=$lt_cv_aix_libpath
13264 if ${lt_cv_aix_libpath_+:} false; then :
13265 $as_echo_n "(cached) " >&6
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13277 if ac_fn_c_try_link "$LINENO"; then :
13279 lt_aix_libpath_sed='
13280 /Import File Strings/,/^$/ {
13282 s/^0 *\([^ ]*\) *$/\1/
13286 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13287 # Check for a 64-bit object if we didn't find anything.
13288 if test -z "$lt_cv_aix_libpath_"; then
13289 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13292 rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 if test -z "$lt_cv_aix_libpath_"; then
13295 lt_cv_aix_libpath_=/usr/lib:/lib
13300 aix_libpath=$lt_cv_aix_libpath_
13303 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13304 # Warning - without using the other run time loading flags,
13305 # -berok will link without error, but may produce a broken library.
13306 no_undefined_flag=' $wl-bernotok'
13307 allow_undefined_flag=' $wl-berok'
13308 if test yes = "$with_gnu_ld"; then
13309 # We only use this code for GNU lds that support --whole-archive.
13310 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13312 # Exported symbols can be pulled into shared objects from archives
13313 whole_archive_flag_spec='$convenience'
13315 archive_cmds_need_lc=yes
13316 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13317 # -brtl affects multiple linker settings, -berok does not and is overridden later
13318 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13319 if test svr4 != "$with_aix_soname"; then
13320 # This is similar to how AIX traditionally builds its shared libraries.
13321 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'
13323 if test aix != "$with_aix_soname"; then
13324 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'
13326 # used by -dlpreopen to get the symbols
13327 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13329 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13337 # see comment about AmigaOS4 .so support
13338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13339 archive_expsym_cmds=''
13342 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)'
13343 hardcode_libdir_flag_spec='-L$libdir'
13344 hardcode_minus_L=yes
13350 export_dynamic_flag_spec=-rdynamic
13353 cygwin* | mingw* | pw32* | cegcc*)
13354 # When not using gcc, we currently assume that we are using
13355 # Microsoft Visual C++.
13356 # hardcode_libdir_flag_spec is actually meaningless, as there is
13357 # no search path for DLLs.
13358 case $cc_basename in
13361 hardcode_libdir_flag_spec=' '
13362 allow_undefined_flag=unsupported
13363 always_export_symbols=yes
13365 # Tell ltmain to make .lib files, not .a files.
13367 # Tell ltmain to make .dll files, not .so files.
13369 # FIXME: Setting linknames here is a bad hack.
13370 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13371 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13372 cp "$export_symbols" "$output_objdir/$soname.def";
13373 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13375 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13377 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13379 # The linker will not automatically build a static lib if we build a DLL.
13380 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13381 enable_shared_with_static_runtimes=yes
13382 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13385 old_postinstall_cmds='chmod 644 $oldlib'
13386 postlink_cmds='lt_outputfile="@OUTPUT@"~
13387 lt_tool_outputfile="@TOOL_OUTPUT@"~
13388 case $lt_outputfile in
13391 lt_outputfile=$lt_outputfile.exe
13392 lt_tool_outputfile=$lt_tool_outputfile.exe
13395 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13396 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13397 $RM "$lt_outputfile.manifest";
13401 # Assume MSVC wrapper
13402 hardcode_libdir_flag_spec=' '
13403 allow_undefined_flag=unsupported
13404 # Tell ltmain to make .lib files, not .a files.
13406 # Tell ltmain to make .dll files, not .so files.
13408 # FIXME: Setting linknames here is a bad hack.
13409 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13410 # The linker will automatically build a .lib file if we build a DLL.
13411 old_archive_from_new_cmds='true'
13412 # FIXME: Should let the user specify the lib program.
13413 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13414 enable_shared_with_static_runtimes=yes
13419 darwin* | rhapsody*)
13422 archive_cmds_need_lc=no
13424 hardcode_automatic=yes
13425 hardcode_shlibpath_var=unsupported
13426 if test yes = "$lt_cv_ld_force_load"; then
13427 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\"`'
13430 whole_archive_flag_spec=''
13432 link_all_deplibs=yes
13433 allow_undefined_flag=$_lt_dar_allow_undefined
13434 case $cc_basename in
13435 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13436 *) _lt_dar_can_shared=$GCC ;;
13438 if test yes = "$_lt_dar_can_shared"; then
13439 output_verbose_link_cmd=func_echo_all
13440 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13441 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13442 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"
13443 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"
13452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453 hardcode_libdir_flag_spec='-L$libdir'
13454 hardcode_shlibpath_var=no
13457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13458 # support. Future versions do this automatically, but an explicit c++rt0.o
13459 # does not break anything, and helps significantly (at the cost of a little
13462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13463 hardcode_libdir_flag_spec='-R$libdir'
13464 hardcode_direct=yes
13465 hardcode_shlibpath_var=no
13468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_direct=yes
13472 hardcode_minus_L=yes
13473 hardcode_shlibpath_var=no
13476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13477 freebsd* | dragonfly*)
13478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13479 hardcode_libdir_flag_spec='-R$libdir'
13480 hardcode_direct=yes
13481 hardcode_shlibpath_var=no
13485 if test yes = "$GCC"; then
13486 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'
13488 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'
13490 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13491 hardcode_libdir_separator=:
13492 hardcode_direct=yes
13494 # hardcode_minus_L: Not really in the search PATH,
13495 # but as the default location of the library.
13496 hardcode_minus_L=yes
13497 export_dynamic_flag_spec='$wl-E'
13501 if test yes,no = "$GCC,$with_gnu_ld"; then
13502 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13506 if test no = "$with_gnu_ld"; then
13507 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13508 hardcode_libdir_separator=:
13509 hardcode_direct=yes
13510 hardcode_direct_absolute=yes
13511 export_dynamic_flag_spec='$wl-E'
13512 # hardcode_minus_L: Not really in the search PATH,
13513 # but as the default location of the library.
13514 hardcode_minus_L=yes
13519 if test yes,no = "$GCC,$with_gnu_ld"; then
13522 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13528 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13534 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13541 # Older versions of the 11.00 compiler do not understand -b yet
13542 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13544 $as_echo_n "checking if $CC understands -b... " >&6; }
13545 if ${lt_cv_prog_compiler__b+:} false; then :
13546 $as_echo_n "(cached) " >&6
13548 lt_cv_prog_compiler__b=no
13549 save_LDFLAGS=$LDFLAGS
13550 LDFLAGS="$LDFLAGS -b"
13551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13553 # The linker can only warn and ignore the option if not recognized
13554 # So say no if there are warnings
13555 if test -s conftest.err; then
13556 # Append any errors to the config.log.
13557 cat conftest.err 1>&5
13558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13560 if diff conftest.exp conftest.er2 >/dev/null; then
13561 lt_cv_prog_compiler__b=yes
13564 lt_cv_prog_compiler__b=yes
13568 LDFLAGS=$save_LDFLAGS
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13572 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13574 if test yes = "$lt_cv_prog_compiler__b"; then
13575 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13583 if test no = "$with_gnu_ld"; then
13584 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13585 hardcode_libdir_separator=:
13590 hardcode_shlibpath_var=no
13593 hardcode_direct=yes
13594 hardcode_direct_absolute=yes
13595 export_dynamic_flag_spec='$wl-E'
13597 # hardcode_minus_L: Not really in the search PATH,
13598 # but as the default location of the library.
13599 hardcode_minus_L=yes
13605 irix5* | irix6* | nonstopux*)
13606 if test yes = "$GCC"; then
13607 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'
13608 # Try to use the -exported_symbol ld option, if it does not
13609 # work, assume that -exports_file does not work either and
13610 # implicitly export all symbols.
13611 # This should be the same for all languages, so no per-tag cache variable.
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13613 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13614 if ${lt_cv_irix_exported_symbol+:} false; then :
13615 $as_echo_n "(cached) " >&6
13617 save_LDFLAGS=$LDFLAGS
13618 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 int foo (void) { return 0; }
13623 if ac_fn_c_try_link "$LINENO"; then :
13624 lt_cv_irix_exported_symbol=yes
13626 lt_cv_irix_exported_symbol=no
13628 rm -f core conftest.err conftest.$ac_objext \
13629 conftest$ac_exeext conftest.$ac_ext
13630 LDFLAGS=$save_LDFLAGS
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13633 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13634 if test yes = "$lt_cv_irix_exported_symbol"; then
13635 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'
13637 link_all_deplibs=no
13639 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'
13640 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'
13642 archive_cmds_need_lc='no'
13643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13644 hardcode_libdir_separator=:
13646 link_all_deplibs=yes
13650 case $cc_basename in
13652 # Fabrice Bellard et al's Tiny C Compiler
13654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13659 netbsd* | netbsdelf*-gnu)
13660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13663 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13665 hardcode_libdir_flag_spec='-R$libdir'
13666 hardcode_direct=yes
13667 hardcode_shlibpath_var=no
13671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13672 hardcode_direct=yes
13673 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13674 hardcode_libdir_separator=:
13675 hardcode_shlibpath_var=no
13681 openbsd* | bitrig*)
13682 if test -f /usr/libexec/ld.so; then
13683 hardcode_direct=yes
13684 hardcode_shlibpath_var=no
13685 hardcode_direct_absolute=yes
13686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13688 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13689 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13690 export_dynamic_flag_spec='$wl-E'
13692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13693 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13701 hardcode_libdir_flag_spec='-L$libdir'
13702 hardcode_minus_L=yes
13703 allow_undefined_flag=unsupported
13705 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13706 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13707 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13708 $ECHO EXPORTS >> $output_objdir/$libname.def~
13709 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13710 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13711 emximp -o $lib $output_objdir/$libname.def'
13712 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13713 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13714 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13715 $ECHO EXPORTS >> $output_objdir/$libname.def~
13716 prefix_cmds="$SED"~
13717 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13718 prefix_cmds="$prefix_cmds -e 1d";
13720 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13721 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13722 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13723 emximp -o $lib $output_objdir/$libname.def'
13724 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13725 enable_shared_with_static_runtimes=yes
13729 if test yes = "$GCC"; then
13730 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13731 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'
13733 allow_undefined_flag=' -expect_unresolved \*'
13734 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'
13736 archive_cmds_need_lc='no'
13737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13738 hardcode_libdir_separator=:
13741 osf4* | osf5*) # as osf3* with the addition of -msym flag
13742 if test yes = "$GCC"; then
13743 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13744 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'
13745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13747 allow_undefined_flag=' -expect_unresolved \*'
13748 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'
13749 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~
13750 $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'
13752 # Both c and cxx compiler support -rpath directly
13753 hardcode_libdir_flag_spec='-rpath $libdir'
13755 archive_cmds_need_lc='no'
13756 hardcode_libdir_separator=:
13760 no_undefined_flag=' -z defs'
13761 if test yes = "$GCC"; then
13763 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13765 $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'
13767 case `$CC -V 2>&1` in
13770 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13772 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13776 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13778 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13782 hardcode_libdir_flag_spec='-R$libdir'
13783 hardcode_shlibpath_var=no
13785 solaris2.[0-5] | solaris2.[0-5].*) ;;
13787 # The compiler driver will combine and reorder linker options,
13788 # but understands '-z linker_flag'. GCC discards it without '$wl',
13789 # but is careful enough not to reorder.
13790 # Supported since Solaris 2.6 (maybe 2.5.1?)
13791 if test yes = "$GCC"; then
13792 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13794 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13798 link_all_deplibs=yes
13802 if test sequent = "$host_vendor"; then
13803 # Use $CC to link under sequent, because it throws in some extra .o
13804 # files that make .init and .fini sections work.
13805 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13807 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13809 hardcode_libdir_flag_spec='-L$libdir'
13810 hardcode_direct=yes
13811 hardcode_minus_L=yes
13812 hardcode_shlibpath_var=no
13816 case $host_vendor in
13818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_direct=yes # is this really true???
13822 ## LD is ld it makes a PLAMLIB
13823 ## CC just makes a GrossModule.
13824 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13825 reload_cmds='$CC -r -o $output$reload_objs'
13829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13833 runpath_var='LD_RUN_PATH'
13834 hardcode_shlibpath_var=no
13838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839 hardcode_shlibpath_var=no
13840 export_dynamic_flag_spec='-Bexport'
13844 if test -d /usr/nec; then
13845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_shlibpath_var=no
13847 runpath_var=LD_RUN_PATH
13848 hardcode_runpath_var=yes
13853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13854 no_undefined_flag='$wl-z,text'
13855 archive_cmds_need_lc=no
13856 hardcode_shlibpath_var=no
13857 runpath_var='LD_RUN_PATH'
13859 if test yes = "$GCC"; then
13860 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13864 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 sysv5* | sco3.2v5* | sco5v6*)
13869 # Note: We CANNOT use -z defs as we might desire, because we do not
13870 # link with -lc, and that would cause any symbols used from libc to
13871 # always be unresolved, which means just about no library would
13872 # ever link correctly. If we're not using GNU ld we use -z text
13873 # though, which does catch some bad symbols but isn't as heavy-handed
13875 no_undefined_flag='$wl-z,text'
13876 allow_undefined_flag='$wl-z,nodefs'
13877 archive_cmds_need_lc=no
13878 hardcode_shlibpath_var=no
13879 hardcode_libdir_flag_spec='$wl-R,$libdir'
13880 hardcode_libdir_separator=':'
13881 link_all_deplibs=yes
13882 export_dynamic_flag_spec='$wl-Bexport'
13883 runpath_var='LD_RUN_PATH'
13885 if test yes = "$GCC"; then
13886 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13887 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13889 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13890 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13896 hardcode_libdir_flag_spec='-L$libdir'
13897 hardcode_shlibpath_var=no
13905 if test sni = "$host_vendor"; then
13907 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13908 export_dynamic_flag_spec='$wl-Blargedynsym'
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13915 $as_echo "$ld_shlibs" >&6; }
13916 test no = "$ld_shlibs" && can_build_shared=no
13918 with_gnu_ld=$with_gnu_ld
13935 # Do we need to explicitly link libc?
13937 case "x$archive_cmds_need_lc" in
13939 # Assume -lc should be added
13940 archive_cmds_need_lc=yes
13942 if test yes,yes = "$GCC,$enable_shared"; then
13943 case $archive_cmds in
13945 # FIXME: we may have to deal with multi-command sequences.
13948 # Test whether the compiler implicitly links with -lc since on some
13949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13950 # to ld, don't add -lc before -lgcc.
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13952 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13953 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13954 $as_echo_n "(cached) " >&6
13957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13960 (eval $ac_compile) 2>&5
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; } 2>conftest.err; then
13966 libobjs=conftest.$ac_objext
13968 wl=$lt_prog_compiler_wl
13969 pic_flag=$lt_prog_compiler_pic
13975 lt_save_allow_undefined_flag=$allow_undefined_flag
13976 allow_undefined_flag=
13977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13978 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981 test $ac_status = 0; }
13983 lt_cv_archive_cmds_need_lc=no
13985 lt_cv_archive_cmds_need_lc=yes
13987 allow_undefined_flag=$lt_save_allow_undefined_flag
13989 cat conftest.err 1>&5
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13995 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13996 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14155 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14157 if test yes = "$GCC"; then
14159 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14160 *) lt_awk_arg='/^libraries:/' ;;
14163 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14164 *) lt_sed_strip_eq='s|=/|/|g' ;;
14166 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14167 case $lt_search_path_spec in
14169 # if the path contains ";" then we assume it to be the separator
14170 # otherwise default to the standard path separator (i.e. ":") - it is
14171 # assumed that no part of a normal pathname contains ";" but that should
14172 # okay in the real world where ";" in dirpaths is itself problematic.
14173 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14179 # Ok, now we have the path, separated by spaces, we can step through it
14180 # and add multilib dir if necessary...
14181 lt_tmp_lt_search_path_spec=
14182 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14183 # ...but if some path component already ends with the multilib dir we assume
14184 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14185 case "$lt_multi_os_dir; $lt_search_path_spec " in
14186 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14190 for lt_sys_path in $lt_search_path_spec; do
14191 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14192 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14193 elif test -n "$lt_multi_os_dir"; then
14194 test -d "$lt_sys_path" && \
14195 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14198 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14199 BEGIN {RS = " "; FS = "/|\n";} {
14202 for (lt_i = NF; lt_i > 0; lt_i--) {
14203 if ($lt_i != "" && $lt_i != ".") {
14204 if ($lt_i == "..") {
14207 if (lt_count == 0) {
14208 lt_foo = "/" $lt_i lt_foo;
14215 if (lt_foo != "") { lt_freq[lt_foo]++; }
14216 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14218 # AWK program above erroneously prepends '/' to C:/dos/paths
14221 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14222 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14224 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14228 library_names_spec=
14229 libname_spec='lib$name'
14233 postuninstall_cmds=
14237 shlibpath_overrides_runpath=unknown
14239 dynamic_linker="$host_os ld.so"
14240 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14241 need_lib_prefix=unknown
14242 hardcode_into_libs=no
14244 # when you set need_version to no, make sure it does not cause -set_version
14245 # flags to be left without arguments
14246 need_version=unknown
14252 version_type=linux # correct to gnu/linux during the next big refactor
14253 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14254 shlibpath_var=LIBPATH
14256 # AIX 3 has no versioning support, so we append a major version to the name.
14257 soname_spec='$libname$release$shared_ext$major'
14261 version_type=linux # correct to gnu/linux during the next big refactor
14264 hardcode_into_libs=yes
14265 if test ia64 = "$host_cpu"; then
14266 # AIX 5 supports IA64
14267 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14268 shlibpath_var=LD_LIBRARY_PATH
14270 # With GCC up to 2.95.x, collect2 would create an import file
14271 # for dependence libraries. The import file would start with
14272 # the line '#! .'. This would cause the generated library to
14273 # depend on '.', always an invalid library. This was fixed in
14274 # development snapshots of GCC prior to 3.0.
14276 aix4 | aix4.[01] | aix4.[01].*)
14277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14279 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14282 can_build_shared=no
14286 # Using Import Files as archive members, it is possible to support
14287 # filename-based versioning of shared library archives on AIX. While
14288 # this would work for both with and without runtime linking, it will
14289 # prevent static linking of such archives. So we do filename-based
14290 # shared library versioning with .so extension only, which is used
14291 # when both runtime linking and shared linking is enabled.
14292 # Unfortunately, runtime linking may impact performance, so we do
14293 # not want this to be the default eventually. Also, we use the
14294 # versioned .so libs for executables only if there is the -brtl
14295 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14296 # To allow for filename-based versioning support, we need to create
14297 # libNAME.so.V as an archive file, containing:
14298 # *) an Import File, referring to the versioned filename of the
14299 # archive as well as the shared archive member, telling the
14300 # bitwidth (32 or 64) of that shared object, and providing the
14301 # list of exported symbols of that shared object, eventually
14302 # decorated with the 'weak' keyword
14303 # *) the shared object with the F_LOADONLY flag set, to really avoid
14304 # it being seen by the linker.
14305 # At run time we better use the real file rather than another symlink,
14306 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14308 case $with_aix_soname,$aix_use_runtimelinking in
14309 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14310 # soname into executable. Probably we can add versioning support to
14311 # collect2, so additional links can be useful in future.
14312 aix,yes) # traditional libtool
14313 dynamic_linker='AIX unversionable lib.so'
14314 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14315 # instead of lib<name>.a to let people know that these are not
14316 # typical AIX shared libraries.
14317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14319 aix,no) # traditional AIX only
14320 dynamic_linker='AIX lib.a(lib.so.V)'
14321 # We preserve .a as extension for shared libraries through AIX4.2
14322 # and later when we are not doing run time linking.
14323 library_names_spec='$libname$release.a $libname.a'
14324 soname_spec='$libname$release$shared_ext$major'
14326 svr4,*) # full svr4 only
14327 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14328 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14329 # We do not specify a path in Import Files, so LIBPATH fires.
14330 shlibpath_overrides_runpath=yes
14332 *,yes) # both, prefer svr4
14333 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14334 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14335 # unpreferred sharedlib libNAME.a needs extra handling
14336 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"'
14337 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"'
14338 # We do not specify a path in Import Files, so LIBPATH fires.
14339 shlibpath_overrides_runpath=yes
14341 *,no) # both, prefer aix
14342 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14343 library_names_spec='$libname$release.a $libname.a'
14344 soname_spec='$libname$release$shared_ext$major'
14345 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14346 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)'
14347 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"'
14350 shlibpath_var=LIBPATH
14357 # Since July 2007 AmigaOS4 officially supports .so libraries.
14358 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14362 library_names_spec='$libname.ixlibrary $libname.a'
14363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14364 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'
14370 library_names_spec='$libname$shared_ext'
14371 dynamic_linker="$host_os ld.so"
14372 shlibpath_var=LIBRARY_PATH
14376 version_type=linux # correct to gnu/linux during the next big refactor
14378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14379 soname_spec='$libname$release$shared_ext$major'
14380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14384 # the default ld.so.conf also contains /usr/contrib/lib and
14385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14386 # libtool to hard-code these into programs
14389 cygwin* | mingw* | pw32* | cegcc*)
14390 version_type=windows
14395 case $GCC,$cc_basename in
14398 library_names_spec='$libname.dll.a'
14399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14400 postinstall_cmds='base_file=`basename \$file`~
14401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14402 dldir=$destdir/`dirname \$dlpath`~
14403 test -d \$dldir || mkdir -p \$dldir~
14404 $install_prog $dir/$dlname \$dldir/$dlname~
14405 chmod a+x \$dldir/$dlname~
14406 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14407 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14410 dlpath=$dir/\$dldll~
14412 shlibpath_overrides_runpath=yes
14416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14417 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14419 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14422 # MinGW DLLs use traditional 'lib' prefix
14423 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14426 # pw32 DLLs use 'pw' prefix rather than 'lib'
14427 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14430 dynamic_linker='Win32 ld.exe'
14435 libname_spec='$name'
14436 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14437 library_names_spec='$libname.dll.lib'
14441 sys_lib_search_path_spec=
14444 for lt_path in $LIB
14447 # Let DOS variable expansion print the short 8.3 style file name.
14448 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14449 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14452 # Convert to MSYS style.
14453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14456 # Convert to unix form, then to dos form, then back to unix form
14457 # but this time dos style (no spaces!) so that the unix form looks
14458 # like /cygdrive/c/PROGRA~1:/cygdr...
14459 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14460 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14461 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14464 sys_lib_search_path_spec=$LIB
14465 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14466 # It is most probably a Windows format PATH.
14467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14471 # FIXME: find the short name or the path components, as spaces are
14472 # common. (e.g. "Program Files" -> "PROGRA~1")
14476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14477 postinstall_cmds='base_file=`basename \$file`~
14478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14479 dldir=$destdir/`dirname \$dlpath`~
14480 test -d \$dldir || mkdir -p \$dldir~
14481 $install_prog $dir/$dlname \$dldir/$dlname'
14482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14483 dlpath=$dir/\$dldll~
14485 shlibpath_overrides_runpath=yes
14486 dynamic_linker='Win32 link.exe'
14490 # Assume MSVC wrapper
14491 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14492 dynamic_linker='Win32 ld.exe'
14495 # FIXME: first we should search . and the directory the executable is in
14499 darwin* | rhapsody*)
14500 dynamic_linker="$host_os dyld"
14501 version_type=darwin
14504 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14505 soname_spec='$libname$release$major$shared_ext'
14506 shlibpath_overrides_runpath=yes
14507 shlibpath_var=DYLD_LIBRARY_PATH
14508 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14510 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14511 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14515 version_type=linux # correct to gnu/linux during the next big refactor
14518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14519 soname_spec='$libname$release$shared_ext$major'
14520 shlibpath_var=LD_LIBRARY_PATH
14523 freebsd* | dragonfly*)
14524 # DragonFly does not have aout. When/if they implement a new
14525 # versioning mechanism, adjust this.
14526 if test -x /usr/bin/objformat; then
14527 objformat=`/usr/bin/objformat`
14530 freebsd[23].*) objformat=aout ;;
14531 *) objformat=elf ;;
14534 version_type=freebsd-$objformat
14535 case $version_type in
14537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14538 soname_spec='$libname$release$shared_ext$major'
14543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14547 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14552 freebsd3.[01]* | freebsdelf3.[01]*)
14553 shlibpath_overrides_runpath=yes
14554 hardcode_into_libs=yes
14556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14561 *) # from 4.6 on, and DragonFly
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14569 version_type=linux # correct to gnu/linux during the next big refactor
14572 dynamic_linker="$host_os runtime_loader"
14573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14574 soname_spec='$libname$release$shared_ext$major'
14575 shlibpath_var=LIBRARY_PATH
14576 shlibpath_overrides_runpath=no
14577 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14578 hardcode_into_libs=yes
14581 hpux9* | hpux10* | hpux11*)
14582 # Give a soname corresponding to the major version so that dld.sl refuses to
14583 # link against other versions.
14590 hardcode_into_libs=yes
14591 dynamic_linker="$host_os dld.so"
14592 shlibpath_var=LD_LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14595 soname_spec='$libname$release$shared_ext$major'
14596 if test 32 = "$HPUX_IA64_MODE"; then
14597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14598 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14600 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14601 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14606 hardcode_into_libs=yes
14607 dynamic_linker="$host_os dld.sl"
14608 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14611 soname_spec='$libname$release$shared_ext$major'
14612 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14617 dynamic_linker="$host_os dld.sl"
14618 shlibpath_var=SHLIB_PATH
14619 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14621 soname_spec='$libname$release$shared_ext$major'
14624 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14625 postinstall_cmds='chmod 555 $lib'
14626 # or fails outright, so override atomically:
14627 install_override_mode=555
14631 version_type=linux # correct to gnu/linux during the next big refactor
14634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14635 soname_spec='$libname$release$shared_ext$major'
14636 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=no
14639 hardcode_into_libs=yes
14642 irix5* | irix6* | nonstopux*)
14644 nonstopux*) version_type=nonstopux ;;
14646 if test yes = "$lt_cv_prog_gnu_ld"; then
14647 version_type=linux # correct to gnu/linux during the next big refactor
14654 soname_spec='$libname$release$shared_ext$major'
14655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14657 irix5* | nonstopux*)
14658 libsuff= shlibsuff=
14661 case $LD in # libtool.m4 will add one of these switches to LD
14662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14663 libsuff= shlibsuff= libmagic=32-bit;;
14664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14665 libsuff=32 shlibsuff=N32 libmagic=N32;;
14666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14668 *) libsuff= shlibsuff= libmagic=never-match;;
14672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14673 shlibpath_overrides_runpath=no
14674 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14675 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14676 hardcode_into_libs=yes
14679 # No shared lib support for Linux oldld, aout, or coff.
14680 linux*oldld* | linux*aout* | linux*coff*)
14685 version_type=none # Android doesn't support versioned libraries.
14688 library_names_spec='$libname$release$shared_ext'
14689 soname_spec='$libname$release$shared_ext'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=yes
14694 # This implies no fast_install, which is unacceptable.
14695 # Some rework will be needed to allow for fast_install
14696 # before this can be enabled.
14697 hardcode_into_libs=yes
14699 dynamic_linker='Android linker'
14700 # Don't embed -rpath directories since the linker doesn't support them.
14701 hardcode_libdir_flag_spec='-L$libdir'
14704 # This must be glibc/ELF.
14705 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14706 version_type=linux # correct to gnu/linux during the next big refactor
14709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14710 soname_spec='$libname$release$shared_ext$major'
14711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=no
14715 # Some binutils ld are patched to set DT_RUNPATH
14716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14717 $as_echo_n "(cached) " >&6
14719 lt_cv_shlibpath_overrides_runpath=no
14720 save_LDFLAGS=$LDFLAGS
14721 save_libdir=$libdir
14722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14734 if ac_fn_c_try_link "$LINENO"; then :
14735 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14736 lt_cv_shlibpath_overrides_runpath=yes
14739 rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741 LDFLAGS=$save_LDFLAGS
14742 libdir=$save_libdir
14746 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14748 # This implies no fast_install, which is unacceptable.
14749 # Some rework will be needed to allow for fast_install
14750 # before this can be enabled.
14751 hardcode_into_libs=yes
14753 # Ideally, we could use ldconfig to report *all* directores which are
14754 # searched for libraries, however this is still not possible. Aside from not
14755 # being certain /sbin/ldconfig is available, command
14756 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14757 # even though it is searched at run-time. Try to do the best guess by
14758 # appending ld.so.conf contents (and includes) to the search path.
14759 if test -f /etc/ld.so.conf; then
14760 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' ' '`
14761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14764 # We used to test for /lib/ld.so.1 and disable shared libraries on
14765 # powerpc, because MkLinux only supported shared libraries with the
14766 # GNU dynamic linker. Since this was broken with cross compilers,
14767 # most powerpc-linux boxes support dynamic linking these days and
14768 # people can always --disable-shared, the test was removed, and we
14769 # assume the GNU/Linux dynamic linker is in use.
14770 dynamic_linker='GNU/Linux ld.so'
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=no
14781 hardcode_into_libs=yes
14782 dynamic_linker='NetBSD ld.elf_so'
14789 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14790 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14792 dynamic_linker='NetBSD (a.out) ld.so'
14794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14795 soname_spec='$libname$release$shared_ext$major'
14796 dynamic_linker='NetBSD ld.elf_so'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=yes
14800 hardcode_into_libs=yes
14804 version_type=linux # correct to gnu/linux during the next big refactor
14805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 shlibpath_overrides_runpath=yes
14814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14815 soname_spec='$libname$release$shared_ext$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=no
14818 hardcode_into_libs=yes
14819 dynamic_linker='ldqnx.so'
14822 openbsd* | bitrig*)
14824 sys_lib_dlsearch_path_spec=/usr/lib
14826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14831 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 shlibpath_overrides_runpath=yes
14838 libname_spec='$name'
14839 version_type=windows
14843 # OS/2 can only load a DLL with a base name of 8 characters or less.
14844 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14845 v=$($ECHO $release$versuffix | tr -d .-);
14846 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14847 $ECHO $n$v`$shared_ext'
14848 library_names_spec='${libname}_dll.$libext'
14849 dynamic_linker='OS/2 ld.exe'
14850 shlibpath_var=BEGINLIBPATH
14851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14853 postinstall_cmds='base_file=`basename \$file`~
14854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14855 dldir=$destdir/`dirname \$dlpath`~
14856 test -d \$dldir || mkdir -p \$dldir~
14857 $install_prog $dir/$dlname \$dldir/$dlname~
14858 chmod a+x \$dldir/$dlname~
14859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14863 dlpath=$dir/\$dldll~
14867 osf3* | osf4* | osf5*)
14871 soname_spec='$libname$release$shared_ext$major'
14872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14883 version_type=linux # correct to gnu/linux during the next big refactor
14886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14887 soname_spec='$libname$release$shared_ext$major'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=yes
14890 hardcode_into_libs=yes
14891 # ldd complains unless libraries are executable
14892 postinstall_cmds='chmod +x $lib'
14897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=yes
14901 if test yes = "$with_gnu_ld"; then
14908 version_type=linux # correct to gnu/linux during the next big refactor
14909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14910 soname_spec='$libname$release$shared_ext$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 case $host_vendor in
14914 shlibpath_overrides_runpath=no
14916 runpath_var=LD_RUN_PATH
14924 shlibpath_overrides_runpath=no
14925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14931 if test -d /usr/nec; then
14932 version_type=linux # correct to gnu/linux during the next big refactor
14933 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14934 soname_spec='$libname$shared_ext.$major'
14935 shlibpath_var=LD_LIBRARY_PATH
14939 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14944 soname_spec='$libname$release$shared_ext$major'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=yes
14947 hardcode_into_libs=yes
14948 if test yes = "$with_gnu_ld"; then
14949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14958 sys_lib_dlsearch_path_spec='/usr/lib'
14962 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14963 version_type=linux # correct to gnu/linux during the next big refactor
14966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 shlibpath_overrides_runpath=no
14969 hardcode_into_libs=yes
14973 version_type=linux # correct to gnu/linux during the next big refactor
14974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14975 soname_spec='$libname$release$shared_ext$major'
14976 shlibpath_var=LD_LIBRARY_PATH
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14984 $as_echo "$dynamic_linker" >&6; }
14985 test no = "$dynamic_linker" && can_build_shared=no
14987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14988 if test yes = "$GCC"; then
14989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14992 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14993 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14996 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14997 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15000 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15001 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15003 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15004 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15006 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15007 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15106 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15108 if test -n "$hardcode_libdir_flag_spec" ||
15109 test -n "$runpath_var" ||
15110 test yes = "$hardcode_automatic"; then
15112 # We can hardcode non-existent directories.
15113 if test no != "$hardcode_direct" &&
15114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15115 # have to relink, otherwise we might link with an installed library
15116 # when we should be linking with a yet-to-be-installed one
15117 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15118 test no != "$hardcode_minus_L"; then
15119 # Linking always hardcodes the temporary library directory.
15120 hardcode_action=relink
15122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15123 hardcode_action=immediate
15126 # We cannot hardcode anything, or else we can only hardcode existing
15128 hardcode_action=unsupported
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15131 $as_echo "$hardcode_action" >&6; }
15133 if test relink = "$hardcode_action" ||
15134 test yes = "$inherit_rpath"; then
15135 # Fast installation is not supported
15136 enable_fast_install=no
15137 elif test yes = "$shlibpath_overrides_runpath" ||
15138 test no = "$enable_shared"; then
15139 # Fast installation is not necessary
15140 enable_fast_install=needless
15148 if test yes != "$enable_dlopen"; then
15149 enable_dlopen=unknown
15150 enable_dlopen_self=unknown
15151 enable_dlopen_self_static=unknown
15158 lt_cv_dlopen=load_add_on
15160 lt_cv_dlopen_self=yes
15163 mingw* | pw32* | cegcc*)
15164 lt_cv_dlopen=LoadLibrary
15169 lt_cv_dlopen=dlopen
15174 # if libdl is installed we need to link against it
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15176 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15177 if ${ac_cv_lib_dl_dlopen+:} false; then :
15178 $as_echo_n "(cached) " >&6
15180 ac_check_lib_save_LIBS=$LIBS
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15197 if ac_fn_c_try_link "$LINENO"; then :
15198 ac_cv_lib_dl_dlopen=yes
15200 ac_cv_lib_dl_dlopen=no
15202 rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 LIBS=$ac_check_lib_save_LIBS
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15207 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15208 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15209 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15214 lt_cv_dlopen_self=yes
15221 # Don't try to run any link tests for TPF. We know it's impossible
15222 # because TPF is a cross-compiler, and we know how we open DSOs.
15223 lt_cv_dlopen=dlopen
15225 lt_cv_dlopen_self=no
15229 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15230 if test "x$ac_cv_func_shl_load" = xyes; then :
15231 lt_cv_dlopen=shl_load
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15234 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15235 if ${ac_cv_lib_dld_shl_load+:} false; then :
15236 $as_echo_n "(cached) " >&6
15238 ac_check_lib_save_LIBS=$LIBS
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15250 return shl_load ();
15255 if ac_fn_c_try_link "$LINENO"; then :
15256 ac_cv_lib_dld_shl_load=yes
15258 ac_cv_lib_dld_shl_load=no
15260 rm -f core conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$ac_check_lib_save_LIBS
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15266 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15267 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15270 if test "x$ac_cv_func_dlopen" = xyes; then :
15271 lt_cv_dlopen=dlopen
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15275 if ${ac_cv_lib_dl_dlopen+:} false; then :
15276 $as_echo_n "(cached) " >&6
15278 ac_check_lib_save_LIBS=$LIBS
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_dl_dlopen=yes
15298 ac_cv_lib_dl_dlopen=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15306 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15307 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15310 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15311 if ${ac_cv_lib_svld_dlopen+:} false; then :
15312 $as_echo_n "(cached) " >&6
15314 ac_check_lib_save_LIBS=$LIBS
15315 LIBS="-lsvld $LIBS"
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15331 if ac_fn_c_try_link "$LINENO"; then :
15332 ac_cv_lib_svld_dlopen=yes
15334 ac_cv_lib_svld_dlopen=no
15336 rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15338 LIBS=$ac_check_lib_save_LIBS
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15341 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15342 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15343 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15346 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15347 if ${ac_cv_lib_dld_dld_link+:} false; then :
15348 $as_echo_n "(cached) " >&6
15350 ac_check_lib_save_LIBS=$LIBS
15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15353 /* end confdefs.h. */
15362 return dld_link ();
15367 if ac_fn_c_try_link "$LINENO"; then :
15368 ac_cv_lib_dld_dld_link=yes
15370 ac_cv_lib_dld_dld_link=no
15372 rm -f core conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 LIBS=$ac_check_lib_save_LIBS
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15377 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15378 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15379 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15400 if test no = "$lt_cv_dlopen"; then
15406 case $lt_cv_dlopen in
15408 save_CPPFLAGS=$CPPFLAGS
15409 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15411 save_LDFLAGS=$LDFLAGS
15412 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15415 LIBS="$lt_cv_dlopen_libs $LIBS"
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15418 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15419 if ${lt_cv_dlopen_self+:} false; then :
15420 $as_echo_n "(cached) " >&6
15422 if test yes = "$cross_compiling"; then :
15423 lt_cv_dlopen_self=cross
15425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15426 lt_status=$lt_dlunknown
15427 cat > conftest.$ac_ext <<_LT_EOF
15428 #line $LINENO "configure"
15429 #include "confdefs.h"
15438 # define LT_DLGLOBAL RTLD_GLOBAL
15441 # define LT_DLGLOBAL DL_GLOBAL
15443 # define LT_DLGLOBAL 0
15447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15448 find out it does not work in some platform. */
15449 #ifndef LT_DLLAZY_OR_NOW
15451 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15454 # define LT_DLLAZY_OR_NOW DL_LAZY
15457 # define LT_DLLAZY_OR_NOW RTLD_NOW
15460 # define LT_DLLAZY_OR_NOW DL_NOW
15462 # define LT_DLLAZY_OR_NOW 0
15469 /* When -fvisibility=hidden is used, assume the code has been annotated
15470 correspondingly for the symbols needed. */
15471 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15472 int fnord () __attribute__((visibility("default")));
15475 int fnord () { return 42; }
15478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15479 int status = $lt_dlunknown;
15483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15486 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15487 else puts (dlerror ());
15489 /* dlclose (self); */
15497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15498 (eval $ac_link) 2>&5
15500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15501 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15502 (./conftest; exit; ) >&5 2>/dev/null
15504 case x$lt_status in
15505 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15506 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15507 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15510 # compilation failed
15511 lt_cv_dlopen_self=no
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15519 $as_echo "$lt_cv_dlopen_self" >&6; }
15521 if test yes = "$lt_cv_dlopen_self"; then
15522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15524 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15525 if ${lt_cv_dlopen_self_static+:} false; then :
15526 $as_echo_n "(cached) " >&6
15528 if test yes = "$cross_compiling"; then :
15529 lt_cv_dlopen_self_static=cross
15531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15532 lt_status=$lt_dlunknown
15533 cat > conftest.$ac_ext <<_LT_EOF
15534 #line $LINENO "configure"
15535 #include "confdefs.h"
15544 # define LT_DLGLOBAL RTLD_GLOBAL
15547 # define LT_DLGLOBAL DL_GLOBAL
15549 # define LT_DLGLOBAL 0
15553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15554 find out it does not work in some platform. */
15555 #ifndef LT_DLLAZY_OR_NOW
15557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15560 # define LT_DLLAZY_OR_NOW DL_LAZY
15563 # define LT_DLLAZY_OR_NOW RTLD_NOW
15566 # define LT_DLLAZY_OR_NOW DL_NOW
15568 # define LT_DLLAZY_OR_NOW 0
15575 /* When -fvisibility=hidden is used, assume the code has been annotated
15576 correspondingly for the symbols needed. */
15577 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15578 int fnord () __attribute__((visibility("default")));
15581 int fnord () { return 42; }
15584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15585 int status = $lt_dlunknown;
15589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15593 else puts (dlerror ());
15595 /* dlclose (self); */
15603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15604 (eval $ac_link) 2>&5
15606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15608 (./conftest; exit; ) >&5 2>/dev/null
15610 case x$lt_status in
15611 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15612 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15613 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15616 # compilation failed
15617 lt_cv_dlopen_self_static=no
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15625 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15628 CPPFLAGS=$save_CPPFLAGS
15629 LDFLAGS=$save_LDFLAGS
15634 case $lt_cv_dlopen_self in
15635 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15636 *) enable_dlopen_self=unknown ;;
15639 case $lt_cv_dlopen_self_static in
15640 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15641 *) enable_dlopen_self_static=unknown ;;
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15664 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15665 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15666 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15667 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15669 $as_echo "yes" >&6; }
15671 # FIXME - insert some real tests, host_os isn't really good enough
15674 if test -n "$STRIP"; then
15675 striplib="$STRIP -x"
15676 old_striplib="$STRIP -S"
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15678 $as_echo "yes" >&6; }
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15681 $as_echo "no" >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686 $as_echo "no" >&6; }
15702 # Report what library types will actually be built
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15704 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15706 $as_echo "$can_build_shared" >&6; }
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15709 $as_echo_n "checking whether to build shared libraries... " >&6; }
15710 test no = "$can_build_shared" && enable_shared=no
15712 # On AIX, shared libraries and static libraries use the same namespace, and
15713 # are all built from PIC.
15716 test yes = "$enable_shared" && enable_static=no
15717 if test -n "$RANLIB"; then
15718 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15719 postinstall_cmds='$RANLIB $lib'
15724 if test ia64 != "$host_cpu"; then
15725 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15726 yes,aix,yes) ;; # shared object as lib.so file only
15727 yes,svr4,*) ;; # shared object as lib.so archive member only
15728 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15734 $as_echo "$enable_shared" >&6; }
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15737 $as_echo_n "checking whether to build static libraries... " >&6; }
15738 # Make sure either enable_shared or enable_static is yes.
15739 test yes = "$enable_shared" || enable_static=yes
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15741 $as_echo "$enable_static" >&6; }
15748 ac_cpp='$CPP $CPPFLAGS'
15749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15755 if test -n "$CXX" && ( test no != "$CXX" &&
15756 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15757 (test g++ != "$CXX"))); then
15759 ac_cpp='$CXXCPP $CPPFLAGS'
15760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15764 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15765 if test -z "$CXXCPP"; then
15766 if ${ac_cv_prog_CXXCPP+:} false; then :
15767 $as_echo_n "(cached) " >&6
15769 # Double quotes because CXXCPP needs to be expanded
15770 for CXXCPP in "$CXX -E" "/lib/cpp"
15772 ac_preproc_ok=false
15773 for ac_cxx_preproc_warn_flag in '' yes
15775 # Use a header file that comes with gcc, so configuring glibc
15776 # with a fresh cross-compiler works.
15777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15778 # <limits.h> exists even on freestanding compilers.
15779 # On the NeXT, cc -E runs the code through the compiler's parser,
15780 # not just through cpp. "Syntax error" is here to catch this case.
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15784 # include <limits.h>
15786 # include <assert.h>
15790 if ac_fn_cxx_try_cpp "$LINENO"; then :
15793 # Broken: fails on valid input.
15796 rm -f conftest.err conftest.i conftest.$ac_ext
15798 # OK, works on sane cases. Now check whether nonexistent headers
15799 # can be detected and how.
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802 #include <ac_nonexistent.h>
15804 if ac_fn_cxx_try_cpp "$LINENO"; then :
15805 # Broken: success on invalid input.
15808 # Passes both tests.
15812 rm -f conftest.err conftest.i conftest.$ac_ext
15815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15816 rm -f conftest.i conftest.err conftest.$ac_ext
15817 if $ac_preproc_ok; then :
15822 ac_cv_prog_CXXCPP=$CXXCPP
15825 CXXCPP=$ac_cv_prog_CXXCPP
15827 ac_cv_prog_CXXCPP=$CXXCPP
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15830 $as_echo "$CXXCPP" >&6; }
15831 ac_preproc_ok=false
15832 for ac_cxx_preproc_warn_flag in '' yes
15834 # Use a header file that comes with gcc, so configuring glibc
15835 # with a fresh cross-compiler works.
15836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15837 # <limits.h> exists even on freestanding compilers.
15838 # On the NeXT, cc -E runs the code through the compiler's parser,
15839 # not just through cpp. "Syntax error" is here to catch this case.
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15843 # include <limits.h>
15845 # include <assert.h>
15849 if ac_fn_cxx_try_cpp "$LINENO"; then :
15852 # Broken: fails on valid input.
15855 rm -f conftest.err conftest.i conftest.$ac_ext
15857 # OK, works on sane cases. Now check whether nonexistent headers
15858 # can be detected and how.
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 #include <ac_nonexistent.h>
15863 if ac_fn_cxx_try_cpp "$LINENO"; then :
15864 # Broken: success on invalid input.
15867 # Passes both tests.
15871 rm -f conftest.err conftest.i conftest.$ac_ext
15874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15875 rm -f conftest.i conftest.err conftest.$ac_ext
15876 if $ac_preproc_ok; then :
15879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15881 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15882 See \`config.log' for more details" "$LINENO" 5; }
15886 ac_cpp='$CPP $CPPFLAGS'
15887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15892 _lt_caught_CXX_error=yes
15896 ac_cpp='$CXXCPP $CPPFLAGS'
15897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15901 archive_cmds_need_lc_CXX=no
15902 allow_undefined_flag_CXX=
15903 always_export_symbols_CXX=no
15904 archive_expsym_cmds_CXX=
15905 compiler_needs_object_CXX=no
15906 export_dynamic_flag_spec_CXX=
15907 hardcode_direct_CXX=no
15908 hardcode_direct_absolute_CXX=no
15909 hardcode_libdir_flag_spec_CXX=
15910 hardcode_libdir_separator_CXX=
15911 hardcode_minus_L_CXX=no
15912 hardcode_shlibpath_var_CXX=unsupported
15913 hardcode_automatic_CXX=no
15914 inherit_rpath_CXX=no
15916 module_expsym_cmds_CXX=
15917 link_all_deplibs_CXX=unknown
15918 old_archive_cmds_CXX=$old_archive_cmds
15919 reload_flag_CXX=$reload_flag
15920 reload_cmds_CXX=$reload_cmds
15921 no_undefined_flag_CXX=
15922 whole_archive_flag_spec_CXX=
15923 enable_shared_with_static_runtimes_CXX=no
15925 # Source file extension for C++ test sources.
15928 # Object file extension for compiled C++ test sources.
15932 # No sense in running all these tests if we already determined that
15933 # the CXX compiler isn't working. Some variables (like enable_shared)
15934 # are currently assumed to apply to all compilers on this platform,
15935 # and will be corrupted by setting them based on a non-working compiler.
15936 if test yes != "$_lt_caught_CXX_error"; then
15937 # Code to be used in simple compile tests
15938 lt_simple_compile_test_code="int some_variable = 0;"
15940 # Code to be used in simple link tests
15941 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15950 # If no C compiler was specified, use CC.
15953 # If no C compiler flags were specified, use CFLAGS.
15954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15956 # Allow CC to be a program name with arguments.
15960 # save warnings/boilerplate of simple test code
15961 ac_outfile=conftest.$ac_objext
15962 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15964 _lt_compiler_boilerplate=`cat conftest.err`
15967 ac_outfile=conftest.$ac_objext
15968 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15970 _lt_linker_boilerplate=`cat conftest.err`
15974 # Allow CC to be a program name with arguments.
15976 lt_save_CFLAGS=$CFLAGS
15980 lt_save_with_gnu_ld=$with_gnu_ld
15981 lt_save_path_LD=$lt_cv_path_LD
15982 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15983 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15985 $as_unset lt_cv_prog_gnu_ld
15987 if test -n "${lt_cv_path_LDCXX+set}"; then
15988 lt_cv_path_LD=$lt_cv_path_LDCXX
15990 $as_unset lt_cv_path_LD
15992 test -z "${LDCXX+set}" || LD=$LDCXX
15997 func_cc_basename $compiler
15998 cc_basename=$func_cc_basename_result
16001 if test -n "$compiler"; then
16002 # We don't want -fno-exception when compiling C++ code, so set the
16003 # no_builtin_flag separately
16004 if test yes = "$GXX"; then
16005 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16007 lt_prog_compiler_no_builtin_flag_CXX=
16010 if test yes = "$GXX"; then
16011 # Set up default GNU C++ configuration
16015 # Check whether --with-gnu-ld was given.
16016 if test "${with_gnu_ld+set}" = set; then :
16017 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16023 if test yes = "$GCC"; then
16024 # Check if gcc -print-prog-name=ld gives a path.
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16026 $as_echo_n "checking for ld used by $CC... " >&6; }
16029 # gcc leaves a trailing carriage return, which upsets mingw
16030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16035 # Accept absolute paths.
16037 re_direlt='/[^/][^/]*/\.\./'
16038 # Canonicalize the pathname of ld
16039 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16040 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16041 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16043 test -z "$LD" && LD=$ac_prog
16046 # If it fails, then pretend we aren't using GCC.
16050 # If it is relative, then search for the first ld in PATH.
16051 with_gnu_ld=unknown
16054 elif test yes = "$with_gnu_ld"; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16056 $as_echo_n "checking for GNU ld... " >&6; }
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16059 $as_echo_n "checking for non-GNU ld... " >&6; }
16061 if ${lt_cv_path_LD+:} false; then :
16062 $as_echo_n "(cached) " >&6
16064 if test -z "$LD"; then
16065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16066 for ac_dir in $PATH; do
16068 test -z "$ac_dir" && ac_dir=.
16069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16070 lt_cv_path_LD=$ac_dir/$ac_prog
16071 # Check to see if the program is GNU ld. I'd rather use --version,
16072 # but apparently some variants of GNU ld only accept -v.
16073 # Break only if it was the GNU/non-GNU ld that we prefer.
16074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16075 *GNU* | *'with BFD'*)
16076 test no != "$with_gnu_ld" && break
16079 test yes != "$with_gnu_ld" && break
16086 lt_cv_path_LD=$LD # Let the user override the test with a path.
16091 if test -n "$LD"; then
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16093 $as_echo "$LD" >&6; }
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16096 $as_echo "no" >&6; }
16098 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16100 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16101 if ${lt_cv_prog_gnu_ld+:} false; then :
16102 $as_echo_n "(cached) " >&6
16104 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16105 case `$LD -v 2>&1 </dev/null` in
16106 *GNU* | *'with BFD'*)
16107 lt_cv_prog_gnu_ld=yes
16110 lt_cv_prog_gnu_ld=no
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16115 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16116 with_gnu_ld=$lt_cv_prog_gnu_ld
16124 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16125 # archiving commands below assume that GNU ld is being used.
16126 if test yes = "$with_gnu_ld"; then
16127 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16128 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16130 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16131 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16133 # If archive_cmds runs LD, not CC, wlarc should be empty
16134 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16135 # investigate it a little bit more. (MM)
16138 # ancient GNU ld didn't support --whole-archive et. al.
16139 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16140 $GREP 'no-whole-archive' > /dev/null; then
16141 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16143 whole_archive_flag_spec_CXX=
16149 # A generic and very simple default shared library creation
16150 # command for GNU C++ for the case where it uses the native
16151 # linker, instead of GNU ld. If possible, this setting should
16152 # overridden to take advantage of the native linker features on
16153 # the platform it is being used on.
16154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16157 # Commands to make compiler produce verbose output that lists
16158 # what "hidden" libraries, object files and flags are used when
16159 # linking a shared library.
16160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16168 # PORTME: fill in a description of your system's C++ link characteristics
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16170 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16174 # FIXME: insert proper C++ library support
16178 if test ia64 = "$host_cpu"; then
16179 # On IA64, the linker does run time linking by default, so we don't
16180 # have to do anything special.
16181 aix_use_runtimelinking=no
16182 exp_sym_flag='-Bexport'
16185 aix_use_runtimelinking=no
16187 # Test if we are trying to use run time linking or normal
16188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16189 # have runtime linking enabled, and use it for executables.
16190 # For shared libraries, we enable/disable runtime linking
16191 # depending on the kind of the shared library created -
16192 # when "with_aix_soname,aix_use_runtimelinking" is:
16193 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16194 # "aix,yes" lib.so shared, rtl:yes, for executables
16195 # lib.a static archive
16196 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16197 # lib.a(lib.so.V) shared, rtl:no, for executables
16198 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16199 # lib.a(lib.so.V) shared, rtl:no
16200 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16201 # lib.a static archive
16202 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16203 for ld_flag in $LDFLAGS; do
16206 aix_use_runtimelinking=yes
16211 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16212 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16213 # so we don't have lib.a shared libs to link our executables.
16214 # We have to force runtime linking in this case.
16215 aix_use_runtimelinking=yes
16216 LDFLAGS="$LDFLAGS -Wl,-brtl"
16221 exp_sym_flag='-bexport'
16222 no_entry_flag='-bnoentry'
16225 # When large executables or shared objects are built, AIX ld can
16226 # have problems creating the table of contents. If linking a library
16227 # or program results in "error TOC overflow" add -mminimal-toc to
16228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16231 archive_cmds_CXX=''
16232 hardcode_direct_CXX=yes
16233 hardcode_direct_absolute_CXX=yes
16234 hardcode_libdir_separator_CXX=':'
16235 link_all_deplibs_CXX=yes
16236 file_list_spec_CXX='$wl-f,'
16237 case $with_aix_soname,$aix_use_runtimelinking in
16238 aix,*) ;; # no import file
16239 svr4,* | *,yes) # use import file
16240 # The Import File defines what to hardcode.
16241 hardcode_direct_CXX=no
16242 hardcode_direct_absolute_CXX=no
16246 if test yes = "$GXX"; then
16247 case $host_os in aix4.[012]|aix4.[012].*)
16248 # We only want to do this on AIX 4.2 and lower, the check
16249 # below for broken collect2 doesn't work under 4.3+
16250 collect2name=`$CC -print-prog-name=collect2`
16251 if test -f "$collect2name" &&
16252 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16254 # We have reworked collect2
16257 # We have old collect2
16258 hardcode_direct_CXX=unsupported
16259 # It fails to find uninstalled libraries when the uninstalled
16260 # path is not listed in the libpath. Setting hardcode_minus_L
16261 # to unsupported forces relinking
16262 hardcode_minus_L_CXX=yes
16263 hardcode_libdir_flag_spec_CXX='-L$libdir'
16264 hardcode_libdir_separator_CXX=
16267 shared_flag='-shared'
16268 if test yes = "$aix_use_runtimelinking"; then
16269 shared_flag=$shared_flag' $wl-G'
16271 # Need to ensure runtime linking is disabled for the traditional
16272 # shared library, or the linker may eventually find shared libraries
16273 # /with/ Import File - we do not want to mix them.
16274 shared_flag_aix='-shared'
16275 shared_flag_svr4='-shared $wl-G'
16278 if test ia64 = "$host_cpu"; then
16279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16280 # chokes on -Wl,-G. The following line is correct:
16283 if test yes = "$aix_use_runtimelinking"; then
16284 shared_flag='$wl-G'
16286 shared_flag='$wl-bM:SRE'
16288 shared_flag_aix='$wl-bM:SRE'
16289 shared_flag_svr4='$wl-G'
16293 export_dynamic_flag_spec_CXX='$wl-bexpall'
16294 # It seems that -bexpall does not export symbols beginning with
16295 # underscore (_), so it is better to generate a list of symbols to
16297 always_export_symbols_CXX=yes
16298 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16299 # Warning - without using the other runtime loading flags (-brtl),
16300 # -berok will link without error, but may produce a broken library.
16301 # The "-G" linker flag allows undefined symbols.
16302 no_undefined_flag_CXX='-bernotok'
16303 # Determine the default libpath from the value encoded in an empty
16305 if test set = "${lt_cv_aix_libpath+set}"; then
16306 aix_libpath=$lt_cv_aix_libpath
16308 if ${lt_cv_aix_libpath__CXX+:} false; then :
16309 $as_echo_n "(cached) " >&6
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16322 if ac_fn_cxx_try_link "$LINENO"; then :
16324 lt_aix_libpath_sed='
16325 /Import File Strings/,/^$/ {
16327 s/^0 *\([^ ]*\) *$/\1/
16331 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16332 # Check for a 64-bit object if we didn't find anything.
16333 if test -z "$lt_cv_aix_libpath__CXX"; then
16334 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16337 rm -f core conftest.err conftest.$ac_objext \
16338 conftest$ac_exeext conftest.$ac_ext
16339 if test -z "$lt_cv_aix_libpath__CXX"; then
16340 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16345 aix_libpath=$lt_cv_aix_libpath__CXX
16348 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16350 archive_expsym_cmds_CXX='$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
16352 if test ia64 = "$host_cpu"; then
16353 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16354 allow_undefined_flag_CXX="-z nodefs"
16355 archive_expsym_cmds_CXX="\$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"
16357 # Determine the default libpath from the value encoded in an
16358 # empty executable.
16359 if test set = "${lt_cv_aix_libpath+set}"; then
16360 aix_libpath=$lt_cv_aix_libpath
16362 if ${lt_cv_aix_libpath__CXX+:} false; then :
16363 $as_echo_n "(cached) " >&6
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16376 if ac_fn_cxx_try_link "$LINENO"; then :
16378 lt_aix_libpath_sed='
16379 /Import File Strings/,/^$/ {
16381 s/^0 *\([^ ]*\) *$/\1/
16385 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16386 # Check for a 64-bit object if we didn't find anything.
16387 if test -z "$lt_cv_aix_libpath__CXX"; then
16388 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16391 rm -f core conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16393 if test -z "$lt_cv_aix_libpath__CXX"; then
16394 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16399 aix_libpath=$lt_cv_aix_libpath__CXX
16402 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16403 # Warning - without using the other run time loading flags,
16404 # -berok will link without error, but may produce a broken library.
16405 no_undefined_flag_CXX=' $wl-bernotok'
16406 allow_undefined_flag_CXX=' $wl-berok'
16407 if test yes = "$with_gnu_ld"; then
16408 # We only use this code for GNU lds that support --whole-archive.
16409 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16411 # Exported symbols can be pulled into shared objects from archives
16412 whole_archive_flag_spec_CXX='$convenience'
16414 archive_cmds_need_lc_CXX=yes
16415 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16416 # -brtl affects multiple linker settings, -berok does not and is overridden later
16417 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16418 if test svr4 != "$with_aix_soname"; then
16419 # This is similar to how AIX traditionally builds its shared
16420 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16421 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16423 if test aix != "$with_aix_soname"; then
16424 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16426 # used by -dlpreopen to get the symbols
16427 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16429 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16436 allow_undefined_flag_CXX=unsupported
16437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16438 # support --undefined. This deserves some investigation. FIXME
16439 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16446 case $cc_basename in
16448 # FIXME: insert proper C++ library support
16454 cygwin* | mingw* | pw32* | cegcc*)
16455 case $GXX,$cc_basename in
16458 # hardcode_libdir_flag_spec is actually meaningless, as there is
16459 # no search path for DLLs.
16460 hardcode_libdir_flag_spec_CXX=' '
16461 allow_undefined_flag_CXX=unsupported
16462 always_export_symbols_CXX=yes
16463 file_list_spec_CXX='@'
16464 # Tell ltmain to make .lib files, not .a files.
16466 # Tell ltmain to make .dll files, not .so files.
16468 # FIXME: Setting linknames here is a bad hack.
16469 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16470 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16471 cp "$export_symbols" "$output_objdir/$soname.def";
16472 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16474 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16476 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16478 # The linker will not automatically build a static lib if we build a DLL.
16479 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16480 enable_shared_with_static_runtimes_CXX=yes
16482 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16483 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16484 lt_tool_outputfile="@TOOL_OUTPUT@"~
16485 case $lt_outputfile in
16488 lt_outputfile=$lt_outputfile.exe
16489 lt_tool_outputfile=$lt_tool_outputfile.exe
16492 func_to_tool_file "$lt_outputfile"~
16493 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16494 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16495 $RM "$lt_outputfile.manifest";
16500 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16501 # as there is no search path for DLLs.
16502 hardcode_libdir_flag_spec_CXX='-L$libdir'
16503 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16504 allow_undefined_flag_CXX=unsupported
16505 always_export_symbols_CXX=no
16506 enable_shared_with_static_runtimes_CXX=yes
16508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16509 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16510 # If the export-symbols file already is a .def file, use it as
16511 # is; otherwise, prepend EXPORTS...
16512 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16513 cp $export_symbols $output_objdir/$soname.def;
16515 echo EXPORTS > $output_objdir/$soname.def;
16516 cat $export_symbols >> $output_objdir/$soname.def;
16518 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16525 darwin* | rhapsody*)
16528 archive_cmds_need_lc_CXX=no
16529 hardcode_direct_CXX=no
16530 hardcode_automatic_CXX=yes
16531 hardcode_shlibpath_var_CXX=unsupported
16532 if test yes = "$lt_cv_ld_force_load"; then
16533 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16536 whole_archive_flag_spec_CXX=''
16538 link_all_deplibs_CXX=yes
16539 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16540 case $cc_basename in
16541 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16542 *) _lt_dar_can_shared=$GCC ;;
16544 if test yes = "$_lt_dar_can_shared"; then
16545 output_verbose_link_cmd=func_echo_all
16546 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16547 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16548 archive_expsym_cmds_CXX="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"
16549 module_expsym_cmds_CXX="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"
16550 if test yes != "$lt_cv_apple_cc_single_mod"; then
16551 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16552 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16562 hardcode_libdir_flag_spec_CXX='-L$libdir'
16563 hardcode_minus_L_CXX=yes
16564 allow_undefined_flag_CXX=unsupported
16566 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16567 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16568 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16569 $ECHO EXPORTS >> $output_objdir/$libname.def~
16570 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16571 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16572 emximp -o $lib $output_objdir/$libname.def'
16573 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16576 $ECHO EXPORTS >> $output_objdir/$libname.def~
16577 prefix_cmds="$SED"~
16578 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16579 prefix_cmds="$prefix_cmds -e 1d";
16581 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16582 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16583 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16584 emximp -o $lib $output_objdir/$libname.def'
16585 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16586 enable_shared_with_static_runtimes_CXX=yes
16590 case $cc_basename in
16592 # FIXME: insert proper C++ library support
16596 # Green Hills C++ Compiler
16597 # FIXME: insert proper C++ library support
16601 # FIXME: insert proper C++ library support
16608 # C++ shared libraries reported to be fairly broken before
16614 archive_cmds_need_lc_CXX=no
16617 freebsd* | dragonfly*)
16618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16624 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16625 link_all_deplibs_CXX=yes
16629 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16630 hardcode_libdir_separator_CXX=:
16631 export_dynamic_flag_spec_CXX='$wl-E'
16632 hardcode_direct_CXX=yes
16633 hardcode_minus_L_CXX=yes # Not in the search PATH,
16634 # but as the default
16635 # location of the library.
16637 case $cc_basename in
16639 # FIXME: insert proper C++ library support
16643 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
16644 # Commands to make compiler produce verbose output that lists
16645 # what "hidden" libraries, object files and flags are used when
16646 # linking a shared library.
16648 # There doesn't appear to be a way to prevent this compiler from
16649 # explicitly linking system object files so we need to strip them
16650 # from the output so that they don't get included in the library
16652 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16655 if test yes = "$GXX"; then
16656 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
16658 # FIXME: insert proper C++ library support
16666 if test no = "$with_gnu_ld"; then
16667 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16668 hardcode_libdir_separator_CXX=:
16674 export_dynamic_flag_spec_CXX='$wl-E'
16680 hardcode_direct_CXX=no
16681 hardcode_shlibpath_var_CXX=no
16684 hardcode_direct_CXX=yes
16685 hardcode_direct_absolute_CXX=yes
16686 hardcode_minus_L_CXX=yes # Not in the search PATH,
16687 # but as the default
16688 # location of the library.
16692 case $cc_basename in
16694 # FIXME: insert proper C++ library support
16700 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16703 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16706 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16709 # Commands to make compiler produce verbose output that lists
16710 # what "hidden" libraries, object files and flags are used when
16711 # linking a shared library.
16713 # There doesn't appear to be a way to prevent this compiler from
16714 # explicitly linking system object files so we need to strip them
16715 # from the output so that they don't get included in the library
16717 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16720 if test yes = "$GXX"; then
16721 if test no = "$with_gnu_ld"; then
16724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16727 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16730 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16735 # FIXME: insert proper C++ library support
16743 hardcode_direct_CXX=no
16744 hardcode_shlibpath_var_CXX=no
16745 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16746 export_dynamic_flag_spec_CXX='$wl-E'
16747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16748 # Instead, shared libraries are loaded at an image base (0x10000000 by
16749 # default) and relocated if they conflict, which is a slow very memory
16750 # consuming and fragmenting process. To avoid this, we pick a random,
16751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16752 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16753 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16754 archive_expsym_cmds_CXX='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'
16757 case $cc_basename in
16760 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16762 # Archives containing C++ object files must be created using
16763 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16764 # necessary to make sure instantiated templates are included
16766 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16769 if test yes = "$GXX"; then
16770 if test no = "$with_gnu_ld"; then
16771 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16773 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16776 link_all_deplibs_CXX=yes
16779 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16780 hardcode_libdir_separator_CXX=:
16781 inherit_rpath_CXX=yes
16784 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16785 case $cc_basename in
16787 # Kuck and Associates, Inc. (KAI) C++ Compiler
16789 # KCC will only create a shared library if the output file
16790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16791 # to its proper name (with version) after linking.
16792 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
16793 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv -f \$templib $lib'
16794 # Commands to make compiler produce verbose output that lists
16795 # what "hidden" libraries, object files and flags are used when
16796 # linking a shared library.
16798 # There doesn't appear to be a way to prevent this compiler from
16799 # explicitly linking system object files so we need to strip them
16800 # from the output so that they don't get included in the library
16802 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16804 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16805 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16807 # Archives containing C++ object files must be created using
16808 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16809 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16814 # version 8.0 and above of icpc choke on multiply defined symbols
16815 # if we add $predep_objects and $postdep_objects, however 7.1 and
16816 # earlier do not add the objects themselves.
16817 case `$CC -V 2>&1` in
16819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16820 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16822 *) # Version 8.0 or newer
16825 ia64*) tmp_idyn=' -i_dynamic';;
16827 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16828 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16831 archive_cmds_need_lc_CXX=no
16832 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16833 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16834 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16837 # Portland Group C++ compiler
16839 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16840 prelink_cmds_CXX='tpldir=Template.dir~
16842 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16843 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16844 old_archive_cmds_CXX='tpldir=Template.dir~
16846 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16847 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16849 archive_cmds_CXX='tpldir=Template.dir~
16851 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16852 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16853 archive_expsym_cmds_CXX='tpldir=Template.dir~
16855 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16856 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16858 *) # Version 6 and above use weak symbols
16859 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16860 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16864 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16865 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16866 whole_archive_flag_spec_CXX='$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'
16870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16871 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
16873 runpath_var=LD_RUN_PATH
16874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16875 hardcode_libdir_separator_CXX=:
16877 # Commands to make compiler produce verbose output that lists
16878 # what "hidden" libraries, object files and flags are used when
16879 # linking a shared library.
16881 # There doesn't appear to be a way to prevent this compiler from
16882 # explicitly linking system object files so we need to strip them
16883 # from the output so that they don't get included in the library
16885 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16887 xl* | mpixl* | bgxl*)
16888 # IBM XL 8.0 on PPC, with GNU ld
16889 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16890 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16891 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16892 if test yes = "$supports_anon_versioning"; then
16893 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16895 echo "local: *; };" >> $output_objdir/$libname.ver~
16896 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16900 case `$CC -V 2>&1 | sed 5q` in
16903 no_undefined_flag_CXX=' -zdefs'
16904 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16905 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16906 hardcode_libdir_flag_spec_CXX='-R$libdir'
16907 whole_archive_flag_spec_CXX='$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'
16908 compiler_needs_object_CXX=yes
16910 # Not sure whether something based on
16911 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16913 output_verbose_link_cmd='func_echo_all'
16915 # Archives containing C++ object files must be created using
16916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16917 # necessary to make sure instantiated templates are included
16919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16927 # FIXME: insert proper C++ library support
16932 # FIXME: insert proper C++ library support
16937 case $cc_basename in
16939 # FIXME: insert proper C++ library support
16943 # FIXME: insert proper C++ library support
16950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16951 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16953 hardcode_libdir_flag_spec_CXX='-R$libdir'
16954 hardcode_direct_CXX=yes
16955 hardcode_shlibpath_var_CXX=no
16957 # Workaround some broken pre-1.5 toolchains
16958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16965 openbsd* | bitrig*)
16966 if test -f /usr/libexec/ld.so; then
16967 hardcode_direct_CXX=yes
16968 hardcode_shlibpath_var_CXX=no
16969 hardcode_direct_absolute_CXX=yes
16970 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16971 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16973 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16974 export_dynamic_flag_spec_CXX='$wl-E'
16975 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16977 output_verbose_link_cmd=func_echo_all
16983 osf3* | osf4* | osf5*)
16984 case $cc_basename in
16986 # Kuck and Associates, Inc. (KAI) C++ Compiler
16988 # KCC will only create a shared library if the output file
16989 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16990 # to its proper name (with version) after linking.
16991 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
16993 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16994 hardcode_libdir_separator_CXX=:
16996 # Archives containing C++ object files must be created using
16997 # the KAI C++ compiler.
16999 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17000 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17004 # Rational C++ 2.4.1
17005 # FIXME: insert proper C++ library support
17011 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17012 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17013 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17016 allow_undefined_flag_CXX=' -expect_unresolved \*'
17017 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17018 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17019 echo "-hidden">> $lib.exp~
17020 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17026 hardcode_libdir_separator_CXX=:
17028 # Commands to make compiler produce verbose output that lists
17029 # what "hidden" libraries, object files and flags are used when
17030 # linking a shared library.
17032 # There doesn't appear to be a way to prevent this compiler from
17033 # explicitly linking system object files so we need to strip them
17034 # from the output so that they don't get included in the library
17036 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17039 if test yes,no = "$GXX,$with_gnu_ld"; then
17040 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17043 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17046 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17050 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17051 hardcode_libdir_separator_CXX=:
17053 # Commands to make compiler produce verbose output that lists
17054 # what "hidden" libraries, object files and flags are used when
17055 # linking a shared library.
17056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17059 # FIXME: insert proper C++ library support
17067 # FIXME: insert proper C++ library support
17072 case $cc_basename in
17075 # FIXME: insert proper C++ library support
17080 # FIXME: insert proper C++ library support
17084 # FIXME: insert proper C++ library support
17091 case $cc_basename in
17093 # Sun C++ 4.2, 5.x and Centerline C++
17094 archive_cmds_need_lc_CXX=yes
17095 no_undefined_flag_CXX=' -zdefs'
17096 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17097 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17098 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17100 hardcode_libdir_flag_spec_CXX='-R$libdir'
17101 hardcode_shlibpath_var_CXX=no
17103 solaris2.[0-5] | solaris2.[0-5].*) ;;
17105 # The compiler driver will combine and reorder linker options,
17106 # but understands '-z linker_flag'.
17107 # Supported since Solaris 2.6 (maybe 2.5.1?)
17108 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17111 link_all_deplibs_CXX=yes
17113 output_verbose_link_cmd='func_echo_all'
17115 # Archives containing C++ object files must be created using
17116 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17117 # necessary to make sure instantiated templates are included
17119 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17122 # Green Hills C++ Compiler
17123 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17125 # The C++ compiler must be used to create the archive.
17126 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17129 # GNU C++ compiler with Solaris linker
17130 if test yes,no = "$GXX,$with_gnu_ld"; then
17131 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17132 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17133 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17134 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17135 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17137 # Commands to make compiler produce verbose output that lists
17138 # what "hidden" libraries, object files and flags are used when
17139 # linking a shared library.
17140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17142 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17144 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17145 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17146 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17148 # Commands to make compiler produce verbose output that lists
17149 # what "hidden" libraries, object files and flags are used when
17150 # linking a shared library.
17151 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17154 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17156 solaris2.[0-5] | solaris2.[0-5].*) ;;
17158 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17167 no_undefined_flag_CXX='$wl-z,text'
17168 archive_cmds_need_lc_CXX=no
17169 hardcode_shlibpath_var_CXX=no
17170 runpath_var='LD_RUN_PATH'
17172 case $cc_basename in
17174 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17175 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17178 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17179 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17184 sysv5* | sco3.2v5* | sco5v6*)
17185 # Note: We CANNOT use -z defs as we might desire, because we do not
17186 # link with -lc, and that would cause any symbols used from libc to
17187 # always be unresolved, which means just about no library would
17188 # ever link correctly. If we're not using GNU ld we use -z text
17189 # though, which does catch some bad symbols but isn't as heavy-handed
17191 no_undefined_flag_CXX='$wl-z,text'
17192 allow_undefined_flag_CXX='$wl-z,nodefs'
17193 archive_cmds_need_lc_CXX=no
17194 hardcode_shlibpath_var_CXX=no
17195 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17196 hardcode_libdir_separator_CXX=':'
17197 link_all_deplibs_CXX=yes
17198 export_dynamic_flag_spec_CXX='$wl-Bexport'
17199 runpath_var='LD_RUN_PATH'
17201 case $cc_basename in
17203 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17205 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17206 '"$old_archive_cmds_CXX"
17207 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17208 '"$reload_cmds_CXX"
17211 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17212 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17218 case $cc_basename in
17220 # NonStop-UX NCC 3.20
17221 # FIXME: insert proper C++ library support
17225 # FIXME: insert proper C++ library support
17232 # FIXME: insert proper C++ library support
17237 # FIXME: insert proper C++ library support
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17243 $as_echo "$ld_shlibs_CXX" >&6; }
17244 test no = "$ld_shlibs_CXX" && can_build_shared=no
17250 ## There is no encapsulation within the following macros, do not change
17251 ## the running order or otherwise move them around unless you know exactly
17252 ## what you are doing...
17253 # Dependencies to place before and after the object being linked:
17254 predep_objects_CXX=
17255 postdep_objects_CXX=
17258 compiler_lib_search_path_CXX=
17260 cat > conftest.$ac_ext <<_LT_EOF
17264 Foo (void) { a = 0; }
17271 _lt_libdeps_save_CFLAGS=$CFLAGS
17272 case "$CC $CFLAGS " in #(
17273 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17274 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17275 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17279 (eval $ac_compile) 2>&5
17281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17282 test $ac_status = 0; }; then
17283 # Parse the compiler output and extract the necessary
17284 # objects, libraries and library flags.
17286 # Sentinel used to keep track of whether or not we are before
17287 # the conftest object file.
17288 pre_test_object_deps_done=no
17290 for p in `eval "$output_verbose_link_cmd"`; do
17294 # Some compilers place space between "-{L,R}" and the path.
17295 # Remove the space.
17296 if test x-L = "$p" ||
17297 test x-R = "$p"; then
17302 # Expand the sysroot to ease extracting the directories later.
17303 if test -z "$prev"; then
17305 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17306 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17307 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17311 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17313 if test no = "$pre_test_object_deps_done"; then
17316 # Internal compiler library paths should come after those
17317 # provided the user. The postdeps already come after the
17318 # user supplied libs so there is no need to process them.
17319 if test -z "$compiler_lib_search_path_CXX"; then
17320 compiler_lib_search_path_CXX=$prev$p
17322 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17325 # The "-l" case would never come before the object being
17326 # linked, so don't bother handling this case.
17329 if test -z "$postdeps_CXX"; then
17330 postdeps_CXX=$prev$p
17332 postdeps_CXX="${postdeps_CXX} $prev$p"
17338 *.lto.$objext) ;; # Ignore GCC LTO objects
17340 # This assumes that the test object file only shows up
17341 # once in the compiler output.
17342 if test "$p" = "conftest.$objext"; then
17343 pre_test_object_deps_done=yes
17347 if test no = "$pre_test_object_deps_done"; then
17348 if test -z "$predep_objects_CXX"; then
17349 predep_objects_CXX=$p
17351 predep_objects_CXX="$predep_objects_CXX $p"
17354 if test -z "$postdep_objects_CXX"; then
17355 postdep_objects_CXX=$p
17357 postdep_objects_CXX="$postdep_objects_CXX $p"
17362 *) ;; # Ignore the rest.
17370 echo "libtool.m4: error: problem compiling CXX test program"
17373 $RM -f confest.$objext
17374 CFLAGS=$_lt_libdeps_save_CFLAGS
17376 # PORTME: override above test on systems where it is broken
17379 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17380 # hack all around it, let's just trust "g++" to DTRT.
17381 predep_objects_CXX=
17382 postdep_objects_CXX=
17388 case " $postdeps_CXX " in
17389 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17391 compiler_lib_search_dirs_CXX=
17392 if test -n "${compiler_lib_search_path_CXX}"; then
17393 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17426 lt_prog_compiler_wl_CXX=
17427 lt_prog_compiler_pic_CXX=
17428 lt_prog_compiler_static_CXX=
17431 # C++ specific cases for pic, static, wl, etc.
17432 if test yes = "$GXX"; then
17433 lt_prog_compiler_wl_CXX='-Wl,'
17434 lt_prog_compiler_static_CXX='-static'
17438 # All AIX code is PIC.
17439 if test ia64 = "$host_cpu"; then
17440 # AIX 5 now supports IA64 processor
17441 lt_prog_compiler_static_CXX='-Bstatic'
17443 lt_prog_compiler_pic_CXX='-fPIC'
17449 # see comment about AmigaOS4 .so support
17450 lt_prog_compiler_pic_CXX='-fPIC'
17453 # FIXME: we need at least 68020 code to build shared libraries, but
17454 # adding the '-m68020' flag to GCC prevents building anything better,
17456 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17462 # PIC is the default for these OSes.
17464 mingw* | cygwin* | os2* | pw32* | cegcc*)
17465 # This hack is so that the source file can tell whether it is being
17466 # built for inclusion in a dll (and should export symbols for example).
17467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17468 # (--disable-auto-import) libraries
17469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17472 lt_prog_compiler_static_CXX='$wl-static'
17476 darwin* | rhapsody*)
17477 # PIC is the default on this platform
17478 # Common symbols not allowed in MH_DYLIB files
17479 lt_prog_compiler_pic_CXX='-fno-common'
17482 # DJGPP does not support shared libraries at all
17483 lt_prog_compiler_pic_CXX=
17486 # PIC is the default for Haiku.
17487 # The "-static" flag exists, but is broken.
17488 lt_prog_compiler_static_CXX=
17491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17492 # Instead, we relocate shared libraries at runtime.
17495 if test -d /usr/nec; then
17496 lt_prog_compiler_pic_CXX=-Kconform_pic
17500 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17501 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17502 # sets the default TLS model and affects inlining.
17507 lt_prog_compiler_pic_CXX='-fPIC'
17512 # QNX uses GNU C++, but need to define -shared option too, otherwise
17513 # it will coredump.
17514 lt_prog_compiler_pic_CXX='-fPIC -shared'
17517 lt_prog_compiler_pic_CXX='-fPIC'
17523 # All AIX code is PIC.
17524 if test ia64 = "$host_cpu"; then
17525 # AIX 5 now supports IA64 processor
17526 lt_prog_compiler_static_CXX='-Bstatic'
17528 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17532 case $cc_basename in
17534 # Green Hills C++ Compiler
17535 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17539 mingw* | cygwin* | os2* | pw32* | cegcc*)
17540 # This hack is so that the source file can tell whether it is being
17541 # built for inclusion in a dll (and should export symbols for example).
17542 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17545 case $cc_basename in
17547 lt_prog_compiler_pic_CXX='-KPIC'
17550 # Green Hills C++ Compiler
17551 lt_prog_compiler_pic_CXX='-pic'
17557 freebsd* | dragonfly*)
17558 # FreeBSD uses GNU C++
17560 hpux9* | hpux10* | hpux11*)
17561 case $cc_basename in
17563 lt_prog_compiler_wl_CXX='-Wl,'
17564 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17565 if test ia64 != "$host_cpu"; then
17566 lt_prog_compiler_pic_CXX='+Z'
17570 lt_prog_compiler_wl_CXX='-Wl,'
17571 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17577 lt_prog_compiler_pic_CXX='+Z'
17586 # This is c89, which is MS Visual C++ (no shared libs)
17587 # Anyone wants to do a port?
17589 irix5* | irix6* | nonstopux*)
17590 case $cc_basename in
17592 lt_prog_compiler_wl_CXX='-Wl,'
17593 lt_prog_compiler_static_CXX='-non_shared'
17594 # CC pic flag -KPIC is the default.
17600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17601 case $cc_basename in
17604 lt_prog_compiler_wl_CXX='--backend -Wl,'
17605 lt_prog_compiler_pic_CXX='-fPIC'
17608 # old Intel C++ for x86_64, which still supported -KPIC.
17609 lt_prog_compiler_wl_CXX='-Wl,'
17610 lt_prog_compiler_pic_CXX='-KPIC'
17611 lt_prog_compiler_static_CXX='-static'
17614 # Intel C++, used to be incompatible with GCC.
17615 # ICC 10 doesn't accept -KPIC any more.
17616 lt_prog_compiler_wl_CXX='-Wl,'
17617 lt_prog_compiler_pic_CXX='-fPIC'
17618 lt_prog_compiler_static_CXX='-static'
17621 # Portland Group C++ compiler
17622 lt_prog_compiler_wl_CXX='-Wl,'
17623 lt_prog_compiler_pic_CXX='-fpic'
17624 lt_prog_compiler_static_CXX='-Bstatic'
17628 # Make sure the PIC flag is empty. It appears that all Alpha
17629 # Linux and Compaq Tru64 Unix objects are PIC.
17630 lt_prog_compiler_pic_CXX=
17631 lt_prog_compiler_static_CXX='-non_shared'
17633 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17634 # IBM XL 8.0, 9.0 on PPC and BlueGene
17635 lt_prog_compiler_wl_CXX='-Wl,'
17636 lt_prog_compiler_pic_CXX='-qpic'
17637 lt_prog_compiler_static_CXX='-qstaticlink'
17640 case `$CC -V 2>&1 | sed 5q` in
17643 lt_prog_compiler_pic_CXX='-KPIC'
17644 lt_prog_compiler_static_CXX='-Bstatic'
17645 lt_prog_compiler_wl_CXX='-Qoption ld '
17656 case $cc_basename in
17658 lt_prog_compiler_pic_CXX='-W c,exportall'
17664 netbsd* | netbsdelf*-gnu)
17667 # QNX uses GNU C++, but need to define -shared option too, otherwise
17668 # it will coredump.
17669 lt_prog_compiler_pic_CXX='-fPIC -shared'
17671 osf3* | osf4* | osf5*)
17672 case $cc_basename in
17674 lt_prog_compiler_wl_CXX='--backend -Wl,'
17677 # Rational C++ 2.4.1
17678 lt_prog_compiler_pic_CXX='-pic'
17681 # Digital/Compaq C++
17682 lt_prog_compiler_wl_CXX='-Wl,'
17683 # Make sure the PIC flag is empty. It appears that all Alpha
17684 # Linux and Compaq Tru64 Unix objects are PIC.
17685 lt_prog_compiler_pic_CXX=
17686 lt_prog_compiler_static_CXX='-non_shared'
17695 case $cc_basename in
17697 # Sun C++ 4.2, 5.x and Centerline C++
17698 lt_prog_compiler_pic_CXX='-KPIC'
17699 lt_prog_compiler_static_CXX='-Bstatic'
17700 lt_prog_compiler_wl_CXX='-Qoption ld '
17703 # Green Hills C++ Compiler
17704 lt_prog_compiler_pic_CXX='-PIC'
17711 case $cc_basename in
17714 lt_prog_compiler_pic_CXX='-pic'
17715 lt_prog_compiler_static_CXX='-Bstatic'
17719 lt_prog_compiler_pic_CXX='-pic'
17725 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17726 case $cc_basename in
17728 lt_prog_compiler_wl_CXX='-Wl,'
17729 lt_prog_compiler_pic_CXX='-KPIC'
17730 lt_prog_compiler_static_CXX='-Bstatic'
17735 case $cc_basename in
17737 # NonStop-UX NCC 3.20
17738 lt_prog_compiler_pic_CXX='-KPIC'
17747 lt_prog_compiler_can_build_shared_CXX=no
17753 # For platforms that do not support PIC, -DPIC is meaningless:
17755 lt_prog_compiler_pic_CXX=
17758 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17763 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17764 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17765 $as_echo_n "(cached) " >&6
17767 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17770 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17771 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17774 # Check to make sure the PIC flag actually works.
17776 if test -n "$lt_prog_compiler_pic_CXX"; then
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17778 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17779 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17780 $as_echo_n "(cached) " >&6
17782 lt_cv_prog_compiler_pic_works_CXX=no
17783 ac_outfile=conftest.$ac_objext
17784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17785 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17786 # Insert the option either (1) after the last *FLAGS variable, or
17787 # (2) before a word containing "conftest.", or (3) at the end.
17788 # Note that $ac_compile itself does not contain backslashes and begins
17789 # with a dollar sign (not a hyphen), so the echo should work correctly.
17790 # The option is referenced via a variable to avoid confusing sed.
17791 lt_compile=`echo "$ac_compile" | $SED \
17792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17794 -e 's:$: $lt_compiler_flag:'`
17795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17796 (eval "$lt_compile" 2>conftest.err)
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 if (exit $ac_status) && test -s "$ac_outfile"; then
17801 # The compiler can only warn and ignore the option if not recognized
17802 # So say no if there are warnings other than the usual output.
17803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17806 lt_cv_prog_compiler_pic_works_CXX=yes
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17813 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17815 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17816 case $lt_prog_compiler_pic_CXX in
17818 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17821 lt_prog_compiler_pic_CXX=
17822 lt_prog_compiler_can_build_shared_CXX=no
17832 # Check to make sure the static flag actually works.
17834 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17836 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17837 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17838 $as_echo_n "(cached) " >&6
17840 lt_cv_prog_compiler_static_works_CXX=no
17841 save_LDFLAGS=$LDFLAGS
17842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17845 # The linker can only warn and ignore the option if not recognized
17846 # So say no if there are warnings
17847 if test -s conftest.err; then
17848 # Append any errors to the config.log.
17849 cat conftest.err 1>&5
17850 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17852 if diff conftest.exp conftest.er2 >/dev/null; then
17853 lt_cv_prog_compiler_static_works_CXX=yes
17856 lt_cv_prog_compiler_static_works_CXX=yes
17860 LDFLAGS=$save_LDFLAGS
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17864 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17866 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17869 lt_prog_compiler_static_CXX=
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17877 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17878 $as_echo_n "(cached) " >&6
17880 lt_cv_prog_compiler_c_o_CXX=no
17881 $RM -r conftest 2>/dev/null
17885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17887 lt_compiler_flag="-o out/conftest2.$ac_objext"
17888 # Insert the option either (1) after the last *FLAGS variable, or
17889 # (2) before a word containing "conftest.", or (3) at the end.
17890 # Note that $ac_compile itself does not contain backslashes and begins
17891 # with a dollar sign (not a hyphen), so the echo should work correctly.
17892 lt_compile=`echo "$ac_compile" | $SED \
17893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17895 -e 's:$: $lt_compiler_flag:'`
17896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17897 (eval "$lt_compile" 2>out/conftest.err)
17899 cat out/conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17903 # The compiler can only warn and ignore the option if not recognized
17904 # So say no if there are warnings
17905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17908 lt_cv_prog_compiler_c_o_CXX=yes
17913 # SGI C++ compiler will create directory out/ii_files/ for
17914 # template instantiation
17915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17916 $RM out/* && rmdir out
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17923 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17929 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17930 $as_echo_n "(cached) " >&6
17932 lt_cv_prog_compiler_c_o_CXX=no
17933 $RM -r conftest 2>/dev/null
17937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17939 lt_compiler_flag="-o out/conftest2.$ac_objext"
17940 # Insert the option either (1) after the last *FLAGS variable, or
17941 # (2) before a word containing "conftest.", or (3) at the end.
17942 # Note that $ac_compile itself does not contain backslashes and begins
17943 # with a dollar sign (not a hyphen), so the echo should work correctly.
17944 lt_compile=`echo "$ac_compile" | $SED \
17945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17947 -e 's:$: $lt_compiler_flag:'`
17948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17949 (eval "$lt_compile" 2>out/conftest.err)
17951 cat out/conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17955 # The compiler can only warn and ignore the option if not recognized
17956 # So say no if there are warnings
17957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17960 lt_cv_prog_compiler_c_o_CXX=yes
17965 # SGI C++ compiler will create directory out/ii_files/ for
17966 # template instantiation
17967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17968 $RM out/* && rmdir out
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17975 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17980 hard_links=nottested
17981 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17982 # do not overwrite the value of need_locks provided by the user
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17984 $as_echo_n "checking if we can lock with hard links... " >&6; }
17987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17989 ln conftest.a conftest.b 2>&5 || hard_links=no
17990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17992 $as_echo "$hard_links" >&6; }
17993 if test no = "$hard_links"; then
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17995 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18008 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18011 # If we're using GNU nm, then we don't want the "-C" option.
18012 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18013 # Without the "-l" option, or with the "-B" option, AIX nm treats
18014 # weak defined symbols like other global defined symbols, whereas
18015 # GNU nm marks them as "W".
18016 # While the 'weak' keyword is ignored in the Export File, we need
18017 # it in the Import File for the 'aix-soname' feature, so we have
18018 # to replace the "-B" option with "-P" for AIX nm.
18019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18020 export_symbols_cmds_CXX='$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'
18022 export_symbols_cmds_CXX='`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'
18026 export_symbols_cmds_CXX=$ltdll_cmds
18028 cygwin* | mingw* | cegcc*)
18029 case $cc_basename in
18031 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18034 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18035 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18039 linux* | k*bsd*-gnu | gnu*)
18040 link_all_deplibs_CXX=no
18043 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18048 $as_echo "$ld_shlibs_CXX" >&6; }
18049 test no = "$ld_shlibs_CXX" && can_build_shared=no
18051 with_gnu_ld_CXX=$with_gnu_ld
18059 # Do we need to explicitly link libc?
18061 case "x$archive_cmds_need_lc_CXX" in
18063 # Assume -lc should be added
18064 archive_cmds_need_lc_CXX=yes
18066 if test yes,yes = "$GCC,$enable_shared"; then
18067 case $archive_cmds_CXX in
18069 # FIXME: we may have to deal with multi-command sequences.
18072 # Test whether the compiler implicitly links with -lc since on some
18073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18074 # to ld, don't add -lc before -lgcc.
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18076 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18077 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18078 $as_echo_n "(cached) " >&6
18081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18084 (eval $ac_compile) 2>&5
18086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18087 test $ac_status = 0; } 2>conftest.err; then
18090 libobjs=conftest.$ac_objext
18092 wl=$lt_prog_compiler_wl_CXX
18093 pic_flag=$lt_prog_compiler_pic_CXX
18099 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18100 allow_undefined_flag_CXX=
18101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18102 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105 test $ac_status = 0; }
18107 lt_cv_archive_cmds_need_lc_CXX=no
18109 lt_cv_archive_cmds_need_lc_CXX=yes
18111 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18113 cat conftest.err 1>&5
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18119 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18120 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18189 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18191 library_names_spec=
18192 libname_spec='lib$name'
18196 postuninstall_cmds=
18200 shlibpath_overrides_runpath=unknown
18202 dynamic_linker="$host_os ld.so"
18203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18204 need_lib_prefix=unknown
18205 hardcode_into_libs=no
18207 # when you set need_version to no, make sure it does not cause -set_version
18208 # flags to be left without arguments
18209 need_version=unknown
18215 version_type=linux # correct to gnu/linux during the next big refactor
18216 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18217 shlibpath_var=LIBPATH
18219 # AIX 3 has no versioning support, so we append a major version to the name.
18220 soname_spec='$libname$release$shared_ext$major'
18224 version_type=linux # correct to gnu/linux during the next big refactor
18227 hardcode_into_libs=yes
18228 if test ia64 = "$host_cpu"; then
18229 # AIX 5 supports IA64
18230 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18231 shlibpath_var=LD_LIBRARY_PATH
18233 # With GCC up to 2.95.x, collect2 would create an import file
18234 # for dependence libraries. The import file would start with
18235 # the line '#! .'. This would cause the generated library to
18236 # depend on '.', always an invalid library. This was fixed in
18237 # development snapshots of GCC prior to 3.0.
18239 aix4 | aix4.[01] | aix4.[01].*)
18240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18242 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18245 can_build_shared=no
18249 # Using Import Files as archive members, it is possible to support
18250 # filename-based versioning of shared library archives on AIX. While
18251 # this would work for both with and without runtime linking, it will
18252 # prevent static linking of such archives. So we do filename-based
18253 # shared library versioning with .so extension only, which is used
18254 # when both runtime linking and shared linking is enabled.
18255 # Unfortunately, runtime linking may impact performance, so we do
18256 # not want this to be the default eventually. Also, we use the
18257 # versioned .so libs for executables only if there is the -brtl
18258 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18259 # To allow for filename-based versioning support, we need to create
18260 # libNAME.so.V as an archive file, containing:
18261 # *) an Import File, referring to the versioned filename of the
18262 # archive as well as the shared archive member, telling the
18263 # bitwidth (32 or 64) of that shared object, and providing the
18264 # list of exported symbols of that shared object, eventually
18265 # decorated with the 'weak' keyword
18266 # *) the shared object with the F_LOADONLY flag set, to really avoid
18267 # it being seen by the linker.
18268 # At run time we better use the real file rather than another symlink,
18269 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18271 case $with_aix_soname,$aix_use_runtimelinking in
18272 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18273 # soname into executable. Probably we can add versioning support to
18274 # collect2, so additional links can be useful in future.
18275 aix,yes) # traditional libtool
18276 dynamic_linker='AIX unversionable lib.so'
18277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18278 # instead of lib<name>.a to let people know that these are not
18279 # typical AIX shared libraries.
18280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18282 aix,no) # traditional AIX only
18283 dynamic_linker='AIX lib.a(lib.so.V)'
18284 # We preserve .a as extension for shared libraries through AIX4.2
18285 # and later when we are not doing run time linking.
18286 library_names_spec='$libname$release.a $libname.a'
18287 soname_spec='$libname$release$shared_ext$major'
18289 svr4,*) # full svr4 only
18290 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18291 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18292 # We do not specify a path in Import Files, so LIBPATH fires.
18293 shlibpath_overrides_runpath=yes
18295 *,yes) # both, prefer svr4
18296 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18297 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18298 # unpreferred sharedlib libNAME.a needs extra handling
18299 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"'
18300 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"'
18301 # We do not specify a path in Import Files, so LIBPATH fires.
18302 shlibpath_overrides_runpath=yes
18304 *,no) # both, prefer aix
18305 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18306 library_names_spec='$libname$release.a $libname.a'
18307 soname_spec='$libname$release$shared_ext$major'
18308 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18309 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)'
18310 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"'
18313 shlibpath_var=LIBPATH
18320 # Since July 2007 AmigaOS4 officially supports .so libraries.
18321 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18325 library_names_spec='$libname.ixlibrary $libname.a'
18326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18327 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'
18333 library_names_spec='$libname$shared_ext'
18334 dynamic_linker="$host_os ld.so"
18335 shlibpath_var=LIBRARY_PATH
18339 version_type=linux # correct to gnu/linux during the next big refactor
18341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18342 soname_spec='$libname$release$shared_ext$major'
18343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18347 # the default ld.so.conf also contains /usr/contrib/lib and
18348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18349 # libtool to hard-code these into programs
18352 cygwin* | mingw* | pw32* | cegcc*)
18353 version_type=windows
18358 case $GCC,$cc_basename in
18361 library_names_spec='$libname.dll.a'
18362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18363 postinstall_cmds='base_file=`basename \$file`~
18364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18365 dldir=$destdir/`dirname \$dlpath`~
18366 test -d \$dldir || mkdir -p \$dldir~
18367 $install_prog $dir/$dlname \$dldir/$dlname~
18368 chmod a+x \$dldir/$dlname~
18369 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18370 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18373 dlpath=$dir/\$dldll~
18375 shlibpath_overrides_runpath=yes
18379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18380 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18384 # MinGW DLLs use traditional 'lib' prefix
18385 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18388 # pw32 DLLs use 'pw' prefix rather than 'lib'
18389 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18392 dynamic_linker='Win32 ld.exe'
18397 libname_spec='$name'
18398 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18399 library_names_spec='$libname.dll.lib'
18403 sys_lib_search_path_spec=
18406 for lt_path in $LIB
18409 # Let DOS variable expansion print the short 8.3 style file name.
18410 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18411 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18414 # Convert to MSYS style.
18415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18418 # Convert to unix form, then to dos form, then back to unix form
18419 # but this time dos style (no spaces!) so that the unix form looks
18420 # like /cygdrive/c/PROGRA~1:/cygdr...
18421 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18422 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18423 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18426 sys_lib_search_path_spec=$LIB
18427 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18428 # It is most probably a Windows format PATH.
18429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18433 # FIXME: find the short name or the path components, as spaces are
18434 # common. (e.g. "Program Files" -> "PROGRA~1")
18438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18439 postinstall_cmds='base_file=`basename \$file`~
18440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18441 dldir=$destdir/`dirname \$dlpath`~
18442 test -d \$dldir || mkdir -p \$dldir~
18443 $install_prog $dir/$dlname \$dldir/$dlname'
18444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18445 dlpath=$dir/\$dldll~
18447 shlibpath_overrides_runpath=yes
18448 dynamic_linker='Win32 link.exe'
18452 # Assume MSVC wrapper
18453 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18454 dynamic_linker='Win32 ld.exe'
18457 # FIXME: first we should search . and the directory the executable is in
18461 darwin* | rhapsody*)
18462 dynamic_linker="$host_os dyld"
18463 version_type=darwin
18466 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18467 soname_spec='$libname$release$major$shared_ext'
18468 shlibpath_overrides_runpath=yes
18469 shlibpath_var=DYLD_LIBRARY_PATH
18470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18476 version_type=linux # correct to gnu/linux during the next big refactor
18479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18480 soname_spec='$libname$release$shared_ext$major'
18481 shlibpath_var=LD_LIBRARY_PATH
18484 freebsd* | dragonfly*)
18485 # DragonFly does not have aout. When/if they implement a new
18486 # versioning mechanism, adjust this.
18487 if test -x /usr/bin/objformat; then
18488 objformat=`/usr/bin/objformat`
18491 freebsd[23].*) objformat=aout ;;
18492 *) objformat=elf ;;
18495 version_type=freebsd-$objformat
18496 case $version_type in
18498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18499 soname_spec='$libname$release$shared_ext$major'
18504 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18508 shlibpath_var=LD_LIBRARY_PATH
18511 shlibpath_overrides_runpath=yes
18513 freebsd3.[01]* | freebsdelf3.[01]*)
18514 shlibpath_overrides_runpath=yes
18515 hardcode_into_libs=yes
18517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18519 shlibpath_overrides_runpath=no
18520 hardcode_into_libs=yes
18522 *) # from 4.6 on, and DragonFly
18523 shlibpath_overrides_runpath=yes
18524 hardcode_into_libs=yes
18530 version_type=linux # correct to gnu/linux during the next big refactor
18533 dynamic_linker="$host_os runtime_loader"
18534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18535 soname_spec='$libname$release$shared_ext$major'
18536 shlibpath_var=LIBRARY_PATH
18537 shlibpath_overrides_runpath=no
18538 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18539 hardcode_into_libs=yes
18542 hpux9* | hpux10* | hpux11*)
18543 # Give a soname corresponding to the major version so that dld.sl refuses to
18544 # link against other versions.
18551 hardcode_into_libs=yes
18552 dynamic_linker="$host_os dld.so"
18553 shlibpath_var=LD_LIBRARY_PATH
18554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18556 soname_spec='$libname$release$shared_ext$major'
18557 if test 32 = "$HPUX_IA64_MODE"; then
18558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18559 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18562 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18567 hardcode_into_libs=yes
18568 dynamic_linker="$host_os dld.sl"
18569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18572 soname_spec='$libname$release$shared_ext$major'
18573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18578 dynamic_linker="$host_os dld.sl"
18579 shlibpath_var=SHLIB_PATH
18580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18582 soname_spec='$libname$release$shared_ext$major'
18585 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18586 postinstall_cmds='chmod 555 $lib'
18587 # or fails outright, so override atomically:
18588 install_override_mode=555
18592 version_type=linux # correct to gnu/linux during the next big refactor
18595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18596 soname_spec='$libname$release$shared_ext$major'
18597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18598 shlibpath_var=LD_LIBRARY_PATH
18599 shlibpath_overrides_runpath=no
18600 hardcode_into_libs=yes
18603 irix5* | irix6* | nonstopux*)
18605 nonstopux*) version_type=nonstopux ;;
18607 if test yes = "$lt_cv_prog_gnu_ld"; then
18608 version_type=linux # correct to gnu/linux during the next big refactor
18615 soname_spec='$libname$release$shared_ext$major'
18616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18618 irix5* | nonstopux*)
18619 libsuff= shlibsuff=
18622 case $LD in # libtool.m4 will add one of these switches to LD
18623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18624 libsuff= shlibsuff= libmagic=32-bit;;
18625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18626 libsuff=32 shlibsuff=N32 libmagic=N32;;
18627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18629 *) libsuff= shlibsuff= libmagic=never-match;;
18633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18634 shlibpath_overrides_runpath=no
18635 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18636 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18637 hardcode_into_libs=yes
18640 # No shared lib support for Linux oldld, aout, or coff.
18641 linux*oldld* | linux*aout* | linux*coff*)
18646 version_type=none # Android doesn't support versioned libraries.
18649 library_names_spec='$libname$release$shared_ext'
18650 soname_spec='$libname$release$shared_ext'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 shlibpath_overrides_runpath=yes
18655 # This implies no fast_install, which is unacceptable.
18656 # Some rework will be needed to allow for fast_install
18657 # before this can be enabled.
18658 hardcode_into_libs=yes
18660 dynamic_linker='Android linker'
18661 # Don't embed -rpath directories since the linker doesn't support them.
18662 hardcode_libdir_flag_spec_CXX='-L$libdir'
18665 # This must be glibc/ELF.
18666 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18667 version_type=linux # correct to gnu/linux during the next big refactor
18670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18671 soname_spec='$libname$release$shared_ext$major'
18672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18673 shlibpath_var=LD_LIBRARY_PATH
18674 shlibpath_overrides_runpath=no
18676 # Some binutils ld are patched to set DT_RUNPATH
18677 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18678 $as_echo_n "(cached) " >&6
18680 lt_cv_shlibpath_overrides_runpath=no
18681 save_LDFLAGS=$LDFLAGS
18682 save_libdir=$libdir
18683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18696 if ac_fn_cxx_try_link "$LINENO"; then :
18697 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18698 lt_cv_shlibpath_overrides_runpath=yes
18701 rm -f core conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LDFLAGS=$save_LDFLAGS
18704 libdir=$save_libdir
18708 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18710 # This implies no fast_install, which is unacceptable.
18711 # Some rework will be needed to allow for fast_install
18712 # before this can be enabled.
18713 hardcode_into_libs=yes
18715 # Ideally, we could use ldconfig to report *all* directores which are
18716 # searched for libraries, however this is still not possible. Aside from not
18717 # being certain /sbin/ldconfig is available, command
18718 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18719 # even though it is searched at run-time. Try to do the best guess by
18720 # appending ld.so.conf contents (and includes) to the search path.
18721 if test -f /etc/ld.so.conf; then
18722 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' ' '`
18723 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18726 # We used to test for /lib/ld.so.1 and disable shared libraries on
18727 # powerpc, because MkLinux only supported shared libraries with the
18728 # GNU dynamic linker. Since this was broken with cross compilers,
18729 # most powerpc-linux boxes support dynamic linking these days and
18730 # people can always --disable-shared, the test was removed, and we
18731 # assume the GNU/Linux dynamic linker is in use.
18732 dynamic_linker='GNU/Linux ld.so'
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 shlibpath_var=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath=no
18743 hardcode_into_libs=yes
18744 dynamic_linker='NetBSD ld.elf_so'
18751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18754 dynamic_linker='NetBSD (a.out) ld.so'
18756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18757 soname_spec='$libname$release$shared_ext$major'
18758 dynamic_linker='NetBSD ld.elf_so'
18760 shlibpath_var=LD_LIBRARY_PATH
18761 shlibpath_overrides_runpath=yes
18762 hardcode_into_libs=yes
18766 version_type=linux # correct to gnu/linux during the next big refactor
18767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18768 shlibpath_var=LD_LIBRARY_PATH
18769 shlibpath_overrides_runpath=yes
18776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18777 soname_spec='$libname$release$shared_ext$major'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=no
18780 hardcode_into_libs=yes
18781 dynamic_linker='ldqnx.so'
18784 openbsd* | bitrig*)
18786 sys_lib_dlsearch_path_spec=/usr/lib
18788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 shlibpath_overrides_runpath=yes
18800 libname_spec='$name'
18801 version_type=windows
18805 # OS/2 can only load a DLL with a base name of 8 characters or less.
18806 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18807 v=$($ECHO $release$versuffix | tr -d .-);
18808 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18809 $ECHO $n$v`$shared_ext'
18810 library_names_spec='${libname}_dll.$libext'
18811 dynamic_linker='OS/2 ld.exe'
18812 shlibpath_var=BEGINLIBPATH
18813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18815 postinstall_cmds='base_file=`basename \$file`~
18816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18817 dldir=$destdir/`dirname \$dlpath`~
18818 test -d \$dldir || mkdir -p \$dldir~
18819 $install_prog $dir/$dlname \$dldir/$dlname~
18820 chmod a+x \$dldir/$dlname~
18821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18825 dlpath=$dir/\$dldll~
18829 osf3* | osf4* | osf5*)
18833 soname_spec='$libname$release$shared_ext$major'
18834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18835 shlibpath_var=LD_LIBRARY_PATH
18836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18845 version_type=linux # correct to gnu/linux during the next big refactor
18848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18849 soname_spec='$libname$release$shared_ext$major'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath=yes
18852 hardcode_into_libs=yes
18853 # ldd complains unless libraries are executable
18854 postinstall_cmds='chmod +x $lib'
18859 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 shlibpath_overrides_runpath=yes
18863 if test yes = "$with_gnu_ld"; then
18870 version_type=linux # correct to gnu/linux during the next big refactor
18871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18872 soname_spec='$libname$release$shared_ext$major'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 case $host_vendor in
18876 shlibpath_overrides_runpath=no
18878 runpath_var=LD_RUN_PATH
18886 shlibpath_overrides_runpath=no
18887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18893 if test -d /usr/nec; then
18894 version_type=linux # correct to gnu/linux during the next big refactor
18895 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18896 soname_spec='$libname$shared_ext.$major'
18897 shlibpath_var=LD_LIBRARY_PATH
18901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18906 soname_spec='$libname$release$shared_ext$major'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath=yes
18909 hardcode_into_libs=yes
18910 if test yes = "$with_gnu_ld"; then
18911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18920 sys_lib_dlsearch_path_spec='/usr/lib'
18924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18925 version_type=linux # correct to gnu/linux during the next big refactor
18928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 shlibpath_overrides_runpath=no
18931 hardcode_into_libs=yes
18935 version_type=linux # correct to gnu/linux during the next big refactor
18936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18937 soname_spec='$libname$release$shared_ext$major'
18938 shlibpath_var=LD_LIBRARY_PATH
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18946 $as_echo "$dynamic_linker" >&6; }
18947 test no = "$dynamic_linker" && can_build_shared=no
18949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18950 if test yes = "$GCC"; then
18951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18954 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18955 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18958 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18959 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18962 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18963 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18965 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18966 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18968 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18969 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19011 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19012 hardcode_action_CXX=
19013 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19014 test -n "$runpath_var_CXX" ||
19015 test yes = "$hardcode_automatic_CXX"; then
19017 # We can hardcode non-existent directories.
19018 if test no != "$hardcode_direct_CXX" &&
19019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19020 # have to relink, otherwise we might link with an installed library
19021 # when we should be linking with a yet-to-be-installed one
19022 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19023 test no != "$hardcode_minus_L_CXX"; then
19024 # Linking always hardcodes the temporary library directory.
19025 hardcode_action_CXX=relink
19027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19028 hardcode_action_CXX=immediate
19031 # We cannot hardcode anything, or else we can only hardcode existing
19033 hardcode_action_CXX=unsupported
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19036 $as_echo "$hardcode_action_CXX" >&6; }
19038 if test relink = "$hardcode_action_CXX" ||
19039 test yes = "$inherit_rpath_CXX"; then
19040 # Fast installation is not supported
19041 enable_fast_install=no
19042 elif test yes = "$shlibpath_overrides_runpath" ||
19043 test no = "$enable_shared"; then
19044 # Fast installation is not necessary
19045 enable_fast_install=needless
19054 fi # test -n "$compiler"
19057 CFLAGS=$lt_save_CFLAGS
19061 with_gnu_ld=$lt_save_with_gnu_ld
19062 lt_cv_path_LDCXX=$lt_cv_path_LD
19063 lt_cv_path_LD=$lt_save_path_LD
19064 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19065 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19066 fi # test yes != "$_lt_caught_CXX_error"
19069 ac_cpp='$CPP $CPPFLAGS'
19070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19088 ac_config_commands="$ac_config_commands libtool"
19093 # Only expand once:
19096 ## --------------------- ##
19097 ## End of libtool code ##
19098 ## --------------------- ##
19101 # Verify if finally libtool shared libraries will be built
19104 case "x$enable_shared" in # ((
19106 xc_lt_build_shared=$enable_shared
19109 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
19114 # Verify if finally libtool static libraries will be built
19117 case "x$enable_static" in # ((
19119 xc_lt_build_static=$enable_static
19122 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
19127 # Verify if libtool shared libraries should be linked using flag -version-info
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
19131 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
19132 xc_lt_shlib_use_version_info='yes'
19133 if test "x$version_type" = 'xnone'; then
19134 xc_lt_shlib_use_version_info='no'
19136 case $host_os in # (
19138 xc_lt_shlib_use_version_info='yes'
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
19142 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
19145 # Verify if libtool shared libraries should be linked using flag -no-undefined
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
19149 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
19150 xc_lt_shlib_use_no_undefined='no'
19151 if test "x$allow_undefined" = 'xno'; then
19152 xc_lt_shlib_use_no_undefined='yes'
19153 elif test "x$allow_undefined_flag" = 'xunsupported'; then
19154 xc_lt_shlib_use_no_undefined='yes'
19156 case $host_os in # (
19157 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
19158 xc_lt_shlib_use_no_undefined='yes'
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
19162 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
19165 # Verify if libtool shared libraries should be linked using flag -mimpure-text
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
19169 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
19170 xc_lt_shlib_use_mimpure_text='no'
19171 case $host_os in # (
19173 if test "x$GCC" = 'xyes'; then
19174 xc_lt_shlib_use_mimpure_text='yes'
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
19179 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
19182 # Find out wether libtool libraries would be built wit PIC
19185 case "x$pic_mode" in # ((((
19187 xc_lt_build_shared_with_pic='yes'
19188 xc_lt_build_static_with_pic='no'
19191 xc_lt_build_shared_with_pic='yes'
19192 xc_lt_build_static_with_pic='yes'
19195 xc_lt_build_shared_with_pic='no'
19196 xc_lt_build_static_with_pic='no'
19199 xc_lt_build_shared_with_pic='unknown'
19200 xc_lt_build_static_with_pic='unknown'
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
19202 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
19206 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
19208 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
19210 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
19212 $as_echo "$xc_lt_build_static_with_pic" >&6; }
19215 # Verify if libtool shared libraries will be built while static not built
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
19219 $as_echo_n "checking whether to build shared libraries only... " >&6; }
19220 if test "$xc_lt_build_shared" = 'yes' &&
19221 test "$xc_lt_build_static" = 'no'; then
19222 xc_lt_build_shared_only='yes'
19224 xc_lt_build_shared_only='no'
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
19227 $as_echo "$xc_lt_build_shared_only" >&6; }
19230 # Verify if libtool static libraries will be built while shared not built
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
19234 $as_echo_n "checking whether to build static libraries only... " >&6; }
19235 if test "$xc_lt_build_static" = 'yes' &&
19236 test "$xc_lt_build_shared" = 'no'; then
19237 xc_lt_build_static_only='yes'
19239 xc_lt_build_static_only='no'
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
19242 $as_echo "$xc_lt_build_static_only" >&6; }
19248 # Automake conditionals based on libtool related checks
19251 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
19252 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
19253 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
19255 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
19256 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
19259 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19260 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
19261 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
19263 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
19264 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
19267 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
19268 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
19269 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
19271 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
19272 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
19277 # Due to libtool and automake machinery limitations of not allowing
19278 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
19279 # inclusion of these in shared or static libraries, we are forced to
19280 # build using separate configure runs for shared and static libraries
19281 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
19282 # to compile objects for each kind of library. Notice that relying on
19283 # the '-DPIC' CFLAG that libtool provides is not valid given that the
19284 # user might for example choose to build static libraries with PIC.
19288 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
19289 # targeting a static library and not building its shared counterpart.
19292 if test "x$xc_lt_build_static_only" = 'xyes'; then
19293 USE_CPPFLAG_CARES_STATICLIB_TRUE=
19294 USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
19296 USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
19297 USE_CPPFLAG_CARES_STATICLIB_FALSE=
19302 # Make staticlib CPPFLAG variable and its definition visible in output
19303 # files unconditionally, providing an empty definition unless strictly
19304 # targeting a static library and not building its shared counterpart.
19307 CPPFLAG_CARES_STATICLIB=
19308 if test "x$xc_lt_build_static_only" = 'xyes'; then
19309 CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
19316 compiler_id="unknown"
19319 flags_dbg_all="unknown"
19320 flags_dbg_yes="unknown"
19321 flags_dbg_off="unknown"
19322 flags_opt_all="unknown"
19323 flags_opt_yes="unknown"
19324 flags_opt_off="unknown"
19326 flags_prefer_cppflags="no"
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
19330 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
19332 if test -z "$SED"; then
19333 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19335 if test -z "$GREP"; then
19336 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19345 CURL_DEF_TOKEN __DECC
19350 if ac_fn_c_try_cpp "$LINENO"; then :
19352 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19353 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19354 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19355 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19356 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
19361 rm -f conftest.err conftest.i conftest.$ac_ext
19362 if test -z "$tmp_exp"; then
19363 curl_cv_have_def___DECC=no
19366 curl_cv_have_def___DECC=yes
19367 curl_cv_def___DECC=$tmp_exp
19372 if test -z "$SED"; then
19373 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19375 if test -z "$GREP"; then
19376 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19385 CURL_DEF_TOKEN __DECC_VER
19390 if ac_fn_c_try_cpp "$LINENO"; then :
19392 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19393 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19394 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19395 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19396 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
19401 rm -f conftest.err conftest.i conftest.$ac_ext
19402 if test -z "$tmp_exp"; then
19403 curl_cv_have_def___DECC_VER=no
19406 curl_cv_have_def___DECC_VER=yes
19407 curl_cv_def___DECC_VER=$tmp_exp
19411 if test "$curl_cv_have_def___DECC" = "yes" &&
19412 test "$curl_cv_have_def___DECC_VER" = "yes"; then
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19414 $as_echo "yes" >&6; }
19415 compiler_id="DEC_C"
19416 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19417 flags_dbg_yes="-g2"
19418 flags_dbg_off="-g0"
19419 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
19420 flags_opt_yes="-O1"
19421 flags_opt_off="-O0"
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19424 $as_echo "no" >&6; }
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
19429 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
19431 if test -z "$SED"; then
19432 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19434 if test -z "$GREP"; then
19435 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19444 CURL_DEF_TOKEN __HP_cc
19449 if ac_fn_c_try_cpp "$LINENO"; then :
19451 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19452 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19453 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19454 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19455 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
19460 rm -f conftest.err conftest.i conftest.$ac_ext
19461 if test -z "$tmp_exp"; then
19462 curl_cv_have_def___HP_cc=no
19465 curl_cv_have_def___HP_cc=yes
19466 curl_cv_def___HP_cc=$tmp_exp
19470 if test "$curl_cv_have_def___HP_cc" = "yes"; then
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19472 $as_echo "yes" >&6; }
19473 compiler_id="HP_UX_C"
19474 flags_dbg_all="-g -s"
19477 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
19478 flags_opt_yes="+O2"
19479 flags_opt_off="+O0"
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19482 $as_echo "no" >&6; }
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
19487 $as_echo_n "checking if compiler is IBM C... " >&6; }
19489 if test -z "$SED"; then
19490 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19492 if test -z "$GREP"; then
19493 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19502 CURL_DEF_TOKEN __IBMC__
19507 if ac_fn_c_try_cpp "$LINENO"; then :
19509 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19510 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19511 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19512 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19513 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
19518 rm -f conftest.err conftest.i conftest.$ac_ext
19519 if test -z "$tmp_exp"; then
19520 curl_cv_have_def___IBMC__=no
19523 curl_cv_have_def___IBMC__=yes
19524 curl_cv_def___IBMC__=$tmp_exp
19528 if test "$curl_cv_have_def___IBMC__" = "yes"; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19530 $as_echo "yes" >&6; }
19531 compiler_id="IBM_C"
19532 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19535 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
19536 flags_opt_all="$flags_opt_all -qnooptimize"
19537 flags_opt_all="$flags_opt_all -qoptimize=0"
19538 flags_opt_all="$flags_opt_all -qoptimize=1"
19539 flags_opt_all="$flags_opt_all -qoptimize=2"
19540 flags_opt_all="$flags_opt_all -qoptimize=3"
19541 flags_opt_all="$flags_opt_all -qoptimize=4"
19542 flags_opt_all="$flags_opt_all -qoptimize=5"
19543 flags_opt_yes="-O2"
19544 flags_opt_off="-qnooptimize"
19545 flags_prefer_cppflags="yes"
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19548 $as_echo "no" >&6; }
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
19553 $as_echo_n "checking if compiler is Intel C... " >&6; }
19555 if test -z "$SED"; then
19556 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19558 if test -z "$GREP"; then
19559 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19567 #ifdef __INTEL_COMPILER
19568 CURL_DEF_TOKEN __INTEL_COMPILER
19573 if ac_fn_c_try_cpp "$LINENO"; then :
19575 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19576 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19577 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19578 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19579 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
19584 rm -f conftest.err conftest.i conftest.$ac_ext
19585 if test -z "$tmp_exp"; then
19586 curl_cv_have_def___INTEL_COMPILER=no
19589 curl_cv_have_def___INTEL_COMPILER=yes
19590 curl_cv_def___INTEL_COMPILER=$tmp_exp
19594 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19596 $as_echo "yes" >&6; }
19597 compiler_num="$curl_cv_def___INTEL_COMPILER"
19599 if test -z "$SED"; then
19600 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19602 if test -z "$GREP"; then
19603 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19612 CURL_DEF_TOKEN __unix__
19617 if ac_fn_c_try_cpp "$LINENO"; then :
19619 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19620 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19621 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19622 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19623 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
19628 rm -f conftest.err conftest.i conftest.$ac_ext
19629 if test -z "$tmp_exp"; then
19630 curl_cv_have_def___unix__=no
19633 curl_cv_have_def___unix__=yes
19634 curl_cv_def___unix__=$tmp_exp
19638 if test "$curl_cv_have_def___unix__" = "yes"; then
19639 compiler_id="INTEL_UNIX_C"
19640 flags_dbg_all="-g -g0"
19642 flags_dbg_off="-g0"
19643 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19644 flags_opt_yes="-O2"
19645 flags_opt_off="-O0"
19647 compiler_id="INTEL_WINDOWS_C"
19648 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
19649 flags_dbg_all="$flags_dbg_all /debug"
19650 flags_dbg_all="$flags_dbg_all /debug:none"
19651 flags_dbg_all="$flags_dbg_all /debug:minimal"
19652 flags_dbg_all="$flags_dbg_all /debug:partial"
19653 flags_dbg_all="$flags_dbg_all /debug:full"
19654 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
19655 flags_dbg_all="$flags_dbg_all /debug:extended"
19656 flags_dbg_yes="/Zi /Oy-"
19657 flags_dbg_off="/debug:none /Oy-"
19658 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
19659 flags_opt_yes="/O2"
19660 flags_opt_off="/Od"
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664 $as_echo "no" >&6; }
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
19669 $as_echo_n "checking if compiler is clang... " >&6; }
19671 if test -z "$SED"; then
19672 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19674 if test -z "$GREP"; then
19675 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19684 CURL_DEF_TOKEN __clang__
19689 if ac_fn_c_try_cpp "$LINENO"; then :
19691 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19692 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19693 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19694 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19695 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
19700 rm -f conftest.err conftest.i conftest.$ac_ext
19701 if test -z "$tmp_exp"; then
19702 curl_cv_have_def___clang__=no
19705 curl_cv_have_def___clang__=yes
19706 curl_cv_def___clang__=$tmp_exp
19710 if test "$curl_cv_have_def___clang__" = "yes"; then
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19712 $as_echo "yes" >&6; }
19713 compiler_id="CLANG"
19714 clangver=`$CC -dumpversion`
19715 clangvhi=`echo $clangver | cut -d . -f1`
19716 clangvlo=`echo $clangver | cut -d . -f2`
19717 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
19718 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19719 flags_dbg_all="$flags_dbg_all -ggdb"
19720 flags_dbg_all="$flags_dbg_all -gstabs"
19721 flags_dbg_all="$flags_dbg_all -gstabs+"
19722 flags_dbg_all="$flags_dbg_all -gcoff"
19723 flags_dbg_all="$flags_dbg_all -gxcoff"
19724 flags_dbg_all="$flags_dbg_all -gdwarf-2"
19725 flags_dbg_all="$flags_dbg_all -gvms"
19727 flags_dbg_off="-g0"
19728 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
19729 flags_opt_yes="-Os"
19730 flags_opt_off="-O0"
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19733 $as_echo "no" >&6; }
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
19738 $as_echo_n "checking if compiler is GNU C... " >&6; }
19740 if test -z "$SED"; then
19741 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19743 if test -z "$GREP"; then
19744 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749 /* end confdefs.h. */
19753 CURL_DEF_TOKEN __GNUC__
19758 if ac_fn_c_try_cpp "$LINENO"; then :
19760 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19761 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19762 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19763 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19764 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19769 rm -f conftest.err conftest.i conftest.$ac_ext
19770 if test -z "$tmp_exp"; then
19771 curl_cv_have_def___GNUC__=no
19774 curl_cv_have_def___GNUC__=yes
19775 curl_cv_def___GNUC__=$tmp_exp
19779 if test "$curl_cv_have_def___GNUC__" = "yes" &&
19780 test "$compiler_id" = "unknown"; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19782 $as_echo "yes" >&6; }
19783 compiler_id="GNU_C"
19784 gccver=`$CC -dumpversion`
19785 gccvhi=`echo $gccver | cut -d . -f1`
19786 gccvlo=`echo $gccver | cut -d . -f2`
19787 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
19788 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19789 flags_dbg_all="$flags_dbg_all -ggdb"
19790 flags_dbg_all="$flags_dbg_all -gstabs"
19791 flags_dbg_all="$flags_dbg_all -gstabs+"
19792 flags_dbg_all="$flags_dbg_all -gcoff"
19793 flags_dbg_all="$flags_dbg_all -gxcoff"
19794 flags_dbg_all="$flags_dbg_all -gdwarf-2"
19795 flags_dbg_all="$flags_dbg_all -gvms"
19797 flags_dbg_off="-g0"
19798 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19799 flags_opt_yes="-O2"
19800 flags_opt_off="-O0"
19802 if test -z "$SED"; then
19803 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19805 if test -z "$GREP"; then
19806 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19815 CURL_DEF_TOKEN _WIN32
19820 if ac_fn_c_try_cpp "$LINENO"; then :
19822 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19823 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19824 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19825 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19826 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
19831 rm -f conftest.err conftest.i conftest.$ac_ext
19832 if test -z "$tmp_exp"; then
19833 curl_cv_have_def__WIN32=no
19836 curl_cv_have_def__WIN32=yes
19837 curl_cv_def__WIN32=$tmp_exp
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843 $as_echo "no" >&6; }
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
19848 $as_echo_n "checking if compiler is LCC... " >&6; }
19850 if test -z "$SED"; then
19851 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19853 if test -z "$GREP"; then
19854 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19863 CURL_DEF_TOKEN __LCC__
19868 if ac_fn_c_try_cpp "$LINENO"; then :
19870 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19871 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19872 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19873 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19874 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
19879 rm -f conftest.err conftest.i conftest.$ac_ext
19880 if test -z "$tmp_exp"; then
19881 curl_cv_have_def___LCC__=no
19884 curl_cv_have_def___LCC__=yes
19885 curl_cv_def___LCC__=$tmp_exp
19889 if test "$curl_cv_have_def___LCC__" = "yes"; then
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19891 $as_echo "yes" >&6; }
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901 $as_echo "no" >&6; }
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
19906 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
19908 if test -z "$SED"; then
19909 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19911 if test -z "$GREP"; then
19912 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h. */
19921 CURL_DEF_TOKEN __GNUC__
19926 if ac_fn_c_try_cpp "$LINENO"; then :
19928 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19929 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19930 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19931 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19932 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19937 rm -f conftest.err conftest.i conftest.$ac_ext
19938 if test -z "$tmp_exp"; then
19939 curl_cv_have_def___GNUC__=no
19942 curl_cv_have_def___GNUC__=yes
19943 curl_cv_def___GNUC__=$tmp_exp
19948 if test -z "$SED"; then
19949 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19951 if test -z "$GREP"; then
19952 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h. */
19960 #ifdef _COMPILER_VERSION
19961 CURL_DEF_TOKEN _COMPILER_VERSION
19966 if ac_fn_c_try_cpp "$LINENO"; then :
19968 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19969 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19970 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19971 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19972 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
19977 rm -f conftest.err conftest.i conftest.$ac_ext
19978 if test -z "$tmp_exp"; then
19979 curl_cv_have_def__COMPILER_VERSION=no
19982 curl_cv_have_def__COMPILER_VERSION=yes
19983 curl_cv_def__COMPILER_VERSION=$tmp_exp
19988 if test -z "$SED"; then
19989 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19991 if test -z "$GREP"; then
19992 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
20000 #ifdef _SGI_COMPILER_VERSION
20001 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
20006 if ac_fn_c_try_cpp "$LINENO"; then :
20008 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20009 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20010 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20011 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20012 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
20017 rm -f conftest.err conftest.i conftest.$ac_ext
20018 if test -z "$tmp_exp"; then
20019 curl_cv_have_def__SGI_COMPILER_VERSION=no
20022 curl_cv_have_def__SGI_COMPILER_VERSION=yes
20023 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
20027 if test "$curl_cv_have_def___GNUC__" = "no" &&
20028 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
20029 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20031 $as_echo "yes" >&6; }
20032 compiler_id="SGI_MIPSPRO_C"
20033 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20035 flags_dbg_off="-g0"
20036 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20037 flags_opt_yes="-O2"
20038 flags_opt_off="-O0"
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20041 $as_echo "no" >&6; }
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
20046 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
20048 if test -z "$SED"; then
20049 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20051 if test -z "$GREP"; then
20052 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20061 CURL_DEF_TOKEN __GNUC__
20066 if ac_fn_c_try_cpp "$LINENO"; then :
20068 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20069 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20070 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20071 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20072 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
20077 rm -f conftest.err conftest.i conftest.$ac_ext
20078 if test -z "$tmp_exp"; then
20079 curl_cv_have_def___GNUC__=no
20082 curl_cv_have_def___GNUC__=yes
20083 curl_cv_def___GNUC__=$tmp_exp
20088 if test -z "$SED"; then
20089 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20091 if test -z "$GREP"; then
20092 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20101 CURL_DEF_TOKEN __sgi
20106 if ac_fn_c_try_cpp "$LINENO"; then :
20108 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20109 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20110 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20111 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20112 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
20117 rm -f conftest.err conftest.i conftest.$ac_ext
20118 if test -z "$tmp_exp"; then
20119 curl_cv_have_def___sgi=no
20122 curl_cv_have_def___sgi=yes
20123 curl_cv_def___sgi=$tmp_exp
20127 if test "$curl_cv_have_def___GNUC__" = "no" &&
20128 test "$curl_cv_have_def___sgi" = "yes" &&
20129 test "$compiler_id" = "unknown"; then
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20131 $as_echo "yes" >&6; }
20132 compiler_id="SGI_MIPS_C"
20133 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20135 flags_dbg_off="-g0"
20136 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20137 flags_opt_yes="-O2"
20138 flags_opt_off="-O0"
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20141 $as_echo "no" >&6; }
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
20146 $as_echo_n "checking if compiler is SunPro C... " >&6; }
20148 if test -z "$SED"; then
20149 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20151 if test -z "$GREP"; then
20152 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20161 CURL_DEF_TOKEN __SUNPRO_C
20166 if ac_fn_c_try_cpp "$LINENO"; then :
20168 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20169 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20170 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20171 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20172 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
20177 rm -f conftest.err conftest.i conftest.$ac_ext
20178 if test -z "$tmp_exp"; then
20179 curl_cv_have_def___SUNPRO_C=no
20182 curl_cv_have_def___SUNPRO_C=yes
20183 curl_cv_def___SUNPRO_C=$tmp_exp
20187 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20189 $as_echo "yes" >&6; }
20190 compiler_id="SUNPRO_C"
20191 flags_dbg_all="-g -s"
20194 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
20195 flags_opt_yes="-xO2"
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
20204 $as_echo_n "checking if compiler is Tiny C... " >&6; }
20206 if test -z "$SED"; then
20207 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20209 if test -z "$GREP"; then
20210 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h. */
20219 CURL_DEF_TOKEN __TINYC__
20224 if ac_fn_c_try_cpp "$LINENO"; then :
20226 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20227 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20228 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20229 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20230 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
20235 rm -f conftest.err conftest.i conftest.$ac_ext
20236 if test -z "$tmp_exp"; then
20237 curl_cv_have_def___TINYC__=no
20240 curl_cv_have_def___TINYC__=yes
20241 curl_cv_def___TINYC__=$tmp_exp
20245 if test "$curl_cv_have_def___TINYC__" = "yes"; then
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20247 $as_echo "yes" >&6; }
20248 compiler_id="TINY_C"
20249 flags_dbg_all="-g -b"
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20257 $as_echo "no" >&6; }
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
20262 $as_echo_n "checking if compiler is Watcom C... " >&6; }
20264 if test -z "$SED"; then
20265 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20267 if test -z "$GREP"; then
20268 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h. */
20277 CURL_DEF_TOKEN __WATCOMC__
20282 if ac_fn_c_try_cpp "$LINENO"; then :
20284 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20285 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20286 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20287 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20288 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
20293 rm -f conftest.err conftest.i conftest.$ac_ext
20294 if test -z "$tmp_exp"; then
20295 curl_cv_have_def___WATCOMC__=no
20298 curl_cv_have_def___WATCOMC__=yes
20299 curl_cv_def___WATCOMC__=$tmp_exp
20303 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20305 $as_echo "yes" >&6; }
20307 if test -z "$SED"; then
20308 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20310 if test -z "$GREP"; then
20311 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20320 CURL_DEF_TOKEN __UNIX__
20325 if ac_fn_c_try_cpp "$LINENO"; then :
20327 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20328 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20329 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20330 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20331 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
20336 rm -f conftest.err conftest.i conftest.$ac_ext
20337 if test -z "$tmp_exp"; then
20338 curl_cv_have_def___UNIX__=no
20341 curl_cv_have_def___UNIX__=yes
20342 curl_cv_def___UNIX__=$tmp_exp
20346 if test "$curl_cv_have_def___UNIX__" = "yes"; then
20347 compiler_id="WATCOM_UNIX_C"
20348 flags_dbg_all="-g1 -g1+ -g2 -g3"
20349 flags_dbg_yes="-g2"
20351 flags_opt_all="-O0 -O1 -O2 -O3"
20352 flags_opt_yes="-O2"
20353 flags_opt_off="-O0"
20355 compiler_id="WATCOM_WINDOWS_C"
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20365 $as_echo "no" >&6; }
20369 if test "$compiler_id" = "unknown"; then
20372 *** Warning: This configure script does not have information about the
20373 *** compiler you are using, relative to the flags required to enable or
20374 *** disable generation of debug info, optimization options or warnings.
20376 *** Whatever settings are present in CFLAGS will be used for this run.
20378 *** If you wish to help the c-ares project to better support your compiler
20379 *** you can report this and the required info on the c-ares development
20380 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
20388 eval _sqz_input=\$$1
20389 for _sqz_token in $_sqz_input; do
20390 if test -z "$_sqz_result"; then
20391 _sqz_result="$_sqz_token"
20393 _sqz_result="$_sqz_result $_sqz_token"
20396 eval $1=\$_sqz_result
20402 if test "$compiler_id" != "unknown"; then
20404 if test "$compiler_id" = "GNU_C" ||
20405 test "$compiler_id" = "CLANG"; then
20407 if test "$compiler_id" = "GNU_C" ||
20408 test "$compiler_id" = "CLANG"; then
20409 tmp_has_include="no"
20410 tmp_chg_FLAGS="$CFLAGS"
20411 for word1 in $tmp_chg_FLAGS; do
20414 tmp_has_include="yes"
20418 if test "$tmp_has_include" = "yes"; then
20419 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20420 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20421 CFLAGS="$tmp_chg_FLAGS"
20424 tmp_has_include="no"
20425 tmp_chg_FLAGS="$CPPFLAGS"
20426 for word1 in $tmp_chg_FLAGS; do
20429 tmp_has_include="yes"
20433 if test "$tmp_has_include" = "yes"; then
20434 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20435 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20436 CPPFLAGS="$tmp_chg_FLAGS"
20443 tmp_save_CPPFLAGS="$CPPFLAGS"
20444 tmp_save_CFLAGS="$CFLAGS"
20448 case "$compiler_id" in
20452 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
20457 tmp_CFLAGS="$tmp_CFLAGS -std1"
20458 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
20459 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
20460 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
20465 tmp_CFLAGS="$tmp_CFLAGS"
20470 tmp_CFLAGS="$tmp_CFLAGS -z"
20471 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
20476 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
20477 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
20478 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
20483 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
20484 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
20485 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
20490 tmp_CFLAGS="$tmp_CFLAGS"
20495 tmp_CFLAGS="$tmp_CFLAGS -n"
20500 tmp_CFLAGS="$tmp_CFLAGS"
20505 tmp_CFLAGS="$tmp_CFLAGS"
20510 tmp_CFLAGS="$tmp_CFLAGS"
20515 tmp_CFLAGS="$tmp_CFLAGS"
20520 tmp_CFLAGS="$tmp_CFLAGS"
20525 tmp_CFLAGS="$tmp_CFLAGS"
20530 squeeze tmp_CPPFLAGS
20533 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
20535 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
20536 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20537 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20541 tmp_compiler_works="unknown"
20542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h. */
20558 if ac_fn_c_try_compile "$LINENO"; then :
20560 tmp_compiler_works="yes"
20564 tmp_compiler_works="no"
20566 sed 's/^/cc-fail: /' conftest.err >&6
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 if test "$tmp_compiler_works" = "yes"; then
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20588 if ac_fn_c_try_link "$LINENO"; then :
20590 tmp_compiler_works="yes"
20594 tmp_compiler_works="no"
20596 sed 's/^/link-fail: /' conftest.err >&6
20600 rm -f core conftest.err conftest.$ac_objext \
20601 conftest$ac_exeext conftest.$ac_ext
20603 if test "x$cross_compiling" != "xyes" &&
20604 test "$tmp_compiler_works" = "yes"; then
20605 if test "$cross_compiling" = yes; then :
20606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20608 as_fn_error $? "cannot run test program while cross compiling
20609 See \`config.log' for more details" "$LINENO" 5; }
20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20616 # include <stdlib.h>
20630 if ac_fn_c_try_run "$LINENO"; then :
20632 tmp_compiler_works="yes"
20636 tmp_compiler_works="no"
20638 echo "run-fail: test program exited with status $ac_status" >&6
20642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20643 conftest.$ac_objext conftest.beam conftest.$ac_ext
20647 if test "$tmp_compiler_works" = "yes"; then
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20650 $as_echo "yes" >&6; }
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20652 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20657 $as_echo "no" >&6; }
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20659 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20660 CPPFLAGS="$tmp_save_CPPFLAGS"
20661 CFLAGS="$tmp_save_CFLAGS"
20671 if test "$compiler_id" != "unknown"; then
20673 tmp_save_CFLAGS="$CFLAGS"
20674 tmp_save_CPPFLAGS="$CPPFLAGS"
20677 tmp_CFLAGS="$CFLAGS"
20678 tmp_CPPFLAGS="$CPPFLAGS"
20681 for word1 in $tmp_CFLAGS; do
20682 ac_var_strip_word="no"
20683 for word2 in $flags_dbg_all; do
20684 if test "$word1" = "$word2"; then
20685 ac_var_strip_word="yes"
20688 if test "$ac_var_strip_word" = "no"; then
20689 ac_var_stripped="$ac_var_stripped $word1"
20692 tmp_CFLAGS="$ac_var_stripped"
20697 for word1 in $tmp_CPPFLAGS; do
20698 ac_var_strip_word="no"
20699 for word2 in $flags_dbg_all; do
20700 if test "$word1" = "$word2"; then
20701 ac_var_strip_word="yes"
20704 if test "$ac_var_strip_word" = "no"; then
20705 ac_var_stripped="$ac_var_stripped $word1"
20708 tmp_CPPFLAGS="$ac_var_stripped"
20709 squeeze tmp_CPPFLAGS
20712 if test "$want_debug" = "yes"; then
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
20714 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
20715 tmp_options="$flags_dbg_yes"
20717 if test "$want_debug" = "no"; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
20719 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
20720 tmp_options="$flags_dbg_off"
20723 if test "$flags_prefer_cppflags" = "yes"; then
20724 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20725 CFLAGS="$tmp_CFLAGS"
20727 CPPFLAGS="$tmp_CPPFLAGS"
20728 CFLAGS="$tmp_CFLAGS $tmp_options"
20733 tmp_compiler_works="unknown"
20734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20735 /* end confdefs.h. */
20750 if ac_fn_c_try_compile "$LINENO"; then :
20752 tmp_compiler_works="yes"
20756 tmp_compiler_works="no"
20758 sed 's/^/cc-fail: /' conftest.err >&6
20762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763 if test "$tmp_compiler_works" = "yes"; then
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20780 if ac_fn_c_try_link "$LINENO"; then :
20782 tmp_compiler_works="yes"
20786 tmp_compiler_works="no"
20788 sed 's/^/link-fail: /' conftest.err >&6
20792 rm -f core conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext conftest.$ac_ext
20795 if test "x$cross_compiling" != "xyes" &&
20796 test "$tmp_compiler_works" = "yes"; then
20797 if test "$cross_compiling" = yes; then :
20798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20800 as_fn_error $? "cannot run test program while cross compiling
20801 See \`config.log' for more details" "$LINENO" 5; }
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20808 # include <stdlib.h>
20822 if ac_fn_c_try_run "$LINENO"; then :
20824 tmp_compiler_works="yes"
20828 tmp_compiler_works="no"
20830 echo "run-fail: test program exited with status $ac_status" >&6
20834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20835 conftest.$ac_objext conftest.beam conftest.$ac_ext
20839 if test "$tmp_compiler_works" = "yes"; then
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20842 $as_echo "yes" >&6; }
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
20844 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20849 $as_echo "no" >&6; }
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
20851 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
20852 CPPFLAGS="$tmp_save_CPPFLAGS"
20853 CFLAGS="$tmp_save_CFLAGS"
20862 if test "$compiler_id" != "unknown"; then
20864 tmp_save_CFLAGS="$CFLAGS"
20865 tmp_save_CPPFLAGS="$CPPFLAGS"
20868 tmp_CFLAGS="$CFLAGS"
20869 tmp_CPPFLAGS="$CPPFLAGS"
20870 honor_optimize_option="yes"
20873 if test "$want_optimize" = "assume_no" ||
20874 test "$want_optimize" = "assume_yes"; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
20876 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
20879 ac_var_match_word="no"
20880 for word1 in $tmp_CFLAGS; do
20881 for word2 in $flags_opt_all; do
20882 if test "$word1" = "$word2"; then
20883 ac_var_match_word="yes"
20888 if test "$ac_var_match_word" = "yes"; then
20890 honor_optimize_option="no"
20897 ac_var_match_word="no"
20898 for word1 in $tmp_CPPFLAGS; do
20899 for word2 in $flags_opt_all; do
20900 if test "$word1" = "$word2"; then
20901 ac_var_match_word="yes"
20906 if test "$ac_var_match_word" = "yes"; then
20908 honor_optimize_option="no"
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
20914 $as_echo "$honor_optimize_option" >&6; }
20915 if test "$honor_optimize_option" = "yes"; then
20916 if test "$want_optimize" = "assume_yes"; then
20917 want_optimize="yes"
20919 if test "$want_optimize" = "assume_no"; then
20925 if test "$honor_optimize_option" = "yes"; then
20928 for word1 in $tmp_CFLAGS; do
20929 ac_var_strip_word="no"
20930 for word2 in $flags_opt_all; do
20931 if test "$word1" = "$word2"; then
20932 ac_var_strip_word="yes"
20935 if test "$ac_var_strip_word" = "no"; then
20936 ac_var_stripped="$ac_var_stripped $word1"
20939 tmp_CFLAGS="$ac_var_stripped"
20944 for word1 in $tmp_CPPFLAGS; do
20945 ac_var_strip_word="no"
20946 for word2 in $flags_opt_all; do
20947 if test "$word1" = "$word2"; then
20948 ac_var_strip_word="yes"
20951 if test "$ac_var_strip_word" = "no"; then
20952 ac_var_stripped="$ac_var_stripped $word1"
20955 tmp_CPPFLAGS="$ac_var_stripped"
20956 squeeze tmp_CPPFLAGS
20958 if test "$want_optimize" = "yes"; then
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
20960 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
20961 tmp_options="$flags_opt_yes"
20963 if test "$want_optimize" = "no"; then
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
20965 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
20966 tmp_options="$flags_opt_off"
20968 if test "$flags_prefer_cppflags" = "yes"; then
20969 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20970 CFLAGS="$tmp_CFLAGS"
20972 CPPFLAGS="$tmp_CPPFLAGS"
20973 CFLAGS="$tmp_CFLAGS $tmp_options"
20978 tmp_compiler_works="unknown"
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20995 if ac_fn_c_try_compile "$LINENO"; then :
20997 tmp_compiler_works="yes"
21001 tmp_compiler_works="no"
21003 sed 's/^/cc-fail: /' conftest.err >&6
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 if test "$tmp_compiler_works" = "yes"; then
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21025 if ac_fn_c_try_link "$LINENO"; then :
21027 tmp_compiler_works="yes"
21031 tmp_compiler_works="no"
21033 sed 's/^/link-fail: /' conftest.err >&6
21037 rm -f core conftest.err conftest.$ac_objext \
21038 conftest$ac_exeext conftest.$ac_ext
21040 if test "x$cross_compiling" != "xyes" &&
21041 test "$tmp_compiler_works" = "yes"; then
21042 if test "$cross_compiling" = yes; then :
21043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21045 as_fn_error $? "cannot run test program while cross compiling
21046 See \`config.log' for more details" "$LINENO" 5; }
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21053 # include <stdlib.h>
21067 if ac_fn_c_try_run "$LINENO"; then :
21069 tmp_compiler_works="yes"
21073 tmp_compiler_works="no"
21075 echo "run-fail: test program exited with status $ac_status" >&6
21079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21080 conftest.$ac_objext conftest.beam conftest.$ac_ext
21084 if test "$tmp_compiler_works" = "yes"; then
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21087 $as_echo "yes" >&6; }
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
21089 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21094 $as_echo "no" >&6; }
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
21096 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
21097 CPPFLAGS="$tmp_save_CPPFLAGS"
21098 CFLAGS="$tmp_save_CFLAGS"
21108 if test "$compiler_id" != "unknown"; then
21110 tmp_save_CPPFLAGS="$CPPFLAGS"
21111 tmp_save_CFLAGS="$CFLAGS"
21115 case "$compiler_id" in
21119 if test "$want_warnings" = "yes"; then
21120 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21121 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21122 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21123 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
21124 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21125 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21126 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21127 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21128 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21129 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21130 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21131 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21132 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21133 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21134 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21135 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21136 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
21138 if test "$compiler_num" -ge "101"; then
21139 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
21146 if test "$want_warnings" = "yes"; then
21147 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
21153 if test "$want_warnings" = "yes"; then
21155 if test "x$cross_compiling" != "xyes" ||
21156 test "$compiler_num" -ge "300"; then
21157 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21160 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
21162 if test "$compiler_num" -ge "104"; then
21163 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21164 if test "x$cross_compiling" != "xyes" ||
21165 test "$compiler_num" -ge "300"; then
21166 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
21170 if test "$compiler_num" -ge "207"; then
21171 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21172 if test "x$cross_compiling" != "xyes" ||
21173 test "$compiler_num" -ge "300"; then
21174 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21175 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21179 if test "$compiler_num" -ge "295"; then
21180 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21183 if test "$compiler_num" -ge "296"; then
21184 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21185 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21186 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21189 if test "$compiler_num" -ge "297"; then
21190 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21193 if test "$compiler_num" -ge "300"; then
21194 tmp_CFLAGS="$tmp_CFLAGS"
21197 if test "$compiler_num" -ge "303"; then
21198 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21201 if test "$compiler_num" -ge "304"; then
21202 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21205 if test "$compiler_num" -ge "400"; then
21206 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
21209 if test "$compiler_num" -ge "402"; then
21210 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21213 if test "$compiler_num" -ge "403"; then
21214 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
21215 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
21216 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
21217 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
21220 if test "$compiler_num" -ge "405"; then
21221 if test "$curl_cv_have_def__WIN32" = "yes"; then
21222 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
21228 if test "$compiler_num" -ge "300"; then
21229 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21231 if test "x$cross_compiling" = "xyes"; then
21232 if test "$compiler_num" -ge "104"; then
21233 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
21235 if test "$compiler_num" -ge "207"; then
21236 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
21237 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
21245 if test "$want_warnings" = "yes"; then
21246 tmp_CFLAGS="$tmp_CFLAGS +w1"
21252 tmp_CFLAGS="$tmp_CFLAGS"
21257 if test "$want_warnings" = "yes"; then
21258 if test "$compiler_num" -gt "600"; then
21259 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
21260 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
21261 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
21262 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
21263 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
21264 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
21265 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
21266 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
21267 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
21268 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
21269 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
21272 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
21273 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
21274 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
21275 if test "$compiler_num" -ge "1000"; then
21276 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
21282 tmp_CFLAGS="$tmp_CFLAGS"
21287 if test "$want_warnings" = "yes"; then
21288 tmp_CFLAGS="$tmp_CFLAGS"
21294 if test "$want_warnings" = "yes"; then
21295 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21301 if test "$want_warnings" = "yes"; then
21302 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21303 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
21309 if test "$want_warnings" = "yes"; then
21310 tmp_CFLAGS="$tmp_CFLAGS -v"
21316 if test "$want_warnings" = "yes"; then
21317 tmp_CFLAGS="$tmp_CFLAGS -Wall"
21318 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
21319 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
21325 if test "$want_warnings" = "yes"; then
21326 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21332 tmp_CFLAGS="$tmp_CFLAGS"
21337 squeeze tmp_CPPFLAGS
21340 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
21342 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
21343 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21344 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21348 tmp_compiler_works="unknown"
21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350 /* end confdefs.h. */
21365 if ac_fn_c_try_compile "$LINENO"; then :
21367 tmp_compiler_works="yes"
21371 tmp_compiler_works="no"
21373 sed 's/^/cc-fail: /' conftest.err >&6
21377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378 if test "$tmp_compiler_works" = "yes"; then
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21395 if ac_fn_c_try_link "$LINENO"; then :
21397 tmp_compiler_works="yes"
21401 tmp_compiler_works="no"
21403 sed 's/^/link-fail: /' conftest.err >&6
21407 rm -f core conftest.err conftest.$ac_objext \
21408 conftest$ac_exeext conftest.$ac_ext
21410 if test "x$cross_compiling" != "xyes" &&
21411 test "$tmp_compiler_works" = "yes"; then
21412 if test "$cross_compiling" = yes; then :
21413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21415 as_fn_error $? "cannot run test program while cross compiling
21416 See \`config.log' for more details" "$LINENO" 5; }
21418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21423 # include <stdlib.h>
21437 if ac_fn_c_try_run "$LINENO"; then :
21439 tmp_compiler_works="yes"
21443 tmp_compiler_works="no"
21445 echo "run-fail: test program exited with status $ac_status" >&6
21449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21450 conftest.$ac_objext conftest.beam conftest.$ac_ext
21454 if test "$tmp_compiler_works" = "yes"; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21457 $as_echo "yes" >&6; }
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21459 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21464 $as_echo "no" >&6; }
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21466 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21467 CPPFLAGS="$tmp_save_CPPFLAGS"
21468 CFLAGS="$tmp_save_CFLAGS"
21477 if test "$compiler_id" = "INTEL_UNIX_C"; then
21479 if test "$compiler_num" -ge "1000"; then
21480 CFLAGS="$CFLAGS -shared-intel"
21481 elif test "$compiler_num" -ge "900"; then
21482 CFLAGS="$CFLAGS -i-dynamic"
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21489 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h. */
21498 force compilation error
21505 if ac_fn_c_try_compile "$LINENO"; then :
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21508 $as_echo "no" >&6; }
21509 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21514 $as_echo "yes" >&6; }
21517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21521 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21526 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21538 if ac_fn_c_try_compile "$LINENO"; then :
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21541 $as_echo "no" >&6; }
21542 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21547 $as_echo "yes" >&6; }
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21554 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
21555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21556 /* end confdefs.h. */
21559 # include <stdlib.h>
21573 int j = rand(i[0]);
21582 if ac_fn_c_try_compile "$LINENO"; then :
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21585 $as_echo "no" >&6; }
21586 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21591 $as_echo "yes" >&6; }
21594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21598 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
21599 supports_symbol_hiding="no"
21600 symbol_hiding_CFLAGS=""
21601 symbol_hiding_EXTERN=""
21604 case "$compiler_id" in
21606 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21607 tmp_CFLAGS="-fvisibility=hidden"
21608 supports_symbol_hiding="yes"
21611 if test "$compiler_num" -ge "304"; then
21612 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21613 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21614 tmp_CFLAGS="-fvisibility=hidden"
21615 supports_symbol_hiding="yes"
21620 if test "$compiler_num" -ge "900"; then
21621 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21622 tmp_save_CFLAGS="$CFLAGS"
21623 CFLAGS="$CFLAGS -fvisibility=hidden"
21624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21625 /* end confdefs.h. */
21628 # include <stdio.h>
21633 printf("icc fvisibility bug test");
21640 if ac_fn_c_try_link "$LINENO"; then :
21642 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21643 tmp_CFLAGS="-fvisibility=hidden"
21644 supports_symbol_hiding="yes"
21647 rm -f core conftest.err conftest.$ac_objext \
21648 conftest$ac_exeext conftest.$ac_ext
21649 CFLAGS="$tmp_save_CFLAGS"
21654 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21655 tmp_EXTERN="__global"
21656 tmp_CFLAGS="-xldscope=hidden"
21657 supports_symbol_hiding="yes"
21661 if test "$supports_symbol_hiding" = "yes"; then
21662 tmp_save_CFLAGS="$CFLAGS"
21663 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666 /* end confdefs.h. */
21669 $tmp_EXTERN char *dummy(char *buff);
21670 char *dummy(char *buff)
21682 char *r = dummy(&b[0]);
21691 if ac_fn_c_try_compile "$LINENO"; then :
21693 supports_symbol_hiding="yes"
21694 if test -f conftest.err; then
21695 grep 'visibility' conftest.err >/dev/null
21696 if test "$?" -eq "0"; then
21697 supports_symbol_hiding="no"
21703 supports_symbol_hiding="no"
21705 sed 's/^/cc-src: /' conftest.$ac_ext >&6
21706 sed 's/^/cc-err: /' conftest.err >&6
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21711 CFLAGS="$tmp_save_CFLAGS"
21713 if test "$supports_symbol_hiding" = "yes"; then
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21715 $as_echo "yes" >&6; }
21716 symbol_hiding_CFLAGS="$tmp_CFLAGS"
21717 symbol_hiding_EXTERN="$tmp_EXTERN"
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21720 $as_echo "no" >&6; }
21725 cares_builddir=`pwd`
21726 supports_curldebug="unknown"
21727 if test "$want_curldebug" = "yes"; then
21728 if test "x$enable_shared" != "xno" &&
21729 test "x$enable_shared" != "xyes"; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21731 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
21732 supports_curldebug="no"
21734 if test "x$enable_static" != "xno" &&
21735 test "x$enable_static" != "xyes"; then
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21737 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
21738 supports_curldebug="no"
21740 if test "$supports_curldebug" != "no"; then
21741 if test "$enable_shared" = "yes" &&
21742 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21743 supports_curldebug="no"
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21745 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21747 if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
21749 $as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
21750 supports_curldebug="no"
21751 elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
21753 $as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
21754 supports_curldebug="no"
21755 elif test ! -f "$cares_builddir/../libcurl.pc" ||
21756 test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
21758 $as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
21759 supports_curldebug="no"
21760 elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
21762 $as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
21763 supports_curldebug="no"
21764 elif test ! -f "$cares_builddir/../config.status"; then
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
21766 $as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
21767 supports_curldebug="no"
21769 if test "$supports_curldebug" != "no"; then
21770 grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
21771 if test "$?" -ne "0"; then
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
21773 $as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
21774 supports_curldebug="no"
21777 if test "$supports_curldebug" != "no"; then
21778 grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
21779 if test "$?" -ne "0"; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
21781 $as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
21782 supports_curldebug="no"
21788 if test "$want_curldebug" = "yes"; then
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21790 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
21791 test "$supports_curldebug" = "no" || supports_curldebug="yes"
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21793 $as_echo "$supports_curldebug" >&6; }
21794 if test "$supports_curldebug" = "no"; then
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21796 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21797 want_curldebug="no"
21801 if test "$want_curldebug" = "yes"; then
21803 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
21805 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
21809 if test "$want_debug" = "yes"; then
21810 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
21814 if test x$want_curldebug = xyes; then
21816 CURLDEBUG_FALSE='#'
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21827 $as_echo_n "checking for windows.h... " >&6; }
21828 if ${ac_cv_header_windows_h+:} false; then :
21829 $as_echo_n "(cached) " >&6
21832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21833 /* end confdefs.h. */
21837 #ifndef WIN32_LEAN_AND_MEAN
21838 #define WIN32_LEAN_AND_MEAN
21840 #include <windows.h>
21845 #if defined(__CYGWIN__) || defined(__CEGCC__)
21846 HAVE_WINDOWS_H shall not be defined.
21848 int dummy=2*WINVER;
21856 if ac_fn_c_try_compile "$LINENO"; then :
21858 ac_cv_header_windows_h="yes"
21862 ac_cv_header_windows_h="no"
21865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
21869 $as_echo "$ac_cv_header_windows_h" >&6; }
21870 case "$ac_cv_header_windows_h" in
21873 cat >>confdefs.h <<_ACEOF
21874 #define HAVE_WINDOWS_H 1
21878 cat >>confdefs.h <<_ACEOF
21879 #define WIN32_LEAN_AND_MEAN 1
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21887 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
21888 if ${ac_cv_native_windows+:} false; then :
21889 $as_echo_n "(cached) " >&6
21892 if test "$ac_cv_header_windows_h" = "no"; then
21893 ac_cv_native_windows="no"
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h. */
21903 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21904 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21907 Not a native Windows build target.
21915 if ac_fn_c_try_compile "$LINENO"; then :
21917 ac_cv_native_windows="yes"
21921 ac_cv_native_windows="no"
21924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
21929 $as_echo "$ac_cv_native_windows" >&6; }
21930 if test "x$ac_cv_native_windows" = xyes; then
21931 DOING_NATIVE_WINDOWS_TRUE=
21932 DOING_NATIVE_WINDOWS_FALSE='#'
21934 DOING_NATIVE_WINDOWS_TRUE='#'
21935 DOING_NATIVE_WINDOWS_FALSE=
21939 case X-"$ac_cv_native_windows" in
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
21943 $as_echo_n "checking for winsock.h... " >&6; }
21944 if ${ac_cv_header_winsock_h+:} false; then :
21945 $as_echo_n "(cached) " >&6
21948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21949 /* end confdefs.h. */
21953 #ifndef WIN32_LEAN_AND_MEAN
21954 #define WIN32_LEAN_AND_MEAN
21956 #include <windows.h>
21957 #include <winsock.h>
21962 #if defined(__CYGWIN__) || defined(__CEGCC__)
21963 HAVE_WINSOCK_H shall not be defined.
21965 int dummy=WSACleanup();
21973 if ac_fn_c_try_compile "$LINENO"; then :
21975 ac_cv_header_winsock_h="yes"
21979 ac_cv_header_winsock_h="no"
21982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
21986 $as_echo "$ac_cv_header_winsock_h" >&6; }
21987 case "$ac_cv_header_winsock_h" in
21990 cat >>confdefs.h <<_ACEOF
21991 #define HAVE_WINSOCK_H 1
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21999 $as_echo_n "checking for winsock2.h... " >&6; }
22000 if ${ac_cv_header_winsock2_h+:} false; then :
22001 $as_echo_n "(cached) " >&6
22004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h. */
22009 #ifndef WIN32_LEAN_AND_MEAN
22010 #define WIN32_LEAN_AND_MEAN
22012 #include <windows.h>
22013 #include <winsock2.h>
22018 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22019 HAVE_WINSOCK2_H shall not be defined.
22021 int dummy=2*IPPROTO_ESP;
22029 if ac_fn_c_try_compile "$LINENO"; then :
22031 ac_cv_header_winsock2_h="yes"
22035 ac_cv_header_winsock2_h="no"
22038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22042 $as_echo "$ac_cv_header_winsock2_h" >&6; }
22043 case "$ac_cv_header_winsock2_h" in
22046 cat >>confdefs.h <<_ACEOF
22047 #define HAVE_WINSOCK2_H 1
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
22055 $as_echo_n "checking for ws2tcpip.h... " >&6; }
22056 if ${ac_cv_header_ws2tcpip_h+:} false; then :
22057 $as_echo_n "(cached) " >&6
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22065 #ifndef WIN32_LEAN_AND_MEAN
22066 #define WIN32_LEAN_AND_MEAN
22068 #include <windows.h>
22069 #include <winsock2.h>
22070 #include <ws2tcpip.h>
22075 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22076 HAVE_WS2TCPIP_H shall not be defined.
22078 int dummy=2*IP_PKTINFO;
22086 if ac_fn_c_try_compile "$LINENO"; then :
22088 ac_cv_header_ws2tcpip_h="yes"
22092 ac_cv_header_ws2tcpip_h="no"
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
22099 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
22100 case "$ac_cv_header_ws2tcpip_h" in
22103 cat >>confdefs.h <<_ACEOF
22104 #define HAVE_WS2TCPIP_H 1
22112 ac_cv_header_winsock_h="no"
22113 ac_cv_header_winsock2_h="no"
22114 ac_cv_header_ws2tcpip_h="no"
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22121 $as_echo_n "checking if X/Open network library is required... " >&6; }
22122 tst_lib_xnet_required="no"
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22129 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22131 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22134 force compilation error
22140 if ac_fn_c_try_compile "$LINENO"; then :
22142 tst_lib_xnet_required="yes"
22143 LIBS="$LIBS -lxnet"
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22148 $as_echo "$tst_lib_xnet_required" >&6; }
22151 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22152 if test "x$ac_cv_func_gethostbyname" = xyes; then :
22153 HAVE_GETHOSTBYNAME="1"
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22157 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22158 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
22159 $as_echo_n "(cached) " >&6
22161 ac_check_lib_save_LIBS=$LIBS
22163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h. */
22170 char gethostbyname ();
22173 return gethostbyname ();
22178 if ac_fn_c_try_link "$LINENO"; then :
22179 ac_cv_lib_nsl_gethostbyname=yes
22181 ac_cv_lib_nsl_gethostbyname=no
22183 rm -f core conftest.err conftest.$ac_objext \
22184 conftest$ac_exeext conftest.$ac_ext
22185 LIBS=$ac_check_lib_save_LIBS
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22188 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22189 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
22190 HAVE_GETHOSTBYNAME="1"
22199 if test "$HAVE_GETHOSTBYNAME" != "1"
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22202 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
22203 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
22204 $as_echo_n "(cached) " >&6
22206 ac_check_lib_save_LIBS=$LIBS
22207 LIBS="-lsocket $LIBS"
22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22215 char gethostbyname ();
22218 return gethostbyname ();
22223 if ac_fn_c_try_link "$LINENO"; then :
22224 ac_cv_lib_socket_gethostbyname=yes
22226 ac_cv_lib_socket_gethostbyname=no
22228 rm -f core conftest.err conftest.$ac_objext \
22229 conftest$ac_exeext conftest.$ac_ext
22230 LIBS=$ac_check_lib_save_LIBS
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22233 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
22234 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
22235 HAVE_GETHOSTBYNAME="1"
22236 LIBS="$LIBS -lsocket"
22242 if test "$HAVE_GETHOSTBYNAME" != "1"
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22245 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
22246 my_ac_save_LIBS=$LIBS
22247 LIBS="-lnsl -lsocket $LIBS"
22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h. */
22263 if ac_fn_c_try_link "$LINENO"; then :
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22266 $as_echo "yes" >&6; }
22267 HAVE_GETHOSTBYNAME="1"
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22272 $as_echo "no" >&6; }
22273 LIBS=$my_ac_save_LIBS
22276 rm -f core conftest.err conftest.$ac_objext \
22277 conftest$ac_exeext conftest.$ac_ext
22280 if test "$HAVE_GETHOSTBYNAME" != "1"
22282 if test "$ac_cv_header_windows_h" = "yes"; then
22283 if test "$ac_cv_header_winsock_h" = "yes"; then
22286 winsock_LIB="-lwinsock"
22289 winsock_LIB="-lwsock32"
22293 if test "$ac_cv_header_winsock2_h" = "yes"; then
22294 winsock_LIB="-lws2_32"
22296 if test ! -z "$winsock_LIB"; then
22297 my_ac_save_LIBS=$LIBS
22298 LIBS="$winsock_LIB $LIBS"
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22300 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22305 #ifdef HAVE_WINDOWS_H
22306 #ifndef WIN32_LEAN_AND_MEAN
22307 #define WIN32_LEAN_AND_MEAN
22309 #include <windows.h>
22310 #ifdef HAVE_WINSOCK2_H
22311 #include <winsock2.h>
22313 #ifdef HAVE_WINSOCK_H
22314 #include <winsock.h>
22322 gethostbyname("www.dummysite.com");
22329 if ac_fn_c_try_link "$LINENO"; then :
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22332 $as_echo "yes" >&6; }
22333 HAVE_GETHOSTBYNAME="1"
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338 $as_echo "no" >&6; }
22340 LIBS=$my_ac_save_LIBS
22343 rm -f core conftest.err conftest.$ac_objext \
22344 conftest$ac_exeext conftest.$ac_ext
22349 if test "$HAVE_GETHOSTBYNAME" != "1"
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22352 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
22353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h. */
22357 /* Older Minix versions may need <net/gen/netdb.h> here instead */
22363 gethostbyname("www.dummysite.com");
22370 if ac_fn_c_try_link "$LINENO"; then :
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22373 $as_echo "yes" >&6; }
22374 HAVE_GETHOSTBYNAME="1"
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22379 $as_echo "no" >&6; }
22382 rm -f core conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
22386 if test "$HAVE_GETHOSTBYNAME" != "1"
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22389 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h. */
22400 gethostbyname("www.dummysite.com");
22407 if ac_fn_c_try_link "$LINENO"; then :
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22410 $as_echo "yes" >&6; }
22411 HAVE_GETHOSTBYNAME="1"
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22416 $as_echo "no" >&6; }
22419 rm -f core conftest.err conftest.$ac_objext \
22420 conftest$ac_exeext conftest.$ac_ext
22423 if test "$HAVE_GETHOSTBYNAME" != "1"
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
22426 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
22427 if ${ac_cv_lib_net_gethostbyname+:} false; then :
22428 $as_echo_n "(cached) " >&6
22430 ac_check_lib_save_LIBS=$LIBS
22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22439 char gethostbyname ();
22442 return gethostbyname ();
22447 if ac_fn_c_try_link "$LINENO"; then :
22448 ac_cv_lib_net_gethostbyname=yes
22450 ac_cv_lib_net_gethostbyname=no
22452 rm -f core conftest.err conftest.$ac_objext \
22453 conftest$ac_exeext conftest.$ac_ext
22454 LIBS=$ac_check_lib_save_LIBS
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
22457 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
22458 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
22459 HAVE_GETHOSTBYNAME="1"
22467 if test "$HAVE_GETHOSTBYNAME" != "1"; then
22468 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22471 if test "x$host_vendor" = "xapple"; then :
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iPhone target" >&5
22474 $as_echo_n "checking for iPhone target... " >&6; }
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22479 #include "TargetConditionals.h"
22484 #if TARGET_OS_IPHONE == 0
22485 #error Not an iPhone target
22494 if ac_fn_c_try_compile "$LINENO"; then :
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22497 $as_echo "yes" >&6; }
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
22499 $as_echo_n "checking for library containing res_servicename... " >&6; }
22500 if ${ac_cv_search_res_servicename+:} false; then :
22501 $as_echo_n "(cached) " >&6
22503 ac_func_search_save_LIBS=$LIBS
22504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22511 char res_servicename ();
22514 return res_servicename ();
22519 for ac_lib in '' resolv; do
22520 if test -z "$ac_lib"; then
22521 ac_res="none required"
22524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22526 if ac_fn_c_try_link "$LINENO"; then :
22527 ac_cv_search_res_servicename=$ac_res
22529 rm -f core conftest.err conftest.$ac_objext \
22531 if ${ac_cv_search_res_servicename+:} false; then :
22535 if ${ac_cv_search_res_servicename+:} false; then :
22538 ac_cv_search_res_servicename=no
22540 rm conftest.$ac_ext
22541 LIBS=$ac_func_search_save_LIBS
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
22544 $as_echo "$ac_cv_search_res_servicename" >&6; }
22545 ac_res=$ac_cv_search_res_servicename
22546 if test "$ac_res" != no; then :
22547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22550 $as_echo "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
22555 as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563 $as_echo "no" >&6; }
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22571 if test "x$ac_cv_func_strcasecmp" = xyes; then :
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22575 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22576 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22577 $as_echo_n "(cached) " >&6
22579 ac_check_lib_save_LIBS=$LIBS
22580 LIBS="-lresolve $LIBS"
22581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22582 /* end confdefs.h. */
22588 char strcasecmp ();
22591 return strcasecmp ();
22596 if ac_fn_c_try_link "$LINENO"; then :
22597 ac_cv_lib_resolve_strcasecmp=yes
22599 ac_cv_lib_resolve_strcasecmp=no
22601 rm -f core conftest.err conftest.$ac_objext \
22602 conftest$ac_exeext conftest.$ac_ext
22603 LIBS=$ac_check_lib_save_LIBS
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22606 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22607 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22608 cat >>confdefs.h <<_ACEOF
22609 #define HAVE_LIBRESOLVE 1
22612 LIBS="-lresolve $LIBS"
22619 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22621 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22622 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22623 $as_echo_n "(cached) " >&6
22625 ac_check_lib_save_LIBS=$LIBS
22626 LIBS="-lresolve -lnsl $LIBS"
22627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628 /* end confdefs.h. */
22634 char strcasecmp ();
22637 return strcasecmp ();
22642 if ac_fn_c_try_link "$LINENO"; then :
22643 ac_cv_lib_resolve_strcasecmp=yes
22645 ac_cv_lib_resolve_strcasecmp=no
22647 rm -f core conftest.err conftest.$ac_objext \
22648 conftest$ac_exeext conftest.$ac_ext
22649 LIBS=$ac_check_lib_save_LIBS
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22652 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22653 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22654 LIBS="-lresolve $LIBS"
22658 ac_cv_func_strcasecmp="no"
22661 cares_includes_winsock2="\
22662 /* includes start */
22663 #ifdef HAVE_WINDOWS_H
22664 # ifndef WIN32_LEAN_AND_MEAN
22665 # define WIN32_LEAN_AND_MEAN
22667 # include <windows.h>
22668 # ifdef HAVE_WINSOCK2_H
22669 # include <winsock2.h>
22671 # ifdef HAVE_WINSOCK_H
22672 # include <winsock.h>
22676 /* includes end */"
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22679 $as_echo_n "checking for windows.h... " >&6; }
22680 if ${ac_cv_header_windows_h+:} false; then :
22681 $as_echo_n "(cached) " >&6
22684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22685 /* end confdefs.h. */
22689 #ifndef WIN32_LEAN_AND_MEAN
22690 #define WIN32_LEAN_AND_MEAN
22692 #include <windows.h>
22697 #if defined(__CYGWIN__) || defined(__CEGCC__)
22698 HAVE_WINDOWS_H shall not be defined.
22700 int dummy=2*WINVER;
22708 if ac_fn_c_try_compile "$LINENO"; then :
22710 ac_cv_header_windows_h="yes"
22714 ac_cv_header_windows_h="no"
22717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
22721 $as_echo "$ac_cv_header_windows_h" >&6; }
22722 case "$ac_cv_header_windows_h" in
22725 cat >>confdefs.h <<_ACEOF
22726 #define HAVE_WINDOWS_H 1
22730 cat >>confdefs.h <<_ACEOF
22731 #define WIN32_LEAN_AND_MEAN 1
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
22739 $as_echo_n "checking for winsock.h... " >&6; }
22740 if ${ac_cv_header_winsock_h+:} false; then :
22741 $as_echo_n "(cached) " >&6
22744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22745 /* end confdefs.h. */
22749 #ifndef WIN32_LEAN_AND_MEAN
22750 #define WIN32_LEAN_AND_MEAN
22752 #include <windows.h>
22753 #include <winsock.h>
22758 #if defined(__CYGWIN__) || defined(__CEGCC__)
22759 HAVE_WINSOCK_H shall not be defined.
22761 int dummy=WSACleanup();
22769 if ac_fn_c_try_compile "$LINENO"; then :
22771 ac_cv_header_winsock_h="yes"
22775 ac_cv_header_winsock_h="no"
22778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
22782 $as_echo "$ac_cv_header_winsock_h" >&6; }
22783 case "$ac_cv_header_winsock_h" in
22786 cat >>confdefs.h <<_ACEOF
22787 #define HAVE_WINSOCK_H 1
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22795 $as_echo_n "checking for winsock2.h... " >&6; }
22796 if ${ac_cv_header_winsock2_h+:} false; then :
22797 $as_echo_n "(cached) " >&6
22800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801 /* end confdefs.h. */
22805 #ifndef WIN32_LEAN_AND_MEAN
22806 #define WIN32_LEAN_AND_MEAN
22808 #include <windows.h>
22809 #include <winsock2.h>
22814 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22815 HAVE_WINSOCK2_H shall not be defined.
22817 int dummy=2*IPPROTO_ESP;
22825 if ac_fn_c_try_compile "$LINENO"; then :
22827 ac_cv_header_winsock2_h="yes"
22831 ac_cv_header_winsock2_h="no"
22834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22838 $as_echo "$ac_cv_header_winsock2_h" >&6; }
22839 case "$ac_cv_header_winsock2_h" in
22842 cat >>confdefs.h <<_ACEOF
22843 #define HAVE_WINSOCK2_H 1
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22852 $as_echo_n "checking for connect in libraries... " >&6; }
22853 tst_connect_save_LIBS="$LIBS"
22854 tst_connect_need_LIBS="unknown"
22855 for tst_lib in '' '-lsocket' ; do
22856 if test "$tst_connect_need_LIBS" = "unknown"; then
22857 LIBS="$tst_lib $tst_connect_save_LIBS"
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22862 $cares_includes_winsock2
22863 #ifndef HAVE_WINDOWS_H
22864 int connect(int, void*, int);
22870 if(0 != connect(0, 0, 0))
22878 if ac_fn_c_try_link "$LINENO"; then :
22880 tst_connect_need_LIBS="$tst_lib"
22883 rm -f core conftest.err conftest.$ac_objext \
22884 conftest$ac_exeext conftest.$ac_ext
22887 LIBS="$tst_connect_save_LIBS"
22889 case X-"$tst_connect_need_LIBS" in
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22892 $as_echo "cannot find connect" >&6; }
22893 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22897 $as_echo "yes" >&6; }
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22901 $as_echo "$tst_connect_need_LIBS" >&6; }
22902 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22908 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22909 if ${ac_cv_header_time+:} false; then :
22910 $as_echo_n "(cached) " >&6
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913 /* end confdefs.h. */
22914 #include <sys/types.h>
22915 #include <sys/time.h>
22920 if ((struct tm *) 0)
22926 if ac_fn_c_try_compile "$LINENO"; then :
22927 ac_cv_header_time=yes
22929 ac_cv_header_time=no
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22934 $as_echo "$ac_cv_header_time" >&6; }
22935 if test $ac_cv_header_time = yes; then
22937 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22942 for ac_header in sys/types.h sys/time.h time.h
22944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22947 cat >>confdefs.h <<_ACEOF
22948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22956 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22961 #ifdef HAVE_SYS_TYPES_H
22962 #include <sys/types.h>
22964 #ifdef HAVE_SYS_TIME_H
22965 #include <sys/time.h>
22966 #ifdef TIME_WITH_SYS_TIME
22978 struct timespec ts;
22979 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22986 if ac_fn_c_try_compile "$LINENO"; then :
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22989 $as_echo "yes" >&6; }
22990 ac_cv_func_clock_gettime="yes"
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22995 $as_echo "no" >&6; }
22996 ac_cv_func_clock_gettime="no"
22999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23003 if test "$ac_cv_func_clock_gettime" = "yes"; then
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23006 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
23008 curl_cv_save_LIBS="$LIBS"
23009 curl_cv_gclk_LIBS="unknown"
23011 for x_xlibs in '' '-lrt' '-lposix4' ; do
23012 if test "$curl_cv_gclk_LIBS" = "unknown"; then
23013 if test -z "$x_xlibs"; then
23014 LIBS="$curl_cv_save_LIBS"
23016 LIBS="$x_xlibs $curl_cv_save_LIBS"
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h. */
23022 #ifdef HAVE_SYS_TYPES_H
23023 #include <sys/types.h>
23025 #ifdef HAVE_SYS_TIME_H
23026 #include <sys/time.h>
23027 #ifdef TIME_WITH_SYS_TIME
23039 struct timespec ts;
23040 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23047 if ac_fn_c_try_link "$LINENO"; then :
23049 curl_cv_gclk_LIBS="$x_xlibs"
23052 rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
23057 LIBS="$curl_cv_save_LIBS"
23059 case X-"$curl_cv_gclk_LIBS" in
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23062 $as_echo "cannot find clock_gettime" >&6; }
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23064 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23065 ac_cv_func_clock_gettime="no"
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23069 $as_echo "no additional lib required" >&6; }
23070 ac_cv_func_clock_gettime="yes"
23073 if test -z "$curl_cv_save_LIBS"; then
23074 LIBS="$curl_cv_gclk_LIBS"
23076 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23079 $as_echo "$curl_cv_gclk_LIBS" >&6; }
23080 ac_cv_func_clock_gettime="yes"
23084 if test "x$cross_compiling" != "xyes" &&
23085 test "$ac_cv_func_clock_gettime" = "yes"; then
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23087 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
23088 if test "$cross_compiling" = yes; then :
23089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23091 as_fn_error $? "cannot run test program while cross compiling
23092 See \`config.log' for more details" "$LINENO" 5; }
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23098 #ifdef HAVE_STDLIB_H
23099 #include <stdlib.h>
23101 #ifdef HAVE_SYS_TYPES_H
23102 #include <sys/types.h>
23104 #ifdef HAVE_SYS_TIME_H
23105 #include <sys/time.h>
23106 #ifdef TIME_WITH_SYS_TIME
23118 struct timespec ts;
23119 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23129 if ac_fn_c_try_run "$LINENO"; then :
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23132 $as_echo "yes" >&6; }
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23137 $as_echo "no" >&6; }
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23139 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23140 ac_cv_func_clock_gettime="no"
23141 LIBS="$curl_cv_save_LIBS"
23144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23145 conftest.$ac_objext conftest.beam conftest.$ac_ext
23150 case "$ac_cv_func_clock_gettime" in
23153 cat >>confdefs.h <<_ACEOF
23154 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
23165 $as_echo_n "checking whether to use libgcc... " >&6; }
23166 # Check whether --enable-libgcc was given.
23167 if test "${enable_libgcc+set}" = set; then :
23168 enableval=$enable_libgcc; case "$enableval" in
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23172 $as_echo "yes" >&6; }
23174 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23175 $as_echo "no" >&6; }
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23180 $as_echo "no" >&6; }
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23190 $as_echo_n "checking for ANSI C header files... " >&6; }
23191 if ${ac_cv_header_stdc+:} false; then :
23192 $as_echo_n "(cached) " >&6
23194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195 /* end confdefs.h. */
23196 #include <stdlib.h>
23197 #include <stdarg.h>
23198 #include <string.h>
23208 if ac_fn_c_try_compile "$LINENO"; then :
23209 ac_cv_header_stdc=yes
23211 ac_cv_header_stdc=no
23213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215 if test $ac_cv_header_stdc = yes; then
23216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218 /* end confdefs.h. */
23219 #include <string.h>
23222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23223 $EGREP "memchr" >/dev/null 2>&1; then :
23226 ac_cv_header_stdc=no
23232 if test $ac_cv_header_stdc = yes; then
23233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23235 /* end confdefs.h. */
23236 #include <stdlib.h>
23239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23240 $EGREP "free" >/dev/null 2>&1; then :
23243 ac_cv_header_stdc=no
23249 if test $ac_cv_header_stdc = yes; then
23250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23251 if test "$cross_compiling" = yes; then :
23254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23255 /* end confdefs.h. */
23257 #include <stdlib.h>
23258 #if ((' ' & 0x0FF) == 0x020)
23259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23262 # define ISLOWER(c) \
23263 (('a' <= (c) && (c) <= 'i') \
23264 || ('j' <= (c) && (c) <= 'r') \
23265 || ('s' <= (c) && (c) <= 'z'))
23266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23274 for (i = 0; i < 256; i++)
23275 if (XOR (islower (i), ISLOWER (i))
23276 || toupper (i) != TOUPPER (i))
23281 if ac_fn_c_try_run "$LINENO"; then :
23284 ac_cv_header_stdc=no
23286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23287 conftest.$ac_objext conftest.beam conftest.$ac_ext
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23293 $as_echo "$ac_cv_header_stdc" >&6; }
23294 if test $ac_cv_header_stdc = yes; then
23296 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
23303 $as_echo_n "checking for malloc.h... " >&6; }
23304 if ${ac_cv_header_malloc_h+:} false; then :
23305 $as_echo_n "(cached) " >&6
23308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23309 /* end confdefs.h. */
23312 #include <malloc.h>
23317 void *p = malloc(10);
23318 void *q = calloc(10,10);
23327 if ac_fn_c_try_compile "$LINENO"; then :
23329 ac_cv_header_malloc_h="yes"
23333 ac_cv_header_malloc_h="no"
23336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
23340 $as_echo "$ac_cv_header_malloc_h" >&6; }
23341 if test "$ac_cv_header_malloc_h" = "yes"; then
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_MALLOC_H 1
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h. */
23352 #include <stdlib.h>
23357 void *p = malloc(10);
23358 void *q = calloc(10,10);
23367 if ac_fn_c_try_compile "$LINENO"; then :
23369 curl_cv_need_header_malloc_h="no"
23373 curl_cv_need_header_malloc_h="yes"
23376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23378 case "$curl_cv_need_header_malloc_h" in
23381 cat >>confdefs.h <<_ACEOF
23382 #define NEED_MALLOC_H 1
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
23391 $as_echo_n "checking for memory.h... " >&6; }
23392 if ${ac_cv_header_memory_h+:} false; then :
23393 $as_echo_n "(cached) " >&6
23396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23397 /* end confdefs.h. */
23400 #include <memory.h>
23405 void *p = malloc(10);
23406 void *q = calloc(10,10);
23415 if ac_fn_c_try_compile "$LINENO"; then :
23417 ac_cv_header_memory_h="yes"
23421 ac_cv_header_memory_h="no"
23424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
23428 $as_echo "$ac_cv_header_memory_h" >&6; }
23429 if test "$ac_cv_header_memory_h" = "yes"; then
23431 cat >>confdefs.h <<_ACEOF
23432 #define HAVE_MEMORY_H 1
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h. */
23440 #include <stdlib.h>
23445 void *p = malloc(10);
23446 void *q = calloc(10,10);
23455 if ac_fn_c_try_compile "$LINENO"; then :
23457 curl_cv_need_header_memory_h="no"
23461 curl_cv_need_header_memory_h="yes"
23464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 case "$curl_cv_need_header_memory_h" in
23469 cat >>confdefs.h <<_ACEOF
23470 #define NEED_MEMORY_H 1
23478 for ac_header in sys/types.h \
23497 arpa/nameser_compat.h \
23500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23501 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23502 #ifdef HAVE_SYS_TYPES_H
23503 #include <sys/types.h>
23505 #ifdef HAVE_SYS_TIME_H
23506 #include <sys/time.h>
23508 #ifdef HAVE_ARPA_NAMESER_H
23509 #include <arpa/nameser.h>
23512 #ifdef HAVE_SYS_SOCKET_H
23513 #include <sys/socket.h>
23515 #ifdef HAVE_NETINET_IN_H
23516 #include <netinet/in.h>
23521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23522 cat >>confdefs.h <<_ACEOF
23523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23532 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23533 if ${ac_cv_c_const+:} false; then :
23534 $as_echo_n "(cached) " >&6
23536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23537 /* end confdefs.h. */
23542 #ifndef __cplusplus
23543 /* Ultrix mips cc rejects this sort of thing. */
23544 typedef int charset[2];
23545 const charset cs = { 0, 0 };
23546 /* SunOS 4.1.1 cc rejects this. */
23547 char const *const *pcpcc;
23549 /* NEC SVR4.0.2 mips cc rejects this. */
23550 struct point {int x, y;};
23551 static struct point const zero = {0,0};
23552 /* AIX XL C 1.02.0.0 rejects this.
23553 It does not let you subtract one const X* pointer from another in
23554 an arm of an if-expression whose if-part is not a constant
23556 const char *g = "string";
23557 pcpcc = &g + (g ? g-g : 0);
23558 /* HPUX 7.0 cc rejects these. */
23560 ppc = (char**) pcpcc;
23561 pcpcc = (char const *const *) ppc;
23562 { /* SCO 3.2v4 cc rejects this sort of thing. */
23565 char const *s = 0 ? (char *) 0 : (char const *) 0;
23570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23571 int x[] = {25, 17};
23572 const int *foo = &x[0];
23575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23576 typedef const int *iptr;
23580 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23582 struct s { int j; const int *ap[3]; } bx;
23583 struct s *b = &bx; b->j = 5;
23585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23586 const int foo = 10;
23587 if (!foo) return 0;
23589 return !cs[0] && !zero.x;
23596 if ac_fn_c_try_compile "$LINENO"; then :
23601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23604 $as_echo "$ac_cv_c_const" >&6; }
23605 if test $ac_cv_c_const = no; then
23607 $as_echo "#define const /**/" >>confdefs.h
23611 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23612 if test "x$ac_cv_type_size_t" = xyes; then :
23616 cat >>confdefs.h <<_ACEOF
23617 #define size_t unsigned int
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23623 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23624 if ${ac_cv_header_time+:} false; then :
23625 $as_echo_n "(cached) " >&6
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23629 #include <sys/types.h>
23630 #include <sys/time.h>
23635 if ((struct tm *) 0)
23641 if ac_fn_c_try_compile "$LINENO"; then :
23642 ac_cv_header_time=yes
23644 ac_cv_header_time=no
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23649 $as_echo "$ac_cv_header_time" >&6; }
23650 if test $ac_cv_header_time = yes; then
23652 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23657 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
23659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23660 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23661 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23662 cat >>confdefs.h <<_ACEOF
23663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
23671 $as_echo_n "checking for struct timeval... " >&6; }
23672 if ${ac_cv_struct_timeval+:} false; then :
23673 $as_echo_n "(cached) " >&6
23676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23677 /* end confdefs.h. */
23681 #ifdef HAVE_WINDOWS_H
23682 #ifndef WIN32_LEAN_AND_MEAN
23683 #define WIN32_LEAN_AND_MEAN
23685 #include <windows.h>
23686 #ifdef HAVE_WINSOCK2_H
23687 #include <winsock2.h>
23689 #ifdef HAVE_WINSOCK_H
23690 #include <winsock.h>
23694 #ifdef HAVE_SYS_TYPES_H
23695 #include <sys/types.h>
23697 #ifdef HAVE_SYS_TIME_H
23698 #include <sys/time.h>
23699 #ifdef TIME_WITH_SYS_TIME
23707 #ifdef HAVE_SYS_SOCKET_H
23708 #include <sys/socket.h>
23723 if ac_fn_c_try_compile "$LINENO"; then :
23725 ac_cv_struct_timeval="yes"
23729 ac_cv_struct_timeval="no"
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
23736 $as_echo "$ac_cv_struct_timeval" >&6; }
23737 case "$ac_cv_struct_timeval" in
23740 cat >>confdefs.h <<_ACEOF
23741 #define HAVE_STRUCT_TIMEVAL 1
23748 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23749 if test "x$ac_cv_type_long_long" = xyes; then :
23751 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
23758 if test "xyes" = "x$longlong"; then
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
23760 $as_echo_n "checking if numberLL works... " >&6; }
23761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762 /* end confdefs.h. */
23769 long long val = 1000LL;
23776 if ac_fn_c_try_compile "$LINENO"; then :
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23779 $as_echo "yes" >&6; }
23781 $as_echo "#define HAVE_LL 1" >>confdefs.h
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23787 $as_echo "no" >&6; }
23790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 # check for ssize_t
23795 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23796 if test "x$ac_cv_type_ssize_t" = xyes; then :
23800 $as_echo "#define ssize_t int" >>confdefs.h
23805 # check for bool type
23806 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
23807 #ifdef HAVE_SYS_TYPES_H
23808 #include <sys/types.h>
23810 #ifdef HAVE_STDBOOL_H
23811 #include <stdbool.h>
23815 if test "x$ac_cv_type_bool" = xyes; then :
23818 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
23825 cares_includes_ws2tcpip="\
23826 /* includes start */
23827 #ifdef HAVE_WINDOWS_H
23828 # ifndef WIN32_LEAN_AND_MEAN
23829 # define WIN32_LEAN_AND_MEAN
23831 # include <windows.h>
23832 # ifdef HAVE_WINSOCK2_H
23833 # include <winsock2.h>
23834 # ifdef HAVE_WS2TCPIP_H
23835 # include <ws2tcpip.h>
23839 /* includes end */"
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23842 $as_echo_n "checking for windows.h... " >&6; }
23843 if ${ac_cv_header_windows_h+:} false; then :
23844 $as_echo_n "(cached) " >&6
23847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h. */
23852 #ifndef WIN32_LEAN_AND_MEAN
23853 #define WIN32_LEAN_AND_MEAN
23855 #include <windows.h>
23860 #if defined(__CYGWIN__) || defined(__CEGCC__)
23861 HAVE_WINDOWS_H shall not be defined.
23863 int dummy=2*WINVER;
23871 if ac_fn_c_try_compile "$LINENO"; then :
23873 ac_cv_header_windows_h="yes"
23877 ac_cv_header_windows_h="no"
23880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23884 $as_echo "$ac_cv_header_windows_h" >&6; }
23885 case "$ac_cv_header_windows_h" in
23888 cat >>confdefs.h <<_ACEOF
23889 #define HAVE_WINDOWS_H 1
23893 cat >>confdefs.h <<_ACEOF
23894 #define WIN32_LEAN_AND_MEAN 1
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23902 $as_echo_n "checking for winsock2.h... " >&6; }
23903 if ${ac_cv_header_winsock2_h+:} false; then :
23904 $as_echo_n "(cached) " >&6
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h. */
23912 #ifndef WIN32_LEAN_AND_MEAN
23913 #define WIN32_LEAN_AND_MEAN
23915 #include <windows.h>
23916 #include <winsock2.h>
23921 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23922 HAVE_WINSOCK2_H shall not be defined.
23924 int dummy=2*IPPROTO_ESP;
23932 if ac_fn_c_try_compile "$LINENO"; then :
23934 ac_cv_header_winsock2_h="yes"
23938 ac_cv_header_winsock2_h="no"
23941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
23945 $as_echo "$ac_cv_header_winsock2_h" >&6; }
23946 case "$ac_cv_header_winsock2_h" in
23949 cat >>confdefs.h <<_ACEOF
23950 #define HAVE_WINSOCK2_H 1
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
23958 $as_echo_n "checking for ws2tcpip.h... " >&6; }
23959 if ${ac_cv_header_ws2tcpip_h+:} false; then :
23960 $as_echo_n "(cached) " >&6
23963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964 /* end confdefs.h. */
23968 #ifndef WIN32_LEAN_AND_MEAN
23969 #define WIN32_LEAN_AND_MEAN
23971 #include <windows.h>
23972 #include <winsock2.h>
23973 #include <ws2tcpip.h>
23978 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23979 HAVE_WS2TCPIP_H shall not be defined.
23981 int dummy=2*IP_PKTINFO;
23989 if ac_fn_c_try_compile "$LINENO"; then :
23991 ac_cv_header_ws2tcpip_h="yes"
23995 ac_cv_header_ws2tcpip_h="no"
23998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
24002 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
24003 case "$ac_cv_header_ws2tcpip_h" in
24006 cat >>confdefs.h <<_ACEOF
24007 #define HAVE_WS2TCPIP_H 1
24015 cares_includes_sys_socket="\
24016 /* includes start */
24017 #ifdef HAVE_SYS_TYPES_H
24018 # include <sys/types.h>
24020 #ifdef HAVE_SYS_SOCKET_H
24021 # include <sys/socket.h>
24023 /* includes end */"
24024 for ac_header in sys/types.h sys/socket.h
24026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24027 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
24029 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24030 cat >>confdefs.h <<_ACEOF
24031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24040 cares_preprocess_callconv="\
24041 /* preprocess start */
24042 #ifdef HAVE_WINDOWS_H
24043 # define FUNCALLCONV __stdcall
24045 # define FUNCALLCONV
24047 /* preprocess end */"
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
24052 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
24053 cares_typeof_ares_socklen_t="unknown"
24054 for arg1 in int SOCKET; do
24055 for arg2 in 'struct sockaddr' void; do
24056 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
24057 if test "$cares_typeof_ares_socklen_t" = "unknown"; then
24058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059 /* end confdefs.h. */
24062 $cares_includes_ws2tcpip
24063 $cares_includes_sys_socket
24064 $cares_preprocess_callconv
24065 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
24071 if(0 != getpeername(0, 0, lenptr))
24079 if ac_fn_c_try_compile "$LINENO"; then :
24081 cares_typeof_ares_socklen_t="$t"
24084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24089 for t in socklen_t int; do
24090 if test "$cares_typeof_ares_socklen_t" = "void"; then
24091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24092 /* end confdefs.h. */
24095 $cares_includes_sys_socket
24096 typedef $t ares_socklen_t;
24101 ares_socklen_t dummy;
24108 if ac_fn_c_try_compile "$LINENO"; then :
24110 cares_typeof_ares_socklen_t="$t"
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
24117 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
24118 if test "$cares_typeof_ares_socklen_t" = "void" ||
24119 test "$cares_typeof_ares_socklen_t" = "unknown"; then
24120 as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
24124 $as_echo_n "checking size of ares_socklen_t... " >&6; }
24125 cares_sizeof_ares_socklen_t="unknown"
24126 cares_pull_headers_socklen_t="unknown"
24127 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
24128 tst_pull_header_checks='none ws2tcpip'
24129 tst_size_checks='4'
24131 tst_pull_header_checks='none systypes syssocket'
24132 tst_size_checks='4 8 2'
24134 for tst_size in $tst_size_checks; do
24135 for tst_pull_headers in $tst_pull_header_checks; do
24136 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24137 case $tst_pull_headers in
24139 tmp_includes="$cares_includes_ws2tcpip"
24142 tmp_includes="$cares_includes_sys_types"
24145 tmp_includes="$cares_includes_sys_socket"
24151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152 /* end confdefs.h. */
24156 typedef $cares_typeof_ares_socklen_t ares_socklen_t;
24157 typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
24162 ares_socklen_t dummy;
24169 if ac_fn_c_try_compile "$LINENO"; then :
24171 cares_sizeof_ares_socklen_t="$tst_size"
24172 cares_pull_headers_socklen_t="$tst_pull_headers"
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
24180 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
24181 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24182 as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
24185 case $cares_pull_headers_socklen_t in
24188 cat >>confdefs.h <<_EOF
24189 #define CARES_PULL_WS2TCPIP_H 1
24195 cat >>confdefs.h <<_EOF
24196 #define CARES_PULL_SYS_TYPES_H 1
24202 cat >>confdefs.h <<_EOF
24203 #define CARES_PULL_SYS_TYPES_H 1
24207 cat >>confdefs.h <<_EOF
24208 #define CARES_PULL_SYS_SOCKET_H 1
24214 cat >>confdefs.h <<_EOF
24215 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
24219 cat >>confdefs.h <<_EOF
24220 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
24226 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
24228 #ifdef HAVE_WINDOWS_H
24229 #ifndef WIN32_LEAN_AND_MEAN
24230 #define WIN32_LEAN_AND_MEAN
24232 #include <windows.h>
24233 #ifdef HAVE_WINSOCK2_H
24234 #include <winsock2.h>
24236 #ifdef HAVE_WINSOCK_H
24237 #include <winsock.h>
24241 #ifdef HAVE_SYS_TYPES_H
24242 #include <sys/types.h>
24244 #ifdef HAVE_SYS_SOCKET_H
24245 #include <sys/socket.h>
24247 #ifdef HAVE_NETINET_IN_H
24248 #include <netinet/in.h>
24250 #ifdef HAVE_ARPA_INET_H
24251 #include <arpa/inet.h>
24256 if test "x$ac_cv_type_in_addr_t" = xyes; then :
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
24261 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
24262 if ${curl_cv_in_addr_t_equiv+:} false; then :
24263 $as_echo_n "(cached) " >&6
24266 curl_cv_in_addr_t_equiv="unknown"
24267 for t in "unsigned long" int size_t unsigned long; do
24268 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
24269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24270 /* end confdefs.h. */
24274 #ifdef HAVE_WINDOWS_H
24275 #ifndef WIN32_LEAN_AND_MEAN
24276 #define WIN32_LEAN_AND_MEAN
24278 #include <windows.h>
24279 #ifdef HAVE_WINSOCK2_H
24280 #include <winsock2.h>
24282 #ifdef HAVE_WINSOCK_H
24283 #include <winsock.h>
24287 #ifdef HAVE_SYS_TYPES_H
24288 #include <sys/types.h>
24290 #ifdef HAVE_SYS_SOCKET_H
24291 #include <sys/socket.h>
24293 #ifdef HAVE_NETINET_IN_H
24294 #include <netinet/in.h>
24296 #ifdef HAVE_ARPA_INET_H
24297 #include <arpa/inet.h>
24304 $t data = inet_addr ("1.2.3.4");
24311 if ac_fn_c_try_link "$LINENO"; then :
24313 curl_cv_in_addr_t_equiv="$t"
24316 rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
24323 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
24324 case "$curl_cv_in_addr_t_equiv" in
24326 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
24330 cat >>confdefs.h <<_ACEOF
24331 #define in_addr_t $curl_cv_in_addr_t_equiv
24342 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
24344 #ifdef HAVE_WINDOWS_H
24345 #ifndef WIN32_LEAN_AND_MEAN
24346 #define WIN32_LEAN_AND_MEAN
24348 #include <windows.h>
24349 #ifdef HAVE_WINSOCK2_H
24350 #include <winsock2.h>
24353 #ifdef HAVE_SYS_TYPES_H
24354 #include <sys/types.h>
24356 #ifdef HAVE_SYS_SOCKET_H
24357 #include <sys/socket.h>
24359 #ifdef HAVE_NETINET_IN_H
24360 #include <netinet/in.h>
24362 #ifdef HAVE_ARPA_INET_H
24363 #include <arpa/inet.h>
24368 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
24370 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
24377 for ac_header in signal.h
24379 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
24380 if test "x$ac_cv_header_signal_h" = xyes; then :
24381 cat >>confdefs.h <<_ACEOF
24382 #define HAVE_SIGNAL_H 1
24389 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
24390 #ifdef HAVE_SIGNAL_H
24391 #include <signal.h>
24395 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
24398 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
24403 case "$ac_cv_type_sig_atomic_t" in
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
24407 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h. */
24412 #ifdef HAVE_SIGNAL_H
24413 #include <signal.h>
24419 static volatile sig_atomic_t dummy = 0;
24426 if ac_fn_c_try_link "$LINENO"; then :
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24429 $as_echo "no" >&6; }
24430 ac_cv_sig_atomic_t_volatile="no"
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24435 $as_echo "yes" >&6; }
24436 ac_cv_sig_atomic_t_volatile="yes"
24439 rm -f core conftest.err conftest.$ac_objext \
24440 conftest$ac_exeext conftest.$ac_ext
24442 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
24444 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24452 $as_echo_n "checking return type of signal handlers... " >&6; }
24453 if ${ac_cv_type_signal+:} false; then :
24454 $as_echo_n "(cached) " >&6
24456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24457 /* end confdefs.h. */
24458 #include <sys/types.h>
24459 #include <signal.h>
24463 return *(signal (0, 0)) (0) == 1;
24468 if ac_fn_c_try_compile "$LINENO"; then :
24469 ac_cv_type_signal=int
24471 ac_cv_type_signal=void
24473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24476 $as_echo "$ac_cv_type_signal" >&6; }
24478 cat >>confdefs.h <<_ACEOF
24479 #define RETSIGTYPE $ac_cv_type_signal
24485 for ac_header in sys/types.h sys/socket.h
24487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24488 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24490 cat >>confdefs.h <<_ACEOF
24491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
24500 $as_echo_n "checking for recv... " >&6; }
24501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24502 /* end confdefs.h. */
24506 #ifdef HAVE_WINDOWS_H
24507 #ifndef WIN32_LEAN_AND_MEAN
24508 #define WIN32_LEAN_AND_MEAN
24510 #include <windows.h>
24511 #ifdef HAVE_WINSOCK2_H
24512 #include <winsock2.h>
24514 #ifdef HAVE_WINSOCK_H
24515 #include <winsock.h>
24519 #ifdef HAVE_SYS_TYPES_H
24520 #include <sys/types.h>
24522 #ifdef HAVE_SYS_SOCKET_H
24523 #include <sys/socket.h>
24537 if ac_fn_c_try_link "$LINENO"; then :
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24540 $as_echo "yes" >&6; }
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24546 $as_echo "no" >&6; }
24550 rm -f core conftest.err conftest.$ac_objext \
24551 conftest$ac_exeext conftest.$ac_ext
24553 if test "$curl_cv_recv" = "yes"; then
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
24555 $as_echo_n "checking types of args and return type for recv... " >&6; }
24556 if ${curl_cv_func_recv_args+:} false; then :
24557 $as_echo_n "(cached) " >&6
24560 curl_cv_func_recv_args="unknown"
24561 for recv_retv in 'int' 'ssize_t'; do
24562 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24563 for recv_arg2 in 'char *' 'void *'; do
24564 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24565 for recv_arg4 in 'int' 'unsigned int'; do
24566 if test "$curl_cv_func_recv_args" = "unknown"; then
24567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24568 /* end confdefs.h. */
24572 #ifdef HAVE_WINDOWS_H
24573 #ifndef WIN32_LEAN_AND_MEAN
24574 #define WIN32_LEAN_AND_MEAN
24576 #include <windows.h>
24577 #ifdef HAVE_WINSOCK2_H
24578 #include <winsock2.h>
24580 #ifdef HAVE_WINSOCK_H
24581 #include <winsock.h>
24584 #define RECVCALLCONV PASCAL
24586 #ifdef HAVE_SYS_TYPES_H
24587 #include <sys/types.h>
24589 #ifdef HAVE_SYS_SOCKET_H
24590 #include <sys/socket.h>
24592 #define RECVCALLCONV
24594 extern $recv_retv RECVCALLCONV
24595 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
24603 $recv_arg4 flags=0;
24604 $recv_retv res = recv(s, buf, len, flags);
24611 if ac_fn_c_try_compile "$LINENO"; then :
24613 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
24616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
24626 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
24627 if test "$curl_cv_func_recv_args" = "unknown"; then
24628 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
24630 recv_prev_IFS=$IFS; IFS=','
24631 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
24636 cat >>confdefs.h <<_ACEOF
24637 #define RECV_TYPE_ARG1 $1
24641 cat >>confdefs.h <<_ACEOF
24642 #define RECV_TYPE_ARG2 $2
24646 cat >>confdefs.h <<_ACEOF
24647 #define RECV_TYPE_ARG3 $3
24651 cat >>confdefs.h <<_ACEOF
24652 #define RECV_TYPE_ARG4 $4
24656 cat >>confdefs.h <<_ACEOF
24657 #define RECV_TYPE_RETV $5
24662 cat >>confdefs.h <<_ACEOF
24663 #define HAVE_RECV 1
24666 ac_cv_func_recv="yes"
24669 as_fn_error $? "Unable to link function recv" "$LINENO" 5
24673 for ac_header in sys/types.h sys/socket.h
24675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24676 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24677 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24678 cat >>confdefs.h <<_ACEOF
24679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
24688 $as_echo_n "checking for recvfrom... " >&6; }
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690 /* end confdefs.h. */
24694 #ifdef HAVE_WINDOWS_H
24695 #ifndef WIN32_LEAN_AND_MEAN
24696 #define WIN32_LEAN_AND_MEAN
24698 #include <windows.h>
24699 #ifdef HAVE_WINSOCK2_H
24700 #include <winsock2.h>
24702 #ifdef HAVE_WINSOCK_H
24703 #include <winsock.h>
24707 #ifdef HAVE_SYS_TYPES_H
24708 #include <sys/types.h>
24710 #ifdef HAVE_SYS_SOCKET_H
24711 #include <sys/socket.h>
24718 recvfrom(0, 0, 0, 0, 0, 0);
24725 if ac_fn_c_try_link "$LINENO"; then :
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24728 $as_echo "yes" >&6; }
24729 curl_cv_recvfrom="yes"
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734 $as_echo "no" >&6; }
24735 curl_cv_recvfrom="no"
24738 rm -f core conftest.err conftest.$ac_objext \
24739 conftest$ac_exeext conftest.$ac_ext
24741 if test "$curl_cv_recvfrom" = "yes"; then
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
24743 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
24744 if ${curl_cv_func_recvfrom_args+:} false; then :
24745 $as_echo_n "(cached) " >&6
24748 curl_cv_func_recvfrom_args="unknown"
24749 for recvfrom_retv in 'int' 'ssize_t'; do
24750 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24751 for recvfrom_arg2 in 'char *' 'void *'; do
24752 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24753 for recvfrom_arg4 in 'int' 'unsigned int'; do
24754 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
24755 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
24756 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24758 /* end confdefs.h. */
24762 #ifdef HAVE_WINDOWS_H
24763 #ifndef WIN32_LEAN_AND_MEAN
24764 #define WIN32_LEAN_AND_MEAN
24766 #include <windows.h>
24767 #ifdef HAVE_WINSOCK2_H
24768 #include <winsock2.h>
24770 #ifdef HAVE_WINSOCK_H
24771 #include <winsock.h>
24774 #define RECVFROMCALLCONV PASCAL
24776 #ifdef HAVE_SYS_TYPES_H
24777 #include <sys/types.h>
24779 #ifdef HAVE_SYS_SOCKET_H
24780 #include <sys/socket.h>
24782 #define RECVFROMCALLCONV
24784 extern $recvfrom_retv RECVFROMCALLCONV
24785 recvfrom($recvfrom_arg1, $recvfrom_arg2,
24786 $recvfrom_arg3, $recvfrom_arg4,
24787 $recvfrom_arg5, $recvfrom_arg6);
24792 $recvfrom_arg1 s=0;
24793 $recvfrom_arg2 buf=0;
24794 $recvfrom_arg3 len=0;
24795 $recvfrom_arg4 flags=0;
24796 $recvfrom_arg5 addr=0;
24797 $recvfrom_arg6 addrlen=0;
24798 $recvfrom_retv res=0;
24799 res = recvfrom(s, buf, len, flags, addr, addrlen);
24806 if ac_fn_c_try_compile "$LINENO"; then :
24808 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
24811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
24823 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
24824 # Nearly last minute change for this release starts here
24826 cat >>confdefs.h <<_ACEOF
24827 #define HAVE_RECVFROM 1
24830 ac_cv_func_recvfrom="yes"
24831 # Nearly last minute change for this release ends here
24832 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
24834 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
24836 recvfrom_prev_IFS=$IFS; IFS=','
24837 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
24838 IFS=$recvfrom_prev_IFS
24841 recvfrom_ptrt_arg2=$2
24842 recvfrom_qual_ptrt_arg5=$5
24843 recvfrom_ptrt_arg6=$6
24846 cat >>confdefs.h <<_ACEOF
24847 #define RECVFROM_TYPE_ARG1 $1
24851 cat >>confdefs.h <<_ACEOF
24852 #define RECVFROM_TYPE_ARG3 $3
24856 cat >>confdefs.h <<_ACEOF
24857 #define RECVFROM_TYPE_ARG4 $4
24861 cat >>confdefs.h <<_ACEOF
24862 #define RECVFROM_TYPE_RETV $7
24868 case $prev_sh_opts in
24876 case "$recvfrom_qual_ptrt_arg5" in
24878 recvfrom_qual_arg5=const
24879 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
24882 recvfrom_qual_arg5=
24883 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
24887 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
24888 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
24889 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
24892 cat >>confdefs.h <<_ACEOF
24893 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
24897 cat >>confdefs.h <<_ACEOF
24898 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
24902 cat >>confdefs.h <<_ACEOF
24903 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
24907 cat >>confdefs.h <<_ACEOF
24908 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
24912 if test "$recvfrom_type_arg2" = "void"; then
24914 cat >>confdefs.h <<_ACEOF
24915 #define RECVFROM_TYPE_ARG2_IS_VOID 1
24919 if test "$recvfrom_type_arg5" = "void"; then
24921 cat >>confdefs.h <<_ACEOF
24922 #define RECVFROM_TYPE_ARG5_IS_VOID 1
24926 if test "$recvfrom_type_arg6" = "void"; then
24928 cat >>confdefs.h <<_ACEOF
24929 #define RECVFROM_TYPE_ARG6_IS_VOID 1
24934 case $prev_sh_opts in
24943 cat >>confdefs.h <<_ACEOF
24944 #define HAVE_RECVFROM 1
24947 ac_cv_func_recvfrom="yes"
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
24951 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
24953 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
24957 for ac_header in sys/types.h sys/socket.h
24959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24962 cat >>confdefs.h <<_ACEOF
24963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
24972 $as_echo_n "checking for send... " >&6; }
24973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24974 /* end confdefs.h. */
24978 #ifdef HAVE_WINDOWS_H
24979 #ifndef WIN32_LEAN_AND_MEAN
24980 #define WIN32_LEAN_AND_MEAN
24982 #include <windows.h>
24983 #ifdef HAVE_WINSOCK2_H
24984 #include <winsock2.h>
24986 #ifdef HAVE_WINSOCK_H
24987 #include <winsock.h>
24991 #ifdef HAVE_SYS_TYPES_H
24992 #include <sys/types.h>
24994 #ifdef HAVE_SYS_SOCKET_H
24995 #include <sys/socket.h>
25009 if ac_fn_c_try_link "$LINENO"; then :
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25012 $as_echo "yes" >&6; }
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25018 $as_echo "no" >&6; }
25022 rm -f core conftest.err conftest.$ac_objext \
25023 conftest$ac_exeext conftest.$ac_ext
25025 if test "$curl_cv_send" = "yes"; then
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
25027 $as_echo_n "checking types of args and return type for send... " >&6; }
25028 if ${curl_cv_func_send_args+:} false; then :
25029 $as_echo_n "(cached) " >&6
25032 curl_cv_func_send_args="unknown"
25033 for send_retv in 'int' 'ssize_t'; do
25034 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
25035 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
25036 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
25037 for send_arg4 in 'int' 'unsigned int'; do
25038 if test "$curl_cv_func_send_args" = "unknown"; then
25039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25040 /* end confdefs.h. */
25044 #ifdef HAVE_WINDOWS_H
25045 #ifndef WIN32_LEAN_AND_MEAN
25046 #define WIN32_LEAN_AND_MEAN
25048 #include <windows.h>
25049 #ifdef HAVE_WINSOCK2_H
25050 #include <winsock2.h>
25052 #ifdef HAVE_WINSOCK_H
25053 #include <winsock.h>
25056 #define SENDCALLCONV PASCAL
25058 #ifdef HAVE_SYS_TYPES_H
25059 #include <sys/types.h>
25061 #ifdef HAVE_SYS_SOCKET_H
25062 #include <sys/socket.h>
25064 #define SENDCALLCONV
25066 extern $send_retv SENDCALLCONV
25067 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
25074 $send_arg4 flags=0;
25075 $send_retv res = send(s, 0, len, flags);
25082 if ac_fn_c_try_compile "$LINENO"; then :
25084 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
25087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
25097 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
25098 if test "$curl_cv_func_send_args" = "unknown"; then
25099 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
25101 send_prev_IFS=$IFS; IFS=','
25102 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
25106 send_qual_type_arg2=$2
25109 cat >>confdefs.h <<_ACEOF
25110 #define SEND_TYPE_ARG1 $1
25114 cat >>confdefs.h <<_ACEOF
25115 #define SEND_TYPE_ARG3 $3
25119 cat >>confdefs.h <<_ACEOF
25120 #define SEND_TYPE_ARG4 $4
25124 cat >>confdefs.h <<_ACEOF
25125 #define SEND_TYPE_RETV $5
25131 case $prev_sh_opts in
25139 case "$send_qual_type_arg2" in
25141 send_qual_arg2=const
25142 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
25146 send_type_arg2=$send_qual_type_arg2
25151 cat >>confdefs.h <<_ACEOF
25152 #define SEND_QUAL_ARG2 $send_qual_arg2
25156 cat >>confdefs.h <<_ACEOF
25157 #define SEND_TYPE_ARG2 $send_type_arg2
25161 case $prev_sh_opts in
25170 cat >>confdefs.h <<_ACEOF
25171 #define HAVE_SEND 1
25174 ac_cv_func_send="yes"
25177 as_fn_error $? "Unable to link function send" "$LINENO" 5
25181 for ac_header in sys/types.h sys/socket.h
25183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25186 cat >>confdefs.h <<_ACEOF
25187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
25195 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
25196 if ${ac_cv_msg_nosignal+:} false; then :
25197 $as_echo_n "(cached) " >&6
25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25201 /* end confdefs.h. */
25205 #ifdef HAVE_WINDOWS_H
25206 #ifndef WIN32_LEAN_AND_MEAN
25207 #define WIN32_LEAN_AND_MEAN
25209 #include <windows.h>
25210 #ifdef HAVE_WINSOCK2_H
25211 #include <winsock2.h>
25213 #ifdef HAVE_WINSOCK_H
25214 #include <winsock.h>
25218 #ifdef HAVE_SYS_TYPES_H
25219 #include <sys/types.h>
25221 #ifdef HAVE_SYS_SOCKET_H
25222 #include <sys/socket.h>
25229 int flag=MSG_NOSIGNAL;
25236 if ac_fn_c_try_compile "$LINENO"; then :
25238 ac_cv_msg_nosignal="yes"
25242 ac_cv_msg_nosignal="no"
25245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
25249 $as_echo "$ac_cv_msg_nosignal" >&6; }
25250 case "$ac_cv_msg_nosignal" in
25253 cat >>confdefs.h <<_ACEOF
25254 #define HAVE_MSG_NOSIGNAL 1
25262 cares_includes_socket="\
25263 /* includes start */
25264 #ifdef HAVE_SYS_TYPES_H
25265 # include <sys/types.h>
25267 #ifdef HAVE_SOCKET_H
25268 # include <socket.h>
25270 /* includes end */"
25271 for ac_header in sys/types.h socket.h
25273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25274 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
25276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25277 cat >>confdefs.h <<_ACEOF
25278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25288 tst_links_closesocket="unknown"
25289 tst_proto_closesocket="unknown"
25290 tst_compi_closesocket="unknown"
25291 tst_allow_closesocket="unknown"
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
25294 $as_echo_n "checking if closesocket can be linked... " >&6; }
25295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25296 /* end confdefs.h. */
25299 $cares_includes_winsock2
25300 $cares_includes_socket
25305 if(0 != closesocket(0))
25313 if ac_fn_c_try_link "$LINENO"; then :
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25316 $as_echo "yes" >&6; }
25317 tst_links_closesocket="yes"
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25322 $as_echo "no" >&6; }
25323 tst_links_closesocket="no"
25326 rm -f core conftest.err conftest.$ac_objext \
25327 conftest$ac_exeext conftest.$ac_ext
25329 if test "$tst_links_closesocket" = "yes"; then
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
25331 $as_echo_n "checking if closesocket is prototyped... " >&6; }
25332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h. */
25335 $cares_includes_winsock2
25336 $cares_includes_socket
25339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25340 $EGREP "closesocket" >/dev/null 2>&1; then :
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25343 $as_echo "yes" >&6; }
25344 tst_proto_closesocket="yes"
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25349 $as_echo "no" >&6; }
25350 tst_proto_closesocket="no"
25357 if test "$tst_proto_closesocket" = "yes"; then
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
25359 $as_echo_n "checking if closesocket is compilable... " >&6; }
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h. */
25364 $cares_includes_winsock2
25365 $cares_includes_socket
25370 if(0 != closesocket(0))
25378 if ac_fn_c_try_compile "$LINENO"; then :
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25381 $as_echo "yes" >&6; }
25382 tst_compi_closesocket="yes"
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25387 $as_echo "no" >&6; }
25388 tst_compi_closesocket="no"
25391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 if test "$tst_compi_closesocket" = "yes"; then
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
25396 $as_echo_n "checking if closesocket usage allowed... " >&6; }
25397 if test "x$cares_disallow_closesocket" != "xyes"; then
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25399 $as_echo "yes" >&6; }
25400 tst_allow_closesocket="yes"
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25403 $as_echo "no" >&6; }
25404 tst_allow_closesocket="no"
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
25409 $as_echo_n "checking if closesocket might be used... " >&6; }
25410 if test "$tst_links_closesocket" = "yes" &&
25411 test "$tst_proto_closesocket" = "yes" &&
25412 test "$tst_compi_closesocket" = "yes" &&
25413 test "$tst_allow_closesocket" = "yes"; then
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25415 $as_echo "yes" >&6; }
25417 cat >>confdefs.h <<_ACEOF
25418 #define HAVE_CLOSESOCKET 1
25421 ac_cv_func_closesocket="yes"
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25424 $as_echo "no" >&6; }
25425 ac_cv_func_closesocket="no"
25430 tst_links_closesocket_camel="unknown"
25431 tst_proto_closesocket_camel="unknown"
25432 tst_compi_closesocket_camel="unknown"
25433 tst_allow_closesocket_camel="unknown"
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
25436 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h. */
25441 $cares_includes_sys_socket
25446 if(0 != CloseSocket(0))
25454 if ac_fn_c_try_link "$LINENO"; then :
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25457 $as_echo "yes" >&6; }
25458 tst_links_closesocket_camel="yes"
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25463 $as_echo "no" >&6; }
25464 tst_links_closesocket_camel="no"
25467 rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
25470 if test "$tst_links_closesocket_camel" = "yes"; then
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
25472 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h. */
25476 $cares_includes_sys_socket
25479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25480 $EGREP "CloseSocket" >/dev/null 2>&1; then :
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25483 $as_echo "yes" >&6; }
25484 tst_proto_closesocket_camel="yes"
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25489 $as_echo "no" >&6; }
25490 tst_proto_closesocket_camel="no"
25497 if test "$tst_proto_closesocket_camel" = "yes"; then
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
25499 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
25500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25501 /* end confdefs.h. */
25504 $cares_includes_sys_socket
25509 if(0 != CloseSocket(0))
25517 if ac_fn_c_try_compile "$LINENO"; then :
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25520 $as_echo "yes" >&6; }
25521 tst_compi_closesocket_camel="yes"
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25526 $as_echo "no" >&6; }
25527 tst_compi_closesocket_camel="no"
25530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25533 if test "$tst_compi_closesocket_camel" = "yes"; then
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
25535 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
25536 if test "x$cares_disallow_closesocket_camel" != "xyes"; then
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25538 $as_echo "yes" >&6; }
25539 tst_allow_closesocket_camel="yes"
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25542 $as_echo "no" >&6; }
25543 tst_allow_closesocket_camel="no"
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
25548 $as_echo_n "checking if CloseSocket might be used... " >&6; }
25549 if test "$tst_links_closesocket_camel" = "yes" &&
25550 test "$tst_proto_closesocket_camel" = "yes" &&
25551 test "$tst_compi_closesocket_camel" = "yes" &&
25552 test "$tst_allow_closesocket_camel" = "yes"; then
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25554 $as_echo "yes" >&6; }
25556 cat >>confdefs.h <<_ACEOF
25557 #define HAVE_CLOSESOCKET_CAMEL 1
25560 ac_cv_func_closesocket_camel="yes"
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25563 $as_echo "no" >&6; }
25564 ac_cv_func_closesocket_camel="no"
25569 tst_links_connect="unknown"
25570 tst_proto_connect="unknown"
25571 tst_compi_connect="unknown"
25572 tst_allow_connect="unknown"
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
25575 $as_echo_n "checking if connect can be linked... " >&6; }
25576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25577 /* end confdefs.h. */
25580 $cares_includes_winsock2
25581 $cares_includes_sys_socket
25582 $cares_includes_socket
25587 if(0 != connect(0, 0, 0))
25595 if ac_fn_c_try_link "$LINENO"; then :
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25598 $as_echo "yes" >&6; }
25599 tst_links_connect="yes"
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25604 $as_echo "no" >&6; }
25605 tst_links_connect="no"
25608 rm -f core conftest.err conftest.$ac_objext \
25609 conftest$ac_exeext conftest.$ac_ext
25611 if test "$tst_links_connect" = "yes"; then
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
25613 $as_echo_n "checking if connect is prototyped... " >&6; }
25614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25615 /* end confdefs.h. */
25617 $cares_includes_winsock2
25618 $cares_includes_sys_socket
25619 $cares_includes_socket
25622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25623 $EGREP "connect" >/dev/null 2>&1; then :
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25626 $as_echo "yes" >&6; }
25627 tst_proto_connect="yes"
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25632 $as_echo "no" >&6; }
25633 tst_proto_connect="no"
25640 if test "$tst_proto_connect" = "yes"; then
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
25642 $as_echo_n "checking if connect is compilable... " >&6; }
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h. */
25647 $cares_includes_winsock2
25648 $cares_includes_sys_socket
25649 $cares_includes_socket
25654 if(0 != connect(0, 0, 0))
25662 if ac_fn_c_try_compile "$LINENO"; then :
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25665 $as_echo "yes" >&6; }
25666 tst_compi_connect="yes"
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25671 $as_echo "no" >&6; }
25672 tst_compi_connect="no"
25675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678 if test "$tst_compi_connect" = "yes"; then
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
25680 $as_echo_n "checking if connect usage allowed... " >&6; }
25681 if test "x$cares_disallow_connect" != "xyes"; then
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25683 $as_echo "yes" >&6; }
25684 tst_allow_connect="yes"
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25687 $as_echo "no" >&6; }
25688 tst_allow_connect="no"
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
25693 $as_echo_n "checking if connect might be used... " >&6; }
25694 if test "$tst_links_connect" = "yes" &&
25695 test "$tst_proto_connect" = "yes" &&
25696 test "$tst_compi_connect" = "yes" &&
25697 test "$tst_allow_connect" = "yes"; then
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25699 $as_echo "yes" >&6; }
25701 cat >>confdefs.h <<_ACEOF
25702 #define HAVE_CONNECT 1
25705 ac_cv_func_connect="yes"
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25708 $as_echo "no" >&6; }
25709 ac_cv_func_connect="no"
25713 cares_includes_fcntl="\
25714 /* includes start */
25715 #ifdef HAVE_SYS_TYPES_H
25716 # include <sys/types.h>
25718 #ifdef HAVE_UNISTD_H
25719 # include <unistd.h>
25721 #ifdef HAVE_FCNTL_H
25722 # include <fcntl.h>
25724 /* includes end */"
25725 for ac_header in sys/types.h unistd.h fcntl.h
25727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25728 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
25730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25731 cat >>confdefs.h <<_ACEOF
25732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25742 tst_links_fcntl="unknown"
25743 tst_proto_fcntl="unknown"
25744 tst_compi_fcntl="unknown"
25745 tst_allow_fcntl="unknown"
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
25748 $as_echo_n "checking if fcntl can be linked... " >&6; }
25749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25750 /* end confdefs.h. */
25753 #define fcntl innocuous_fcntl
25755 # include <limits.h>
25757 # include <assert.h>
25764 #if defined __stub_fcntl || defined __stub___fcntl
25776 if ac_fn_c_try_link "$LINENO"; then :
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25779 $as_echo "yes" >&6; }
25780 tst_links_fcntl="yes"
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25785 $as_echo "no" >&6; }
25786 tst_links_fcntl="no"
25789 rm -f core conftest.err conftest.$ac_objext \
25790 conftest$ac_exeext conftest.$ac_ext
25792 if test "$tst_links_fcntl" = "yes"; then
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
25794 $as_echo_n "checking if fcntl is prototyped... " >&6; }
25795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25796 /* end confdefs.h. */
25798 $cares_includes_fcntl
25801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25802 $EGREP "fcntl" >/dev/null 2>&1; then :
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25805 $as_echo "yes" >&6; }
25806 tst_proto_fcntl="yes"
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25811 $as_echo "no" >&6; }
25812 tst_proto_fcntl="no"
25819 if test "$tst_proto_fcntl" = "yes"; then
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
25821 $as_echo_n "checking if fcntl is compilable... " >&6; }
25822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823 /* end confdefs.h. */
25826 $cares_includes_fcntl
25831 if(0 != fcntl(0, 0, 0))
25839 if ac_fn_c_try_compile "$LINENO"; then :
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25842 $as_echo "yes" >&6; }
25843 tst_compi_fcntl="yes"
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25848 $as_echo "no" >&6; }
25849 tst_compi_fcntl="no"
25852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25855 if test "$tst_compi_fcntl" = "yes"; then
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
25857 $as_echo_n "checking if fcntl usage allowed... " >&6; }
25858 if test "x$cares_disallow_fcntl" != "xyes"; then
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25860 $as_echo "yes" >&6; }
25861 tst_allow_fcntl="yes"
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25864 $as_echo "no" >&6; }
25865 tst_allow_fcntl="no"
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
25870 $as_echo_n "checking if fcntl might be used... " >&6; }
25871 if test "$tst_links_fcntl" = "yes" &&
25872 test "$tst_proto_fcntl" = "yes" &&
25873 test "$tst_compi_fcntl" = "yes" &&
25874 test "$tst_allow_fcntl" = "yes"; then
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25876 $as_echo "yes" >&6; }
25878 cat >>confdefs.h <<_ACEOF
25879 #define HAVE_FCNTL 1
25882 ac_cv_func_fcntl="yes"
25885 tst_compi_fcntl_o_nonblock="unknown"
25886 tst_allow_fcntl_o_nonblock="unknown"
25889 sunos4* | aix3* | beos*)
25890 cares_disallow_fcntl_o_nonblock="yes"
25894 if test "$ac_cv_func_fcntl" = "yes"; then
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
25896 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
25897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898 /* end confdefs.h. */
25901 $cares_includes_fcntl
25907 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
25915 if ac_fn_c_try_compile "$LINENO"; then :
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25918 $as_echo "yes" >&6; }
25919 tst_compi_fcntl_o_nonblock="yes"
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25924 $as_echo "no" >&6; }
25925 tst_compi_fcntl_o_nonblock="no"
25928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25931 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
25933 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
25934 if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25936 $as_echo "yes" >&6; }
25937 tst_allow_fcntl_o_nonblock="yes"
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25940 $as_echo "no" >&6; }
25941 tst_allow_fcntl_o_nonblock="no"
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
25946 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
25947 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
25948 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25950 $as_echo "yes" >&6; }
25952 cat >>confdefs.h <<_ACEOF
25953 #define HAVE_FCNTL_O_NONBLOCK 1
25956 ac_cv_func_fcntl_o_nonblock="yes"
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25959 $as_echo "no" >&6; }
25960 ac_cv_func_fcntl_o_nonblock="no"
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965 $as_echo "no" >&6; }
25966 ac_cv_func_fcntl="no"
25970 cares_includes_netdb="\
25971 /* includes start */
25972 #ifdef HAVE_SYS_TYPES_H
25973 # include <sys/types.h>
25975 #ifdef HAVE_NETDB_H
25976 # include <netdb.h>
25978 /* includes end */"
25979 for ac_header in sys/types.h netdb.h
25981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
25984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25985 cat >>confdefs.h <<_ACEOF
25986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25996 tst_links_freeaddrinfo="unknown"
25997 tst_proto_freeaddrinfo="unknown"
25998 tst_compi_freeaddrinfo="unknown"
25999 tst_allow_freeaddrinfo="unknown"
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
26002 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
26003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26004 /* end confdefs.h. */
26007 $cares_includes_ws2tcpip
26008 $cares_includes_sys_socket
26009 $cares_includes_netdb
26021 if ac_fn_c_try_link "$LINENO"; then :
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26024 $as_echo "yes" >&6; }
26025 tst_links_freeaddrinfo="yes"
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26030 $as_echo "no" >&6; }
26031 tst_links_freeaddrinfo="no"
26034 rm -f core conftest.err conftest.$ac_objext \
26035 conftest$ac_exeext conftest.$ac_ext
26037 if test "$tst_links_freeaddrinfo" = "yes"; then
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
26039 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26043 $cares_includes_ws2tcpip
26044 $cares_includes_sys_socket
26045 $cares_includes_netdb
26048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26049 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26052 $as_echo "yes" >&6; }
26053 tst_proto_freeaddrinfo="yes"
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26058 $as_echo "no" >&6; }
26059 tst_proto_freeaddrinfo="no"
26066 if test "$tst_proto_freeaddrinfo" = "yes"; then
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
26068 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
26069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070 /* end confdefs.h. */
26073 $cares_includes_ws2tcpip
26074 $cares_includes_sys_socket
26075 $cares_includes_netdb
26087 if ac_fn_c_try_compile "$LINENO"; then :
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26090 $as_echo "yes" >&6; }
26091 tst_compi_freeaddrinfo="yes"
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26096 $as_echo "no" >&6; }
26097 tst_compi_freeaddrinfo="no"
26100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26103 if test "$tst_compi_freeaddrinfo" = "yes"; then
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
26105 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
26106 if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26108 $as_echo "yes" >&6; }
26109 tst_allow_freeaddrinfo="yes"
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26112 $as_echo "no" >&6; }
26113 tst_allow_freeaddrinfo="no"
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
26118 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
26119 if test "$tst_links_freeaddrinfo" = "yes" &&
26120 test "$tst_proto_freeaddrinfo" = "yes" &&
26121 test "$tst_compi_freeaddrinfo" = "yes" &&
26122 test "$tst_allow_freeaddrinfo" = "yes"; then
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26124 $as_echo "yes" >&6; }
26126 cat >>confdefs.h <<_ACEOF
26127 #define HAVE_FREEADDRINFO 1
26130 ac_cv_func_freeaddrinfo="yes"
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26133 $as_echo "no" >&6; }
26134 ac_cv_func_freeaddrinfo="no"
26138 cares_includes_stdlib="\
26139 /* includes start */
26140 #ifdef HAVE_SYS_TYPES_H
26141 # include <sys/types.h>
26143 #ifdef HAVE_STDLIB_H
26144 # include <stdlib.h>
26146 /* includes end */"
26147 for ac_header in sys/types.h stdlib.h
26149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26150 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
26152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26153 cat >>confdefs.h <<_ACEOF
26154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26163 cares_includes_string="\
26164 /* includes start */
26165 #ifdef HAVE_SYS_TYPES_H
26166 # include <sys/types.h>
26168 #ifdef HAVE_STRING_H
26169 # include <string.h>
26171 #ifdef HAVE_STRINGS_H
26172 # include <strings.h>
26174 /* includes end */"
26175 for ac_header in sys/types.h string.h strings.h
26177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26178 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
26180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26181 cat >>confdefs.h <<_ACEOF
26182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26192 tst_links_getaddrinfo="unknown"
26193 tst_proto_getaddrinfo="unknown"
26194 tst_compi_getaddrinfo="unknown"
26195 tst_works_getaddrinfo="unknown"
26196 tst_allow_getaddrinfo="unknown"
26197 tst_tsafe_getaddrinfo="unknown"
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
26200 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
26201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26202 /* end confdefs.h. */
26205 $cares_includes_ws2tcpip
26206 $cares_includes_sys_socket
26207 $cares_includes_netdb
26212 if(0 != getaddrinfo(0, 0, 0, 0))
26220 if ac_fn_c_try_link "$LINENO"; then :
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26223 $as_echo "yes" >&6; }
26224 tst_links_getaddrinfo="yes"
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26229 $as_echo "no" >&6; }
26230 tst_links_getaddrinfo="no"
26233 rm -f core conftest.err conftest.$ac_objext \
26234 conftest$ac_exeext conftest.$ac_ext
26236 if test "$tst_links_getaddrinfo" = "yes"; then
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
26238 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h. */
26242 $cares_includes_ws2tcpip
26243 $cares_includes_sys_socket
26244 $cares_includes_netdb
26247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26248 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26251 $as_echo "yes" >&6; }
26252 tst_proto_getaddrinfo="yes"
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26257 $as_echo "no" >&6; }
26258 tst_proto_getaddrinfo="no"
26265 if test "$tst_proto_getaddrinfo" = "yes"; then
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
26267 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
26268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26269 /* end confdefs.h. */
26272 $cares_includes_ws2tcpip
26273 $cares_includes_sys_socket
26274 $cares_includes_netdb
26279 if(0 != getaddrinfo(0, 0, 0, 0))
26287 if ac_fn_c_try_compile "$LINENO"; then :
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26290 $as_echo "yes" >&6; }
26291 tst_compi_getaddrinfo="yes"
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26296 $as_echo "no" >&6; }
26297 tst_compi_getaddrinfo="no"
26300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 if test "x$cross_compiling" != "xyes" &&
26304 test "$tst_compi_getaddrinfo" = "yes"; then
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
26306 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
26307 if test "$cross_compiling" = yes; then :
26308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26310 as_fn_error $? "cannot run test program while cross compiling
26311 See \`config.log' for more details" "$LINENO" 5; }
26313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26314 /* end confdefs.h. */
26317 $cares_includes_ws2tcpip
26318 $cares_includes_stdlib
26319 $cares_includes_string
26320 $cares_includes_sys_socket
26321 $cares_includes_netdb
26326 struct addrinfo hints;
26327 struct addrinfo *ai = 0;
26330 memset(&hints, 0, sizeof(hints));
26331 hints.ai_flags = AI_NUMERICHOST;
26332 hints.ai_family = AF_UNSPEC;
26333 hints.ai_socktype = SOCK_STREAM;
26334 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
26336 exit(1); /* fail */
26345 if ac_fn_c_try_run "$LINENO"; then :
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26348 $as_echo "yes" >&6; }
26349 tst_works_getaddrinfo="yes"
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26354 $as_echo "no" >&6; }
26355 tst_works_getaddrinfo="no"
26358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26359 conftest.$ac_objext conftest.beam conftest.$ac_ext
26364 if test "$tst_compi_getaddrinfo" = "yes" &&
26365 test "$tst_works_getaddrinfo" != "no"; then
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
26367 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
26368 if test "x$cares_disallow_getaddrinfo" != "xyes"; then
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26370 $as_echo "yes" >&6; }
26371 tst_allow_getaddrinfo="yes"
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26374 $as_echo "no" >&6; }
26375 tst_allow_getaddrinfo="no"
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
26380 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
26381 if test "$tst_links_getaddrinfo" = "yes" &&
26382 test "$tst_proto_getaddrinfo" = "yes" &&
26383 test "$tst_compi_getaddrinfo" = "yes" &&
26384 test "$tst_allow_getaddrinfo" = "yes" &&
26385 test "$tst_works_getaddrinfo" != "no"; then
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26387 $as_echo "yes" >&6; }
26389 cat >>confdefs.h <<_ACEOF
26390 #define HAVE_GETADDRINFO 1
26393 ac_cv_func_getaddrinfo="yes"
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26396 $as_echo "no" >&6; }
26397 ac_cv_func_getaddrinfo="no"
26398 ac_cv_func_getaddrinfo_threadsafe="no"
26401 if test "$ac_cv_func_getaddrinfo" = "yes"; then
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26403 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26405 aix[1234].* | aix5.[01].*)
26406 tst_tsafe_getaddrinfo="no"
26409 tst_tsafe_getaddrinfo="yes"
26412 tst_tsafe_getaddrinfo="no"
26415 tst_tsafe_getaddrinfo="yes"
26417 freebsd[1234].* | freebsd5.[1234]*)
26418 tst_tsafe_getaddrinfo="no"
26421 tst_tsafe_getaddrinfo="yes"
26423 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26424 tst_tsafe_getaddrinfo="no"
26427 tst_tsafe_getaddrinfo="yes"
26430 tst_tsafe_getaddrinfo="no"
26433 tst_tsafe_getaddrinfo="yes"
26436 tst_tsafe_getaddrinfo="no"
26439 tst_tsafe_getaddrinfo="yes"
26442 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
26443 test "$ac_cv_native_windows" = "yes"; then
26444 tst_tsafe_getaddrinfo="yes"
26446 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26450 /* end confdefs.h. */
26453 $cares_includes_sys_socket
26454 $cares_includes_netdb
26461 force compilation error
26467 if ac_fn_c_try_compile "$LINENO"; then :
26469 tst_symbol_defined="yes"
26473 tst_symbol_defined="no"
26476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26477 if test "$tst_symbol_defined" = "yes"; then
26478 curl_cv_have_def_h_errno=yes
26481 curl_cv_have_def_h_errno=no
26485 if test "$curl_cv_have_def_h_errno" = "yes"; then
26486 tst_h_errno_macro="yes"
26488 tst_h_errno_macro="no"
26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26491 /* end confdefs.h. */
26494 $cares_includes_sys_socket
26495 $cares_includes_netdb
26509 if ac_fn_c_try_compile "$LINENO"; then :
26511 tst_h_errno_modifiable_lvalue="yes"
26515 tst_h_errno_modifiable_lvalue="no"
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h. */
26527 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
26529 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
26532 force compilation error
26540 if ac_fn_c_try_compile "$LINENO"; then :
26542 tst_h_errno_sbs_issue_7="yes"
26546 tst_h_errno_sbs_issue_7="no"
26549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 if test "$tst_h_errno_macro" = "no" &&
26551 test "$tst_h_errno_modifiable_lvalue" = "no" &&
26552 test "$tst_h_errno_sbs_issue_7" = "no"; then
26553 tst_tsafe_getaddrinfo="no"
26555 tst_tsafe_getaddrinfo="yes"
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26559 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
26560 if test "$tst_tsafe_getaddrinfo" = "yes"; then
26562 cat >>confdefs.h <<_ACEOF
26563 #define HAVE_GETADDRINFO_THREADSAFE 1
26566 ac_cv_func_getaddrinfo_threadsafe="yes"
26568 ac_cv_func_getaddrinfo_threadsafe="no"
26574 tst_links_getenv="unknown"
26575 tst_proto_getenv="unknown"
26576 tst_compi_getenv="unknown"
26577 tst_allow_getenv="unknown"
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
26580 $as_echo_n "checking if getenv can be linked... " >&6; }
26581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26582 /* end confdefs.h. */
26585 #define getenv innocuous_getenv
26587 # include <limits.h>
26589 # include <assert.h>
26596 #if defined __stub_getenv || defined __stub___getenv
26608 if ac_fn_c_try_link "$LINENO"; then :
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26611 $as_echo "yes" >&6; }
26612 tst_links_getenv="yes"
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26617 $as_echo "no" >&6; }
26618 tst_links_getenv="no"
26621 rm -f core conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
26624 if test "$tst_links_getenv" = "yes"; then
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
26626 $as_echo_n "checking if getenv is prototyped... " >&6; }
26627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628 /* end confdefs.h. */
26630 $cares_includes_stdlib
26633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26634 $EGREP "getenv" >/dev/null 2>&1; then :
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26637 $as_echo "yes" >&6; }
26638 tst_proto_getenv="yes"
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26643 $as_echo "no" >&6; }
26644 tst_proto_getenv="no"
26651 if test "$tst_proto_getenv" = "yes"; then
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
26653 $as_echo_n "checking if getenv is compilable... " >&6; }
26654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26655 /* end confdefs.h. */
26658 $cares_includes_stdlib
26671 if ac_fn_c_try_compile "$LINENO"; then :
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26674 $as_echo "yes" >&6; }
26675 tst_compi_getenv="yes"
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26680 $as_echo "no" >&6; }
26681 tst_compi_getenv="no"
26684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26687 if test "$tst_compi_getenv" = "yes"; then
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
26689 $as_echo_n "checking if getenv usage allowed... " >&6; }
26690 if test "x$cares_disallow_getenv" != "xyes"; then
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26692 $as_echo "yes" >&6; }
26693 tst_allow_getenv="yes"
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26696 $as_echo "no" >&6; }
26697 tst_allow_getenv="no"
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
26702 $as_echo_n "checking if getenv might be used... " >&6; }
26703 if test "$tst_links_getenv" = "yes" &&
26704 test "$tst_proto_getenv" = "yes" &&
26705 test "$tst_compi_getenv" = "yes" &&
26706 test "$tst_allow_getenv" = "yes"; then
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26708 $as_echo "yes" >&6; }
26710 cat >>confdefs.h <<_ACEOF
26711 #define HAVE_GETENV 1
26714 ac_cv_func_getenv="yes"
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26717 $as_echo "no" >&6; }
26718 ac_cv_func_getenv="no"
26723 tst_links_gethostbyaddr="unknown"
26724 tst_proto_gethostbyaddr="unknown"
26725 tst_compi_gethostbyaddr="unknown"
26726 tst_allow_gethostbyaddr="unknown"
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
26729 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
26730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731 /* end confdefs.h. */
26734 $cares_includes_winsock2
26735 $cares_includes_netdb
26740 if(0 != gethostbyaddr(0, 0, 0))
26748 if ac_fn_c_try_link "$LINENO"; then :
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26751 $as_echo "yes" >&6; }
26752 tst_links_gethostbyaddr="yes"
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26757 $as_echo "no" >&6; }
26758 tst_links_gethostbyaddr="no"
26761 rm -f core conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
26764 if test "$tst_links_gethostbyaddr" = "yes"; then
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
26766 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
26767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h. */
26770 $cares_includes_winsock2
26771 $cares_includes_netdb
26774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26775 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26778 $as_echo "yes" >&6; }
26779 tst_proto_gethostbyaddr="yes"
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26784 $as_echo "no" >&6; }
26785 tst_proto_gethostbyaddr="no"
26792 if test "$tst_proto_gethostbyaddr" = "yes"; then
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
26794 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
26795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26796 /* end confdefs.h. */
26799 $cares_includes_winsock2
26800 $cares_includes_netdb
26805 if(0 != gethostbyaddr(0, 0, 0))
26813 if ac_fn_c_try_compile "$LINENO"; then :
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26816 $as_echo "yes" >&6; }
26817 tst_compi_gethostbyaddr="yes"
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822 $as_echo "no" >&6; }
26823 tst_compi_gethostbyaddr="no"
26826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26829 if test "$tst_compi_gethostbyaddr" = "yes"; then
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
26831 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
26832 if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26834 $as_echo "yes" >&6; }
26835 tst_allow_gethostbyaddr="yes"
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26838 $as_echo "no" >&6; }
26839 tst_allow_gethostbyaddr="no"
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
26844 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
26845 if test "$tst_links_gethostbyaddr" = "yes" &&
26846 test "$tst_proto_gethostbyaddr" = "yes" &&
26847 test "$tst_compi_gethostbyaddr" = "yes" &&
26848 test "$tst_allow_gethostbyaddr" = "yes"; then
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26850 $as_echo "yes" >&6; }
26852 cat >>confdefs.h <<_ACEOF
26853 #define HAVE_GETHOSTBYADDR 1
26856 ac_cv_func_gethostbyaddr="yes"
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26859 $as_echo "no" >&6; }
26860 ac_cv_func_gethostbyaddr="no"
26865 tst_links_gethostbyname="unknown"
26866 tst_proto_gethostbyname="unknown"
26867 tst_compi_gethostbyname="unknown"
26868 tst_allow_gethostbyname="unknown"
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
26871 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
26872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26873 /* end confdefs.h. */
26876 $cares_includes_winsock2
26877 $cares_includes_netdb
26882 if(0 != gethostbyname(0))
26890 if ac_fn_c_try_link "$LINENO"; then :
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26893 $as_echo "yes" >&6; }
26894 tst_links_gethostbyname="yes"
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26899 $as_echo "no" >&6; }
26900 tst_links_gethostbyname="no"
26903 rm -f core conftest.err conftest.$ac_objext \
26904 conftest$ac_exeext conftest.$ac_ext
26906 if test "$tst_links_gethostbyname" = "yes"; then
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
26908 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
26909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910 /* end confdefs.h. */
26912 $cares_includes_winsock2
26913 $cares_includes_netdb
26916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26917 $EGREP "gethostbyname" >/dev/null 2>&1; then :
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26920 $as_echo "yes" >&6; }
26921 tst_proto_gethostbyname="yes"
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926 $as_echo "no" >&6; }
26927 tst_proto_gethostbyname="no"
26934 if test "$tst_proto_gethostbyname" = "yes"; then
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
26936 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
26937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26938 /* end confdefs.h. */
26941 $cares_includes_winsock2
26942 $cares_includes_netdb
26947 if(0 != gethostbyname(0))
26955 if ac_fn_c_try_compile "$LINENO"; then :
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26958 $as_echo "yes" >&6; }
26959 tst_compi_gethostbyname="yes"
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26964 $as_echo "no" >&6; }
26965 tst_compi_gethostbyname="no"
26968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26971 if test "$tst_compi_gethostbyname" = "yes"; then
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
26973 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
26974 if test "x$cares_disallow_gethostbyname" != "xyes"; then
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26976 $as_echo "yes" >&6; }
26977 tst_allow_gethostbyname="yes"
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26980 $as_echo "no" >&6; }
26981 tst_allow_gethostbyname="no"
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
26986 $as_echo_n "checking if gethostbyname might be used... " >&6; }
26987 if test "$tst_links_gethostbyname" = "yes" &&
26988 test "$tst_proto_gethostbyname" = "yes" &&
26989 test "$tst_compi_gethostbyname" = "yes" &&
26990 test "$tst_allow_gethostbyname" = "yes"; then
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26992 $as_echo "yes" >&6; }
26994 cat >>confdefs.h <<_ACEOF
26995 #define HAVE_GETHOSTBYNAME 1
26998 ac_cv_func_gethostbyname="yes"
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27001 $as_echo "no" >&6; }
27002 ac_cv_func_gethostbyname="no"
27006 cares_includes_unistd="\
27007 /* includes start */
27008 #ifdef HAVE_SYS_TYPES_H
27009 # include <sys/types.h>
27011 #ifdef HAVE_UNISTD_H
27012 # include <unistd.h>
27014 /* includes end */"
27015 for ac_header in sys/types.h unistd.h
27017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27018 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
27020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27021 cat >>confdefs.h <<_ACEOF
27022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27032 tst_links_gethostname="unknown"
27033 tst_proto_gethostname="unknown"
27034 tst_compi_gethostname="unknown"
27035 tst_allow_gethostname="unknown"
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
27038 $as_echo_n "checking if gethostname can be linked... " >&6; }
27039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27040 /* end confdefs.h. */
27043 $cares_includes_winsock2
27044 $cares_includes_unistd
27049 if(0 != gethostname(0, 0))
27057 if ac_fn_c_try_link "$LINENO"; then :
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27060 $as_echo "yes" >&6; }
27061 tst_links_gethostname="yes"
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27066 $as_echo "no" >&6; }
27067 tst_links_gethostname="no"
27070 rm -f core conftest.err conftest.$ac_objext \
27071 conftest$ac_exeext conftest.$ac_ext
27073 if test "$tst_links_gethostname" = "yes"; then
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
27075 $as_echo_n "checking if gethostname is prototyped... " >&6; }
27076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27077 /* end confdefs.h. */
27079 $cares_includes_winsock2
27080 $cares_includes_unistd
27083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27084 $EGREP "gethostname" >/dev/null 2>&1; then :
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27087 $as_echo "yes" >&6; }
27088 tst_proto_gethostname="yes"
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27093 $as_echo "no" >&6; }
27094 tst_proto_gethostname="no"
27101 if test "$tst_proto_gethostname" = "yes"; then
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
27103 $as_echo_n "checking if gethostname is compilable... " >&6; }
27104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105 /* end confdefs.h. */
27108 $cares_includes_winsock2
27109 $cares_includes_unistd
27114 if(0 != gethostname(0, 0))
27122 if ac_fn_c_try_compile "$LINENO"; then :
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27125 $as_echo "yes" >&6; }
27126 tst_compi_gethostname="yes"
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27131 $as_echo "no" >&6; }
27132 tst_compi_gethostname="no"
27135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27138 if test "$tst_compi_gethostname" = "yes"; then
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
27140 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
27141 tst_gethostname_type_arg2="unknown"
27142 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
27143 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
27144 if test "$tst_gethostname_type_arg2" = "unknown"; then
27145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27146 /* end confdefs.h. */
27149 $cares_includes_winsock2
27150 $cares_includes_unistd
27151 $cares_preprocess_callconv
27152 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
27157 if(0 != gethostname(0, 0))
27165 if ac_fn_c_try_compile "$LINENO"; then :
27167 tst_gethostname_type_arg2="$tst_arg2"
27170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
27175 $as_echo "$tst_gethostname_type_arg2" >&6; }
27176 if test "$tst_gethostname_type_arg2" != "unknown"; then
27178 cat >>confdefs.h <<_ACEOF
27179 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
27185 if test "$tst_compi_gethostname" = "yes"; then
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
27187 $as_echo_n "checking if gethostname usage allowed... " >&6; }
27188 if test "x$cares_disallow_gethostname" != "xyes"; then
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27190 $as_echo "yes" >&6; }
27191 tst_allow_gethostname="yes"
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27194 $as_echo "no" >&6; }
27195 tst_allow_gethostname="no"
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
27200 $as_echo_n "checking if gethostname might be used... " >&6; }
27201 if test "$tst_links_gethostname" = "yes" &&
27202 test "$tst_proto_gethostname" = "yes" &&
27203 test "$tst_compi_gethostname" = "yes" &&
27204 test "$tst_allow_gethostname" = "yes"; then
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27206 $as_echo "yes" >&6; }
27208 cat >>confdefs.h <<_ACEOF
27209 #define HAVE_GETHOSTNAME 1
27212 ac_cv_func_gethostname="yes"
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27215 $as_echo "no" >&6; }
27216 ac_cv_func_gethostname="no"
27221 tst_links_getservbyport_r="unknown"
27222 tst_proto_getservbyport_r="unknown"
27223 tst_compi_getservbyport_r="unknown"
27224 tst_allow_getservbyport_r="unknown"
27225 tst_nargs_getservbyport_r="unknown"
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
27228 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
27229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230 /* end confdefs.h. */
27233 #define getservbyport_r innocuous_getservbyport_r
27235 # include <limits.h>
27237 # include <assert.h>
27239 #undef getservbyport_r
27243 char getservbyport_r ();
27244 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
27250 return getservbyport_r ();
27256 if ac_fn_c_try_link "$LINENO"; then :
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27259 $as_echo "yes" >&6; }
27260 tst_links_getservbyport_r="yes"
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27265 $as_echo "no" >&6; }
27266 tst_links_getservbyport_r="no"
27269 rm -f core conftest.err conftest.$ac_objext \
27270 conftest$ac_exeext conftest.$ac_ext
27272 if test "$tst_links_getservbyport_r" = "yes"; then
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
27274 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
27275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27276 /* end confdefs.h. */
27278 $cares_includes_netdb
27281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27282 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27285 $as_echo "yes" >&6; }
27286 tst_proto_getservbyport_r="yes"
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27291 $as_echo "no" >&6; }
27292 tst_proto_getservbyport_r="no"
27299 if test "$tst_proto_getservbyport_r" = "yes"; then
27300 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
27302 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
27303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27304 /* end confdefs.h. */
27307 $cares_includes_netdb
27312 if(0 != getservbyport_r(0, 0, 0, 0))
27320 if ac_fn_c_try_compile "$LINENO"; then :
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27323 $as_echo "yes" >&6; }
27324 tst_compi_getservbyport_r="yes"
27325 tst_nargs_getservbyport_r="4"
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27330 $as_echo "no" >&6; }
27331 tst_compi_getservbyport_r="no"
27334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27336 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
27338 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
27339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340 /* end confdefs.h. */
27343 $cares_includes_netdb
27348 if(0 != getservbyport_r(0, 0, 0, 0, 0))
27356 if ac_fn_c_try_compile "$LINENO"; then :
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27359 $as_echo "yes" >&6; }
27360 tst_compi_getservbyport_r="yes"
27361 tst_nargs_getservbyport_r="5"
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27366 $as_echo "no" >&6; }
27367 tst_compi_getservbyport_r="no"
27370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
27374 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
27375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h. */
27379 $cares_includes_netdb
27384 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
27392 if ac_fn_c_try_compile "$LINENO"; then :
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27395 $as_echo "yes" >&6; }
27396 tst_compi_getservbyport_r="yes"
27397 tst_nargs_getservbyport_r="6"
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27402 $as_echo "no" >&6; }
27403 tst_compi_getservbyport_r="no"
27406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
27409 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
27410 if test "$tst_compi_getservbyport_r" = "yes"; then
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27412 $as_echo "yes" >&6; }
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27415 $as_echo "no" >&6; }
27419 if test "$tst_compi_getservbyport_r" = "yes"; then
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
27421 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
27422 if test "x$cares_disallow_getservbyport_r" != "xyes"; then
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27424 $as_echo "yes" >&6; }
27425 tst_allow_getservbyport_r="yes"
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27428 $as_echo "no" >&6; }
27429 tst_allow_getservbyport_r="no"
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
27434 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
27435 if test "$tst_links_getservbyport_r" = "yes" &&
27436 test "$tst_proto_getservbyport_r" = "yes" &&
27437 test "$tst_compi_getservbyport_r" = "yes" &&
27438 test "$tst_allow_getservbyport_r" = "yes"; then
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27440 $as_echo "yes" >&6; }
27442 cat >>confdefs.h <<_ACEOF
27443 #define HAVE_GETSERVBYPORT_R 1
27447 cat >>confdefs.h <<_ACEOF
27448 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
27451 if test "$tst_nargs_getservbyport_r" -eq "4"; then
27453 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
27457 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
27460 ac_cv_func_getservbyport_r="yes"
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27463 $as_echo "no" >&6; }
27464 ac_cv_func_getservbyport_r="no"
27468 cares_includes_arpa_inet="\
27469 /* includes start */
27470 #ifdef HAVE_SYS_TYPES_H
27471 # include <sys/types.h>
27473 #ifdef HAVE_SYS_SOCKET_H
27474 # include <sys/socket.h>
27476 #ifdef HAVE_NETINET_IN_H
27477 # include <netinet/in.h>
27479 #ifdef HAVE_ARPA_INET_H
27480 # include <arpa/inet.h>
27482 /* includes end */"
27483 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
27485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
27488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27489 cat >>confdefs.h <<_ACEOF
27490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27500 tst_links_inet_net_pton="unknown"
27501 tst_proto_inet_net_pton="unknown"
27502 tst_compi_inet_net_pton="unknown"
27503 tst_works_inet_net_pton="unknown"
27504 tst_allow_inet_net_pton="unknown"
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
27507 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
27508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27509 /* end confdefs.h. */
27512 #define inet_net_pton innocuous_inet_net_pton
27514 # include <limits.h>
27516 # include <assert.h>
27518 #undef inet_net_pton
27522 char inet_net_pton ();
27523 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
27529 return inet_net_pton ();
27535 if ac_fn_c_try_link "$LINENO"; then :
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27538 $as_echo "yes" >&6; }
27539 tst_links_inet_net_pton="yes"
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27544 $as_echo "no" >&6; }
27545 tst_links_inet_net_pton="no"
27548 rm -f core conftest.err conftest.$ac_objext \
27549 conftest$ac_exeext conftest.$ac_ext
27551 if test "$tst_links_inet_net_pton" = "yes"; then
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
27553 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
27554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27555 /* end confdefs.h. */
27557 $cares_includes_arpa_inet
27560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27561 $EGREP "inet_net_pton" >/dev/null 2>&1; then :
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27564 $as_echo "yes" >&6; }
27565 tst_proto_inet_net_pton="yes"
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27570 $as_echo "no" >&6; }
27571 tst_proto_inet_net_pton="no"
27578 if test "$tst_proto_inet_net_pton" = "yes"; then
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
27580 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
27581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27582 /* end confdefs.h. */
27585 $cares_includes_arpa_inet
27590 if(0 != inet_net_pton(0, 0, 0, 0))
27598 if ac_fn_c_try_compile "$LINENO"; then :
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27601 $as_echo "yes" >&6; }
27602 tst_compi_inet_net_pton="yes"
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27607 $as_echo "no" >&6; }
27608 tst_compi_inet_net_pton="no"
27611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27614 if test "x$cross_compiling" != "xyes" &&
27615 test "$tst_compi_inet_net_pton" = "yes"; then
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
27617 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
27618 if test "$cross_compiling" = yes; then :
27619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27621 as_fn_error $? "cannot run test program while cross compiling
27622 See \`config.log' for more details" "$LINENO" 5; }
27624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27625 /* end confdefs.h. */
27628 $cares_includes_stdlib
27629 $cares_includes_arpa_inet
27630 $cares_includes_string
27635 unsigned char ipv6a[16+1];
27636 unsigned char ipv4a[4+1];
27637 const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
27638 const char *ipv6net2 = "::fffe:7f00:1";
27639 const char *ipv6net3 = "7f20:1::/64";
27640 const char *ipv6net4 = "7f20:1::/2147483649";
27641 const char *ipv4net1 = "192.168.100.1";
27642 const char *ipv4net2 = "192.168.100/32";
27643 const char *ipv4net3 = "192.168.100.1/2147483649";
27645 memset(ipv4a, 1, sizeof(ipv4a));
27646 if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
27647 exit(1); /* fail */
27649 if( (ipv4a[0x00] != 0xc0) ||
27650 (ipv4a[0x01] != 0xa8) ||
27651 (ipv4a[0x02] != 0x64) ||
27652 (ipv4a[0x03] != 0x01) ||
27653 (ipv4a[0x04] != 0x01) )
27654 exit(1); /* fail */
27656 memset(ipv4a, 1, sizeof(ipv4a));
27657 if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
27658 exit(1); /* fail */
27660 if( (ipv4a[0x00] != 0xc0) ||
27661 (ipv4a[0x01] != 0xa8) ||
27662 (ipv4a[0x02] != 0x64) ||
27663 (ipv4a[0x03] != 0x00) ||
27664 (ipv4a[0x04] != 0x01) )
27665 exit(1); /* fail */
27667 memset(ipv4a, 1, sizeof(ipv4a));
27668 if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
27669 exit(1); /* fail */
27671 memset(ipv6a, 1, sizeof(ipv6a));
27672 if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
27673 exit(1); /* fail */
27675 if( (ipv6a[0x00] != 0xfe) ||
27676 (ipv6a[0x01] != 0x80) ||
27677 (ipv6a[0x08] != 0x02) ||
27678 (ipv6a[0x09] != 0x14) ||
27679 (ipv6a[0x0a] != 0x4f) ||
27680 (ipv6a[0x0b] != 0xff) ||
27681 (ipv6a[0x0c] != 0xfe) ||
27682 (ipv6a[0x0d] != 0x0b) ||
27683 (ipv6a[0x0e] != 0x76) ||
27684 (ipv6a[0x0f] != 0xc8) ||
27685 (ipv6a[0x10] != 0x01) )
27686 exit(1); /* fail */
27688 if( (ipv6a[0x02] != 0x0) ||
27689 (ipv6a[0x03] != 0x0) ||
27690 (ipv6a[0x04] != 0x0) ||
27691 (ipv6a[0x05] != 0x0) ||
27692 (ipv6a[0x06] != 0x0) ||
27693 (ipv6a[0x07] != 0x0) )
27694 exit(1); /* fail */
27696 memset(ipv6a, 0, sizeof(ipv6a));
27697 ipv6a[0x10] = 0x01;
27698 if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
27699 exit(1); /* fail */
27701 if( (ipv6a[0x0a] != 0xff) ||
27702 (ipv6a[0x0b] != 0xfe) ||
27703 (ipv6a[0x0c] != 0x7f) ||
27704 (ipv6a[0x0f] != 0x01) ||
27705 (ipv6a[0x10] != 0x01) )
27706 exit(1); /* fail */
27708 if( (ipv6a[0x00] != 0x0) ||
27709 (ipv6a[0x01] != 0x0) ||
27710 (ipv6a[0x02] != 0x0) ||
27711 (ipv6a[0x03] != 0x0) ||
27712 (ipv6a[0x04] != 0x0) ||
27713 (ipv6a[0x05] != 0x0) ||
27714 (ipv6a[0x06] != 0x0) ||
27715 (ipv6a[0x07] != 0x0) ||
27716 (ipv6a[0x08] != 0x0) ||
27717 (ipv6a[0x09] != 0x0) ||
27718 (ipv6a[0x0d] != 0x0) ||
27719 (ipv6a[0x0e] != 0x0) )
27720 exit(1); /* fail */
27722 memset(ipv6a, 1, sizeof(ipv6a));
27723 if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
27724 exit(1); /* fail */
27725 if( (ipv6a[0x00] != 0x7f) ||
27726 (ipv6a[0x01] != 0x20) ||
27727 (ipv6a[0x03] != 0x01) ||
27728 (ipv6a[0x08] != 0x01) ||
27729 (ipv6a[0x09] != 0x01) ||
27730 (ipv6a[0x0a] != 0x01) ||
27731 (ipv6a[0x0b] != 0x01) ||
27732 (ipv6a[0x0c] != 0x01) ||
27733 (ipv6a[0x0d] != 0x01) ||
27734 (ipv6a[0x0e] != 0x01) ||
27735 (ipv6a[0x0f] != 0x01) ||
27736 (ipv6a[0x10] != 0x01) )
27737 exit(1); /* fail */
27738 if( (ipv6a[0x02] != 0x0) ||
27739 (ipv6a[0x04] != 0x0) ||
27740 (ipv6a[0x05] != 0x0) ||
27741 (ipv6a[0x06] != 0x0) ||
27742 (ipv6a[0x07] != 0x0) ||
27743 (ipv6a[0x07] != 0x0) )
27744 exit(1); /* fail */
27746 memset(ipv6a, 1, sizeof(ipv6a));
27747 if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
27748 exit(1); /* fail */
27757 if ac_fn_c_try_run "$LINENO"; then :
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27760 $as_echo "yes" >&6; }
27761 tst_works_inet_net_pton="yes"
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27766 $as_echo "no" >&6; }
27767 tst_works_inet_net_pton="no"
27770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27771 conftest.$ac_objext conftest.beam conftest.$ac_ext
27776 if test "$tst_compi_inet_net_pton" = "yes" &&
27777 test "$tst_works_inet_net_pton" != "no"; then
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
27779 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
27780 if test "x$cares_disallow_inet_net_pton" != "xyes"; then
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27782 $as_echo "yes" >&6; }
27783 tst_allow_inet_net_pton="yes"
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27786 $as_echo "no" >&6; }
27787 tst_allow_inet_net_pton="no"
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
27792 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
27793 if test "$tst_links_inet_net_pton" = "yes" &&
27794 test "$tst_proto_inet_net_pton" = "yes" &&
27795 test "$tst_compi_inet_net_pton" = "yes" &&
27796 test "$tst_allow_inet_net_pton" = "yes" &&
27797 test "$tst_works_inet_net_pton" != "no"; then
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27799 $as_echo "yes" >&6; }
27801 cat >>confdefs.h <<_ACEOF
27802 #define HAVE_INET_NET_PTON 1
27805 ac_cv_func_inet_net_pton="yes"
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27808 $as_echo "no" >&6; }
27809 ac_cv_func_inet_net_pton="no"
27814 tst_links_inet_ntop="unknown"
27815 tst_proto_inet_ntop="unknown"
27816 tst_compi_inet_ntop="unknown"
27817 tst_works_inet_ntop="unknown"
27818 tst_allow_inet_ntop="unknown"
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
27821 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
27822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27823 /* end confdefs.h. */
27826 #define inet_ntop innocuous_inet_ntop
27828 # include <limits.h>
27830 # include <assert.h>
27837 #if defined __stub_inet_ntop || defined __stub___inet_ntop
27843 return inet_ntop ();
27849 if ac_fn_c_try_link "$LINENO"; then :
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27852 $as_echo "yes" >&6; }
27853 tst_links_inet_ntop="yes"
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27858 $as_echo "no" >&6; }
27859 tst_links_inet_ntop="no"
27862 rm -f core conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
27865 if test "$tst_links_inet_ntop" = "yes"; then
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
27867 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
27868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27869 /* end confdefs.h. */
27871 $cares_includes_arpa_inet
27874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27875 $EGREP "inet_ntop" >/dev/null 2>&1; then :
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27878 $as_echo "yes" >&6; }
27879 tst_proto_inet_ntop="yes"
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27884 $as_echo "no" >&6; }
27885 tst_proto_inet_ntop="no"
27892 if test "$tst_proto_inet_ntop" = "yes"; then
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
27894 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
27895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h. */
27899 $cares_includes_arpa_inet
27904 if(0 != inet_ntop(0, 0, 0, 0))
27912 if ac_fn_c_try_compile "$LINENO"; then :
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27915 $as_echo "yes" >&6; }
27916 tst_compi_inet_ntop="yes"
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27921 $as_echo "no" >&6; }
27922 tst_compi_inet_ntop="no"
27925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27928 if test "x$cross_compiling" != "xyes" &&
27929 test "$tst_compi_inet_ntop" = "yes"; then
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
27931 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
27932 if test "$cross_compiling" = yes; then :
27933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27935 as_fn_error $? "cannot run test program while cross compiling
27936 See \`config.log' for more details" "$LINENO" 5; }
27938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939 /* end confdefs.h. */
27942 $cares_includes_stdlib
27943 $cares_includes_arpa_inet
27944 $cares_includes_string
27949 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
27950 char ipv4res[sizeof "255.255.255.255"];
27951 unsigned char ipv6a[26];
27952 unsigned char ipv4a[5];
27963 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
27965 exit(1); /* fail */
27966 if(ipv4ptr != ipv4res)
27967 exit(1); /* fail */
27969 exit(1); /* fail */
27970 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
27971 exit(1); /* fail */
27974 memset(ipv6a, 0, sizeof(ipv6a));
27987 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
27989 exit(1); /* fail */
27990 if(ipv6ptr != ipv6res)
27991 exit(1); /* fail */
27993 exit(1); /* fail */
27994 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
27995 exit(1); /* fail */
28004 if ac_fn_c_try_run "$LINENO"; then :
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28007 $as_echo "yes" >&6; }
28008 tst_works_inet_ntop="yes"
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28013 $as_echo "no" >&6; }
28014 tst_works_inet_ntop="no"
28017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28018 conftest.$ac_objext conftest.beam conftest.$ac_ext
28023 if test "$tst_compi_inet_ntop" = "yes" &&
28024 test "$tst_works_inet_ntop" != "no"; then
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
28026 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
28027 if test "x$cares_disallow_inet_ntop" != "xyes"; then
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28029 $as_echo "yes" >&6; }
28030 tst_allow_inet_ntop="yes"
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28033 $as_echo "no" >&6; }
28034 tst_allow_inet_ntop="no"
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
28039 $as_echo_n "checking if inet_ntop might be used... " >&6; }
28040 if test "$tst_links_inet_ntop" = "yes" &&
28041 test "$tst_proto_inet_ntop" = "yes" &&
28042 test "$tst_compi_inet_ntop" = "yes" &&
28043 test "$tst_allow_inet_ntop" = "yes" &&
28044 test "$tst_works_inet_ntop" != "no"; then
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28046 $as_echo "yes" >&6; }
28048 cat >>confdefs.h <<_ACEOF
28049 #define HAVE_INET_NTOP 1
28052 ac_cv_func_inet_ntop="yes"
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28055 $as_echo "no" >&6; }
28056 ac_cv_func_inet_ntop="no"
28061 tst_links_inet_pton="unknown"
28062 tst_proto_inet_pton="unknown"
28063 tst_compi_inet_pton="unknown"
28064 tst_works_inet_pton="unknown"
28065 tst_allow_inet_pton="unknown"
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
28068 $as_echo_n "checking if inet_pton can be linked... " >&6; }
28069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28070 /* end confdefs.h. */
28073 #define inet_pton innocuous_inet_pton
28075 # include <limits.h>
28077 # include <assert.h>
28084 #if defined __stub_inet_pton || defined __stub___inet_pton
28090 return inet_pton ();
28096 if ac_fn_c_try_link "$LINENO"; then :
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28099 $as_echo "yes" >&6; }
28100 tst_links_inet_pton="yes"
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28105 $as_echo "no" >&6; }
28106 tst_links_inet_pton="no"
28109 rm -f core conftest.err conftest.$ac_objext \
28110 conftest$ac_exeext conftest.$ac_ext
28112 if test "$tst_links_inet_pton" = "yes"; then
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
28114 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
28115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28116 /* end confdefs.h. */
28118 $cares_includes_arpa_inet
28121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28122 $EGREP "inet_pton" >/dev/null 2>&1; then :
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28125 $as_echo "yes" >&6; }
28126 tst_proto_inet_pton="yes"
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28131 $as_echo "no" >&6; }
28132 tst_proto_inet_pton="no"
28139 if test "$tst_proto_inet_pton" = "yes"; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
28141 $as_echo_n "checking if inet_pton is compilable... " >&6; }
28142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28143 /* end confdefs.h. */
28146 $cares_includes_arpa_inet
28151 if(0 != inet_pton(0, 0, 0))
28159 if ac_fn_c_try_compile "$LINENO"; then :
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28162 $as_echo "yes" >&6; }
28163 tst_compi_inet_pton="yes"
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28168 $as_echo "no" >&6; }
28169 tst_compi_inet_pton="no"
28172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 if test "x$cross_compiling" != "xyes" &&
28176 test "$tst_compi_inet_pton" = "yes"; then
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
28178 $as_echo_n "checking if inet_pton seems to work... " >&6; }
28179 if test "$cross_compiling" = yes; then :
28180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28182 as_fn_error $? "cannot run test program while cross compiling
28183 See \`config.log' for more details" "$LINENO" 5; }
28185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28186 /* end confdefs.h. */
28189 $cares_includes_stdlib
28190 $cares_includes_arpa_inet
28191 $cares_includes_string
28196 unsigned char ipv6a[16+1];
28197 unsigned char ipv4a[4+1];
28198 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
28199 const char *ipv4src = "192.168.100.1";
28201 memset(ipv4a, 1, sizeof(ipv4a));
28202 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
28203 exit(1); /* fail */
28205 if( (ipv4a[0] != 0xc0) ||
28206 (ipv4a[1] != 0xa8) ||
28207 (ipv4a[2] != 0x64) ||
28208 (ipv4a[3] != 0x01) ||
28209 (ipv4a[4] != 0x01) )
28210 exit(1); /* fail */
28212 memset(ipv6a, 1, sizeof(ipv6a));
28213 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
28214 exit(1); /* fail */
28216 if( (ipv6a[0] != 0xfe) ||
28217 (ipv6a[1] != 0x80) ||
28218 (ipv6a[8] != 0x02) ||
28219 (ipv6a[9] != 0x14) ||
28220 (ipv6a[10] != 0x4f) ||
28221 (ipv6a[11] != 0xff) ||
28222 (ipv6a[12] != 0xfe) ||
28223 (ipv6a[13] != 0x0b) ||
28224 (ipv6a[14] != 0x76) ||
28225 (ipv6a[15] != 0xc8) ||
28226 (ipv6a[16] != 0x01) )
28227 exit(1); /* fail */
28229 if( (ipv6a[2] != 0x0) ||
28230 (ipv6a[3] != 0x0) ||
28231 (ipv6a[4] != 0x0) ||
28232 (ipv6a[5] != 0x0) ||
28233 (ipv6a[6] != 0x0) ||
28234 (ipv6a[7] != 0x0) )
28235 exit(1); /* fail */
28244 if ac_fn_c_try_run "$LINENO"; then :
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28247 $as_echo "yes" >&6; }
28248 tst_works_inet_pton="yes"
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28253 $as_echo "no" >&6; }
28254 tst_works_inet_pton="no"
28257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28258 conftest.$ac_objext conftest.beam conftest.$ac_ext
28263 if test "$tst_compi_inet_pton" = "yes" &&
28264 test "$tst_works_inet_pton" != "no"; then
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
28266 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
28267 if test "x$cares_disallow_inet_pton" != "xyes"; then
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28269 $as_echo "yes" >&6; }
28270 tst_allow_inet_pton="yes"
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28273 $as_echo "no" >&6; }
28274 tst_allow_inet_pton="no"
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
28279 $as_echo_n "checking if inet_pton might be used... " >&6; }
28280 if test "$tst_links_inet_pton" = "yes" &&
28281 test "$tst_proto_inet_pton" = "yes" &&
28282 test "$tst_compi_inet_pton" = "yes" &&
28283 test "$tst_allow_inet_pton" = "yes" &&
28284 test "$tst_works_inet_pton" != "no"; then
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28286 $as_echo "yes" >&6; }
28288 cat >>confdefs.h <<_ACEOF
28289 #define HAVE_INET_PTON 1
28292 ac_cv_func_inet_pton="yes"
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28295 $as_echo "no" >&6; }
28296 ac_cv_func_inet_pton="no"
28300 cares_includes_stropts="\
28301 /* includes start */
28302 #ifdef HAVE_SYS_TYPES_H
28303 # include <sys/types.h>
28305 #ifdef HAVE_UNISTD_H
28306 # include <unistd.h>
28308 #ifdef HAVE_SYS_SOCKET_H
28309 # include <sys/socket.h>
28311 #ifdef HAVE_SYS_IOCTL_H
28312 # include <sys/ioctl.h>
28314 #ifdef HAVE_STROPTS_H
28315 # include <stropts.h>
28317 /* includes end */"
28318 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
28320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28321 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
28323 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28324 cat >>confdefs.h <<_ACEOF
28325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28335 tst_links_ioctl="unknown"
28336 tst_proto_ioctl="unknown"
28337 tst_compi_ioctl="unknown"
28338 tst_allow_ioctl="unknown"
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
28341 $as_echo_n "checking if ioctl can be linked... " >&6; }
28342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28343 /* end confdefs.h. */
28346 #define ioctl innocuous_ioctl
28348 # include <limits.h>
28350 # include <assert.h>
28357 #if defined __stub_ioctl || defined __stub___ioctl
28369 if ac_fn_c_try_link "$LINENO"; then :
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28372 $as_echo "yes" >&6; }
28373 tst_links_ioctl="yes"
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28378 $as_echo "no" >&6; }
28379 tst_links_ioctl="no"
28382 rm -f core conftest.err conftest.$ac_objext \
28383 conftest$ac_exeext conftest.$ac_ext
28385 if test "$tst_links_ioctl" = "yes"; then
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
28387 $as_echo_n "checking if ioctl is prototyped... " >&6; }
28388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28389 /* end confdefs.h. */
28391 $cares_includes_stropts
28394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28395 $EGREP "ioctl" >/dev/null 2>&1; then :
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28398 $as_echo "yes" >&6; }
28399 tst_proto_ioctl="yes"
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28404 $as_echo "no" >&6; }
28405 tst_proto_ioctl="no"
28412 if test "$tst_proto_ioctl" = "yes"; then
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
28414 $as_echo_n "checking if ioctl is compilable... " >&6; }
28415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28416 /* end confdefs.h. */
28419 $cares_includes_stropts
28424 if(0 != ioctl(0, 0, 0))
28432 if ac_fn_c_try_compile "$LINENO"; then :
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28435 $as_echo "yes" >&6; }
28436 tst_compi_ioctl="yes"
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28441 $as_echo "no" >&6; }
28442 tst_compi_ioctl="no"
28445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28448 if test "$tst_compi_ioctl" = "yes"; then
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
28450 $as_echo_n "checking if ioctl usage allowed... " >&6; }
28451 if test "x$cares_disallow_ioctl" != "xyes"; then
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28453 $as_echo "yes" >&6; }
28454 tst_allow_ioctl="yes"
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28457 $as_echo "no" >&6; }
28458 tst_allow_ioctl="no"
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
28463 $as_echo_n "checking if ioctl might be used... " >&6; }
28464 if test "$tst_links_ioctl" = "yes" &&
28465 test "$tst_proto_ioctl" = "yes" &&
28466 test "$tst_compi_ioctl" = "yes" &&
28467 test "$tst_allow_ioctl" = "yes"; then
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28469 $as_echo "yes" >&6; }
28471 cat >>confdefs.h <<_ACEOF
28472 #define HAVE_IOCTL 1
28475 ac_cv_func_ioctl="yes"
28478 tst_compi_ioctl_fionbio="unknown"
28479 tst_allow_ioctl_fionbio="unknown"
28481 if test "$ac_cv_func_ioctl" = "yes"; then
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
28483 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
28484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28485 /* end confdefs.h. */
28488 $cares_includes_stropts
28494 if(0 != ioctl(0, FIONBIO, &flags))
28502 if ac_fn_c_try_compile "$LINENO"; then :
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28505 $as_echo "yes" >&6; }
28506 tst_compi_ioctl_fionbio="yes"
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28511 $as_echo "no" >&6; }
28512 tst_compi_ioctl_fionbio="no"
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518 if test "$tst_compi_ioctl_fionbio" = "yes"; then
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
28520 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
28521 if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28523 $as_echo "yes" >&6; }
28524 tst_allow_ioctl_fionbio="yes"
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28527 $as_echo "no" >&6; }
28528 tst_allow_ioctl_fionbio="no"
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
28533 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
28534 if test "$tst_compi_ioctl_fionbio" = "yes" &&
28535 test "$tst_allow_ioctl_fionbio" = "yes"; then
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28537 $as_echo "yes" >&6; }
28539 cat >>confdefs.h <<_ACEOF
28540 #define HAVE_IOCTL_FIONBIO 1
28543 ac_cv_func_ioctl_fionbio="yes"
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28546 $as_echo "no" >&6; }
28547 ac_cv_func_ioctl_fionbio="no"
28552 tst_compi_ioctl_siocgifaddr="unknown"
28553 tst_allow_ioctl_siocgifaddr="unknown"
28555 if test "$ac_cv_func_ioctl" = "yes"; then
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
28557 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
28558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559 /* end confdefs.h. */
28562 $cares_includes_stropts
28563 #include <net/if.h>
28569 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
28577 if ac_fn_c_try_compile "$LINENO"; then :
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28580 $as_echo "yes" >&6; }
28581 tst_compi_ioctl_siocgifaddr="yes"
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28586 $as_echo "no" >&6; }
28587 tst_compi_ioctl_siocgifaddr="no"
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28593 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
28595 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
28596 if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28598 $as_echo "yes" >&6; }
28599 tst_allow_ioctl_siocgifaddr="yes"
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28602 $as_echo "no" >&6; }
28603 tst_allow_ioctl_siocgifaddr="no"
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
28608 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
28609 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
28610 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28612 $as_echo "yes" >&6; }
28614 cat >>confdefs.h <<_ACEOF
28615 #define HAVE_IOCTL_SIOCGIFADDR 1
28618 ac_cv_func_ioctl_siocgifaddr="yes"
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28621 $as_echo "no" >&6; }
28622 ac_cv_func_ioctl_siocgifaddr="no"
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28627 $as_echo "no" >&6; }
28628 ac_cv_func_ioctl="no"
28633 tst_links_ioctlsocket="unknown"
28634 tst_proto_ioctlsocket="unknown"
28635 tst_compi_ioctlsocket="unknown"
28636 tst_allow_ioctlsocket="unknown"
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
28639 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
28640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641 /* end confdefs.h. */
28644 $cares_includes_winsock2
28649 if(0 != ioctlsocket(0, 0, 0))
28657 if ac_fn_c_try_link "$LINENO"; then :
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28660 $as_echo "yes" >&6; }
28661 tst_links_ioctlsocket="yes"
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28666 $as_echo "no" >&6; }
28667 tst_links_ioctlsocket="no"
28670 rm -f core conftest.err conftest.$ac_objext \
28671 conftest$ac_exeext conftest.$ac_ext
28673 if test "$tst_links_ioctlsocket" = "yes"; then
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
28675 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
28676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h. */
28679 $cares_includes_winsock2
28682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28683 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28686 $as_echo "yes" >&6; }
28687 tst_proto_ioctlsocket="yes"
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28692 $as_echo "no" >&6; }
28693 tst_proto_ioctlsocket="no"
28700 if test "$tst_proto_ioctlsocket" = "yes"; then
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
28702 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
28703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28704 /* end confdefs.h. */
28707 $cares_includes_winsock2
28712 if(0 != ioctlsocket(0, 0, 0))
28720 if ac_fn_c_try_compile "$LINENO"; then :
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28723 $as_echo "yes" >&6; }
28724 tst_compi_ioctlsocket="yes"
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28729 $as_echo "no" >&6; }
28730 tst_compi_ioctlsocket="no"
28733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736 if test "$tst_compi_ioctlsocket" = "yes"; then
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
28738 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
28739 if test "x$cares_disallow_ioctlsocket" != "xyes"; then
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28741 $as_echo "yes" >&6; }
28742 tst_allow_ioctlsocket="yes"
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28745 $as_echo "no" >&6; }
28746 tst_allow_ioctlsocket="no"
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
28751 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
28752 if test "$tst_links_ioctlsocket" = "yes" &&
28753 test "$tst_proto_ioctlsocket" = "yes" &&
28754 test "$tst_compi_ioctlsocket" = "yes" &&
28755 test "$tst_allow_ioctlsocket" = "yes"; then
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28757 $as_echo "yes" >&6; }
28759 cat >>confdefs.h <<_ACEOF
28760 #define HAVE_IOCTLSOCKET 1
28763 ac_cv_func_ioctlsocket="yes"
28766 tst_compi_ioctlsocket_fionbio="unknown"
28767 tst_allow_ioctlsocket_fionbio="unknown"
28769 if test "$ac_cv_func_ioctlsocket" = "yes"; then
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
28771 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
28772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28773 /* end confdefs.h. */
28776 $cares_includes_winsock2
28782 if(0 != ioctlsocket(0, FIONBIO, &flags))
28790 if ac_fn_c_try_compile "$LINENO"; then :
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28793 $as_echo "yes" >&6; }
28794 tst_compi_ioctlsocket_fionbio="yes"
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28799 $as_echo "no" >&6; }
28800 tst_compi_ioctlsocket_fionbio="no"
28803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28806 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
28808 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
28809 if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28811 $as_echo "yes" >&6; }
28812 tst_allow_ioctlsocket_fionbio="yes"
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28815 $as_echo "no" >&6; }
28816 tst_allow_ioctlsocket_fionbio="no"
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
28821 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
28822 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
28823 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28825 $as_echo "yes" >&6; }
28827 cat >>confdefs.h <<_ACEOF
28828 #define HAVE_IOCTLSOCKET_FIONBIO 1
28831 ac_cv_func_ioctlsocket_fionbio="yes"
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28834 $as_echo "no" >&6; }
28835 ac_cv_func_ioctlsocket_fionbio="no"
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28840 $as_echo "no" >&6; }
28841 ac_cv_func_ioctlsocket="no"
28846 tst_links_ioctlsocket_camel="unknown"
28847 tst_proto_ioctlsocket_camel="unknown"
28848 tst_compi_ioctlsocket_camel="unknown"
28849 tst_allow_ioctlsocket_camel="unknown"
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
28852 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h. */
28857 #define IoctlSocket innocuous_IoctlSocket
28859 # include <limits.h>
28861 # include <assert.h>
28867 char IoctlSocket ();
28868 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
28874 return IoctlSocket ();
28880 if ac_fn_c_try_link "$LINENO"; then :
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28883 $as_echo "yes" >&6; }
28884 tst_links_ioctlsocket_camel="yes"
28888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28889 $as_echo "no" >&6; }
28890 tst_links_ioctlsocket_camel="no"
28893 rm -f core conftest.err conftest.$ac_objext \
28894 conftest$ac_exeext conftest.$ac_ext
28896 if test "$tst_links_ioctlsocket_camel" = "yes"; then
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
28898 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
28899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28900 /* end confdefs.h. */
28902 $cares_includes_stropts
28905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28906 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28909 $as_echo "yes" >&6; }
28910 tst_proto_ioctlsocket_camel="yes"
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28915 $as_echo "no" >&6; }
28916 tst_proto_ioctlsocket_camel="no"
28923 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
28925 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
28926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28927 /* end confdefs.h. */
28930 $cares_includes_stropts
28935 if(0 != IoctlSocket(0, 0, 0))
28943 if ac_fn_c_try_compile "$LINENO"; then :
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28946 $as_echo "yes" >&6; }
28947 tst_compi_ioctlsocket_camel="yes"
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28952 $as_echo "no" >&6; }
28953 tst_compi_ioctlsocket_camel="no"
28956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28959 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
28961 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
28962 if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28964 $as_echo "yes" >&6; }
28965 tst_allow_ioctlsocket_camel="yes"
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28968 $as_echo "no" >&6; }
28969 tst_allow_ioctlsocket_camel="no"
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
28974 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
28975 if test "$tst_links_ioctlsocket_camel" = "yes" &&
28976 test "$tst_proto_ioctlsocket_camel" = "yes" &&
28977 test "$tst_compi_ioctlsocket_camel" = "yes" &&
28978 test "$tst_allow_ioctlsocket_camel" = "yes"; then
28979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28980 $as_echo "yes" >&6; }
28982 cat >>confdefs.h <<_ACEOF
28983 #define HAVE_IOCTLSOCKET_CAMEL 1
28986 ac_cv_func_ioctlsocket_camel="yes"
28989 tst_compi_ioctlsocket_camel_fionbio="unknown"
28990 tst_allow_ioctlsocket_camel_fionbio="unknown"
28992 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
28994 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
28995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28996 /* end confdefs.h. */
28999 $cares_includes_stropts
29005 if(0 != ioctlsocket(0, FIONBIO, &flags))
29013 if ac_fn_c_try_compile "$LINENO"; then :
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29016 $as_echo "yes" >&6; }
29017 tst_compi_ioctlsocket_camel_fionbio="yes"
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29022 $as_echo "no" >&6; }
29023 tst_compi_ioctlsocket_camel_fionbio="no"
29026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
29031 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
29032 if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29034 $as_echo "yes" >&6; }
29035 tst_allow_ioctlsocket_camel_fionbio="yes"
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29038 $as_echo "no" >&6; }
29039 tst_allow_ioctlsocket_camel_fionbio="no"
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
29044 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
29045 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
29046 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29048 $as_echo "yes" >&6; }
29050 cat >>confdefs.h <<_ACEOF
29051 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
29054 ac_cv_func_ioctlsocket_camel_fionbio="yes"
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29057 $as_echo "no" >&6; }
29058 ac_cv_func_ioctlsocket_camel_fionbio="no"
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29063 $as_echo "no" >&6; }
29064 ac_cv_func_ioctlsocket_camel="no"
29069 tst_links_setsockopt="unknown"
29070 tst_proto_setsockopt="unknown"
29071 tst_compi_setsockopt="unknown"
29072 tst_allow_setsockopt="unknown"
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
29075 $as_echo_n "checking if setsockopt can be linked... " >&6; }
29076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29077 /* end confdefs.h. */
29080 $cares_includes_winsock2
29081 $cares_includes_sys_socket
29086 if(0 != setsockopt(0, 0, 0, 0, 0))
29094 if ac_fn_c_try_link "$LINENO"; then :
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29097 $as_echo "yes" >&6; }
29098 tst_links_setsockopt="yes"
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29103 $as_echo "no" >&6; }
29104 tst_links_setsockopt="no"
29107 rm -f core conftest.err conftest.$ac_objext \
29108 conftest$ac_exeext conftest.$ac_ext
29110 if test "$tst_links_setsockopt" = "yes"; then
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
29112 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
29113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29114 /* end confdefs.h. */
29116 $cares_includes_winsock2
29117 $cares_includes_sys_socket
29120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29121 $EGREP "setsockopt" >/dev/null 2>&1; then :
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29124 $as_echo "yes" >&6; }
29125 tst_proto_setsockopt="yes"
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29130 $as_echo "no" >&6; }
29131 tst_proto_setsockopt="no"
29138 if test "$tst_proto_setsockopt" = "yes"; then
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
29140 $as_echo_n "checking if setsockopt is compilable... " >&6; }
29141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29142 /* end confdefs.h. */
29145 $cares_includes_winsock2
29146 $cares_includes_sys_socket
29151 if(0 != setsockopt(0, 0, 0, 0, 0))
29159 if ac_fn_c_try_compile "$LINENO"; then :
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29162 $as_echo "yes" >&6; }
29163 tst_compi_setsockopt="yes"
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29168 $as_echo "no" >&6; }
29169 tst_compi_setsockopt="no"
29172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29175 if test "$tst_compi_setsockopt" = "yes"; then
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
29177 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
29178 if test "x$cares_disallow_setsockopt" != "xyes"; then
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29180 $as_echo "yes" >&6; }
29181 tst_allow_setsockopt="yes"
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29184 $as_echo "no" >&6; }
29185 tst_allow_setsockopt="no"
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
29190 $as_echo_n "checking if setsockopt might be used... " >&6; }
29191 if test "$tst_links_setsockopt" = "yes" &&
29192 test "$tst_proto_setsockopt" = "yes" &&
29193 test "$tst_compi_setsockopt" = "yes" &&
29194 test "$tst_allow_setsockopt" = "yes"; then
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29196 $as_echo "yes" >&6; }
29198 cat >>confdefs.h <<_ACEOF
29199 #define HAVE_SETSOCKOPT 1
29202 ac_cv_func_setsockopt="yes"
29205 tst_compi_setsockopt_so_nonblock="unknown"
29206 tst_allow_setsockopt_so_nonblock="unknown"
29208 if test "$ac_cv_func_setsockopt" = "yes"; then
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
29210 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
29211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29212 /* end confdefs.h. */
29215 $cares_includes_winsock2
29216 $cares_includes_sys_socket
29221 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
29229 if ac_fn_c_try_compile "$LINENO"; then :
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29232 $as_echo "yes" >&6; }
29233 tst_compi_setsockopt_so_nonblock="yes"
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29238 $as_echo "no" >&6; }
29239 tst_compi_setsockopt_so_nonblock="no"
29242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29245 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
29246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
29247 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
29248 if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29250 $as_echo "yes" >&6; }
29251 tst_allow_setsockopt_so_nonblock="yes"
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29254 $as_echo "no" >&6; }
29255 tst_allow_setsockopt_so_nonblock="no"
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
29260 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
29261 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
29262 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29264 $as_echo "yes" >&6; }
29266 cat >>confdefs.h <<_ACEOF
29267 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
29270 ac_cv_func_setsockopt_so_nonblock="yes"
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29273 $as_echo "no" >&6; }
29274 ac_cv_func_setsockopt_so_nonblock="no"
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29279 $as_echo "no" >&6; }
29280 ac_cv_func_setsockopt="no"
29285 tst_links_socket="unknown"
29286 tst_proto_socket="unknown"
29287 tst_compi_socket="unknown"
29288 tst_allow_socket="unknown"
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
29291 $as_echo_n "checking if socket can be linked... " >&6; }
29292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29293 /* end confdefs.h. */
29296 $cares_includes_winsock2
29297 $cares_includes_sys_socket
29298 $cares_includes_socket
29303 if(0 != socket(0, 0, 0))
29311 if ac_fn_c_try_link "$LINENO"; then :
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29314 $as_echo "yes" >&6; }
29315 tst_links_socket="yes"
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29320 $as_echo "no" >&6; }
29321 tst_links_socket="no"
29324 rm -f core conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
29327 if test "$tst_links_socket" = "yes"; then
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
29329 $as_echo_n "checking if socket is prototyped... " >&6; }
29330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29331 /* end confdefs.h. */
29333 $cares_includes_winsock2
29334 $cares_includes_sys_socket
29335 $cares_includes_socket
29338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29339 $EGREP "socket" >/dev/null 2>&1; then :
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29342 $as_echo "yes" >&6; }
29343 tst_proto_socket="yes"
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29348 $as_echo "no" >&6; }
29349 tst_proto_socket="no"
29356 if test "$tst_proto_socket" = "yes"; then
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
29358 $as_echo_n "checking if socket is compilable... " >&6; }
29359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360 /* end confdefs.h. */
29363 $cares_includes_winsock2
29364 $cares_includes_sys_socket
29365 $cares_includes_socket
29370 if(0 != socket(0, 0, 0))
29378 if ac_fn_c_try_compile "$LINENO"; then :
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29381 $as_echo "yes" >&6; }
29382 tst_compi_socket="yes"
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387 $as_echo "no" >&6; }
29388 tst_compi_socket="no"
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29394 if test "$tst_compi_socket" = "yes"; then
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
29396 $as_echo_n "checking if socket usage allowed... " >&6; }
29397 if test "x$cares_disallow_socket" != "xyes"; then
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29399 $as_echo "yes" >&6; }
29400 tst_allow_socket="yes"
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403 $as_echo "no" >&6; }
29404 tst_allow_socket="no"
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
29409 $as_echo_n "checking if socket might be used... " >&6; }
29410 if test "$tst_links_socket" = "yes" &&
29411 test "$tst_proto_socket" = "yes" &&
29412 test "$tst_compi_socket" = "yes" &&
29413 test "$tst_allow_socket" = "yes"; then
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29415 $as_echo "yes" >&6; }
29417 cat >>confdefs.h <<_ACEOF
29418 #define HAVE_SOCKET 1
29421 ac_cv_func_socket="yes"
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29424 $as_echo "no" >&6; }
29425 ac_cv_func_socket="no"
29430 tst_links_strcasecmp="unknown"
29431 tst_proto_strcasecmp="unknown"
29432 tst_compi_strcasecmp="unknown"
29433 tst_allow_strcasecmp="unknown"
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
29436 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
29437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438 /* end confdefs.h. */
29441 #define strcasecmp innocuous_strcasecmp
29443 # include <limits.h>
29445 # include <assert.h>
29451 char strcasecmp ();
29452 #if defined __stub_strcasecmp || defined __stub___strcasecmp
29458 return strcasecmp ();
29464 if ac_fn_c_try_link "$LINENO"; then :
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29467 $as_echo "yes" >&6; }
29468 tst_links_strcasecmp="yes"
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29473 $as_echo "no" >&6; }
29474 tst_links_strcasecmp="no"
29477 rm -f core conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
29480 if test "$tst_links_strcasecmp" = "yes"; then
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
29482 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
29483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29484 /* end confdefs.h. */
29486 $cares_includes_string
29489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29490 $EGREP "strcasecmp" >/dev/null 2>&1; then :
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29493 $as_echo "yes" >&6; }
29494 tst_proto_strcasecmp="yes"
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29499 $as_echo "no" >&6; }
29500 tst_proto_strcasecmp="no"
29507 if test "$tst_proto_strcasecmp" = "yes"; then
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
29509 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
29510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29511 /* end confdefs.h. */
29514 $cares_includes_string
29519 if(0 != strcasecmp(0, 0))
29527 if ac_fn_c_try_compile "$LINENO"; then :
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29530 $as_echo "yes" >&6; }
29531 tst_compi_strcasecmp="yes"
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29536 $as_echo "no" >&6; }
29537 tst_compi_strcasecmp="no"
29540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29543 if test "$tst_compi_strcasecmp" = "yes"; then
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
29545 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
29546 if test "x$cares_disallow_strcasecmp" != "xyes"; then
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29548 $as_echo "yes" >&6; }
29549 tst_allow_strcasecmp="yes"
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29552 $as_echo "no" >&6; }
29553 tst_allow_strcasecmp="no"
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
29558 $as_echo_n "checking if strcasecmp might be used... " >&6; }
29559 if test "$tst_links_strcasecmp" = "yes" &&
29560 test "$tst_proto_strcasecmp" = "yes" &&
29561 test "$tst_compi_strcasecmp" = "yes" &&
29562 test "$tst_allow_strcasecmp" = "yes"; then
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29564 $as_echo "yes" >&6; }
29566 cat >>confdefs.h <<_ACEOF
29567 #define HAVE_STRCASECMP 1
29570 ac_cv_func_strcasecmp="yes"
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29573 $as_echo "no" >&6; }
29574 ac_cv_func_strcasecmp="no"
29579 tst_links_strcmpi="unknown"
29580 tst_proto_strcmpi="unknown"
29581 tst_compi_strcmpi="unknown"
29582 tst_allow_strcmpi="unknown"
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
29585 $as_echo_n "checking if strcmpi can be linked... " >&6; }
29586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h. */
29590 #define strcmpi innocuous_strcmpi
29592 # include <limits.h>
29594 # include <assert.h>
29601 #if defined __stub_strcmpi || defined __stub___strcmpi
29613 if ac_fn_c_try_link "$LINENO"; then :
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29616 $as_echo "yes" >&6; }
29617 tst_links_strcmpi="yes"
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29622 $as_echo "no" >&6; }
29623 tst_links_strcmpi="no"
29626 rm -f core conftest.err conftest.$ac_objext \
29627 conftest$ac_exeext conftest.$ac_ext
29629 if test "$tst_links_strcmpi" = "yes"; then
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
29631 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
29632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29633 /* end confdefs.h. */
29635 $cares_includes_string
29638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29639 $EGREP "strcmpi" >/dev/null 2>&1; then :
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29642 $as_echo "yes" >&6; }
29643 tst_proto_strcmpi="yes"
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29648 $as_echo "no" >&6; }
29649 tst_proto_strcmpi="no"
29656 if test "$tst_proto_strcmpi" = "yes"; then
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
29658 $as_echo_n "checking if strcmpi is compilable... " >&6; }
29659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29660 /* end confdefs.h. */
29663 $cares_includes_string
29668 if(0 != strcmpi(0, 0))
29676 if ac_fn_c_try_compile "$LINENO"; then :
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29679 $as_echo "yes" >&6; }
29680 tst_compi_strcmpi="yes"
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29685 $as_echo "no" >&6; }
29686 tst_compi_strcmpi="no"
29689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29692 if test "$tst_compi_strcmpi" = "yes"; then
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
29694 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
29695 if test "x$cares_disallow_strcmpi" != "xyes"; then
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29697 $as_echo "yes" >&6; }
29698 tst_allow_strcmpi="yes"
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29701 $as_echo "no" >&6; }
29702 tst_allow_strcmpi="no"
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
29707 $as_echo_n "checking if strcmpi might be used... " >&6; }
29708 if test "$tst_links_strcmpi" = "yes" &&
29709 test "$tst_proto_strcmpi" = "yes" &&
29710 test "$tst_compi_strcmpi" = "yes" &&
29711 test "$tst_allow_strcmpi" = "yes"; then
29712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29713 $as_echo "yes" >&6; }
29715 cat >>confdefs.h <<_ACEOF
29716 #define HAVE_STRCMPI 1
29719 ac_cv_func_strcmpi="yes"
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722 $as_echo "no" >&6; }
29723 ac_cv_func_strcmpi="no"
29728 tst_links_strdup="unknown"
29729 tst_proto_strdup="unknown"
29730 tst_compi_strdup="unknown"
29731 tst_allow_strdup="unknown"
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
29734 $as_echo_n "checking if strdup can be linked... " >&6; }
29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h. */
29739 #define strdup innocuous_strdup
29741 # include <limits.h>
29743 # include <assert.h>
29750 #if defined __stub_strdup || defined __stub___strdup
29762 if ac_fn_c_try_link "$LINENO"; then :
29764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29765 $as_echo "yes" >&6; }
29766 tst_links_strdup="yes"
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29771 $as_echo "no" >&6; }
29772 tst_links_strdup="no"
29775 rm -f core conftest.err conftest.$ac_objext \
29776 conftest$ac_exeext conftest.$ac_ext
29778 if test "$tst_links_strdup" = "yes"; then
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
29780 $as_echo_n "checking if strdup is prototyped... " >&6; }
29781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29782 /* end confdefs.h. */
29784 $cares_includes_string
29787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29788 $EGREP "strdup" >/dev/null 2>&1; then :
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29791 $as_echo "yes" >&6; }
29792 tst_proto_strdup="yes"
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29797 $as_echo "no" >&6; }
29798 tst_proto_strdup="no"
29805 if test "$tst_proto_strdup" = "yes"; then
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
29807 $as_echo_n "checking if strdup is compilable... " >&6; }
29808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29809 /* end confdefs.h. */
29812 $cares_includes_string
29825 if ac_fn_c_try_compile "$LINENO"; then :
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29828 $as_echo "yes" >&6; }
29829 tst_compi_strdup="yes"
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29834 $as_echo "no" >&6; }
29835 tst_compi_strdup="no"
29838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29841 if test "$tst_compi_strdup" = "yes"; then
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
29843 $as_echo_n "checking if strdup usage allowed... " >&6; }
29844 if test "x$cares_disallow_strdup" != "xyes"; then
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29846 $as_echo "yes" >&6; }
29847 tst_allow_strdup="yes"
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29850 $as_echo "no" >&6; }
29851 tst_allow_strdup="no"
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
29856 $as_echo_n "checking if strdup might be used... " >&6; }
29857 if test "$tst_links_strdup" = "yes" &&
29858 test "$tst_proto_strdup" = "yes" &&
29859 test "$tst_compi_strdup" = "yes" &&
29860 test "$tst_allow_strdup" = "yes"; then
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29862 $as_echo "yes" >&6; }
29864 cat >>confdefs.h <<_ACEOF
29865 #define HAVE_STRDUP 1
29868 ac_cv_func_strdup="yes"
29870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29871 $as_echo "no" >&6; }
29872 ac_cv_func_strdup="no"
29877 tst_links_stricmp="unknown"
29878 tst_proto_stricmp="unknown"
29879 tst_compi_stricmp="unknown"
29880 tst_allow_stricmp="unknown"
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
29883 $as_echo_n "checking if stricmp can be linked... " >&6; }
29884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29885 /* end confdefs.h. */
29888 #define stricmp innocuous_stricmp
29890 # include <limits.h>
29892 # include <assert.h>
29899 #if defined __stub_stricmp || defined __stub___stricmp
29911 if ac_fn_c_try_link "$LINENO"; then :
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29914 $as_echo "yes" >&6; }
29915 tst_links_stricmp="yes"
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29920 $as_echo "no" >&6; }
29921 tst_links_stricmp="no"
29924 rm -f core conftest.err conftest.$ac_objext \
29925 conftest$ac_exeext conftest.$ac_ext
29927 if test "$tst_links_stricmp" = "yes"; then
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
29929 $as_echo_n "checking if stricmp is prototyped... " >&6; }
29930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29931 /* end confdefs.h. */
29933 $cares_includes_string
29936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29937 $EGREP "stricmp" >/dev/null 2>&1; then :
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29940 $as_echo "yes" >&6; }
29941 tst_proto_stricmp="yes"
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29946 $as_echo "no" >&6; }
29947 tst_proto_stricmp="no"
29954 if test "$tst_proto_stricmp" = "yes"; then
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
29956 $as_echo_n "checking if stricmp is compilable... " >&6; }
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h. */
29961 $cares_includes_string
29966 if(0 != stricmp(0, 0))
29974 if ac_fn_c_try_compile "$LINENO"; then :
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29977 $as_echo "yes" >&6; }
29978 tst_compi_stricmp="yes"
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29983 $as_echo "no" >&6; }
29984 tst_compi_stricmp="no"
29987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29990 if test "$tst_compi_stricmp" = "yes"; then
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
29992 $as_echo_n "checking if stricmp usage allowed... " >&6; }
29993 if test "x$cares_disallow_stricmp" != "xyes"; then
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29995 $as_echo "yes" >&6; }
29996 tst_allow_stricmp="yes"
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29999 $as_echo "no" >&6; }
30000 tst_allow_stricmp="no"
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
30005 $as_echo_n "checking if stricmp might be used... " >&6; }
30006 if test "$tst_links_stricmp" = "yes" &&
30007 test "$tst_proto_stricmp" = "yes" &&
30008 test "$tst_compi_stricmp" = "yes" &&
30009 test "$tst_allow_stricmp" = "yes"; then
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30011 $as_echo "yes" >&6; }
30013 cat >>confdefs.h <<_ACEOF
30014 #define HAVE_STRICMP 1
30017 ac_cv_func_stricmp="yes"
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020 $as_echo "no" >&6; }
30021 ac_cv_func_stricmp="no"
30026 tst_links_strncasecmp="unknown"
30027 tst_proto_strncasecmp="unknown"
30028 tst_compi_strncasecmp="unknown"
30029 tst_allow_strncasecmp="unknown"
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
30032 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
30033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30034 /* end confdefs.h. */
30037 #define strncasecmp innocuous_strncasecmp
30039 # include <limits.h>
30041 # include <assert.h>
30047 char strncasecmp ();
30048 #if defined __stub_strncasecmp || defined __stub___strncasecmp
30054 return strncasecmp ();
30060 if ac_fn_c_try_link "$LINENO"; then :
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30063 $as_echo "yes" >&6; }
30064 tst_links_strncasecmp="yes"
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30069 $as_echo "no" >&6; }
30070 tst_links_strncasecmp="no"
30073 rm -f core conftest.err conftest.$ac_objext \
30074 conftest$ac_exeext conftest.$ac_ext
30076 if test "$tst_links_strncasecmp" = "yes"; then
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
30078 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
30079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30080 /* end confdefs.h. */
30082 $cares_includes_string
30085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30086 $EGREP "strncasecmp" >/dev/null 2>&1; then :
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30089 $as_echo "yes" >&6; }
30090 tst_proto_strncasecmp="yes"
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30095 $as_echo "no" >&6; }
30096 tst_proto_strncasecmp="no"
30103 if test "$tst_proto_strncasecmp" = "yes"; then
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
30105 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
30106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30107 /* end confdefs.h. */
30110 $cares_includes_string
30115 if(0 != strncasecmp(0, 0, 0))
30123 if ac_fn_c_try_compile "$LINENO"; then :
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30126 $as_echo "yes" >&6; }
30127 tst_compi_strncasecmp="yes"
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132 $as_echo "no" >&6; }
30133 tst_compi_strncasecmp="no"
30136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30139 if test "$tst_compi_strncasecmp" = "yes"; then
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
30141 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
30142 if test "x$cares_disallow_strncasecmp" != "xyes"; then
30143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30144 $as_echo "yes" >&6; }
30145 tst_allow_strncasecmp="yes"
30147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30148 $as_echo "no" >&6; }
30149 tst_allow_strncasecmp="no"
30153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
30154 $as_echo_n "checking if strncasecmp might be used... " >&6; }
30155 if test "$tst_links_strncasecmp" = "yes" &&
30156 test "$tst_proto_strncasecmp" = "yes" &&
30157 test "$tst_compi_strncasecmp" = "yes" &&
30158 test "$tst_allow_strncasecmp" = "yes"; then
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30160 $as_echo "yes" >&6; }
30162 cat >>confdefs.h <<_ACEOF
30163 #define HAVE_STRNCASECMP 1
30166 ac_cv_func_strncasecmp="yes"
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30169 $as_echo "no" >&6; }
30170 ac_cv_func_strncasecmp="no"
30175 tst_links_strncmpi="unknown"
30176 tst_proto_strncmpi="unknown"
30177 tst_compi_strncmpi="unknown"
30178 tst_allow_strncmpi="unknown"
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
30181 $as_echo_n "checking if strncmpi can be linked... " >&6; }
30182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30183 /* end confdefs.h. */
30186 #define strncmpi innocuous_strncmpi
30188 # include <limits.h>
30190 # include <assert.h>
30197 #if defined __stub_strncmpi || defined __stub___strncmpi
30203 return strncmpi ();
30209 if ac_fn_c_try_link "$LINENO"; then :
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30212 $as_echo "yes" >&6; }
30213 tst_links_strncmpi="yes"
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30218 $as_echo "no" >&6; }
30219 tst_links_strncmpi="no"
30222 rm -f core conftest.err conftest.$ac_objext \
30223 conftest$ac_exeext conftest.$ac_ext
30225 if test "$tst_links_strncmpi" = "yes"; then
30226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
30227 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
30228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30229 /* end confdefs.h. */
30231 $cares_includes_string
30234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30235 $EGREP "strncmpi" >/dev/null 2>&1; then :
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30238 $as_echo "yes" >&6; }
30239 tst_proto_strncmpi="yes"
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30244 $as_echo "no" >&6; }
30245 tst_proto_strncmpi="no"
30252 if test "$tst_proto_strncmpi" = "yes"; then
30253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
30254 $as_echo_n "checking if strncmpi is compilable... " >&6; }
30255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30256 /* end confdefs.h. */
30259 $cares_includes_string
30264 if(0 != strncmpi(0, 0))
30272 if ac_fn_c_try_compile "$LINENO"; then :
30274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30275 $as_echo "yes" >&6; }
30276 tst_compi_strncmpi="yes"
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30281 $as_echo "no" >&6; }
30282 tst_compi_strncmpi="no"
30285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30288 if test "$tst_compi_strncmpi" = "yes"; then
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
30290 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
30291 if test "x$cares_disallow_strncmpi" != "xyes"; then
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30293 $as_echo "yes" >&6; }
30294 tst_allow_strncmpi="yes"
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30297 $as_echo "no" >&6; }
30298 tst_allow_strncmpi="no"
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
30303 $as_echo_n "checking if strncmpi might be used... " >&6; }
30304 if test "$tst_links_strncmpi" = "yes" &&
30305 test "$tst_proto_strncmpi" = "yes" &&
30306 test "$tst_compi_strncmpi" = "yes" &&
30307 test "$tst_allow_strncmpi" = "yes"; then
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30309 $as_echo "yes" >&6; }
30311 cat >>confdefs.h <<_ACEOF
30312 #define HAVE_STRNCMPI 1
30315 ac_cv_func_strncmpi="yes"
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30318 $as_echo "no" >&6; }
30319 ac_cv_func_strncmpi="no"
30324 tst_links_strnicmp="unknown"
30325 tst_proto_strnicmp="unknown"
30326 tst_compi_strnicmp="unknown"
30327 tst_allow_strnicmp="unknown"
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
30330 $as_echo_n "checking if strnicmp can be linked... " >&6; }
30331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30332 /* end confdefs.h. */
30335 #define strnicmp innocuous_strnicmp
30337 # include <limits.h>
30339 # include <assert.h>
30346 #if defined __stub_strnicmp || defined __stub___strnicmp
30352 return strnicmp ();
30358 if ac_fn_c_try_link "$LINENO"; then :
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30361 $as_echo "yes" >&6; }
30362 tst_links_strnicmp="yes"
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30367 $as_echo "no" >&6; }
30368 tst_links_strnicmp="no"
30371 rm -f core conftest.err conftest.$ac_objext \
30372 conftest$ac_exeext conftest.$ac_ext
30374 if test "$tst_links_strnicmp" = "yes"; then
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
30376 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
30377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30378 /* end confdefs.h. */
30380 $cares_includes_string
30383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30384 $EGREP "strnicmp" >/dev/null 2>&1; then :
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30387 $as_echo "yes" >&6; }
30388 tst_proto_strnicmp="yes"
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30393 $as_echo "no" >&6; }
30394 tst_proto_strnicmp="no"
30401 if test "$tst_proto_strnicmp" = "yes"; then
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
30403 $as_echo_n "checking if strnicmp is compilable... " >&6; }
30404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30405 /* end confdefs.h. */
30408 $cares_includes_string
30413 if(0 != strnicmp(0, 0))
30421 if ac_fn_c_try_compile "$LINENO"; then :
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30424 $as_echo "yes" >&6; }
30425 tst_compi_strnicmp="yes"
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30430 $as_echo "no" >&6; }
30431 tst_compi_strnicmp="no"
30434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30437 if test "$tst_compi_strnicmp" = "yes"; then
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
30439 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
30440 if test "x$cares_disallow_strnicmp" != "xyes"; then
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30442 $as_echo "yes" >&6; }
30443 tst_allow_strnicmp="yes"
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30446 $as_echo "no" >&6; }
30447 tst_allow_strnicmp="no"
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
30452 $as_echo_n "checking if strnicmp might be used... " >&6; }
30453 if test "$tst_links_strnicmp" = "yes" &&
30454 test "$tst_proto_strnicmp" = "yes" &&
30455 test "$tst_compi_strnicmp" = "yes" &&
30456 test "$tst_allow_strnicmp" = "yes"; then
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458 $as_echo "yes" >&6; }
30460 cat >>confdefs.h <<_ACEOF
30461 #define HAVE_STRNICMP 1
30464 ac_cv_func_strnicmp="yes"
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30467 $as_echo "no" >&6; }
30468 ac_cv_func_strnicmp="no"
30472 cares_includes_sys_uio="\
30473 /* includes start */
30474 #ifdef HAVE_SYS_TYPES_H
30475 # include <sys/types.h>
30477 #ifdef HAVE_SYS_UIO_H
30478 # include <sys/uio.h>
30480 /* includes end */"
30481 for ac_header in sys/types.h sys/uio.h
30483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30484 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
30486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30487 cat >>confdefs.h <<_ACEOF
30488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30498 tst_links_writev="unknown"
30499 tst_proto_writev="unknown"
30500 tst_compi_writev="unknown"
30501 tst_allow_writev="unknown"
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
30504 $as_echo_n "checking if writev can be linked... " >&6; }
30505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30506 /* end confdefs.h. */
30509 #define writev innocuous_writev
30511 # include <limits.h>
30513 # include <assert.h>
30520 #if defined __stub_writev || defined __stub___writev
30532 if ac_fn_c_try_link "$LINENO"; then :
30534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30535 $as_echo "yes" >&6; }
30536 tst_links_writev="yes"
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541 $as_echo "no" >&6; }
30542 tst_links_writev="no"
30545 rm -f core conftest.err conftest.$ac_objext \
30546 conftest$ac_exeext conftest.$ac_ext
30548 if test "$tst_links_writev" = "yes"; then
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
30550 $as_echo_n "checking if writev is prototyped... " >&6; }
30551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30552 /* end confdefs.h. */
30554 $cares_includes_sys_uio
30557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30558 $EGREP "writev" >/dev/null 2>&1; then :
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30561 $as_echo "yes" >&6; }
30562 tst_proto_writev="yes"
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30567 $as_echo "no" >&6; }
30568 tst_proto_writev="no"
30575 if test "$tst_proto_writev" = "yes"; then
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
30577 $as_echo_n "checking if writev is compilable... " >&6; }
30578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30579 /* end confdefs.h. */
30582 $cares_includes_sys_uio
30587 if(0 != writev(0, 0, 0))
30595 if ac_fn_c_try_compile "$LINENO"; then :
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30598 $as_echo "yes" >&6; }
30599 tst_compi_writev="yes"
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30604 $as_echo "no" >&6; }
30605 tst_compi_writev="no"
30608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30611 if test "$tst_compi_writev" = "yes"; then
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
30613 $as_echo_n "checking if writev usage allowed... " >&6; }
30614 if test "x$cares_disallow_writev" != "xyes"; then
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30616 $as_echo "yes" >&6; }
30617 tst_allow_writev="yes"
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30620 $as_echo "no" >&6; }
30621 tst_allow_writev="no"
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
30626 $as_echo_n "checking if writev might be used... " >&6; }
30627 if test "$tst_links_writev" = "yes" &&
30628 test "$tst_proto_writev" = "yes" &&
30629 test "$tst_compi_writev" = "yes" &&
30630 test "$tst_allow_writev" = "yes"; then
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30632 $as_echo "yes" >&6; }
30634 cat >>confdefs.h <<_ACEOF
30635 #define HAVE_WRITEV 1
30638 ac_cv_func_writev="yes"
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30641 $as_echo "no" >&6; }
30642 ac_cv_func_writev="no"
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
30649 $as_echo_n "checking for PF_INET6... " >&6; }
30650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30651 /* end confdefs.h. */
30655 #ifdef HAVE_WINDOWS_H
30656 #ifndef WIN32_LEAN_AND_MEAN
30657 #define WIN32_LEAN_AND_MEAN
30659 #include <windows.h>
30660 #ifdef HAVE_WINSOCK2_H
30661 #include <winsock2.h>
30664 #ifdef HAVE_SYS_TYPES_H
30665 #include <sys/types.h>
30667 #ifdef HAVE_SYS_SOCKET_H
30668 #include <sys/socket.h>
30680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30681 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30689 if test "$ac_constant" = "yes" ; then
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30691 $as_echo "yes" >&6; }
30693 cat >>confdefs.h <<_ACEOF
30694 #define HAVE_PF_INET6 1
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30700 $as_echo "no" >&6; }
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
30707 $as_echo_n "checking for AF_INET6... " >&6; }
30708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30709 /* end confdefs.h. */
30713 #ifdef HAVE_WINDOWS_H
30714 #ifndef WIN32_LEAN_AND_MEAN
30715 #define WIN32_LEAN_AND_MEAN
30717 #include <windows.h>
30718 #ifdef HAVE_WINSOCK2_H
30719 #include <winsock2.h>
30722 #ifdef HAVE_SYS_TYPES_H
30723 #include <sys/types.h>
30725 #ifdef HAVE_SYS_SOCKET_H
30726 #include <sys/socket.h>
30738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30739 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30747 if test "$ac_constant" = "yes" ; then
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30749 $as_echo "yes" >&6; }
30751 cat >>confdefs.h <<_ACEOF
30752 #define HAVE_AF_INET6 1
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30758 $as_echo "no" >&6; }
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
30766 $as_echo_n "checking for struct in6_addr... " >&6; }
30767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30768 /* end confdefs.h. */
30771 #ifdef HAVE_WINDOWS_H
30772 #ifndef WIN32_LEAN_AND_MEAN
30773 #define WIN32_LEAN_AND_MEAN
30775 #include <windows.h>
30776 #ifdef HAVE_WINSOCK2_H
30777 #include <winsock2.h>
30778 #ifdef HAVE_WS2TCPIP_H
30779 #include <ws2tcpip.h>
30783 #ifdef HAVE_SYS_TYPES_H
30784 #include <sys/types.h>
30786 #ifdef HAVE_NETINET_IN_H
30787 #include <netinet/in.h>
30794 struct in6_addr struct_instance;
30800 if ac_fn_c_try_compile "$LINENO"; then :
30805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30806 if test "$ac_struct" = "yes" ; then
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30808 $as_echo "yes" >&6; }
30810 cat >>confdefs.h <<_ACEOF
30811 #define HAVE_STRUCT_IN6_ADDR 1
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30817 $as_echo "no" >&6; }
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
30824 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
30825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30826 /* end confdefs.h. */
30829 #ifdef HAVE_WINDOWS_H
30830 #ifndef WIN32_LEAN_AND_MEAN
30831 #define WIN32_LEAN_AND_MEAN
30833 #include <windows.h>
30834 #ifdef HAVE_WINSOCK2_H
30835 #include <winsock2.h>
30836 #ifdef HAVE_WS2TCPIP_H
30837 #include <ws2tcpip.h>
30841 #ifdef HAVE_SYS_TYPES_H
30842 #include <sys/types.h>
30844 #ifdef HAVE_NETINET_IN_H
30845 #include <netinet/in.h>
30852 struct sockaddr_in6 struct_instance;
30858 if ac_fn_c_try_compile "$LINENO"; then :
30863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30864 if test "$ac_struct" = "yes" ; then
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30866 $as_echo "yes" >&6; }
30868 cat >>confdefs.h <<_ACEOF
30869 #define HAVE_STRUCT_SOCKADDR_IN6 1
30871 ac_have_sockaddr_in6=yes
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30875 $as_echo "no" >&6; }
30880 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
30882 #ifdef HAVE_WINDOWS_H
30883 #ifndef WIN32_LEAN_AND_MEAN
30884 #define WIN32_LEAN_AND_MEAN
30886 #include <windows.h>
30887 #ifdef HAVE_WINSOCK2_H
30888 #include <winsock2.h>
30889 #ifdef HAVE_WS2TCPIP_H
30890 #include <ws2tcpip.h>
30894 #ifdef HAVE_SYS_TYPES_H
30895 #include <sys/types.h>
30897 #ifdef HAVE_NETINET_IN_H
30898 #include <netinet/in.h>
30903 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
30905 cat >>confdefs.h <<_ACEOF
30906 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
30913 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
30915 #ifdef HAVE_WINDOWS_H
30916 #ifndef WIN32_LEAN_AND_MEAN
30917 #define WIN32_LEAN_AND_MEAN
30919 #include <windows.h>
30920 #ifdef HAVE_WINSOCK2_H
30921 #include <winsock2.h>
30922 #ifdef HAVE_WS2TCPIP_H
30923 #include <ws2tcpip.h>
30927 #ifdef HAVE_SYS_TYPES_H
30928 #include <sys/types.h>
30930 #ifdef HAVE_NETINET_IN_H
30931 #include <netinet/in.h>
30933 #ifdef HAVE_SYS_SOCKET_H
30934 #include <sys/socket.h>
30936 #ifdef HAVE_NETDB_H
30943 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
30945 cat >>confdefs.h <<_ACEOF
30946 #define HAVE_STRUCT_ADDRINFO 1
30953 for ac_func in bitncmp \
30958 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30959 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30960 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30961 cat >>confdefs.h <<_ACEOF
30962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
30970 $as_echo_n "checking deeper for $func... " >&6; }
30971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30972 /* end confdefs.h. */
30986 if ac_fn_c_try_link "$LINENO"; then :
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30989 $as_echo "yes" >&6; }
30990 eval "ac_cv_func_$func=yes"
30992 cat >>confdefs.h <<_ACEOF
30993 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31000 $as_echo "but still no" >&6; }
31003 rm -f core conftest.err conftest.$ac_objext \
31004 conftest$ac_exeext conftest.$ac_ext
31012 for ac_header in sys/types.h sys/socket.h netdb.h
31014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31015 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31017 cat >>confdefs.h <<_ACEOF
31018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
31027 $as_echo_n "checking for getnameinfo... " >&6; }
31028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31029 /* end confdefs.h. */
31032 #define getnameinfo innocuous_getnameinfo
31034 # include <limits.h>
31036 # include <assert.h>
31042 char getnameinfo ();
31043 #if defined __stub_getnameinfo || defined __stub___getnameinfo
31049 return getnameinfo ();
31055 if ac_fn_c_try_link "$LINENO"; then :
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31058 $as_echo "yes" >&6; }
31059 curl_cv_getnameinfo="yes"
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31064 $as_echo "no" >&6; }
31065 curl_cv_getnameinfo="no"
31068 rm -f core conftest.err conftest.$ac_objext \
31069 conftest$ac_exeext conftest.$ac_ext
31071 if test "$curl_cv_getnameinfo" != "yes"; then
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
31073 $as_echo_n "checking deeper for getnameinfo... " >&6; }
31074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31075 /* end confdefs.h. */
31089 if ac_fn_c_try_link "$LINENO"; then :
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092 $as_echo "yes" >&6; }
31093 curl_cv_getnameinfo="yes"
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31098 $as_echo "but still no" >&6; }
31099 curl_cv_getnameinfo="no"
31102 rm -f core conftest.err conftest.$ac_objext \
31103 conftest$ac_exeext conftest.$ac_ext
31106 if test "$curl_cv_getnameinfo" != "yes"; then
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
31108 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
31109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31110 /* end confdefs.h. */
31114 #ifdef HAVE_WINDOWS_H
31115 #ifndef WIN32_LEAN_AND_MEAN
31116 #define WIN32_LEAN_AND_MEAN
31118 #include <windows.h>
31119 #ifdef HAVE_WINSOCK2_H
31120 #include <winsock2.h>
31121 #ifdef HAVE_WS2TCPIP_H
31122 #include <ws2tcpip.h>
31126 #ifdef HAVE_SYS_TYPES_H
31127 #include <sys/types.h>
31129 #ifdef HAVE_SYS_SOCKET_H
31130 #include <sys/socket.h>
31132 #ifdef HAVE_NETDB_H
31140 getnameinfo(0, 0, 0, 0, 0, 0, 0);
31147 if ac_fn_c_try_link "$LINENO"; then :
31149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31150 $as_echo "yes" >&6; }
31151 curl_cv_getnameinfo="yes"
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31156 $as_echo "but still no" >&6; }
31157 curl_cv_getnameinfo="no"
31160 rm -f core conftest.err conftest.$ac_objext \
31161 conftest$ac_exeext conftest.$ac_ext
31164 if test "$curl_cv_getnameinfo" = "yes"; then
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
31166 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
31167 if ${curl_cv_func_getnameinfo_args+:} false; then :
31168 $as_echo_n "(cached) " >&6
31171 curl_cv_func_getnameinfo_args="unknown"
31172 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
31173 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
31174 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
31175 for gni_arg7 in 'int' 'unsigned int'; do
31176 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178 /* end confdefs.h. */
31182 #ifdef HAVE_WINDOWS_H
31183 #ifndef WIN32_LEAN_AND_MEAN
31184 #define WIN32_LEAN_AND_MEAN
31186 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
31187 #undef _WIN32_WINNT
31188 #define _WIN32_WINNT 0x0501
31190 #include <windows.h>
31191 #ifdef HAVE_WINSOCK2_H
31192 #include <winsock2.h>
31193 #ifdef HAVE_WS2TCPIP_H
31194 #include <ws2tcpip.h>
31197 #define GNICALLCONV WSAAPI
31199 #ifdef HAVE_SYS_TYPES_H
31200 #include <sys/types.h>
31202 #ifdef HAVE_SYS_SOCKET_H
31203 #include <sys/socket.h>
31205 #ifdef HAVE_NETDB_H
31208 #define GNICALLCONV
31210 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
31211 char *, $gni_arg46,
31212 char *, $gni_arg46,
31219 $gni_arg46 hostlen=0;
31220 $gni_arg46 servlen=0;
31222 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
31229 if ac_fn_c_try_compile "$LINENO"; then :
31231 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
31234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
31243 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
31244 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
31246 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
31248 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
31250 gni_prev_IFS=$IFS; IFS=','
31251 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
31255 gni_qual_type_arg1=$1
31258 cat >>confdefs.h <<_ACEOF
31259 #define GETNAMEINFO_TYPE_ARG2 $2
31263 cat >>confdefs.h <<_ACEOF
31264 #define GETNAMEINFO_TYPE_ARG46 $3
31268 cat >>confdefs.h <<_ACEOF
31269 #define GETNAMEINFO_TYPE_ARG7 $4
31275 case $prev_sh_opts in
31283 case "$gni_qual_type_arg1" in
31285 gni_qual_arg1=const
31286 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
31290 gni_type_arg1=$gni_qual_type_arg1
31295 cat >>confdefs.h <<_ACEOF
31296 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
31300 cat >>confdefs.h <<_ACEOF
31301 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
31305 case $prev_sh_opts in
31314 cat >>confdefs.h <<_ACEOF
31315 #define HAVE_GETNAMEINFO 1
31318 ac_cv_func_getnameinfo="yes"
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
31325 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
31326 if ${ac_cv_c_bigendian+:} false; then :
31327 $as_echo_n "(cached) " >&6
31329 ac_cv_c_bigendian=unknown
31330 # See if we're dealing with a universal compiler.
31331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31332 /* end confdefs.h. */
31333 #ifndef __APPLE_CC__
31334 not a universal capable compiler
31339 if ac_fn_c_try_compile "$LINENO"; then :
31341 # Check for potential -arch flags. It is not universal unless
31342 # there are at least two -arch flags with different values.
31345 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
31346 if test -n "$ac_prev"; then
31348 i?86 | x86_64 | ppc | ppc64)
31349 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
31352 ac_cv_c_bigendian=universal
31358 elif test "x$ac_word" = "x-arch"; then
31363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31364 if test $ac_cv_c_bigendian = unknown; then
31365 # See if sys/param.h defines the BYTE_ORDER macro.
31366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31367 /* end confdefs.h. */
31368 #include <sys/types.h>
31369 #include <sys/param.h>
31373 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
31374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
31376 bogus endian macros
31383 if ac_fn_c_try_compile "$LINENO"; then :
31384 # It does; now see whether it defined to BIG_ENDIAN or not.
31385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31386 /* end confdefs.h. */
31387 #include <sys/types.h>
31388 #include <sys/param.h>
31392 #if BYTE_ORDER != BIG_ENDIAN
31400 if ac_fn_c_try_compile "$LINENO"; then :
31401 ac_cv_c_bigendian=yes
31403 ac_cv_c_bigendian=no
31405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31409 if test $ac_cv_c_bigendian = unknown; then
31410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
31411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412 /* end confdefs.h. */
31413 #include <limits.h>
31417 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
31418 bogus endian macros
31425 if ac_fn_c_try_compile "$LINENO"; then :
31426 # It does; now see whether it defined to _BIG_ENDIAN or not.
31427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31428 /* end confdefs.h. */
31429 #include <limits.h>
31433 #ifndef _BIG_ENDIAN
31441 if ac_fn_c_try_compile "$LINENO"; then :
31442 ac_cv_c_bigendian=yes
31444 ac_cv_c_bigendian=no
31446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31450 if test $ac_cv_c_bigendian = unknown; then
31451 # Compile a test program.
31452 if test "$cross_compiling" = yes; then :
31453 # Try to guess by grepping values from an object file.
31454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31455 /* end confdefs.h. */
31456 short int ascii_mm[] =
31457 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31458 short int ascii_ii[] =
31459 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31460 int use_ascii (int i) {
31461 return ascii_mm[i] + ascii_ii[i];
31463 short int ebcdic_ii[] =
31464 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31465 short int ebcdic_mm[] =
31466 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31467 int use_ebcdic (int i) {
31468 return ebcdic_mm[i] + ebcdic_ii[i];
31474 return use_ascii (foo) == use_ebcdic (foo);
31479 if ac_fn_c_try_compile "$LINENO"; then :
31480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
31481 ac_cv_c_bigendian=yes
31483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31484 if test "$ac_cv_c_bigendian" = unknown; then
31485 ac_cv_c_bigendian=no
31487 # finding both strings is unlikely to happen, but who knows?
31488 ac_cv_c_bigendian=unknown
31492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31495 /* end confdefs.h. */
31496 $ac_includes_default
31500 /* Are we little or big endian? From Harbison&Steele. */
31504 char c[sizeof (long int)];
31507 return u.c[sizeof (long int) - 1] == 1;
31513 if ac_fn_c_try_run "$LINENO"; then :
31514 ac_cv_c_bigendian=no
31516 ac_cv_c_bigendian=yes
31518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31519 conftest.$ac_objext conftest.beam conftest.$ac_ext
31524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
31525 $as_echo "$ac_cv_c_bigendian" >&6; }
31526 case $ac_cv_c_bigendian in #(
31529 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
31535 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
31539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
31540 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
31546 # Check whether --with-random was given.
31547 if test "${with_random+set}" = set; then :
31548 withval=$with_random; RANDOM_FILE="$withval"
31551 if test "$cross_compiling" = "no"; then
31552 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
31554 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
31555 if eval \${$as_ac_File+:} false; then :
31556 $as_echo_n "(cached) " >&6
31558 test "$cross_compiling" = yes &&
31559 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
31560 if test -r ""/dev/urandom""; then
31561 eval "$as_ac_File=yes"
31563 eval "$as_ac_File=no"
31566 eval ac_res=\$$as_ac_File
31567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31568 $as_echo "$ac_res" >&6; }
31569 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
31570 RANDOM_FILE="/dev/urandom"
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
31575 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
31582 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
31585 cat >>confdefs.h <<_ACEOF
31586 #define RANDOM_FILE "$RANDOM_FILE"
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
31593 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
31594 OPT_NONBLOCKING="default"
31595 # Check whether --enable-nonblocking was given.
31596 if test "${enable_nonblocking+set}" = set; then :
31597 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
31600 case "$OPT_NONBLOCKING" in
31602 want_nonblocking="no"
31605 want_nonblocking="yes"
31608 want_nonblocking="yes"
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
31612 $as_echo "$want_nonblocking" >&6; }
31616 tst_method="unknown"
31617 if test "$want_nonblocking" = "yes"; then
31618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
31619 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
31620 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
31621 tst_method="fcntl O_NONBLOCK"
31622 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
31623 tst_method="ioctl FIONBIO"
31624 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
31625 tst_method="ioctlsocket FIONBIO"
31626 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
31627 tst_method="IoctlSocket FIONBIO"
31628 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
31629 tst_method="setsockopt SO_NONBLOCK"
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
31632 $as_echo "$tst_method" >&6; }
31633 if test "$tst_method" = "unknown"; then
31634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
31635 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
31638 if test "$tst_method" = "unknown"; then
31640 cat >>confdefs.h <<_ACEOF
31641 #define USE_BLOCKING_SOCKETS 1
31644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
31645 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
31650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
31651 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
31652 CFLAG_CARES_SYMBOL_HIDING=""
31653 doing_symbol_hiding="no"
31654 if test x"$ac_cv_native_windows" != "xyes" &&
31655 test "$want_symbol_hiding" = "yes" &&
31656 test "$supports_symbol_hiding" = "yes"; then
31657 doing_symbol_hiding="yes"
31658 CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
31660 cat >>confdefs.h <<_ACEOF
31661 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
31664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31665 $as_echo "yes" >&6; }
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31668 $as_echo "no" >&6; }
31670 if test x$doing_symbol_hiding = xyes; then
31671 DOING_CARES_SYMBOL_HIDING_TRUE=
31672 DOING_CARES_SYMBOL_HIDING_FALSE='#'
31674 DOING_CARES_SYMBOL_HIDING_TRUE='#'
31675 DOING_CARES_SYMBOL_HIDING_FALSE=
31679 if test "$doing_symbol_hiding" = "yes"; then
31681 cat >>confdefs.h <<_ACEOF
31682 #define CARES_SYMBOL_HIDING 1
31688 CARES_PRIVATE_LIBS="$LIBS"
31691 CARES_CFLAG_EXTRAS=""
31692 if test X"$want_werror" = Xyes; then
31693 CARES_CFLAG_EXTRAS="-Werror"
31704 squeeze CARES_PRIVATE_LIBS
31709 for xc_word in $LIBS; do
31715 xc_bad_var_libs=yes
31719 if test $xc_bad_var_libs = yes; then
31720 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
31721 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
31723 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
31727 xc_bad_var_ldflags=no
31728 for xc_word in $LDFLAGS; do
31731 xc_bad_var_ldflags=yes
31734 xc_bad_var_ldflags=yes
31737 xc_bad_var_ldflags=yes
31740 xc_bad_var_ldflags=yes
31744 if test $xc_bad_var_ldflags = yes; then
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
31746 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
31747 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
31748 for xc_word in $LDFLAGS; do
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31752 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31756 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31760 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31763 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31764 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31771 xc_bad_var_cppflags=no
31772 for xc_word in $CPPFLAGS; do
31775 xc_bad_var_cppflags=yes
31777 -L* | --library-path=*)
31778 xc_bad_var_cppflags=yes
31781 xc_bad_var_cppflags=yes
31785 if test $xc_bad_var_cppflags = yes; then
31786 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
31787 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
31788 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
31789 for xc_word in $CPPFLAGS; do
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31793 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31795 -L* | --library-path=*)
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31797 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31801 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31808 xc_bad_var_cflags=no
31809 for xc_word in $CFLAGS; do
31812 xc_bad_var_cflags=yes
31815 xc_bad_var_cflags=yes
31818 xc_bad_var_cflags=yes
31821 xc_bad_var_cflags=yes
31823 -L* | --library-path=*)
31824 xc_bad_var_cflags=yes
31827 xc_bad_var_cflags=yes
31831 if test $xc_bad_var_cflags = yes; then
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
31833 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
31834 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
31835 for xc_word in $CFLAGS; do
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31839 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31843 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31847 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31850 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31851 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31853 -L* | --library-path=*)
31854 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31855 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31859 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31865 if test $xc_bad_var_libs = yes ||
31866 test $xc_bad_var_cflags = yes ||
31867 test $xc_bad_var_ldflags = yes ||
31868 test $xc_bad_var_cppflags = yes; then
31869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
31870 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
31874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
31875 $as_echo_n "checking whether to build tests... " >&6; }
31876 # Check whether --enable-tests was given.
31877 if test "${enable_tests+set}" = set; then :
31878 enableval=$enable_tests; build_tests="$enableval"
31880 if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
31890 if test "x$build_tests" = "xyes" ; then
31891 if test "x$HAVE_CXX11" = "0" ; then
31892 as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
31894 if test "x$cross_compiling" = "xyes" ; then
31895 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
31899 $as_echo "$build_tests" >&6; }
31901 if test "x$build_tests" = "xyes" ; then
31904 subdirs="$subdirs test"
31908 ac_config_files="$ac_config_files Makefile libcares.pc"
31910 cat >confcache <<\_ACEOF
31911 # This file is a shell script that caches the results of configure
31912 # tests run on this system so they can be shared between configure
31913 # scripts and configure runs, see configure's option --config-cache.
31914 # It is not useful on other systems. If it contains results you don't
31915 # want to keep, you may remove or edit it.
31917 # config.status only pays attention to the cache file if you give it
31918 # the --recheck option to rerun configure.
31920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31922 # following values.
31926 # The following way of writing the cache mishandles newlines in values,
31927 # but we know of no workaround that is simple, portable, and efficient.
31928 # So, we kill variables containing newlines.
31929 # Ultrix sh set writes to stderr and can't be redirected directly,
31930 # and sets the high bit in the cache file unless we assign to the vars.
31932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31933 eval ac_val=\$$ac_var
31937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31941 _ | IFS | as_nl) ;; #(
31942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31943 *) { eval $ac_var=; unset $ac_var;} ;;
31949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31950 *${as_nl}ac_space=\ *)
31951 # `set' does not quote correctly, so add quotes: double-quote
31952 # substitution turns \\\\ into \\, and sed turns \\ into \.
31955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31958 # `set' quotes correctly as required by POSIX, so do not add quotes.
31959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31973 if test -w "$cache_file"; then
31974 if test "x$cache_file" != "x/dev/null"; then
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31976 $as_echo "$as_me: updating cache $cache_file" >&6;}
31977 if test ! -f "$cache_file" || test -h "$cache_file"; then
31978 cat confcache >"$cache_file"
31980 case $cache_file in #(
31982 mv -f confcache "$cache_file"$$ &&
31983 mv -f "$cache_file"$$ "$cache_file" ;; #(
31985 mv -f confcache "$cache_file" ;;
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31997 # Let make expand exec_prefix.
31998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32000 DEFS=-DHAVE_CONFIG_H
32005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32006 # 1. Remove the extension, and $U if already installed.
32007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32010 # will be set to the directory where LIBOBJS objects are built.
32011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32014 LIBOBJS=$ac_libobjs
32016 LTLIBOBJS=$ac_ltlibobjs
32019 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32020 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32023 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
32024 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
32025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32028 $as_echo_n "checking that generated files are newer than configure... " >&6; }
32029 if test -n "$am_sleep_pid"; then
32030 # Hide warnings about reused PIDs.
32031 wait $am_sleep_pid 2>/dev/null
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32034 $as_echo "done" >&6; }
32035 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32036 as_fn_error $? "conditional \"AMDEP\" was never defined.
32037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32039 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32040 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32043 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32044 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32047 if test -n "$EXEEXT"; then
32049 am__EXEEXT_FALSE='#'
32051 am__EXEEXT_TRUE='#'
32055 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
32056 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
32057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32059 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
32060 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
32061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32063 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
32064 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
32065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32067 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
32068 as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
32069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32071 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
32072 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
32073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32075 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
32076 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
32077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32080 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
32081 as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
32082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32085 : "${CONFIG_STATUS=./config.status}"
32087 ac_clean_files_save=$ac_clean_files
32088 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32090 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32092 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32094 # Generated by $as_me.
32095 # Run this file to recreate the current configuration.
32096 # Compiler output produced by configure, useful for debugging
32097 # configure, is in config.log if it exists.
32100 ac_cs_recheck=false
32103 SHELL=\${CONFIG_SHELL-$SHELL}
32106 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32107 ## -------------------- ##
32108 ## M4sh Initialization. ##
32109 ## -------------------- ##
32111 # Be more Bourne compatible
32112 DUALCASE=1; export DUALCASE # for MKS sh
32113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32117 # is contrary to our usage. Disable this feature.
32118 alias -g '${1+"$@"}'='"$@"'
32119 setopt NO_GLOB_SUBST
32121 case `(set -o) 2>/dev/null` in #(
32133 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32134 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32137 # Prefer a ksh shell builtin over an external printf program on Solaris,
32138 # but without wasting forks for bash or zsh.
32139 if test -z "$BASH_VERSION$ZSH_VERSION" \
32140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32141 as_echo='print -r --'
32142 as_echo_n='print -rn --'
32143 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32144 as_echo='printf %s\n'
32145 as_echo_n='printf %s'
32147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32149 as_echo_n='/usr/ucb/echo -n'
32151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32152 as_echo_n_body='eval
32156 expr "X$arg" : "X\\(.*\\)$as_nl";
32157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32161 export as_echo_n_body
32162 as_echo_n='sh -c $as_echo_n_body as_echo'
32164 export as_echo_body
32165 as_echo='sh -c $as_echo_body as_echo'
32171 # We need space, tab and new line, in precisely that order. Quoting is
32172 # there to prevent editors from complaining about space-tab.
32173 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32174 # splitting by setting IFS to empty value.)
32177 # Find who we are. Look in the path if we contain no directory separator.
32180 *[\\/]* ) as_myself=$0 ;;
32181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32182 for as_dir in $PATH
32185 test -z "$as_dir" && as_dir=.
32186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32192 # We did not find ourselves, most probably we were run as `sh COMMAND'
32193 # in which case we are not to be found in the path.
32194 if test "x$as_myself" = x; then
32197 if test ! -f "$as_myself"; then
32198 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32202 # Unset variables that we do not need and which cause bugs (e.g. in
32203 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32204 # suppresses any "Segmentation fault" message there. '((' could
32205 # trigger a bug in pdksh 5.2.14.
32206 for as_var in BASH_ENV ENV MAIL MAILPATH
32207 do eval test x\${$as_var+set} = xset \
32208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32224 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32225 # ----------------------------------------
32226 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32227 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32228 # script with STATUS, using 1 if that was 0.
32231 as_status=$1; test $as_status -eq 0 && as_status=1
32233 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32234 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32236 $as_echo "$as_me: error: $2" >&2
32237 as_fn_exit $as_status
32241 # as_fn_set_status STATUS
32242 # -----------------------
32243 # Set $? to STATUS, without forking.
32244 as_fn_set_status ()
32247 } # as_fn_set_status
32249 # as_fn_exit STATUS
32250 # -----------------
32251 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32255 as_fn_set_status $1
32261 # Portably unset VAR.
32264 { eval $1=; unset $1;}
32266 as_unset=as_fn_unset
32267 # as_fn_append VAR VALUE
32268 # ----------------------
32269 # Append the text in VALUE to the end of the definition contained in VAR. Take
32270 # advantage of any shell optimizations that allow amortized linear growth over
32271 # repeated appends, instead of the typical quadratic growth present in naive
32273 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32274 eval 'as_fn_append ()
32285 # as_fn_arith ARG...
32286 # ------------------
32287 # Perform arithmetic evaluation on the ARGs, and store the result in the
32288 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32289 # must be portable across $(()) and expr.
32290 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32291 eval 'as_fn_arith ()
32298 as_val=`expr "$@" || test $? -eq 1`
32303 if expr a : '\(a\)' >/dev/null 2>&1 &&
32304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32311 as_basename=basename
32316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32322 as_me=`$as_basename -- "$0" ||
32323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32324 X"$0" : 'X\(//\)$' \| \
32325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32327 sed '/^.*\/\([^/][^/]*\)\/*$/{
32341 # Avoid depending upon Character Ranges.
32342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32345 as_cr_digits='0123456789'
32346 as_cr_alnum=$as_cr_Letters$as_cr_digits
32348 ECHO_C= ECHO_N= ECHO_T=
32349 case `echo -n x` in #(((((
32351 case `echo 'xy\c'` in
32352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32354 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32361 rm -f conf$$ conf$$.exe conf$$.file
32362 if test -d conf$$.dir; then
32363 rm -f conf$$.dir/conf$$.file
32366 mkdir conf$$.dir 2>/dev/null
32368 if (echo >conf$$.file) 2>/dev/null; then
32369 if ln -s conf$$.file conf$$ 2>/dev/null; then
32371 # ... but there are two gotchas:
32372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32374 # In both cases, we have to default to `cp -pR'.
32375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32377 elif ln conf$$.file conf$$ 2>/dev/null; then
32385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32386 rmdir conf$$.dir 2>/dev/null
32391 # Create "$as_dir" as a directory, including parents if necessary.
32396 -*) as_dir=./$as_dir;;
32398 test -d "$as_dir" || eval $as_mkdir_p || {
32402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32403 *) as_qdir=$as_dir;;
32405 as_dirs="'$as_qdir' $as_dirs"
32406 as_dir=`$as_dirname -- "$as_dir" ||
32407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32408 X"$as_dir" : 'X\(//\)[^/]' \| \
32409 X"$as_dir" : 'X\(//\)$' \| \
32410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32411 $as_echo X"$as_dir" |
32412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32416 /^X\(\/\/\)[^/].*/{
32429 test -d "$as_dir" && break
32431 test -z "$as_dirs" || eval "mkdir $as_dirs"
32432 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32436 if mkdir -p . 2>/dev/null; then
32437 as_mkdir_p='mkdir -p "$as_dir"'
32439 test -d ./-p && rmdir ./-p
32444 # as_fn_executable_p FILE
32445 # -----------------------
32446 # Test if FILE is an executable regular file.
32447 as_fn_executable_p ()
32449 test -f "$1" && test -x "$1"
32450 } # as_fn_executable_p
32451 as_test_x='test -x'
32452 as_executable_p=as_fn_executable_p
32454 # Sed expression to map a string onto a valid CPP name.
32455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32457 # Sed expression to map a string onto a valid variable name.
32458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32462 ## ----------------------------------- ##
32463 ## Main body of $CONFIG_STATUS script. ##
32464 ## ----------------------------------- ##
32466 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32469 # Save the log message, to keep $0 and so on meaningful, and to
32470 # report actual input values of CONFIG_FILES etc. instead of their
32471 # values after options handling.
32473 This file was extended by c-ares $as_me 1.12.0, which was
32474 generated by GNU Autoconf 2.69. Invocation command line was
32476 CONFIG_FILES = $CONFIG_FILES
32477 CONFIG_HEADERS = $CONFIG_HEADERS
32478 CONFIG_LINKS = $CONFIG_LINKS
32479 CONFIG_COMMANDS = $CONFIG_COMMANDS
32482 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32487 case $ac_config_files in *"
32488 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32491 case $ac_config_headers in *"
32492 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32497 # Files that config.status was made for.
32498 config_files="$ac_config_files"
32499 config_headers="$ac_config_headers"
32500 config_commands="$ac_config_commands"
32504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32506 \`$as_me' instantiates files and other configuration actions
32507 from templates according to the current configuration. Unless the files
32508 and actions are specified as TAGs, all are instantiated by default.
32510 Usage: $0 [OPTION]... [TAG]...
32512 -h, --help print this help, then exit
32513 -V, --version print version number and configuration settings, then exit
32514 --config print configuration, then exit
32515 -q, --quiet, --silent
32516 do not print progress messages
32517 -d, --debug don't remove temporary files
32518 --recheck update $as_me by reconfiguring in the same conditions
32519 --file=FILE[:TEMPLATE]
32520 instantiate the configuration file FILE
32521 --header=FILE[:TEMPLATE]
32522 instantiate the configuration header FILE
32524 Configuration files:
32527 Configuration headers:
32530 Configuration commands:
32533 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
32536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32537 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32539 c-ares config.status 1.12.0
32540 configured by $0, generated by GNU Autoconf 2.69,
32541 with options \\"\$ac_cs_config\\"
32543 Copyright (C) 2012 Free Software Foundation, Inc.
32544 This config.status script is free software; the Free Software Foundation
32545 gives unlimited permission to copy, distribute and modify it."
32552 test -n "\$AWK" || AWK=awk
32555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32556 # The default lists apply if the user does not specify any file.
32562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32579 # Handling of the options.
32580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32583 $as_echo "$ac_cs_version"; exit ;;
32584 --config | --confi | --conf | --con | --co | --c )
32585 $as_echo "$ac_cs_config"; exit ;;
32586 --debug | --debu | --deb | --de | --d | -d )
32588 --file | --fil | --fi | --f )
32591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32592 '') as_fn_error $? "missing file argument" ;;
32594 as_fn_append CONFIG_FILES " '$ac_optarg'"
32595 ac_need_defaults=false;;
32596 --header | --heade | --head | --hea )
32599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32602 ac_need_defaults=false;;
32604 # Conflict between --help and --header
32605 as_fn_error $? "ambiguous option: \`$1'
32606 Try \`$0 --help' for more information.";;
32607 --help | --hel | -h )
32608 $as_echo "$ac_cs_usage"; exit ;;
32609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32613 # This is an error.
32614 -*) as_fn_error $? "unrecognized option: \`$1'
32615 Try \`$0 --help' for more information." ;;
32617 *) as_fn_append ac_config_targets " $1"
32618 ac_need_defaults=false ;;
32624 ac_configure_extra_args=
32626 if $ac_cs_silent; then
32628 ac_configure_extra_args="$ac_configure_extra_args --silent"
32632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32633 if \$ac_cs_recheck; then
32634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32637 CONFIG_SHELL='$SHELL'
32638 export CONFIG_SHELL
32643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32648 ## Running $as_me. ##
32654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32658 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32661 # The HP-UX ksh and POSIX shell print the target directory to stdout
32662 # if CDPATH is set.
32663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32665 sed_quote_subst='$sed_quote_subst'
32666 double_quote_subst='$double_quote_subst'
32667 delay_variable_subst='$delay_variable_subst'
32668 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32669 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32670 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
32671 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32672 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32673 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32674 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32675 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32676 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32677 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
32678 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32679 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32680 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32681 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32682 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32683 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32684 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32685 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32686 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32687 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32688 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32689 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32690 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32691 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32692 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32693 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32694 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32695 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32696 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32697 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32698 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32699 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32700 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32701 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32702 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32703 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32704 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32705 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32706 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32707 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32708 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32709 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32710 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32711 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32712 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32713 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32714 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32715 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32716 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32717 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32718 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32719 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32720 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32721 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32722 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32723 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32724 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32725 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
32726 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32727 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"`'
32728 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
32729 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32730 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32731 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
32732 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32733 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32734 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32735 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32736 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32737 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32738 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32739 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32740 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32741 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32742 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32743 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32744 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32745 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32746 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32747 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32748 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32749 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32750 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32751 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32752 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32753 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32754 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32755 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32756 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32757 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32758 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32759 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32760 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32761 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32762 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32763 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32764 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32765 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32766 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32767 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32768 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32769 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32770 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32771 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32772 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32773 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32774 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32775 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32776 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32777 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32778 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32779 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32780 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32781 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32782 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32783 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32784 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32785 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32786 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32787 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32788 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32789 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32790 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32791 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32792 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32793 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32794 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32795 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32796 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
32797 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
32798 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32799 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32800 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32801 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32802 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32803 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32804 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32805 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32806 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32807 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32808 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32809 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32810 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32811 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32812 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32813 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32814 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32815 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32816 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32817 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32818 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32819 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32820 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32821 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32822 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32823 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32824 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32825 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32826 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32827 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32828 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32829 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32830 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32831 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32832 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32833 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32834 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32835 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32836 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32837 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32838 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32839 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32840 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32841 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32842 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32843 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32844 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32845 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32846 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32847 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32848 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32849 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32850 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32851 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32852 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32853 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32854 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32855 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32856 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32857 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32860 LTCFLAGS='$LTCFLAGS'
32861 compiler='$compiler_DEFAULT'
32863 # A function that is used when there is no print builtin or printf.
32864 func_fallback_echo ()
32866 eval 'cat <<_LTECHO_EOF
32871 # Quote evaled strings.
32888 deplibs_check_method \
32892 sharedlib_from_linklib_cmd \
32895 archiver_list_spec \
32901 lt_cv_sys_global_symbol_pipe \
32902 lt_cv_sys_global_symbol_to_cdecl \
32903 lt_cv_sys_global_symbol_to_import \
32904 lt_cv_sys_global_symbol_to_c_name_address \
32905 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32906 lt_cv_nm_interface \
32907 nm_file_list_spec \
32908 lt_cv_truncate_bin \
32909 lt_prog_compiler_no_builtin_flag \
32910 lt_prog_compiler_pic \
32911 lt_prog_compiler_wl \
32912 lt_prog_compiler_static \
32913 lt_cv_prog_compiler_c_o \
32922 export_dynamic_flag_spec \
32923 whole_archive_flag_spec \
32924 compiler_needs_object \
32926 allow_undefined_flag \
32927 no_undefined_flag \
32928 hardcode_libdir_flag_spec \
32929 hardcode_libdir_separator \
32933 variables_saved_for_relink \
32935 library_names_spec \
32937 install_override_mode \
32941 compiler_lib_search_dirs \
32946 compiler_lib_search_path \
32950 lt_prog_compiler_no_builtin_flag_CXX \
32951 lt_prog_compiler_pic_CXX \
32952 lt_prog_compiler_wl_CXX \
32953 lt_prog_compiler_static_CXX \
32954 lt_cv_prog_compiler_c_o_CXX \
32955 export_dynamic_flag_spec_CXX \
32956 whole_archive_flag_spec_CXX \
32957 compiler_needs_object_CXX \
32959 allow_undefined_flag_CXX \
32960 no_undefined_flag_CXX \
32961 hardcode_libdir_flag_spec_CXX \
32962 hardcode_libdir_separator_CXX \
32963 exclude_expsyms_CXX \
32964 include_expsyms_CXX \
32965 file_list_spec_CXX \
32966 compiler_lib_search_dirs_CXX \
32967 predep_objects_CXX \
32968 postdep_objects_CXX \
32971 compiler_lib_search_path_CXX; do
32972 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32973 *[\\\\\\\`\\"\\\$]*)
32974 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32977 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32982 # Double-quote double-evaled strings.
32983 for var in reload_cmds \
32984 old_postinstall_cmds \
32985 old_postuninstall_cmds \
32987 extract_expsyms_cmds \
32988 old_archive_from_new_cmds \
32989 old_archive_from_expsyms_cmds \
32991 archive_expsym_cmds \
32993 module_expsym_cmds \
32994 export_symbols_cmds \
32998 postuninstall_cmds \
33000 sys_lib_search_path_spec \
33001 configure_time_dlsearch_path \
33002 configure_time_lt_sys_library_path \
33004 old_archive_cmds_CXX \
33005 old_archive_from_new_cmds_CXX \
33006 old_archive_from_expsyms_cmds_CXX \
33008 archive_expsym_cmds_CXX \
33010 module_expsym_cmds_CXX \
33011 export_symbols_cmds_CXX \
33013 postlink_cmds_CXX; do
33014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33015 *[\\\\\\\`\\"\\\$]*)
33016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33024 ac_aux_dir='$ac_aux_dir'
33026 # See if we are running on zsh, and set the options that allow our
33027 # commands through without removal of \ escapes INIT.
33028 if test -n "\${ZSH_VERSION+set}"; then
33029 setopt NO_GLOB_SUBST
33045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33047 # Handling of arguments.
33048 for ac_config_target in $ac_config_targets
33050 case $ac_config_target in
33051 "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
33052 "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
33053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33054 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33056 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
33058 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33063 # If the user did not use the arguments to specify the items to instantiate,
33064 # then the envvar interface is used. Set only those that are not.
33065 # We use the long form for the default assignment because of an extremely
33066 # bizarre bug on SunOS 4.1.3.
33067 if $ac_need_defaults; then
33068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33070 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33073 # Have a temporary directory for convenience. Make it in the build tree
33074 # simply because there is no reason against having it here, and in addition,
33075 # creating and moving files from /tmp can sometimes cause problems.
33076 # Hook for its removal unless debugging.
33077 # Note that there is a small window in which the directory will not be cleaned:
33078 # after its creation but before its name has been assigned to `$tmp'.
33082 trap 'exit_status=$?
33083 : "${ac_tmp:=$tmp}"
33084 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33086 trap 'as_fn_exit 1' 1 2 13 15
33088 # Create a (secure) tmp directory for tmp files.
33091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33095 tmp=./conf$$-$RANDOM
33096 (umask 077 && mkdir "$tmp")
33097 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33100 # Set up the scripts for CONFIG_FILES section.
33101 # No need to generate them if there are no CONFIG_FILES.
33102 # This happens for instance with `./config.status config.h'.
33103 if test -n "$CONFIG_FILES"; then
33106 ac_cr=`echo X | tr X '\015'`
33107 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33108 # But we know of no other shell where ac_cr would be empty at this
33109 # point, so we can use a bashism as a fallback.
33110 if test "x$ac_cr" = x; then
33111 eval ac_cr=\$\'\\r\'
33113 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33114 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33117 ac_cs_awk_cr=$ac_cr
33120 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33125 echo "cat >conf$$subs.awk <<_ACEOF" &&
33126 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33128 } >conf$$subs.sh ||
33129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33130 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33132 for ac_last_try in false false false false false :; do
33133 . ./conf$$subs.sh ||
33134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33136 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33137 if test $ac_delim_n = $ac_delim_num; then
33139 elif $ac_last_try; then
33140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33145 rm -f conf$$subs.sh
33147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33148 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33152 s/^/S["/; s/!.*/"]=/
33162 s/\(.\{148\}\)..*/\1/
33164 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33169 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33176 s/\(.\{148\}\)..*/\1/
33178 s/["\\]/\\&/g; s/^/"/; s/$/"/
33182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33187 ' <conf$$subs.awk | sed '
33192 ' >>$CONFIG_STATUS || ac_write_fail=1
33193 rm -f conf$$subs.awk
33194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33196 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33197 for (key in S) S_is_set[key] = 1
33203 nfields = split(line, field, "@")
33205 len = length(field[1])
33206 for (i = 2; i < nfields; i++) {
33208 keylen = length(key)
33209 if (S_is_set[key]) {
33211 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33212 len += length(value) + length(field[++i])
33223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33224 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33225 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33228 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33229 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33232 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33233 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33234 # trailing colons and then remove the whole line if VPATH becomes empty
33235 # (actually we leave an empty line to preserve line numbers).
33236 if test "x$srcdir" = x.; then
33237 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33256 fi # test -n "$CONFIG_FILES"
33258 # Set up the scripts for CONFIG_HEADERS section.
33259 # No need to generate them if there are no CONFIG_HEADERS.
33260 # This happens for instance with `./config.status Makefile'.
33261 if test -n "$CONFIG_HEADERS"; then
33262 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33266 # Transform confdefs.h into an awk script `defines.awk', embedded as
33267 # here-document in config.status, that substitutes the proper values into
33268 # config.h.in to produce config.h.
33270 # Create a delimiter string that does not exist in confdefs.h, to ease
33271 # handling of long lines.
33273 for ac_last_try in false false :; do
33274 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33275 if test -z "$ac_tt"; then
33277 elif $ac_last_try; then
33278 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33284 # For the awk script, D is an array of macro values keyed by name,
33285 # likewise P contains macro parameters if any. Preserve backslash
33286 # newline sequences.
33288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33290 s/.\{148\}/&'"$ac_delim"'/g
33293 s/^[ ]*#[ ]*define[ ][ ]*/ /
33300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33307 D["\1"]=" \3\\\\\\n"\\/p
33309 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33314 s/.\{148\}/&'"$ac_delim"'/g
33319 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33322 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33324 ' <confdefs.h | sed '
33325 s/'"$ac_delim"'/"\\\
33326 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33329 for (key in D) D_is_set[key] = 1
33332 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33334 split(line, arg, " ")
33335 if (arg[1] == "#") {
33339 defundef = substr(arg[1], 2)
33342 split(mac1, mac2, "(") #)
33344 prefix = substr(line, 1, index(line, defundef) - 1)
33345 if (D_is_set[macro]) {
33346 # Preserve the white space surrounding the "#".
33347 print prefix "define", macro P[macro] D[macro]
33350 # Replace #undef with comments. This is necessary, for example,
33351 # in the case of _POSIX_SOURCE, which is predefined and required
33352 # on some systems where configure will not decide to define it.
33353 if (defundef == "undef") {
33354 print "/*", prefix defundef, macro, "*/"
33362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33363 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33364 fi # test -n "$CONFIG_HEADERS"
33367 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33372 :[FHLC]) ac_mode=$ac_tag; continue;;
33374 case $ac_mode$ac_tag in
33376 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33377 :[FH]-) ac_tag=-:-;;
33378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33395 -) ac_f="$ac_tmp/stdin";;
33396 *) # Look for the file first in the build tree, then in the source tree
33397 # (if the path is not absolute). The absolute path cannot be DOS-style,
33398 # because $ac_f cannot contain `:'.
33402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33404 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33406 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33407 as_fn_append ac_file_inputs " '$ac_f'"
33410 # Let's still pretend it is `configure' which instantiates (i.e., don't
33411 # use $as_me), people would be surprised to read:
33412 # /* config.h. Generated by config.status. */
33413 configure_input='Generated from '`
33414 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33416 if test x"$ac_file" != x-; then
33417 configure_input="$ac_file. $configure_input"
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33419 $as_echo "$as_me: creating $ac_file" >&6;}
33421 # Neutralize special characters interpreted by sed in replacement strings.
33422 case $configure_input in #(
33423 *\&* | *\|* | *\\* )
33424 ac_sed_conf_input=`$as_echo "$configure_input" |
33425 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33426 *) ac_sed_conf_input=$configure_input;;
33430 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33436 ac_dir=`$as_dirname -- "$ac_file" ||
33437 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33438 X"$ac_file" : 'X\(//\)[^/]' \| \
33439 X"$ac_file" : 'X\(//\)$' \| \
33440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33441 $as_echo X"$ac_file" |
33442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33446 /^X\(\/\/\)[^/].*/{
33459 as_dir="$ac_dir"; as_fn_mkdir_p
33463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33466 # A ".." for each directory in $ac_dir_suffix.
33467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33468 case $ac_top_builddir_sub in
33469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33473 ac_abs_top_builddir=$ac_pwd
33474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33475 # for backward compatibility:
33476 ac_top_builddir=$ac_top_build_prefix
33479 .) # We are building in place.
33481 ac_top_srcdir=$ac_top_builddir_sub
33482 ac_abs_top_srcdir=$ac_pwd ;;
33483 [\\/]* | ?:[\\/]* ) # Absolute name.
33484 ac_srcdir=$srcdir$ac_dir_suffix;
33485 ac_top_srcdir=$srcdir
33486 ac_abs_top_srcdir=$srcdir ;;
33487 *) # Relative name.
33488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33489 ac_top_srcdir=$ac_top_build_prefix$srcdir
33490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33505 ac_MKDIR_P=$MKDIR_P
33507 [\\/$]* | ?:[\\/]* ) ;;
33508 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33513 # If the template does not know about datarootdir, expand it.
33514 # FIXME: This hack should be removed a few years after 2.60.
33515 ac_datarootdir_hack=; ac_datarootdir_seen=
33526 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33527 *datarootdir*) ac_datarootdir_seen=yes;;
33528 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33530 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33533 ac_datarootdir_hack='
33534 s&@datadir@&$datadir&g
33535 s&@docdir@&$docdir&g
33536 s&@infodir@&$infodir&g
33537 s&@localedir@&$localedir&g
33538 s&@mandir@&$mandir&g
33539 s&\\\${datarootdir}&$datarootdir&g' ;;
33543 # Neutralize VPATH when `$srcdir' = `.'.
33544 # Shell code in configure.ac might set extrasub.
33545 # FIXME: do we really want to maintain this feature?
33546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33547 ac_sed_extra="$ac_vpsub
33550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33553 s|@configure_input@|$ac_sed_conf_input|;t t
33554 s&@top_builddir@&$ac_top_builddir_sub&;t t
33555 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33556 s&@srcdir@&$ac_srcdir&;t t
33557 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33558 s&@top_srcdir@&$ac_top_srcdir&;t t
33559 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33560 s&@builddir@&$ac_builddir&;t t
33561 s&@abs_builddir@&$ac_abs_builddir&;t t
33562 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33563 s&@INSTALL@&$ac_INSTALL&;t t
33564 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33565 $ac_datarootdir_hack
33567 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33573 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33575 which seems to be undefined. Please make sure it is defined" >&5
33576 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33577 which seems to be undefined. Please make sure it is defined" >&2;}
33579 rm -f "$ac_tmp/stdin"
33581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33590 if test x"$ac_file" != x-; then
33592 $as_echo "/* $configure_input */" \
33593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33594 } >"$ac_tmp/config.h" \
33595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33598 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33601 mv "$ac_tmp/config.h" "$ac_file" \
33602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33605 $as_echo "/* $configure_input */" \
33606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33607 || as_fn_error $? "could not create -" "$LINENO" 5
33609 # Compute "$ac_file"'s index in $config_headers.
33612 for _am_header in $config_headers :; do
33613 case $_am_header in
33614 $_am_arg | $_am_arg:* )
33617 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33620 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33621 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33622 X"$_am_arg" : 'X\(//\)[^/]' \| \
33623 X"$_am_arg" : 'X\(//\)$' \| \
33624 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33625 $as_echo X"$_am_arg" |
33626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33630 /^X\(\/\/\)[^/].*/{
33642 s/.*/./; q'`/stamp-h$_am_stamp_count
33645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33646 $as_echo "$as_me: executing $ac_file commands" >&6;}
33651 case $ac_file$ac_mode in
33652 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33653 # Older Autoconf quotes --file arguments for eval, but not when files
33654 # are listed without --file. Let's play safe and only enable the eval
33655 # if we detect the quoting.
33656 case $CONFIG_FILES in
33657 *\'*) eval set x "$CONFIG_FILES" ;;
33658 *) set x $CONFIG_FILES ;;
33663 # Strip MF so we end up with the name of the file.
33664 mf=`echo "$mf" | sed -e 's/:.*$//'`
33665 # Check whether this is an Automake generated Makefile or not.
33666 # We used to match only the files named 'Makefile.in', but
33667 # some people rename them; so instead we look at the file content.
33668 # Grep'ing the first line is not enough: some people post-process
33669 # each Makefile.in and add a new line on top of each file to say so.
33670 # Grep'ing the whole file is not good either: AIX grep has a line
33671 # limit of 2048, but all sed's we know have understand at least 4000.
33672 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33673 dirpart=`$as_dirname -- "$mf" ||
33674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33675 X"$mf" : 'X\(//\)[^/]' \| \
33676 X"$mf" : 'X\(//\)$' \| \
33677 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33683 /^X\(\/\/\)[^/].*/{
33699 # Extract the definition of DEPDIR, am__include, and am__quote
33700 # from the Makefile without running 'make'.
33701 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33702 test -z "$DEPDIR" && continue
33703 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33704 test -z "$am__include" && continue
33705 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33706 # Find all dependency output files, they are included files with
33707 # $(DEPDIR) in their names. We invoke sed twice because it is the
33708 # simplest approach to changing $(DEPDIR) to its actual value in the
33710 for file in `sed -n "
33711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
33713 # Make sure the directory exists.
33714 test -f "$dirpart/$file" && continue
33715 fdir=`$as_dirname -- "$file" ||
33716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33717 X"$file" : 'X\(//\)[^/]' \| \
33718 X"$file" : 'X\(//\)$' \| \
33719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33720 $as_echo X"$file" |
33721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33725 /^X\(\/\/\)[^/].*/{
33738 as_dir=$dirpart/$fdir; as_fn_mkdir_p
33739 # echo "creating $dirpart/$file"
33740 echo '# dummy' > "$dirpart/$file"
33747 # See if we are running on zsh, and set the options that allow our
33748 # commands through without removal of \ escapes.
33749 if test -n "${ZSH_VERSION+set}"; then
33750 setopt NO_GLOB_SUBST
33754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33757 cat <<_LT_EOF >> "$cfgfile"
33759 # Generated automatically by $as_me ($PACKAGE) $VERSION
33760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33761 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33763 # Provide generalized library-building support services.
33764 # Written by Gordon Matzigkeit, 1996
33766 # Copyright (C) 2014 Free Software Foundation, Inc.
33767 # This is free software; see the source for copying conditions. There is NO
33768 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33770 # GNU Libtool is free software; you can redistribute it and/or modify
33771 # it under the terms of the GNU General Public License as published by
33772 # the Free Software Foundation; either version 2 of of the License, or
33773 # (at your option) any later version.
33775 # As a special exception to the GNU General Public License, if you
33776 # distribute this file as part of a program or library that is built
33777 # using GNU Libtool, you may include this file under the same
33778 # distribution terms that you use for the rest of that program.
33780 # GNU Libtool is distributed in the hope that it will be useful, but
33781 # WITHOUT ANY WARRANTY; without even the implied warranty of
33782 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33783 # GNU General Public License for more details.
33785 # You should have received a copy of the GNU General Public License
33786 # along with this program. If not, see <http://www.gnu.org/licenses/>.
33789 # The names of the tagged configurations supported by this script.
33790 available_tags='CXX '
33792 # Configured defaults for sys_lib_dlsearch_path munging.
33793 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
33795 # ### BEGIN LIBTOOL CONFIG
33797 # Which release of libtool.m4 was used?
33798 macro_version=$macro_version
33799 macro_revision=$macro_revision
33801 # Assembler program.
33804 # DLL creation program.
33805 DLLTOOL=$lt_DLLTOOL
33807 # Object dumper program.
33808 OBJDUMP=$lt_OBJDUMP
33810 # Whether or not to build shared libraries.
33811 build_libtool_libs=$enable_shared
33813 # Whether or not to build static libraries.
33814 build_old_libs=$enable_static
33816 # What type of objects to build.
33819 # Whether or not to optimize for fast installation.
33820 fast_install=$enable_fast_install
33822 # Shared archive member basename,for filename based shared library versioning on AIX.
33823 shared_archive_member_spec=$shared_archive_member_spec
33825 # Shell to use when invoking shell scripts.
33828 # An echo program that protects backslashes.
33831 # The PATH separator for the build system.
33832 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33835 host_alias=$host_alias
33839 # The build system.
33840 build_alias=$build_alias
33844 # A sed program that does not truncate output.
33847 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33848 Xsed="\$SED -e 1s/^X//"
33850 # A grep program that handles long lines.
33856 # A literal string matcher.
33859 # A BSD- or MS-compatible name lister.
33862 # Whether we need soft or hard links.
33865 # What is the maximum length of a command?
33866 max_cmd_len=$max_cmd_len
33868 # Object file suffix (normally "o").
33871 # Executable file suffix (normally "").
33874 # whether the shell understands "unset".
33877 # turn spaces into newlines.
33880 # turn newlines into spaces.
33883 # convert \$build file names to \$host format.
33884 to_host_file_cmd=$lt_cv_to_host_file_cmd
33886 # convert \$build files to toolchain format.
33887 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33889 # Method to check whether dependent libraries are shared objects.
33890 deplibs_check_method=$lt_deplibs_check_method
33892 # Command to use when deplibs_check_method = "file_magic".
33893 file_magic_cmd=$lt_file_magic_cmd
33895 # How to find potential files when deplibs_check_method = "file_magic".
33896 file_magic_glob=$lt_file_magic_glob
33898 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33899 want_nocaseglob=$lt_want_nocaseglob
33901 # Command to associate shared and link libraries.
33902 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33907 # Flags to create an archive.
33908 AR_FLAGS=$lt_AR_FLAGS
33910 # How to feed a file listing to the archiver.
33911 archiver_list_spec=$lt_archiver_list_spec
33913 # A symbol stripping program.
33916 # Commands used to install an old-style archive.
33918 old_postinstall_cmds=$lt_old_postinstall_cmds
33919 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33921 # Whether to use a lock for old archive extraction.
33922 lock_old_archive_extraction=$lock_old_archive_extraction
33927 # LTCC compiler flags.
33928 LTCFLAGS=$lt_CFLAGS
33930 # Take the output of nm and produce a listing of raw symbols and C names.
33931 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33933 # Transform the output of nm in a proper C declaration.
33934 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33936 # Transform the output of nm into a list of symbols to manually relocate.
33937 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
33939 # Transform the output of nm in a C name address pair.
33940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33942 # Transform the output of nm in a C name address pair when lib prefix is needed.
33943 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33945 # The name lister interface.
33946 nm_interface=$lt_lt_cv_nm_interface
33948 # Specify filename containing input files for \$NM.
33949 nm_file_list_spec=$lt_nm_file_list_spec
33951 # The root where to search for dependent libraries,and where our libraries should be installed.
33952 lt_sysroot=$lt_sysroot
33954 # Command to truncate a binary pipe.
33955 lt_truncate_bin=$lt_lt_cv_truncate_bin
33957 # The name of the directory that contains temporary libtool files.
33960 # Used to examine libraries when file_magic_cmd begins with "file".
33961 MAGIC_CMD=$MAGIC_CMD
33963 # Must we lock files when doing compilation?
33964 need_locks=$lt_need_locks
33967 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33969 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33970 DSYMUTIL=$lt_DSYMUTIL
33972 # Tool to change global to local symbols on Mac OS X.
33975 # Tool to manipulate fat objects and archives on Mac OS X.
33978 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33981 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33982 OTOOL64=$lt_OTOOL64
33984 # Old archive suffix (normally "a").
33987 # Shared library suffix (normally ".so").
33988 shrext_cmds=$lt_shrext_cmds
33990 # The commands to extract the exported symbol list from a shared archive.
33991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33993 # Variables whose values should be saved in libtool wrapper scripts and
33994 # restored at link time.
33995 variables_saved_for_relink=$lt_variables_saved_for_relink
33997 # Do we need the "lib" prefix for modules?
33998 need_lib_prefix=$need_lib_prefix
34000 # Do we need a version for libraries?
34001 need_version=$need_version
34003 # Library versioning type.
34004 version_type=$version_type
34006 # Shared library runtime path variable.
34007 runpath_var=$runpath_var
34009 # Shared library path variable.
34010 shlibpath_var=$shlibpath_var
34012 # Is shlibpath searched before the hard-coded library search path?
34013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34015 # Format of library name prefix.
34016 libname_spec=$lt_libname_spec
34018 # List of archive names. First name is the real one, the rest are links.
34019 # The last name is the one that the linker finds with -lNAME
34020 library_names_spec=$lt_library_names_spec
34022 # The coded name of the library, if different from the real name.
34023 soname_spec=$lt_soname_spec
34025 # Permission mode override for installation of shared libraries.
34026 install_override_mode=$lt_install_override_mode
34028 # Command to use after installation of a shared archive.
34029 postinstall_cmds=$lt_postinstall_cmds
34031 # Command to use after uninstallation of a shared archive.
34032 postuninstall_cmds=$lt_postuninstall_cmds
34034 # Commands used to finish a libtool library installation in a directory.
34035 finish_cmds=$lt_finish_cmds
34037 # As "finish_cmds", except a single script fragment to be evaled but
34039 finish_eval=$lt_finish_eval
34041 # Whether we should hardcode library paths into libraries.
34042 hardcode_into_libs=$hardcode_into_libs
34044 # Compile-time system search path for libraries.
34045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34047 # Detected run-time system search path for libraries.
34048 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34050 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34051 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34053 # Whether dlopen is supported.
34054 dlopen_support=$enable_dlopen
34056 # Whether dlopen of programs is supported.
34057 dlopen_self=$enable_dlopen_self
34059 # Whether dlopen of statically linked programs is supported.
34060 dlopen_self_static=$enable_dlopen_self_static
34062 # Commands to strip libraries.
34063 old_striplib=$lt_old_striplib
34064 striplib=$lt_striplib
34067 # The linker used to build libraries.
34070 # How to create reloadable object files.
34071 reload_flag=$lt_reload_flag
34072 reload_cmds=$lt_reload_cmds
34074 # Commands used to build an old-style archive.
34075 old_archive_cmds=$lt_old_archive_cmds
34077 # A language specific compiler.
34080 # Is the compiler the GNU compiler?
34083 # Compiler flag to turn off builtin functions.
34084 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34086 # Additional compiler flags for building library objects.
34087 pic_flag=$lt_lt_prog_compiler_pic
34089 # How to pass a linker flag through the compiler.
34090 wl=$lt_lt_prog_compiler_wl
34092 # Compiler flag to prevent dynamic linking.
34093 link_static_flag=$lt_lt_prog_compiler_static
34095 # Does compiler simultaneously support -c and -o options?
34096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34098 # Whether or not to add -lc for building shared libraries.
34099 build_libtool_need_lc=$archive_cmds_need_lc
34101 # Whether or not to disallow shared libs when runtime libs are static.
34102 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34104 # Compiler flag to allow reflexive dlopens.
34105 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34107 # Compiler flag to generate shared objects directly from archives.
34108 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34110 # Whether the compiler copes with passing no objects directly.
34111 compiler_needs_object=$lt_compiler_needs_object
34113 # Create an old-style archive from a shared archive.
34114 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34116 # Create a temporary old-style archive to link instead of a shared archive.
34117 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34119 # Commands used to build a shared archive.
34120 archive_cmds=$lt_archive_cmds
34121 archive_expsym_cmds=$lt_archive_expsym_cmds
34123 # Commands used to build a loadable module if different from building
34124 # a shared archive.
34125 module_cmds=$lt_module_cmds
34126 module_expsym_cmds=$lt_module_expsym_cmds
34128 # Whether we are building with GNU ld or not.
34129 with_gnu_ld=$lt_with_gnu_ld
34131 # Flag that allows shared libraries with undefined symbols to be built.
34132 allow_undefined_flag=$lt_allow_undefined_flag
34134 # Flag that enforces no undefined symbols.
34135 no_undefined_flag=$lt_no_undefined_flag
34137 # Flag to hardcode \$libdir into a binary during linking.
34138 # This must work even if \$libdir does not exist
34139 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34141 # Whether we need a single "-rpath" flag with a separated argument.
34142 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34144 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34145 # DIR into the resulting binary.
34146 hardcode_direct=$hardcode_direct
34148 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34149 # DIR into the resulting binary and the resulting library dependency is
34150 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34151 # library is relocated.
34152 hardcode_direct_absolute=$hardcode_direct_absolute
34154 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34155 # into the resulting binary.
34156 hardcode_minus_L=$hardcode_minus_L
34158 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34159 # into the resulting binary.
34160 hardcode_shlibpath_var=$hardcode_shlibpath_var
34162 # Set to "yes" if building a shared library automatically hardcodes DIR
34163 # into the library and all subsequent libraries and executables linked
34165 hardcode_automatic=$hardcode_automatic
34167 # Set to yes if linker adds runtime paths of dependent libraries
34168 # to runtime path list.
34169 inherit_rpath=$inherit_rpath
34171 # Whether libtool must link a program against all its dependency libraries.
34172 link_all_deplibs=$link_all_deplibs
34174 # Set to "yes" if exported symbols are required.
34175 always_export_symbols=$always_export_symbols
34177 # The commands to list exported symbols.
34178 export_symbols_cmds=$lt_export_symbols_cmds
34180 # Symbols that should not be listed in the preloaded symbols.
34181 exclude_expsyms=$lt_exclude_expsyms
34183 # Symbols that must always be exported.
34184 include_expsyms=$lt_include_expsyms
34186 # Commands necessary for linking programs (against libraries) with templates.
34187 prelink_cmds=$lt_prelink_cmds
34189 # Commands necessary for finishing linking programs.
34190 postlink_cmds=$lt_postlink_cmds
34192 # Specify filename containing input files.
34193 file_list_spec=$lt_file_list_spec
34195 # How to hardcode a shared library path into an executable.
34196 hardcode_action=$hardcode_action
34198 # The directories searched by this compiler when creating a shared library.
34199 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34201 # Dependencies to place before and after the objects being linked to
34202 # create a shared library.
34203 predep_objects=$lt_predep_objects
34204 postdep_objects=$lt_postdep_objects
34205 predeps=$lt_predeps
34206 postdeps=$lt_postdeps
34208 # The library search path used internally by the compiler when linking
34209 # a shared library.
34210 compiler_lib_search_path=$lt_compiler_lib_search_path
34212 # ### END LIBTOOL CONFIG
34216 cat <<'_LT_EOF' >> "$cfgfile"
34218 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34220 # func_munge_path_list VARIABLE PATH
34221 # -----------------------------------
34222 # VARIABLE is name of variable containing _space_ separated list of
34223 # directories to be munged by the contents of PATH, which is string
34226 # string "DIR[ DIR]" will be prepended to VARIABLE
34228 # string "DIR[ DIR]" will be appended to VARIABLE
34229 # "DIRP[:DIRP]::[DIRA:]DIRA"
34230 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34231 # "DIRA[ DIRA]" will be appended to VARIABLE
34233 # VARIABLE will be replaced by "DIR[ DIR]"
34234 func_munge_path_list ()
34240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34243 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34246 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34247 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34256 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
34257 func_cc_basename ()
34259 for cc_temp in $*""; do
34261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34267 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34271 # ### END FUNCTIONS SHARED WITH CONFIGURE
34277 cat <<\_LT_EOF >> "$cfgfile"
34278 # AIX sometimes has problems with the GCC collect2 program. For some
34279 # reason, if we set the COLLECT_NAMES environment variable, the problems
34280 # vanish in a puff of smoke.
34281 if test set != "${COLLECT_NAMES+set}"; then
34283 export COLLECT_NAMES
34290 ltmain=$ac_aux_dir/ltmain.sh
34293 # We use sed instead of cat because bash on DJGPP gets confused if
34294 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34295 # text mode, it properly converts lines to CR/LF. This bash problem
34296 # is reportedly fixed, but why not run on old versions too?
34297 sed '$q' "$ltmain" >> "$cfgfile" \
34298 || (rm -f "$cfgfile"; exit 1)
34300 mv -f "$cfgfile" "$ofile" ||
34301 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34305 cat <<_LT_EOF >> "$ofile"
34307 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34309 # The linker used to build libraries.
34312 # How to create reloadable object files.
34313 reload_flag=$lt_reload_flag_CXX
34314 reload_cmds=$lt_reload_cmds_CXX
34316 # Commands used to build an old-style archive.
34317 old_archive_cmds=$lt_old_archive_cmds_CXX
34319 # A language specific compiler.
34320 CC=$lt_compiler_CXX
34322 # Is the compiler the GNU compiler?
34325 # Compiler flag to turn off builtin functions.
34326 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34328 # Additional compiler flags for building library objects.
34329 pic_flag=$lt_lt_prog_compiler_pic_CXX
34331 # How to pass a linker flag through the compiler.
34332 wl=$lt_lt_prog_compiler_wl_CXX
34334 # Compiler flag to prevent dynamic linking.
34335 link_static_flag=$lt_lt_prog_compiler_static_CXX
34337 # Does compiler simultaneously support -c and -o options?
34338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34340 # Whether or not to add -lc for building shared libraries.
34341 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34343 # Whether or not to disallow shared libs when runtime libs are static.
34344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34346 # Compiler flag to allow reflexive dlopens.
34347 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34349 # Compiler flag to generate shared objects directly from archives.
34350 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34352 # Whether the compiler copes with passing no objects directly.
34353 compiler_needs_object=$lt_compiler_needs_object_CXX
34355 # Create an old-style archive from a shared archive.
34356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34358 # Create a temporary old-style archive to link instead of a shared archive.
34359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34361 # Commands used to build a shared archive.
34362 archive_cmds=$lt_archive_cmds_CXX
34363 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34365 # Commands used to build a loadable module if different from building
34366 # a shared archive.
34367 module_cmds=$lt_module_cmds_CXX
34368 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34370 # Whether we are building with GNU ld or not.
34371 with_gnu_ld=$lt_with_gnu_ld_CXX
34373 # Flag that allows shared libraries with undefined symbols to be built.
34374 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34376 # Flag that enforces no undefined symbols.
34377 no_undefined_flag=$lt_no_undefined_flag_CXX
34379 # Flag to hardcode \$libdir into a binary during linking.
34380 # This must work even if \$libdir does not exist
34381 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34383 # Whether we need a single "-rpath" flag with a separated argument.
34384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34386 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34387 # DIR into the resulting binary.
34388 hardcode_direct=$hardcode_direct_CXX
34390 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34391 # DIR into the resulting binary and the resulting library dependency is
34392 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34393 # library is relocated.
34394 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34396 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34397 # into the resulting binary.
34398 hardcode_minus_L=$hardcode_minus_L_CXX
34400 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34401 # into the resulting binary.
34402 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34404 # Set to "yes" if building a shared library automatically hardcodes DIR
34405 # into the library and all subsequent libraries and executables linked
34407 hardcode_automatic=$hardcode_automatic_CXX
34409 # Set to yes if linker adds runtime paths of dependent libraries
34410 # to runtime path list.
34411 inherit_rpath=$inherit_rpath_CXX
34413 # Whether libtool must link a program against all its dependency libraries.
34414 link_all_deplibs=$link_all_deplibs_CXX
34416 # Set to "yes" if exported symbols are required.
34417 always_export_symbols=$always_export_symbols_CXX
34419 # The commands to list exported symbols.
34420 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34422 # Symbols that should not be listed in the preloaded symbols.
34423 exclude_expsyms=$lt_exclude_expsyms_CXX
34425 # Symbols that must always be exported.
34426 include_expsyms=$lt_include_expsyms_CXX
34428 # Commands necessary for linking programs (against libraries) with templates.
34429 prelink_cmds=$lt_prelink_cmds_CXX
34431 # Commands necessary for finishing linking programs.
34432 postlink_cmds=$lt_postlink_cmds_CXX
34434 # Specify filename containing input files.
34435 file_list_spec=$lt_file_list_spec_CXX
34437 # How to hardcode a shared library path into an executable.
34438 hardcode_action=$hardcode_action_CXX
34440 # The directories searched by this compiler when creating a shared library.
34441 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34443 # Dependencies to place before and after the objects being linked to
34444 # create a shared library.
34445 predep_objects=$lt_predep_objects_CXX
34446 postdep_objects=$lt_postdep_objects_CXX
34447 predeps=$lt_predeps_CXX
34448 postdeps=$lt_postdeps_CXX
34450 # The library search path used internally by the compiler when linking
34451 # a shared library.
34452 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34454 # ### END LIBTOOL TAG CONFIG: CXX
34465 ac_clean_files=$ac_clean_files_save
34467 test $ac_write_fail = 0 ||
34468 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34471 # configure is writing to config.log, and then calls config.status.
34472 # config.status does its own redirection, appending to config.log.
34473 # Unfortunately, on DOS this fails, as config.log is still kept open
34474 # by configure, so config.status won't be able to write to it; its
34475 # output is simply discarded. So we exec the FD to /dev/null,
34476 # effectively closing config.log, so it can be properly (re)opened and
34477 # appended to by config.status. When coming back to configure, we
34478 # need to make the FD available again.
34479 if test "$no_create" != yes; then
34481 ac_config_status_args=
34482 test "$silent" = yes &&
34483 ac_config_status_args="$ac_config_status_args --quiet"
34485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34488 # would make configure fail if this is the last instruction.
34489 $ac_cs_success || as_fn_exit 1
34493 # CONFIG_SUBDIRS section.
34495 if test "$no_recursion" != yes; then
34497 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34498 # so they do not pile up.
34499 ac_sub_configure_args=
34501 eval "set x $ac_configure_args"
34505 if test -n "$ac_prev"; then
34510 -cache-file | --cache-file | --cache-fil | --cache-fi \
34511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34512 ac_prev=cache_file ;;
34513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34517 --config-cache | -C)
34519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34523 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34525 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34527 --disable-option-checking)
34531 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34533 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
34537 # Always prepend --prefix to ensure using the same prefix
34538 # in subdir configurations.
34539 ac_arg="--prefix=$prefix"
34541 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34543 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34546 if test "$silent" = yes; then
34547 ac_sub_configure_args="--silent $ac_sub_configure_args"
34550 # Always prepend --disable-option-checking to silence warnings, since
34551 # different subdirs can have different --enable and --with options.
34552 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
34555 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34557 # Do not complain, so a configure script can configure whichever
34558 # parts of a large source tree are present.
34559 test -d "$srcdir/$ac_dir" || continue
34561 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34562 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34563 $as_echo "$ac_msg" >&6
34564 as_dir="$ac_dir"; as_fn_mkdir_p
34568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34571 # A ".." for each directory in $ac_dir_suffix.
34572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34573 case $ac_top_builddir_sub in
34574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34578 ac_abs_top_builddir=$ac_pwd
34579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34580 # for backward compatibility:
34581 ac_top_builddir=$ac_top_build_prefix
34584 .) # We are building in place.
34586 ac_top_srcdir=$ac_top_builddir_sub
34587 ac_abs_top_srcdir=$ac_pwd ;;
34588 [\\/]* | ?:[\\/]* ) # Absolute name.
34589 ac_srcdir=$srcdir$ac_dir_suffix;
34590 ac_top_srcdir=$srcdir
34591 ac_abs_top_srcdir=$srcdir ;;
34592 *) # Relative name.
34593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34594 ac_top_srcdir=$ac_top_build_prefix$srcdir
34595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34602 # Check for guested configure; otherwise get Cygnus style configure.
34603 if test -f "$ac_srcdir/configure.gnu"; then
34604 ac_sub_configure=$ac_srcdir/configure.gnu
34605 elif test -f "$ac_srcdir/configure"; then
34606 ac_sub_configure=$ac_srcdir/configure
34607 elif test -f "$ac_srcdir/configure.in"; then
34608 # This should be Cygnus configure.
34609 ac_sub_configure=$ac_aux_dir/configure
34611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34616 # The recursion is here.
34617 if test -n "$ac_sub_configure"; then
34618 # Make the cache file name correct relative to the subdirectory.
34619 case $cache_file in
34620 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34621 *) # Relative name.
34622 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34625 { $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
34626 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34627 # The eval makes quoting arguments work.
34628 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34629 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34630 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34642 ## ---------------------------------- ##
34643 ## Start of distclean amending code ##
34644 ## ---------------------------------- ##
34646 for xc_subdir in '.'
34649 if test ! -f "$xc_subdir/Makefile"; then
34650 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
34654 # Fetch dependency tracking file list from Makefile include lines.
34656 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
34657 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
34659 # --disable-dependency-tracking might have been used, consequently
34660 # there is nothing to amend without a dependency tracking file list.
34662 if test $xc_cnt_words -gt 0; then
34664 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
34665 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
34667 # Build Makefile specific patch hunk.
34669 xc_p="$xc_subdir/xc_patch.tmp"
34671 xc_rm_depfiles=`echo "$xc_inc_lines" \
34672 | $SED 's%include% -rm -f%' 2>/dev/null`
34674 xc_dep_subdirs=`echo "$xc_inc_lines" \
34675 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
34676 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
34679 echo "$xc_rm_depfiles" >$xc_p
34681 for xc_dep_dir in $xc_dep_subdirs; do
34682 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
34683 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
34684 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
34685 echo "${xc_tab}fi" >>$xc_p
34688 # Build Makefile patching sed scripts.
34690 xc_s1="$xc_subdir/xc_script_1.tmp"
34691 xc_s2="$xc_subdir/xc_script_2.tmp"
34692 xc_s3="$xc_subdir/xc_script_3.tmp"
34694 cat >$xc_s1 <<\_EOT
34695 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
34696 s/^.*(DEPDIR)/___xc_depdir_line___/
34698 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
34699 s/^.*(DEPDIR)/___xc_depdir_line___/
34703 cat >$xc_s2 <<\_EOT
34704 /___xc_depdir_line___$/{
34706 /___xc_depdir_line___$/D
34711 /^___xc_depdir_line___/{
34717 # Apply patch to Makefile and cleanup.
34719 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
34720 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
34721 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
34723 if test -f "$xc_subdir/Makefile.tmp3"; then
34724 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
34727 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
34728 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
34729 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
34731 test -f "$xc_p" && rm -f "$xc_p"
34732 test -f "$xc_s1" && rm -f "$xc_s1"
34733 test -f "$xc_s2" && rm -f "$xc_s2"
34734 test -f "$xc_s3" && rm -f "$xc_s3"
34740 ## -------------------------------- ##
34741 ## End of distclean amending code ##
34742 ## -------------------------------- ##